@progress/kendo-angular-gantt 1.0.1 → 2.0.0-next.202204011501
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-gantt.umd.js +5 -0
- package/package.json +46 -125
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/dist/cdn/js/kendo-angular-gantt.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/binding-directives/flat-binding.directive.js +0 -36
- package/dist/es/binding-directives/hierarchy-binding.directive.js +0 -34
- package/dist/es/columns/cell-template.directive.js +0 -36
- package/dist/es/columns/column-base.js +0 -66
- package/dist/es/columns/column-group.component.js +0 -111
- package/dist/es/columns/column-menu-template.directive.js +0 -30
- package/dist/es/columns/column.component.js +0 -163
- package/dist/es/columns/columns.js +0 -15
- package/dist/es/columns/edit-template.directive.js +0 -34
- package/dist/es/columns/filter-cell-template.directive.js +0 -29
- package/dist/es/columns/filter-menu-template.directive.js +0 -28
- package/dist/es/columns/footer-template.directive.js +0 -32
- package/dist/es/columns/header-template.directive.js +0 -30
- package/dist/es/columns/span-column.component.js +0 -104
- package/dist/es/common/default-callbacks.js +0 -25
- package/dist/es/common/mapping.service.js +0 -72
- package/dist/es/common/option-changes.service.js +0 -26
- package/dist/es/common/touch-enabled.js +0 -9
- package/dist/es/dependencies/dependency-dom.service.js +0 -79
- package/dist/es/dependencies/dom-dependency-args.js +0 -4
- package/dist/es/dependencies/gantt-dependency.directive.js +0 -94
- package/dist/es/dependencies/utils.js +0 -199
- package/dist/es/dragging/dependency-drag-create.directive.js +0 -347
- package/dist/es/dragging/drag-validation-tooltip.component.js +0 -27
- package/dist/es/editing/add-task.component.js +0 -94
- package/dist/es/editing/dependencies-table.component.js +0 -131
- package/dist/es/editing/edit-dialog.component.js +0 -75
- package/dist/es/editing/edit.service.js +0 -123
- package/dist/es/editing/task-fields.component.js +0 -43
- package/dist/es/editing/utils.js +0 -17
- package/dist/es/expanded-state/expand-event.js +0 -13
- package/dist/es/expanded-state/expandable.directive.js +0 -28
- package/dist/es/gantt.component.js +0 -1634
- package/dist/es/gantt.module.js +0 -167
- package/dist/es/index.js +0 -46
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/gantt-localization.service.js +0 -26
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -290
- package/dist/es/main.js +0 -17
- package/dist/es/models/cell-content-type.interface.js +0 -4
- package/dist/es/models/class-callbacks.js +0 -4
- package/dist/es/models/column-menu-settings.interface.js +0 -4
- package/dist/es/models/column-reorder-config.js +0 -4
- package/dist/es/models/date-range.interface.js +0 -4
- package/dist/es/models/dependency-type.enum.js +0 -20
- package/dist/es/models/events/cell-click-event.interface.js +0 -4
- package/dist/es/models/events/cell-close-event.interface.js +0 -19
- package/dist/es/models/events/click-event.interface.js +0 -4
- package/dist/es/models/events/column-locked-change-event.interface.js +0 -4
- package/dist/es/models/events/column-reorder-event.interface.js +0 -4
- package/dist/es/models/events/column-resize-event.interface.js +0 -4
- package/dist/es/models/events/column-visibility-change-event.interface.js +0 -4
- package/dist/es/models/events/data-state-change-event.interface.js +0 -4
- package/dist/es/models/events/dependency-add-event.interface.js +0 -4
- package/dist/es/models/events/preventable-event.js +0 -32
- package/dist/es/models/events/selected-view-change-event.interface.js +0 -4
- package/dist/es/models/events/task-add-event.interface.js +0 -4
- package/dist/es/models/events/task-click-event.interface.js +0 -4
- package/dist/es/models/events/task-delete-event.interface.js +0 -4
- package/dist/es/models/events/task-edit-event.interface.js +0 -4
- package/dist/es/models/events/task-move-end-event.interface.js +0 -4
- package/dist/es/models/events/task-move-event.interface.js +0 -4
- package/dist/es/models/events/task-move-start-event.interface.js +0 -4
- package/dist/es/models/events/task-resize-end-event.interface.js +0 -4
- package/dist/es/models/events/task-resize-event.interface.js +0 -4
- package/dist/es/models/events/task-resize-start-event.interface.js +0 -4
- package/dist/es/models/gantt-dependency-model-fields.interface.js +0 -13
- package/dist/es/models/gantt-dependency.interface.js +0 -4
- package/dist/es/models/gantt-task-model-fields.interface.js +0 -15
- package/dist/es/models/gantt-task.interface.js +0 -4
- package/dist/es/models/models.js +0 -6
- package/dist/es/models/slot.interface.js +0 -4
- package/dist/es/models/sort-settings.js +0 -23
- package/dist/es/models/splitter-pane-options.interface.js +0 -20
- package/dist/es/models/timeline-options.interface.js +0 -4
- package/dist/es/models/timeline-view.js +0 -4
- package/dist/es/models/toolbar-settings.js +0 -4
- package/dist/es/models/view-item.interface.js +0 -4
- package/dist/es/navigation/navigation-models.js +0 -4
- package/dist/es/navigation/navigation.service.js +0 -390
- package/dist/es/navigation/utils.js +0 -77
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/rendering/gantt-header-table-body.component.js +0 -29
- package/dist/es/rendering/gantt-milestone-task.component.js +0 -53
- package/dist/es/rendering/gantt-summary-task.component.js +0 -72
- package/dist/es/rendering/gantt-task-base.js +0 -192
- package/dist/es/rendering/gantt-task.component.js +0 -62
- package/dist/es/rendering/gantt-tasks-table-body.component.js +0 -88
- package/dist/es/scrolling/drag-scroll-settings.js +0 -20
- package/dist/es/scrolling/scroll-sync.service.js +0 -88
- package/dist/es/scrolling/timeline-scroll.directive.js +0 -89
- package/dist/es/scrolling/timeline-scroll.service.js +0 -39
- package/dist/es/scrolling/utils.js +0 -80
- package/dist/es/selection/selectable.directive.js +0 -141
- package/dist/es/selection/selection-change-event.js +0 -4
- package/dist/es/template-directives/summary-task-template.directive.js +0 -49
- package/dist/es/template-directives/task-content-template.directive.js +0 -44
- package/dist/es/template-directives/task-template.directive.js +0 -47
- package/dist/es/timeline/gantt-timeline.component.js +0 -176
- package/dist/es/timeline/timeline-base-view.service.js +0 -166
- package/dist/es/timeline/timeline-day-view.component.js +0 -37
- package/dist/es/timeline/timeline-day-view.service.js +0 -68
- package/dist/es/timeline/timeline-month-view.component.js +0 -37
- package/dist/es/timeline/timeline-month-view.service.js +0 -66
- package/dist/es/timeline/timeline-view.service.js +0 -36
- package/dist/es/timeline/timeline-week-view.component.js +0 -37
- package/dist/es/timeline/timeline-week-view.service.js +0 -62
- package/dist/es/timeline/view-base.js +0 -38
- package/dist/es/toolbar/toolbar-template.directive.js +0 -132
- package/dist/es/toolbar/toolbar.component.js +0 -72
- package/dist/es/toolbar/view-selector.component.js +0 -64
- package/dist/es/utils.js +0 -296
- package/dist/es2015/binding-directives/flat-binding.directive.d.ts +0 -21
- package/dist/es2015/binding-directives/flat-binding.directive.js +0 -39
- package/dist/es2015/binding-directives/hierarchy-binding.directive.d.ts +0 -19
- package/dist/es2015/binding-directives/hierarchy-binding.directive.js +0 -35
- package/dist/es2015/columns/cell-template.directive.d.ts +0 -25
- package/dist/es2015/columns/cell-template.directive.js +0 -35
- package/dist/es2015/columns/column-base.d.ts +0 -82
- package/dist/es2015/columns/column-base.js +0 -62
- package/dist/es2015/columns/column-group.component.d.ts +0 -100
- package/dist/es2015/columns/column-group.component.js +0 -107
- package/dist/es2015/columns/column-menu-template.directive.d.ts +0 -19
- package/dist/es2015/columns/column-menu-template.directive.js +0 -29
- package/dist/es2015/columns/column.component.d.ts +0 -127
- package/dist/es2015/columns/column.component.js +0 -159
- package/dist/es2015/columns/columns.d.ts +0 -15
- package/dist/es2015/columns/columns.js +0 -15
- package/dist/es2015/columns/edit-template.directive.d.ts +0 -23
- package/dist/es2015/columns/edit-template.directive.js +0 -33
- package/dist/es2015/columns/filter-cell-template.directive.d.ts +0 -18
- package/dist/es2015/columns/filter-cell-template.directive.js +0 -28
- package/dist/es2015/columns/filter-menu-template.directive.d.ts +0 -17
- package/dist/es2015/columns/filter-menu-template.directive.js +0 -27
- package/dist/es2015/columns/footer-template.directive.d.ts +0 -21
- package/dist/es2015/columns/footer-template.directive.js +0 -31
- package/dist/es2015/columns/header-template.directive.d.ts +0 -19
- package/dist/es2015/columns/header-template.directive.js +0 -29
- package/dist/es2015/columns/span-column.component.d.ts +0 -109
- package/dist/es2015/columns/span-column.component.js +0 -100
- package/dist/es2015/common/default-callbacks.d.ts +0 -24
- package/dist/es2015/common/default-callbacks.js +0 -25
- package/dist/es2015/common/mapping.service.d.ts +0 -32
- package/dist/es2015/common/mapping.service.js +0 -66
- package/dist/es2015/common/option-changes.service.d.ts +0 -14
- package/dist/es2015/common/option-changes.service.js +0 -28
- package/dist/es2015/common/touch-enabled.d.ts +0 -9
- package/dist/es2015/common/touch-enabled.js +0 -9
- package/dist/es2015/dependencies/dependency-dom.service.d.ts +0 -43
- package/dist/es2015/dependencies/dependency-dom.service.js +0 -70
- package/dist/es2015/dependencies/dom-dependency-args.d.ts +0 -24
- package/dist/es2015/dependencies/dom-dependency-args.js +0 -4
- package/dist/es2015/dependencies/gantt-dependency.directive.d.ts +0 -26
- package/dist/es2015/dependencies/gantt-dependency.directive.js +0 -87
- package/dist/es2015/dependencies/utils.d.ts +0 -53
- package/dist/es2015/dependencies/utils.js +0 -199
- package/dist/es2015/dragging/dependency-drag-create.directive.d.ts +0 -72
- package/dist/es2015/dragging/dependency-drag-create.directive.js +0 -324
- package/dist/es2015/dragging/drag-validation-tooltip.component.d.ts +0 -29
- package/dist/es2015/dragging/drag-validation-tooltip.component.js +0 -76
- package/dist/es2015/editing/add-task.component.d.ts +0 -45
- package/dist/es2015/editing/add-task.component.js +0 -102
- package/dist/es2015/editing/dependencies-table.component.d.ts +0 -39
- package/dist/es2015/editing/dependencies-table.component.js +0 -160
- package/dist/es2015/editing/edit-dialog.component.d.ts +0 -28
- package/dist/es2015/editing/edit-dialog.component.js +0 -116
- package/dist/es2015/editing/edit.service.d.ts +0 -40
- package/dist/es2015/editing/edit.service.js +0 -111
- package/dist/es2015/editing/task-fields.component.d.ts +0 -22
- package/dist/es2015/editing/task-fields.component.js +0 -67
- package/dist/es2015/editing/utils.d.ts +0 -10
- package/dist/es2015/editing/utils.js +0 -17
- package/dist/es2015/expanded-state/expand-event.d.ts +0 -13
- package/dist/es2015/expanded-state/expand-event.js +0 -9
- package/dist/es2015/expanded-state/expandable.directive.d.ts +0 -17
- package/dist/es2015/expanded-state/expandable.directive.js +0 -23
- package/dist/es2015/gantt.component.d.ts +0 -730
- package/dist/es2015/gantt.component.js +0 -1867
- package/dist/es2015/gantt.module.d.ts +0 -37
- package/dist/es2015/gantt.module.js +0 -164
- package/dist/es2015/index.d.ts +0 -46
- package/dist/es2015/index.js +0 -46
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.d.ts +0 -15
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/gantt-localization.service.d.ts +0 -15
- package/dist/es2015/localization/gantt-localization.service.js +0 -25
- package/dist/es2015/localization/localized-messages.directive.d.ts +0 -13
- package/dist/es2015/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/localization/messages.d.ts +0 -290
- package/dist/es2015/localization/messages.js +0 -284
- package/dist/es2015/main.d.ts +0 -19
- package/dist/es2015/main.js +0 -17
- package/dist/es2015/models/cell-content-type.interface.d.ts +0 -10
- package/dist/es2015/models/cell-content-type.interface.js +0 -4
- package/dist/es2015/models/class-callbacks.d.ts +0 -43
- package/dist/es2015/models/class-callbacks.js +0 -4
- package/dist/es2015/models/column-menu-settings.interface.d.ts +0 -26
- package/dist/es2015/models/column-menu-settings.interface.js +0 -4
- package/dist/es2015/models/column-reorder-config.d.ts +0 -10
- package/dist/es2015/models/column-reorder-config.js +0 -4
- package/dist/es2015/models/date-range.interface.d.ts +0 -19
- package/dist/es2015/models/date-range.interface.js +0 -4
- package/dist/es2015/models/dependency-type.enum.d.ts +0 -19
- package/dist/es2015/models/dependency-type.enum.js +0 -20
- package/dist/es2015/models/events/cell-click-event.interface.d.ts +0 -43
- package/dist/es2015/models/events/cell-click-event.interface.js +0 -4
- package/dist/es2015/models/events/cell-close-event.interface.d.ts +0 -48
- package/dist/es2015/models/events/cell-close-event.interface.js +0 -14
- package/dist/es2015/models/events/click-event.interface.d.ts +0 -23
- package/dist/es2015/models/events/click-event.interface.js +0 -4
- package/dist/es2015/models/events/column-locked-change-event.interface.d.ts +0 -16
- package/dist/es2015/models/events/column-locked-change-event.interface.js +0 -4
- package/dist/es2015/models/events/column-reorder-event.interface.d.ts +0 -10
- package/dist/es2015/models/events/column-reorder-event.interface.js +0 -4
- package/dist/es2015/models/events/column-resize-event.interface.d.ts +0 -10
- package/dist/es2015/models/events/column-resize-event.interface.js +0 -4
- package/dist/es2015/models/events/column-visibility-change-event.interface.d.ts +0 -14
- package/dist/es2015/models/events/column-visibility-change-event.interface.js +0 -4
- package/dist/es2015/models/events/data-state-change-event.interface.d.ts +0 -10
- package/dist/es2015/models/events/data-state-change-event.interface.js +0 -4
- package/dist/es2015/models/events/dependency-add-event.interface.d.ts +0 -26
- package/dist/es2015/models/events/dependency-add-event.interface.js +0 -4
- package/dist/es2015/models/events/preventable-event.d.ts +0 -24
- package/dist/es2015/models/events/preventable-event.js +0 -30
- package/dist/es2015/models/events/selected-view-change-event.interface.d.ts +0 -19
- package/dist/es2015/models/events/selected-view-change-event.interface.js +0 -4
- package/dist/es2015/models/events/task-add-event.interface.d.ts +0 -31
- package/dist/es2015/models/events/task-add-event.interface.js +0 -4
- package/dist/es2015/models/events/task-click-event.interface.d.ts +0 -30
- package/dist/es2015/models/events/task-click-event.interface.js +0 -4
- package/dist/es2015/models/events/task-delete-event.interface.d.ts +0 -21
- package/dist/es2015/models/events/task-delete-event.interface.js +0 -4
- package/dist/es2015/models/events/task-edit-event.interface.d.ts +0 -76
- package/dist/es2015/models/events/task-edit-event.interface.js +0 -4
- package/dist/es2015/models/events/task-move-end-event.interface.d.ts +0 -12
- package/dist/es2015/models/events/task-move-end-event.interface.js +0 -4
- package/dist/es2015/models/events/task-move-event.interface.d.ts +0 -23
- package/dist/es2015/models/events/task-move-event.interface.js +0 -4
- package/dist/es2015/models/events/task-move-start-event.interface.d.ts +0 -15
- package/dist/es2015/models/events/task-move-start-event.interface.js +0 -4
- package/dist/es2015/models/events/task-resize-end-event.interface.d.ts +0 -12
- package/dist/es2015/models/events/task-resize-end-event.interface.js +0 -4
- package/dist/es2015/models/events/task-resize-event.interface.d.ts +0 -23
- package/dist/es2015/models/events/task-resize-event.interface.js +0 -4
- package/dist/es2015/models/events/task-resize-start-event.interface.d.ts +0 -15
- package/dist/es2015/models/events/task-resize-start-event.interface.js +0 -4
- package/dist/es2015/models/gantt-dependency-model-fields.interface.d.ts +0 -35
- package/dist/es2015/models/gantt-dependency-model-fields.interface.js +0 -13
- package/dist/es2015/models/gantt-dependency.interface.d.ts +0 -26
- package/dist/es2015/models/gantt-dependency.interface.js +0 -4
- package/dist/es2015/models/gantt-task-model-fields.interface.d.ts +0 -42
- package/dist/es2015/models/gantt-task-model-fields.interface.js +0 -15
- package/dist/es2015/models/gantt-task.interface.d.ts +0 -31
- package/dist/es2015/models/gantt-task.interface.js +0 -4
- package/dist/es2015/models/models.d.ts +0 -42
- package/dist/es2015/models/models.js +0 -6
- package/dist/es2015/models/slot.interface.d.ts +0 -31
- package/dist/es2015/models/slot.interface.js +0 -4
- package/dist/es2015/models/sort-settings.d.ts +0 -107
- package/dist/es2015/models/sort-settings.js +0 -17
- package/dist/es2015/models/splitter-pane-options.interface.d.ts +0 -54
- package/dist/es2015/models/splitter-pane-options.interface.js +0 -20
- package/dist/es2015/models/timeline-options.interface.d.ts +0 -41
- package/dist/es2015/models/timeline-options.interface.js +0 -4
- package/dist/es2015/models/timeline-view.d.ts +0 -8
- package/dist/es2015/models/timeline-view.js +0 -4
- package/dist/es2015/models/toolbar-settings.d.ts +0 -29
- package/dist/es2015/models/toolbar-settings.js +0 -4
- package/dist/es2015/models/view-item.interface.d.ts +0 -35
- package/dist/es2015/models/view-item.interface.js +0 -4
- package/dist/es2015/navigation/navigation-models.d.ts +0 -34
- package/dist/es2015/navigation/navigation-models.js +0 -4
- package/dist/es2015/navigation/navigation.service.d.ts +0 -126
- package/dist/es2015/navigation/navigation.service.js +0 -355
- package/dist/es2015/navigation/utils.d.ts +0 -26
- package/dist/es2015/navigation/utils.js +0 -69
- package/dist/es2015/package-metadata.d.ts +0 -9
- package/dist/es2015/package-metadata.js +0 -15
- package/dist/es2015/rendering/gantt-header-table-body.component.d.ts +0 -11
- package/dist/es2015/rendering/gantt-header-table-body.component.js +0 -34
- package/dist/es2015/rendering/gantt-milestone-task.component.d.ts +0 -19
- package/dist/es2015/rendering/gantt-milestone-task.component.js +0 -81
- package/dist/es2015/rendering/gantt-summary-task.component.d.ts +0 -22
- package/dist/es2015/rendering/gantt-summary-task.component.js +0 -116
- package/dist/es2015/rendering/gantt-task-base.d.ts +0 -56
- package/dist/es2015/rendering/gantt-task-base.js +0 -156
- package/dist/es2015/rendering/gantt-task.component.d.ts +0 -23
- package/dist/es2015/rendering/gantt-task.component.js +0 -135
- package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +0 -30
- package/dist/es2015/rendering/gantt-tasks-table-body.component.js +0 -130
- package/dist/es2015/scrolling/drag-scroll-settings.d.ts +0 -47
- package/dist/es2015/scrolling/drag-scroll-settings.js +0 -20
- package/dist/es2015/scrolling/scroll-sync.service.d.ts +0 -30
- package/dist/es2015/scrolling/scroll-sync.service.js +0 -80
- package/dist/es2015/scrolling/timeline-scroll.directive.d.ts +0 -24
- package/dist/es2015/scrolling/timeline-scroll.directive.js +0 -78
- package/dist/es2015/scrolling/timeline-scroll.service.d.ts +0 -20
- package/dist/es2015/scrolling/timeline-scroll.service.js +0 -44
- package/dist/es2015/scrolling/utils.d.ts +0 -29
- package/dist/es2015/scrolling/utils.js +0 -80
- package/dist/es2015/selection/selectable.directive.d.ts +0 -42
- package/dist/es2015/selection/selectable.directive.js +0 -122
- package/dist/es2015/selection/selection-change-event.d.ts +0 -25
- package/dist/es2015/selection/selection-change-event.js +0 -4
- package/dist/es2015/template-directives/summary-task-template.directive.d.ts +0 -38
- package/dist/es2015/template-directives/summary-task-template.directive.js +0 -48
- package/dist/es2015/template-directives/task-content-template.directive.d.ts +0 -33
- package/dist/es2015/template-directives/task-content-template.directive.js +0 -43
- package/dist/es2015/template-directives/task-template.directive.d.ts +0 -36
- package/dist/es2015/template-directives/task-template.directive.js +0 -46
- package/dist/es2015/timeline/gantt-timeline.component.d.ts +0 -64
- package/dist/es2015/timeline/gantt-timeline.component.js +0 -271
- package/dist/es2015/timeline/timeline-base-view.service.d.ts +0 -77
- package/dist/es2015/timeline/timeline-base-view.service.js +0 -160
- package/dist/es2015/timeline/timeline-day-view.component.d.ts +0 -15
- package/dist/es2015/timeline/timeline-day-view.component.js +0 -33
- package/dist/es2015/timeline/timeline-day-view.service.d.ts +0 -35
- package/dist/es2015/timeline/timeline-day-view.service.js +0 -66
- package/dist/es2015/timeline/timeline-month-view.component.d.ts +0 -15
- package/dist/es2015/timeline/timeline-month-view.component.js +0 -33
- package/dist/es2015/timeline/timeline-month-view.service.d.ts +0 -35
- package/dist/es2015/timeline/timeline-month-view.service.js +0 -64
- package/dist/es2015/timeline/timeline-view.service.d.ts +0 -16
- package/dist/es2015/timeline/timeline-view.service.js +0 -35
- package/dist/es2015/timeline/timeline-week-view.component.d.ts +0 -15
- package/dist/es2015/timeline/timeline-week-view.component.js +0 -33
- package/dist/es2015/timeline/timeline-week-view.service.d.ts +0 -35
- package/dist/es2015/timeline/timeline-week-view.service.js +0 -60
- package/dist/es2015/timeline/view-base.d.ts +0 -31
- package/dist/es2015/timeline/view-base.js +0 -36
- package/dist/es2015/toolbar/toolbar-template.directive.d.ts +0 -108
- package/dist/es2015/toolbar/toolbar-template.directive.js +0 -127
- package/dist/es2015/toolbar/toolbar.component.d.ts +0 -23
- package/dist/es2015/toolbar/toolbar.component.js +0 -75
- package/dist/es2015/toolbar/view-selector.component.d.ts +0 -36
- package/dist/es2015/toolbar/view-selector.component.js +0 -78
- package/dist/es2015/utils.d.ts +0 -166
- package/dist/es2015/utils.js +0 -293
- package/dist/fesm2015/index.js +0 -7112
- package/dist/fesm5/index.js +0 -6674
- package/dist/npm/binding-directives/flat-binding.directive.js +0 -38
- package/dist/npm/binding-directives/hierarchy-binding.directive.js +0 -36
- package/dist/npm/columns/cell-template.directive.js +0 -38
- package/dist/npm/columns/column-base.js +0 -68
- package/dist/npm/columns/column-group.component.js +0 -113
- package/dist/npm/columns/column-menu-template.directive.js +0 -32
- package/dist/npm/columns/column.component.js +0 -165
- package/dist/npm/columns/columns.js +0 -28
- package/dist/npm/columns/edit-template.directive.js +0 -36
- package/dist/npm/columns/filter-cell-template.directive.js +0 -31
- package/dist/npm/columns/filter-menu-template.directive.js +0 -30
- package/dist/npm/columns/footer-template.directive.js +0 -34
- package/dist/npm/columns/header-template.directive.js +0 -32
- package/dist/npm/columns/span-column.component.js +0 -106
- package/dist/npm/common/default-callbacks.js +0 -27
- package/dist/npm/common/mapping.service.js +0 -74
- package/dist/npm/common/option-changes.service.js +0 -28
- package/dist/npm/common/touch-enabled.js +0 -11
- package/dist/npm/dependencies/dependency-dom.service.js +0 -81
- package/dist/npm/dependencies/dom-dependency-args.js +0 -6
- package/dist/npm/dependencies/gantt-dependency.directive.js +0 -96
- package/dist/npm/dependencies/utils.js +0 -203
- package/dist/npm/dragging/dependency-drag-create.directive.js +0 -349
- package/dist/npm/dragging/drag-validation-tooltip.component.js +0 -29
- package/dist/npm/editing/add-task.component.js +0 -96
- package/dist/npm/editing/dependencies-table.component.js +0 -133
- package/dist/npm/editing/edit-dialog.component.js +0 -77
- package/dist/npm/editing/edit.service.js +0 -125
- package/dist/npm/editing/task-fields.component.js +0 -45
- package/dist/npm/editing/utils.js +0 -19
- package/dist/npm/expanded-state/expand-event.js +0 -15
- package/dist/npm/expanded-state/expandable.directive.js +0 -30
- package/dist/npm/gantt.component.js +0 -1636
- package/dist/npm/gantt.module.js +0 -169
- package/dist/npm/index.js +0 -87
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/gantt-localization.service.js +0 -28
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -292
- package/dist/npm/main.js +0 -31
- package/dist/npm/models/cell-content-type.interface.js +0 -6
- package/dist/npm/models/class-callbacks.js +0 -6
- package/dist/npm/models/column-menu-settings.interface.js +0 -6
- package/dist/npm/models/column-reorder-config.js +0 -6
- package/dist/npm/models/date-range.interface.js +0 -6
- package/dist/npm/models/dependency-type.enum.js +0 -22
- package/dist/npm/models/events/cell-click-event.interface.js +0 -6
- package/dist/npm/models/events/cell-close-event.interface.js +0 -21
- package/dist/npm/models/events/click-event.interface.js +0 -6
- package/dist/npm/models/events/column-locked-change-event.interface.js +0 -6
- package/dist/npm/models/events/column-reorder-event.interface.js +0 -6
- package/dist/npm/models/events/column-resize-event.interface.js +0 -6
- package/dist/npm/models/events/column-visibility-change-event.interface.js +0 -6
- package/dist/npm/models/events/data-state-change-event.interface.js +0 -6
- package/dist/npm/models/events/dependency-add-event.interface.js +0 -6
- package/dist/npm/models/events/preventable-event.js +0 -34
- package/dist/npm/models/events/selected-view-change-event.interface.js +0 -6
- package/dist/npm/models/events/task-add-event.interface.js +0 -6
- package/dist/npm/models/events/task-click-event.interface.js +0 -6
- package/dist/npm/models/events/task-delete-event.interface.js +0 -6
- package/dist/npm/models/events/task-edit-event.interface.js +0 -6
- package/dist/npm/models/events/task-move-end-event.interface.js +0 -6
- package/dist/npm/models/events/task-move-event.interface.js +0 -6
- package/dist/npm/models/events/task-move-start-event.interface.js +0 -6
- package/dist/npm/models/events/task-resize-end-event.interface.js +0 -6
- package/dist/npm/models/events/task-resize-event.interface.js +0 -6
- package/dist/npm/models/events/task-resize-start-event.interface.js +0 -6
- package/dist/npm/models/gantt-dependency-model-fields.interface.js +0 -15
- package/dist/npm/models/gantt-dependency.interface.js +0 -6
- package/dist/npm/models/gantt-task-model-fields.interface.js +0 -17
- package/dist/npm/models/gantt-task.interface.js +0 -6
- package/dist/npm/models/models.js +0 -10
- package/dist/npm/models/slot.interface.js +0 -6
- package/dist/npm/models/sort-settings.js +0 -25
- package/dist/npm/models/splitter-pane-options.interface.js +0 -22
- package/dist/npm/models/timeline-options.interface.js +0 -6
- package/dist/npm/models/timeline-view.js +0 -6
- package/dist/npm/models/toolbar-settings.js +0 -6
- package/dist/npm/models/view-item.interface.js +0 -6
- package/dist/npm/navigation/navigation-models.js +0 -6
- package/dist/npm/navigation/navigation.service.js +0 -392
- package/dist/npm/navigation/utils.js +0 -79
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/rendering/gantt-header-table-body.component.js +0 -31
- package/dist/npm/rendering/gantt-milestone-task.component.js +0 -55
- package/dist/npm/rendering/gantt-summary-task.component.js +0 -74
- package/dist/npm/rendering/gantt-task-base.js +0 -194
- package/dist/npm/rendering/gantt-task.component.js +0 -64
- package/dist/npm/rendering/gantt-tasks-table-body.component.js +0 -90
- package/dist/npm/scrolling/drag-scroll-settings.js +0 -22
- package/dist/npm/scrolling/scroll-sync.service.js +0 -90
- package/dist/npm/scrolling/timeline-scroll.directive.js +0 -91
- package/dist/npm/scrolling/timeline-scroll.service.js +0 -41
- package/dist/npm/scrolling/utils.js +0 -83
- package/dist/npm/selection/selectable.directive.js +0 -143
- package/dist/npm/selection/selection-change-event.js +0 -6
- package/dist/npm/template-directives/summary-task-template.directive.js +0 -51
- package/dist/npm/template-directives/task-content-template.directive.js +0 -46
- package/dist/npm/template-directives/task-template.directive.js +0 -49
- package/dist/npm/timeline/gantt-timeline.component.js +0 -178
- package/dist/npm/timeline/timeline-base-view.service.js +0 -168
- package/dist/npm/timeline/timeline-day-view.component.js +0 -39
- package/dist/npm/timeline/timeline-day-view.service.js +0 -70
- package/dist/npm/timeline/timeline-month-view.component.js +0 -39
- package/dist/npm/timeline/timeline-month-view.service.js +0 -68
- package/dist/npm/timeline/timeline-view.service.js +0 -38
- package/dist/npm/timeline/timeline-week-view.component.js +0 -39
- package/dist/npm/timeline/timeline-week-view.service.js +0 -64
- package/dist/npm/timeline/view-base.js +0 -40
- package/dist/npm/toolbar/toolbar-template.directive.js +0 -134
- package/dist/npm/toolbar/toolbar.component.js +0 -74
- package/dist/npm/toolbar/view-selector.component.js +0 -66
- package/dist/npm/utils.js +0 -298
- package/dist/systemjs/kendo-angular-gantt.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("tslib"),require("@angular/core"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("rxjs"),require("@angular/forms"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common"),require("@progress/kendo-angular-treelist"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-angular-grid"),require("@progress/kendo-angular-dropdowns")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularGantt=t(require("tslib"),require("@angular/core"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("rxjs"),require("@angular/forms"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common"),require("@progress/kendo-angular-treelist"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-angular-grid"),require("@progress/kendo-angular-dropdowns")):e.KendoAngularGantt=t(e.self,e.ng.core,e.KendoDateMath,e.KendoAngularCommon,e.rxjs,e.ng.forms,e.rxjs.operators,e.KendoAngularIntl,e.ng.common,e.KendoLicensing,e.KendoAngularPopup,e.KendoCommon,e.KendoAngularTreelist,e.KendoDataQuery,e.KendoAngularLayout,e.KendoAngularButtons,e.KendoAngularDialog,e.KendoAngularGrid,e.KendoAngularDropdowns)}(window,(function(e,t,n,i,a,o,r,s,c,l,d,p,u,h,b,m,f,g,v){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=58)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return s})),n.d(t,"ComponentMessages",(function(){return c})),n.d(t,"L10N_PREFIX",(function(){return d})),n.d(t,"LocalizationService",(function(){return p})),n.d(t,"RTL",(function(){return l}));var i=n(0),a=n(1),o=n(5),r=n(7),s=function(){function e(){this.changes=new o.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),c=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(r.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),l=new a.InjectionToken("Kendo UI Right-to-Left token"),d=new a.InjectionToken("Localization key prefix"),p=function(){function e(e,t,n){var i=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new o.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(r.map)((function(e){var t=e.rtl;return void 0!==t?t:i._rtl})),Object(r.tap)((function(e){return i._rtl=e}))).subscribe((function(e){i.dictionary={},i.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var i=this.key(e),a=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;a=this.defaultValue(i,t)}this.dictionary[i]=a},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(i.__decorate)([Object(a.Injectable)(),Object(i.__param)(0,Object(a.Inject)(d)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(l)),Object(i.__metadata)("design:paramtypes",[String,s,Boolean])],e)}()},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(3),o=n(2),r=n(20);t.isWorkDay=function(e,t,n){return e.getDay()>=t&&e.getDay()<=n},t.isWorkHour=function(e,t,n){return e.getHours()>=t&&e.getHours()<=n},t.isPresent=function(e){return null!=e},t.normalizeGanttData=function(e){return t.isPresent(e)?Array.isArray(e.data)?e.data:e:[]},t.isArray=function(e){return Array.isArray(e)},t.setTime=function(e,n,i,a,r){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===r&&(r=0),!t.isPresent(e))return null;var s=o.cloneDate(e);return s.setHours(n),s.setMinutes(i),s.setSeconds(a),s.setMilliseconds(r),s},t.lastDayOfWeek=function(e,t){var n=o.addWeeks(e,1),i=o.firstDayInWeek(n,t);return o.addDays(i,-1)},t.scrollbarWidth=function(){if(a.isDocumentAvailable()){if(isNaN(i)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),i=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return i}},t.isColumnGroup=function(e){return e.isColumnGroup},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isString=function(e){return"string"==typeof e},t.getClosestTaskWrapper=function(e,t){return a.closestInScope(e,a.matchesClasses("k-task-wrap"),t)},t.isTaskWrapper=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task-wrap"),n);return t.isPresent(i)},t.getClosestTask=function(e,t){return a.closestInScope(e,a.matchesClasses("k-task"),t)},t.getClosestTaskIndex=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task-wrap"),n);return t.isPresent(i)?Number(i.getAttribute("data-task-index")):null},t.isTask=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task"),n);return t.isPresent(i)},t.isToolbar=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-gantt-toolbar"),n);return t.isPresent(i)},t.isClearButton=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task-actions"),n);return t.isPresent(i)},t.isDependencyDragClue=function(e){return!!t.isPresent(e)&&e.classList.contains("k-task-dot")},t.isDependencyDragStartClue=function(e){return!!t.isPresent(e)&&(e.classList.contains("k-task-dot")&&e.classList.contains("k-task-start"))},t.getDependencyTypeFromTargetTasks=function(e,n){if(!t.isDependencyDragClue(e)||!t.isDependencyDragClue(n))return null;switch(""+(t.isDependencyDragStartClue(e)?"S":"F")+(t.isDependencyDragStartClue(n)?"S":"F")){case"FF":return r.DependencyType.FF;case"FS":return r.DependencyType.FS;case"SF":return r.DependencyType.SF;case"SS":return r.DependencyType.SS;default:return null}},t.sameTaskClues=function(e,n,i){return!(!t.isPresent(e)||!t.isPresent(n))&&t.getClosestTaskWrapper(e,i)===t.getClosestTaskWrapper(n,i)},t.fitToRange=function(e,n,i){return!t.isPresent(e)||e<n?n:e>i?i:e},t.areParentChild=function(e,n){for(var i=!1,a=e;t.isPresent(a)&&t.isPresent(a.data);){if(a.data===n.data){i=!0;break}a=a.parent}for(var o=n;!i&&t.isPresent(o)&&t.isPresent(o.data);){if(o.data===e.data){i=!0;break}o=o.parent}return i},t.elementFromPoint=function(e,t){return a.isDocumentAvailable()?document.elementFromPoint(e,t):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(14),r=n(60),s=n(61),c=n(11),l=function(){function e(){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS),this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS)}return Object.defineProperty(e.prototype,"taskFields",{get:function(){return this._taskFields},set:function(e){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyFields",{get:function(){return this._dependencyFields},set:function(e){this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),e.prototype.extractFromTask=function(e,t){return c.isPresent(this.taskFields)?o.getter(this.taskFields[t])(e):null},e.prototype.extractFromDependency=function(e,t){return c.isPresent(this.dependencyFields)?o.getter(this.dependencyFields[t])(e):null},e=i.__decorate([a.Injectable()],e)}();t.MappingService=l},function(e,t){e.exports=d},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(12),s=function(){function e(e){this.mapper=e,this.notifier=new o.Subject,this.tasks=new Map}return Object.defineProperty(e.prototype,"taskChanges",{get:function(){return this.notifier.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyDomArgs",{get:function(){return{tasks:this.tasks,contentContainer:this.contentContainer,timelineRow:this.timelineRow}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.tasks.clear(),this.tasks=null,this.contentContainer=null},e.prototype.registerTimelineRow=function(e){this.timelineRow=e,this.notifyChanges()},e.prototype.registerContentContainer=function(e){this.contentContainer=e,this.notifyChanges()},e.prototype.registerTask=function(e,t){var n=this.mapper.extractFromTask(e,"id");this.tasks.set(n,t),this.notifyChanges()},e.prototype.unregisterTask=function(e){var t=this.mapper.extractFromTask(e,"id");this.tasks.delete(t),this.notifyChanges()},e.prototype.notifyChanges=function(){this.notifier.next(this.dependencyDomArgs)},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[r.MappingService])],e)}();t.DependencyDomService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(){this.viewChanges=new a.EventEmitter,this.columnChanges=new a.EventEmitter}return e.prototype.notifyColumnChanges=function(){this.columnChanges.emit()},e.prototype.notifyViewChanges=function(){this.viewChanges.emit()},e=i.__decorate([a.Injectable()],e)}();t.OptionChangesService=o},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(12),c=n(11),l=function(){function e(e){var t=this;this.mapper=e,this.showEditingDialog=new o.Subject,this.taskDelete=new o.Subject,this.editEvent=new o.Subject,this.addEvent=new o.Subject,this.predecessors=[],this.successors=[],this.updatedItems=[],this.deletedItems=[],this.itemIndex=function(e,n){return n.findIndex((function(n){return t.mapper.extractFromTask(n,"id")===t.mapper.extractFromTask(e,"id")}))}}return Object.defineProperty(e.prototype,"dependencies",{get:function(){return this.predecessors.concat(this.successors)},set:function(e){var t=this,n=this.mapper.extractFromTask(this.dataItem,"id");this.predecessors=e.filter((function(e){return t.mapper.extractFromDependency(e,"toId")===n})),this.successors=e.filter((function(e){return t.mapper.extractFromDependency(e,"fromId")===n}))},enumerable:!0,configurable:!0}),e.prototype.createEditDialog=function(e,t,n){this.dataItem=e,this.taskFormGroup=t,this.dependencies=n,this.showEditingDialog.next(!0)},e.prototype.closeEditDialog=function(){this.showEditingDialog.next(!1),this.dataItem=void 0,this.taskFormGroup=void 0,this.dependencies=[],this.updatedItems=[],this.deletedItems=[]},e.prototype.triggerEditEvent=function(e){this.editEvent.next({taskFormGroup:this.taskFormGroup,dataItem:this.dataItem,dependencies:{createdItems:this.getCreatedDependencies(),updatedItems:this.updatedItems,deletedItems:this.deletedItems},editResultType:e})},e.prototype.updateDependencies=function(e){if(!this.isNew(e)){var t=this.itemIndex(e,this.updatedItems);-1!==t?this.updatedItems.splice(t,1,e):this.updatedItems.push(e)}},e.prototype.getCreatedDependencies=function(){var e=this;return this.dependencies.filter((function(t){return null===e.mapper.extractFromDependency(t,"id")}))},e.prototype.deleteDependency=function(e){var t=this.itemIndex(e,this.updatedItems);-1!==t&&this.updatedItems.splice(t,1),this.isNew(e)||this.deletedItems.push(e)},e.prototype.loadTasks=function(e,t){var n=this;return void 0===t&&(t=!0),o.forkJoin(e.map((function(e){return n.getElementById(e)}))).pipe(r.map((function(e){return e.reduce((function(e,t){return e.concat(c.normalizeGanttData(t))}),[])})),r.expand((function(e){return e.some((function(e){return n.hasChildren(e)}))?n.loadTasks(e,!1):o.EMPTY})),r.reduce((function(e,t){return e.concat(t)}),t?e.slice():[]))},e.prototype.getElementById=function(e){var t=this.fetchChildren(e);return o.isObservable(t)?t:o.of(t)},e.prototype.isNew=function(e){return!c.isPresent(this.mapper.extractFromDependency(e,"id"))},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[s.MappingService])],e)}();t.EditService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=(n(2),n(5)),s=n(10),c=n(59),l=n(3),d=n(39),p=n(27),u=n(64),h=n(45),b=n(4),m=n(22),f=n(46),g=n(48),v=n(47),y=n(26),_=n(15),O=n(12),j=n(16),k=n(18),C=n(32),w=n(33),S=n(23),T=n(11),E=n(69),D=n(34),I=n(35),x=n(36),P=n(37),V=n(24),R=n(70),B={enabled:!0,step:3,interval:1,threshold:10},F=function(){function e(e,t,n,o,d,p,h,b,m,f,g){var v=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=o,this.optionChangesService=d,this.dependencyDomService=p,this.editService=h,this.localizationService=b,this.hostElement=m,this.zone=f,this.navigationService=g,this.roleDescription="Gantt Chart",this.role="application",this.hostClasses=!0,this.isSelected=u.isSelected,this.validateNewDependency=this.defaultValidateNewDependencyCallback.bind(this),this.selectionChange=new a.EventEmitter,this.selectable=!1,this.dependencies=[],this.sortable=!1,this.sort=[],this.filterable=!1,this.workDayStart="08:00",this.workDayEnd="17:00",this.workWeekStart=1,this.workWeekEnd=5,this.navigable=!1,this.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new a.EventEmitter,this.taskDblClick=new a.EventEmitter,this.cellDblClick=new a.EventEmitter,this.cellClose=new a.EventEmitter,this.taskDelete=new a.EventEmitter,this.rowCollapse=new a.EventEmitter,this.remove=new a.EventEmitter,this.cancel=new a.EventEmitter,this.save=new a.EventEmitter,this.taskAdd=new a.EventEmitter,this.dependencyAdd=new a.EventEmitter,this.sortChange=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.dataStateChange=new a.EventEmitter,this.treeListPaneCollapsedChange=new a.EventEmitter,this.timelinePaneCollapsedChange=new a.EventEmitter,this.timelinePaneSizeChange=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this.columnResize=new a.EventEmitter,this.columnReorder=new a.EventEmitter,this.columnVisibilityChange=new a.EventEmitter,this.columnLockedChange=new a.EventEmitter,this.cellClick=new a.EventEmitter,this.taskClick=new a.EventEmitter,this.renderDependencyDragClues=!1,this.expandStateChange=new a.EventEmitter,this.showEditingDialog=!1,this.showConfirmationDialog=!1,this._columns=new a.QueryList,this._data=[],this._dragScrollSettings=i.__assign({},B),this._timelinePaneOptions=i.__assign({},E.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=i.__assign({},E.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=u.rowClassCallback,this._taskClass=u.taskClassCallback,this._activeView="week",this._toolbarSettings={position:"top",addTaskTool:"none",viewSelectorTool:"top"},this._fetchChildren=u.fetchChildren,this._hasChildren=u.hasChildren,this.rtl=!1,this.optionChangesSubscriptions=new r.Subscription,this.editServiceSubscription=new r.Subscription,s.validatePackage(c.packageMetadata),this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe((function(){v.loadTimelineData()}))),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe((function(){v.treeList.columns.notifyOnChanges()}))),this.editService.getSelectedItem=this.getFirstSelectedItem.bind(this),this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe((function(e){return v.showEditingDialog=e}))),this.editServiceSubscription.add(this.editService.taskDelete.subscribe((function(e){l.hasObservers(v.taskDelete)&&v.zone.run((function(){return v.notifyTaskDelete(e)}))}))),this.editServiceSubscription.add(this.editService.editEvent.subscribe((function(e){v[e.editResultType].emit({taskFormGroup:e.taskFormGroup,item:R.getEditItem(e.dataItem,v.treeList.view.data,v.mapper),dependencies:e.dependencies,sender:v}),v.showConfirmationDialog=v.showEditingDialog=!1,v.editService.dataItem=v.editService.taskFormGroup=null,v.updateView(),v.navigable&&v.focus()}))),this.editServiceSubscription.add(this.editService.addEvent.subscribe((function(e){var t=v.getFirstSelectedItem();v.taskAdd.emit({actionType:e.actionType,selectedItem:t?R.getEditItem(t,v.treeList.view.data,v.mapper):null}),v.updateView()}))),this.localizationSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;v.rtl=t,v.direction=v.rtl?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"toolbarTemplate",{get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostRoleDescriptionAttr",{get:function(){return this.roleDescription},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostRoleAttr",{get:function(){return this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.updateTreeListGroupClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskModelFields",{set:function(e){this.mapper.taskFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyModelFields",{set:function(e){this.mapper.dependencyFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeView",{get:function(){var e=this;return this.views.find((function(t){return t.type===e._activeView}))?this._activeView:this.views.first.type},set:function(e){this._activeView=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=T.normalizeGanttData(e),this.loadTimelineData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbarSettings",{get:function(){return this._toolbarSettings},set:function(e){this._toolbarSettings={position:e.position||"top",addTaskTool:e.addTaskTool||"none",viewSelectorTool:e.viewSelectorTool||"top"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchChildren",{get:function(){return this._fetchChildren},set:function(e){this._fetchChildren=e,this.editService.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren},set:function(e){this._hasChildren=e,this.editService.hasChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timelinePaneOptions",{get:function(){return i.__assign({},this._timelinePaneOptions,{size:this.treeListPaneOptions.collapsed?"100%":this._timelinePaneOptions.size})},set:function(e){this._timelinePaneOptions.collapsed&&!e.collapsed&&this.dependencyDomService.notifyChanges(),this._timelinePaneOptions=i.__assign({},E.DEFAULT_TIMELINE_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeListPaneOptions",{get:function(){return this._treeListPaneOptions},set:function(e){this._treeListPaneOptions=i.__assign({},E.DEFAULT_TREELIST_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskClass",{get:function(){return this._taskClass},set:function(e){if(a.isDevMode()&&"function"!=typeof e)throw new Error("taskClass must be a function, but received "+JSON.stringify(e)+".");this._taskClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowClass",{get:function(){return this._rowClass},set:function(e){if(a.isDevMode()&&"function"!=typeof e)throw new Error("rowClass must be a function, but received "+JSON.stringify(e)+".");this._rowClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskIdField",{get:function(){return this.mapper.taskFields.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragScrollSettings",{get:function(){return this._dragScrollSettings},set:function(e){this._dragScrollSettings=i.__assign({},B,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedTreeListItems",{get:function(){return T.isPresent(this.treeList)?this.treeList.view.data.map((function(e){return e.data})):[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewItems",{get:function(){return T.isPresent(this.treeList)?this.treeList.view.data:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterMenu",{get:function(){return!!this.filterable&&"menu"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewService",{get:function(){return this.views&&this.views.length?this.timelineViewService.service(this.activeView):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTaskSelected",{get:function(){return this.selectable?this.isSelected:u.isSelected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idGetter",{get:function(){if(T.isPresent(this.treeList))return this.treeList.idGetter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewTypes",{get:function(){return this.views.map((function(e){return e.type}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInEditMode",{get:function(){return this.showEditingDialog||this.showConfirmationDialog||this.treeList.isEditing()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){l.anyChanged(["data","activeView","workWeekStart","workWeekEnd","workDayStart","workDayEnd"],e)&&this.loadTimelineData()},e.prototype.ngAfterViewInit=function(){this.updateTreeListMargin(),this.navigable&&this.navigationService.initialize({gantt:this,host:this.hostElement.nativeElement,treeListElement:this.treeList.wrapper.nativeElement,timelineElement:this.timeline.timelineContent.nativeElement});var e=this.treeList.wrapper.nativeElement.querySelector("kendo-treelist-list > div");this.scrollSyncService.registerElement(e,"treelist")},e.prototype.ngAfterContentInit=function(){if(a.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-gantt>. Please, declare at least one view.");this.loadTimelineData(),this.updateTreeListGroupClass()},e.prototype.ngOnDestroy=function(){this.optionChangesSubscriptions.unsubscribe(),this.editServiceSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe()},e.prototype.focus=function(){this.navigable&&this.navigationService.focusLastActiveItem()},e.prototype.focusCell=function(e,t){this.navigable&&this.navigationService.focusCell(e,t)},e.prototype.focusTask=function(e){this.navigable&&this.navigationService.focusTask(e)},e.prototype.autoFitColumn=function(e){T.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},e.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),T.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},e.prototype.reload=function(e,t){T.isPresent(this.treeList)&&this.treeList.reload(e,t)},e.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),T.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},e.prototype.updateView=function(){T.isPresent(this.treeList)&&this.treeList.updateView(),this.loadTimelineData(),this.dependencyDomService.notifyChanges()},e.prototype.editTask=function(e,t){var n=this;if(!this.showEditingDialog){var i=this.mapper.extractFromTask(e,"id"),a=this.dependencies.filter((function(e){return n.mapper.extractFromDependency(e,"toId")===i||n.mapper.extractFromDependency(e,"fromId")===i}));this.editService.createEditDialog(e,t,a)}},e.prototype.closeTaskDialog=function(){this.showEditingDialog&&this.editService.closeEditDialog()},e.prototype.openConfirmationDialog=function(){this.showConfirmationDialog=!0},e.prototype.handleConfirmationDialogClose=function(){this.showConfirmationDialog=!1,this.navigable&&this.focus()},e.prototype.editCell=function(e,t,n){this.treeList.editCell(e,t,n)},e.prototype.closeCell=function(){this.treeList.closeCell()},e.prototype.handleCellClose=function(e){this.cellClose.emit(Object.assign(e,{item:this.editItem,sender:this})),this.dependencyDomService.notifyChanges()},e.prototype.onTreeListCollapsedChange=function(e){this.treeListPaneCollapsedChange.emit(e),e||this.scrollSyncService.syncScrollTop("timeline","treelist")},e.prototype.onTimelineCollapsedChange=function(e){this.timelinePaneCollapsedChange.emit(e),e||(this.scrollSyncService.syncScrollTop("treelist","timeline"),this.dependencyDomService.notifyChanges())},e.prototype.loadTimelineData=function(){if(T.isPresent(this.viewService)){var e=this.getActiveViewOptions();this.viewService.options=i.__assign({workWeekStart:this.workWeekStart,workWeekEnd:this.workWeekEnd,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd},e),this.tableWidth=this.viewService.getTableWidth(this.data);var t=this.viewService.getSlots(this.data),n=t[0],a=t[1];this.timelineSlots=a,this.timelineGroupSlots=n}},e.prototype.showToolbar=function(e){return"none"!==this.toolbarSettings.position&&[e,"both"].indexOf(this.toolbarSettings.position)>-1},e.prototype.handleColumnVisibilityChange=function(e){this.columnVisibilityChange.emit(e),this.updateTreeListGroupClass()},e.prototype.onTimelinePaneSizeChange=function(e){this._timelinePaneOptions.size=e,this.timelinePaneSizeChange.emit(e)},e.prototype.handleTimelineRightClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(T.isTask(n,i)&&!T.isClearButton(n,i)&&l.hasObservers(this.taskClick)){var a=T.getClosestTaskIndex(n,i),o=this.renderedTreeListItems[a];this.zone.run((function(){return t.notifyTaskClick(e,o,a)}))}},e.prototype.handleTimelineClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(T.isTask(n,i)&&!T.isClearButton(n,i)){var a=T.getClosestTaskIndex(n,i),o=this.renderedTreeListItems[a],r=this.getSelectionAction(e,o);(l.hasObservers(this.selectionChange)&&!this.isSameSelection(r,o)||l.hasObservers(this.taskClick))&&this.zone.run((function(){t.notifySelectionChange(o,r),t.notifyTaskClick(e,o,a)}))}},e.prototype.handleTreeListDoubleClick=function(e){var t=this;T.isPresent(this.lastTreeListCellClick)&&e.target===this.lastTreeListCellClick.originalEvent.target&&(this.editItem=R.getEditItem(this.lastTreeListCellClick.dataItem,this.treeList.view.data,this.mapper),l.hasObservers(this.cellDblClick)&&this.zone.run((function(){t.cellDblClick.emit({column:t.lastTreeListCellClick.column,columnIndex:t.lastTreeListCellClick.columnIndex,dataItem:t.lastTreeListCellClick.dataItem,isEdited:t.lastTreeListCellClick.isEdited,originalEvent:t.lastTreeListCellClick.originalEvent,rowIndex:t.lastTreeListCellClick.rowIndex,type:"dblclick",sender:t})})))},e.prototype.handleTreeListSelectionChange=function(e){if(!T.isPresent(this.lastTreeListCellClick)||"contextmenu"!==this.lastTreeListCellClick.type){var t=e.items.map((function(e){return e.dataItem}))[0],n=e.action;this.notifySelectionChange(t,n)}},e.prototype.handleTreeListCellClick=function(e){this.lastTreeListCellClick=e,this.cellClick.emit({column:e.column,columnIndex:e.columnIndex,dataItem:e.dataItem,isEdited:e.isEdited,originalEvent:e.originalEvent,rowIndex:e.rowIndex,type:e.type,sender:this})},e.prototype.handleDeleteConfirmation=function(){this.editService.triggerEditEvent("remove")},e.prototype.handleTimelineMouseDown=function(e){var t=e.target,n=this.hostElement.nativeElement;T.isTask(t,n)&&!T.isClearButton(t,n)&&e.preventDefault()},e.prototype.handleTimelineDblClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(T.isTask(n,i)&&!T.isClearButton(n,i)&&l.hasObservers(this.taskDblClick)){var a=T.getClosestTaskIndex(n,i),o=this.renderedTreeListItems[a];this.zone.run((function(){return t.taskDblClick.emit({dataItem:o,originalEvent:e,sender:t,index:a,type:"dblclick"})}))}},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.changeActiveView=function(e){e!==this.activeView&&(this.activeView=e,this.loadTimelineData(),this.scrollSyncService.resetTimelineScrollLeft(),this.activeViewChange.emit(e))},e.prototype.notifyTaskClick=function(e,t,n){var i=e instanceof KeyboardEvent?"click":e.type;this.taskClick.emit({originalEvent:e,dataItem:t,index:n,type:i,sender:this})},e.prototype.notifySelectionChange=function(e,t){this.isSameSelection(t,e)||(this.selectionChange.emit({action:t,items:[e],sender:this}),this.treeList.updateView())},e.prototype.notifyTaskDelete=function(e){this.editService.dataItem=e,this.taskDelete.emit({item:R.getEditItem(e,this.treeList.view.data,this.mapper),sender:this})},e.prototype.isSameSelection=function(e,t){return"select"===e&&this.isSelected(t)},e.prototype.getSelectionAction=function(e,t){var n=e.ctrlKey,i=e.metaKey;return(n||i)&&this.isSelected(t)?"remove":"select"},e.prototype.updateTreeListGroupClass=function(e){(void 0===e&&(e=this.columns),T.isPresent(this.treeList))&&(T.isPresent(e)&&e.length>0&&e.some((function(e){return T.isColumnGroup(e)&&e.childrenArray.some((function(e){return e.isVisible}))}))?this.renderer.addClass(this.treeList.wrapper.nativeElement,"k-gantt-treelist-nested-columns"):this.renderer.removeClass(this.treeList.wrapper.nativeElement,"k-gantt-treelist-nested-columns"))},e.prototype.updateTreeListMargin=function(){var e=this.treeList.wrapper.nativeElement.querySelector(".k-treelist .k-grid-content");this.renderer.setStyle(e,"margin-right",-Math.abs(T.scrollbarWidth()-1)+"px")},e.prototype.getActiveViewOptions=function(){var e=this;if(this.views)return this.views.find((function(t){return t.type===e.activeView}))},e.prototype.getFirstSelectedItem=function(){var e=this.isSelected||u.isSelected;return(this.renderedTreeListItems||[]).find(e)},e.prototype.defaultValidateNewDependencyCallback=function(e){var t=this,n=this.mapper.extractFromDependency(e,"fromId"),i=this.mapper.extractFromDependency(e,"toId"),a=this.treeList.view.data.find((function(e){return t.mapper.extractFromTask(e.data,"id")===n})),o=this.treeList.view.data.find((function(e){return t.mapper.extractFromTask(e.data,"id")===i}));if(!(T.isPresent(a)&&T.isPresent(a.data)&&T.isPresent(o)&&T.isPresent(o.data)&&a.data!==o.data))return!1;if(this.dependencies.some((function(e){var a=t.mapper.extractFromDependency(e,"fromId"),o=t.mapper.extractFromDependency(e,"toId");return n===a&&i===o||i===a&&n===o}))||T.areParentChild(a,o))return!1;var r=this.mapper.extractFromTask(a.data,"start"),s=this.mapper.extractFromTask(a.data,"end"),c=this.mapper.extractFromTask(o.data,"start"),l=this.mapper.extractFromTask(o.data,"end");switch(this.mapper.extractFromDependency(e,"type")){case h.DependencyType.FF:return s<=l;case h.DependencyType.FS:return s<=c;case h.DependencyType.SF:return r<=l;case h.DependencyType.SS:return r<=c;default:return!1}},i.__decorate([a.ViewChild(o.TreeListComponent,{static:!0}),i.__metadata("design:type",o.TreeListComponent)],e.prototype,"treeList",void 0),i.__decorate([a.ViewChild(d.GanttTimelineComponent,{static:!1}),i.__metadata("design:type",d.GanttTimelineComponent)],e.prototype,"timeline",void 0),i.__decorate([a.ContentChild(x.GanttTaskContentTemplateDirective,{static:!1}),i.__metadata("design:type",x.GanttTaskContentTemplateDirective)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.ContentChild(D.GanttTaskTemplateDirective,{static:!1}),i.__metadata("design:type",D.GanttTaskTemplateDirective)],e.prototype,"taskTemplate",void 0),i.__decorate([a.ContentChild(I.GanttSummaryTaskTemplateDirective,{static:!1}),i.__metadata("design:type",I.GanttSummaryTaskTemplateDirective)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.ContentChildren(P.ToolbarTemplateDirective),i.__metadata("design:type",a.QueryList)],e.prototype,"toolbarTemplateChildren",void 0),i.__decorate([a.Input("aria-roledescription"),i.__metadata("design:type",String)],e.prototype,"roleDescription",void 0),i.__decorate([a.HostBinding("attr.aria-roledescription"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostRoleDescriptionAttr",null),i.__decorate([a.Input("role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([a.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostRoleAttr",null),i.__decorate([a.HostBinding("class.k-gantt"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([a.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([a.ContentChildren(p.GanttColumnBase),i.__metadata("design:type",a.QueryList),i.__metadata("design:paramtypes",[a.QueryList])],e.prototype,"columns",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"taskModelFields",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dependencyModelFields",null),i.__decorate([a.ContentChildren(V.ViewBase),i.__metadata("design:type",a.QueryList)],e.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeView",null),i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"validateNewDependency",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"toolbarSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"fetchChildren",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"sortable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"sort",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"workDayStart",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"workDayEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekStart",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"timelinePaneOptions",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"treeListPaneOptions",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"taskClass",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"rowClass",null),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsAutoSize",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"columnMenu",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsReorderable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsResizable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dragScrollSettings",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"rowExpand",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskDblClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellDblClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClose",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskDelete",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"rowCollapse",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"remove",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"save",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskAdd",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dependencyAdd",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"sortChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dataStateChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"treeListPaneCollapsedChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelinePaneCollapsedChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelinePaneSizeChange",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,"columnResize",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnReorder",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnVisibilityChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnLockedChange",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,"taskClick",void 0),e=t=i.__decorate([a.Component({selector:"kendo-gantt",exportAs:"kendoGantt",providers:[w.GanttLocalizationService,b.LocalizationService,{provide:o.DataBoundTreeComponent,useExisting:a.forwardRef((function(){return t}))},{provide:o.ExpandableTreeComponent,useExisting:a.forwardRef((function(){return t}))},m.TimelineViewService,f.TimelineDayViewService,g.TimelineWeekViewService,v.TimelineMonthViewService,y.ScrollSyncService,_.DependencyDomService,O.MappingService,j.OptionChangesService,k.EditService,C.TimelineScrollService,S.NavigationService],template:'\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle="kendo.gantt.taskEditingGeneralTabTitle|The title of the \'General\' tab of the editing dialog TabStrip"\n taskEditingGeneralTabTitle="General"\n\n i18n-taskEditingPredecessorsTabTitle="kendo.gantt.taskEditingPredecessorsTabTitle|The title of the \'Predecessors\' dependencies tab of the editing dialog TabStrip"\n taskEditingPredecessorsTabTitle="Predecessors"\n\n i18n-taskEditingSuccessorsTabTitle="kendo.gantt.taskEditingSuccessorsTabTitle|The title of the \'Successors\' dependencies tab of the editing dialog TabStrip"\n taskEditingSuccessorsTabTitle="Successors"\n\n i18n-taskEditingDependenciesAddButtonText="kendo.gantt.taskEditingDependenciesAddButtonText|The text of the \'Add\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesAddButtonText="Add"\n\n i18n-taskEditingDependenciesRemoveButtonText="kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the \'Remove\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesRemoveButtonText="Remove"\n\n i18n-taskEditingDependenciesGridNameColumnTitle="kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the \'Task Title\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridNameColumnTitle="Task Title"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle="kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the \'Type\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridTypeColumnTitle="Type"\n\n i18n-taskDeleteLabel="kendo.gantt.taskDeleteLabel|The label of the task delete icon"\n taskDeleteLabel="Delete"\n\n i18n-taskEditingDialogTitle="kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog"\n taskEditingDialogTitle="Editing Task"\n\n i18n-taskEditingDialogCloseTitle="kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button"\n taskEditingDialogCloseTitle="Close"\n\n i18n-confirmationDialogCloseTitle="kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button"\n confirmationDialogCloseTitle="Close"\n\n i18n-confirmationDialogTitle="kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog"\n confirmationDialogTitle="Delete Task"\n\n i18n-confirmationDialogContent="kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog"\n confirmationDialogContent="Are you sure you want to delete this task?"\n\n i18n-deleteButtonText="kendo.gantt.deleteButtonText|The text of the task editing dialog \'Delete\' button"\n deleteButtonText="Delete"\n\n i18n-cancelButtonText="kendo.gantt.cancelButtonText|The text of the task editing dialog \'Cancel\' button"\n cancelButtonText="Cancel"\n\n i18n-saveButtonText="kendo.gantt.saveButtonText|The text of the task editing dialog \'Save\' button"\n saveButtonText="Save"\n\n i18n-titleFieldInputLabel="kendo.gantt.titleFieldInputLabel|The label of the \'title\' field input in editing mode"\n titleFieldInputLabel="Title"\n\n i18n-startFieldInputLabel="kendo.gantt.startFieldInputLabel|The label of the \'start\' field input in editing mode"\n startFieldInputLabel="Start"\n\n i18n-endFieldInputLabel="kendo.gantt.endFieldInputLabel|The label of the \'end\' field input in editing mode"\n endFieldInputLabel="End"\n\n i18n-completionRatioFieldInputLabel="kendo.gantt.completionRatioFieldInputLabel|The label of the \'completionRatio\' field input in editing mode"\n completionRatioFieldInputLabel="Progress"\n\n i18n-dayViewText="kendo.gantt.dayViewText|The text of the day view in the ViewSelector component"\n dayViewText="Day"\n\n i18n-weekViewText="kendo.gantt.weekViewText|The text of the week view in the ViewSelector component"\n weekViewText="Week"\n\n i18n-monthViewText="kendo.gantt.monthViewText|The text of the month view in the ViewSelector component"\n monthViewText="Month"\n\n i18n-yearViewText-disabled="kendo.gantt.yearViewText|The text of the year view in the ViewSelector component"\n yearViewText="Year"\n\n i18n-addTaskText="kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component"\n addTaskText="Add Task"\n\n i18n-addChildText="kendo.gantt.addChildText|The text of the \'Add Child\' option in the AddTask component"\n addChildText="Add Child"\n\n i18n-addAboveText="kendo.gantt.addAboveText|The text of the \'Add Above\' option in the AddTask component"\n addAboveText="Add Above"\n\n i18n-addBelowText="kendo.gantt.addBelowText|The text of the \'Add Below\' option in the AddTask component"\n addBelowText="Add Below"\n\n i18n-noRecords="kendo.gantt.noRecords|The label visible in the TreeList when there are no records"\n noRecords="No records available."\n\n i18n-filter="kendo.gantt.filter|The label of the filter cell or icon"\n filter="Filter"\n\n i18n-filterEqOperator="kendo.gantt.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.gantt.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.gantt.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.gantt.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterGteOperator="kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator"\n filterGteOperator="Is greater than or equal to"\n\n i18n-filterGtOperator="kendo.gantt.filterGtOperator|The text of the greater than filter operator"\n filterGtOperator="Is greater than"\n\n i18n-filterLteOperator="kendo.gantt.filterLteOperator|The text of the less than or equal filter operator"\n filterLteOperator="Is less than or equal to"\n\n i18n-filterLtOperator="kendo.gantt.filterLtOperator|The text of the less than filter operator"\n filterLtOperator="Is less than"\n\n i18n-filterIsTrue="kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option"\n filterIsTrue="Is True"\n\n i18n-filterIsFalse="kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option"\n filterIsFalse="Is False"\n\n i18n-filterBooleanAll="kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option"\n filterBooleanAll="(All)"\n\n i18n-filterAfterOrEqualOperator="kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator"\n filterAfterOrEqualOperator="Is after or equal to"\n\n i18n-filterAfterOperator="kendo.gantt.filterAfterOperator|The text of the after date filter operator"\n filterAfterOperator="Is after"\n\n i18n-filterBeforeOperator="kendo.gantt.filterBeforeOperator|The text of the before date filter operator"\n filterBeforeOperator="Is before"\n\n i18n-filterBeforeOrEqualOperator="kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator"\n filterBeforeOrEqualOperator="Is before or equal to"\n\n i18n-filterFilterButton="kendo.gantt.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.gantt.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-filterAndLogic="kendo.gantt.filterAndLogic|The text of the And filter logic"\n filterAndLogic="And"\n\n i18n-filterOrLogic="kendo.gantt.filterOrLogic|The text of the Or filter logic"\n filterOrLogic="Or"\n\n i18n-loading="kendo.gantt.loading|The loading text"\n loading="Loading"\n\n i18n-columnMenu="kendo.gantt.columnMenu|The title of the column menu icon"\n columnMenu="Column Menu"\n\n i18n-columns="kendo.gantt.columns|The text shown in the column menu for the columns item"\n columns="Columns"\n\n i18n-lock-disabled="kendo.gantt.lock|The text shown in the column menu for the lock item"\n lock-disabled="Lock"\n\n i18n-unlock-disabled="kendo.gantt.unlock|The text shown in the column menu for the unlock item"\n unlock-disabled="Unlock"\n\n i18n-sortable="kendo.gantt.sortable|The label of the sort icon"\n sortable="Sortable"\n\n i18n-sortAscending="kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item"\n sortAscending="Sort Ascending"\n\n i18n-sortDescending="kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item"\n sortDescending="Sort Descending"\n\n i18n-sortedAscending="kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending"\n sortedAscending="Sorted Ascending"\n\n i18n-sortedDescending="kendo.gantt.sortedDescending|The status announcement when a column is sorted descending"\n sortedDescending="Sorted Descending"\n\n i18n-sortedDefault="kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted"\n sortedDefault="Not Sorted"\n\n i18n-columnsApply="kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button"\n columnsApply="Apply"\n\n i18n-columnsReset="kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button"\n columnsReset="Reset"></ng-container>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'top\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'top\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'top\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-header k-toolbar k-gantt-toolbar"\n position="top"></kendo-gantt-toolbar>\n <div class="k-gantt-content">\n <kendo-splitter [style.border]="0">\n <kendo-splitter-pane\n class="k-gantt-treelist k-gantt-treelist-scrollable"\n [collapsible]="treeListPaneOptions?.collapsible"\n [collapsed]="treeListPaneOptions?.collapsed"\n (collapsedChange)="onTreeListCollapsedChange($event)"\n [scrollable]="false">\n <kendo-treelist\n [idField]="taskIdField"\n [columns]="columns"\n [data]="data"\n [hasChildren]="hasChildren"\n [fetchChildren]="fetchChildren"\n [navigable]="navigable"\n [isExpanded]="isExpanded"\n [autoSize]="columnsAutoSize"\n [columnMenu]="columnMenu"\n [reorderable]="columnsReorderable"\n [resizable]="columnsResizable"\n [rowClass]="rowClass"\n [isSelected]="isSelected"\n [selectable]="selectable"\n [sortable]="sortable"\n [sort]="sort"\n [filterable]="filterMenu"\n [filter]="filter"\n (filterChange)="filterChange.emit($event)"\n (sortChange)="sortChange.emit($event)"\n (dataStateChange)="dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })"\n (expandStateChange)="expandStateChange.emit($event)"\n (expand)="rowExpand.emit({ dataItem: $event.dataItem })"\n (collapse)="rowCollapse.emit({ dataItem: $event.dataItem })"\n (columnReorder)="columnReorder.emit($event)"\n (columnResize)="columnResize.emit($event)"\n (columnVisibilityChange)="handleColumnVisibilityChange($event)"\n (columnLockedChange)="columnLockedChange.emit($event)"\n (selectionChange)="handleTreeListSelectionChange($event)"\n (cellClick)="handleTreeListCellClick($event)"\n (cellClose)="handleCellClose($event)"\n [kendoEventsOutsideAngular]="{\n dblclick: handleTreeListDoubleClick\n }"\n [scope]="this"\n >\n <kendo-treelist-messages\n [noRecords]="getText(\'noRecords\')"\n [filter]="getText(\'filter\')"\n [filterEqOperator]="getText(\'filterEqOperator\')"\n [filterNotEqOperator]="getText(\'filterNotEqOperator\')"\n [filterIsNullOperator]="getText(\'filterIsNullOperator\')"\n [filterIsNotNullOperator]="getText(\'filterIsNotNullOperator\')"\n [filterIsEmptyOperator]="getText(\'filterIsEmptyOperator\')"\n [filterIsNotEmptyOperator]="getText(\'filterIsNotEmptyOperator\')"\n [filterStartsWithOperator]="getText(\'filterStartsWithOperator\')"\n [filterContainsOperator]="getText(\'filterContainsOperator\')"\n [filterNotContainsOperator]="getText(\'filterNotContainsOperator\')"\n [filterEndsWithOperator]="getText(\'filterEndsWithOperator\')"\n [filterGteOperator]="getText(\'filterGteOperator\')"\n [filterGtOperator]="getText(\'filterGtOperator\')"\n [filterLteOperator]="getText(\'filterLteOperator\')"\n [filterLtOperator]="getText(\'filterLtOperator\')"\n [filterIsTrue]="getText(\'filterIsTrue\')"\n [filterIsFalse]="getText(\'filterIsFalse\')"\n [filterBooleanAll]="getText(\'filterBooleanAll\')"\n [filterAfterOrEqualOperator]="getText(\'filterAfterOrEqualOperator\')"\n [filterAfterOperator]="getText(\'filterAfterOperator\')"\n [filterBeforeOperator]="getText(\'filterBeforeOperator\')"\n [filterBeforeOrEqualOperator]="getText(\'filterBeforeOrEqualOperator\')"\n [filterFilterButton]="getText(\'filterFilterButton\')"\n [filterClearButton]="getText(\'filterClearButton\')"\n [filterAndLogic]="getText(\'filterAndLogic\')"\n [filterOrLogic]="getText(\'filterOrLogic\')"\n [loading]="getText(\'loading\')"\n [columnMenu]="getText(\'columnMenu\')"\n [columns]="getText(\'columns\')"\n [sortable]="getText(\'sortable\')"\n [sortAscending]="getText(\'sortAscending\')"\n [sortDescending]="getText(\'sortDescending\')"\n [sortedAscending]="getText(\'sortedAscending\')"\n [sortedDescending]="getText(\'sortedDescending\')"\n [sortedDefault]="getText(\'sortedDefault\')"\n [columnsApply]="getText(\'columnsApply\')"\n [columnsReset]="getText(\'columnsReset\')"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]="timelinePaneOptions?.collapsible"\n [resizable]="timelinePaneOptions?.resizable"\n [collapsed]="timelinePaneOptions?.collapsed"\n [min]="timelinePaneOptions?.min"\n [max]="timelinePaneOptions?.max"\n [size]="timelinePaneOptions?.size"\n (collapsedChange)="onTimelineCollapsedChange($event)"\n (sizeChange)="onTimelinePaneSizeChange($event)"\n [scrollable]="false">\n <kendo-gantt-timeline\n *ngIf="views && views.length"\n [renderDependencyDragClues]="renderDependencyDragClues"\n [dragScrollSettings]="dragScrollSettings"\n [rows]="viewItems"\n [slots]="timelineSlots"\n [groupSlots]="timelineGroupSlots"\n [tableWidth]="tableWidth"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate?.templateRef"\n [taskTemplate]="taskTemplate?.templateRef"\n [summaryTaskTemplate]="summaryTaskTemplate?.templateRef"\n [taskClass]="taskClass"\n [dependencies]="dependencies"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [kendoEventsOutsideAngular]="{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }"\n [scope]="this"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'bottom\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'bottom\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'bottom\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-footer k-toolbar k-gantt-toolbar"\n position="bottom"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf="showEditingDialog"\n [data]="data">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf="showConfirmationDialog"\n [width]="575"\n [height]="170"\n [title]="getText(\'confirmationDialogTitle\')"\n (close)="handleConfirmationDialogClose()">\n <span>{{ getText(\'confirmationDialogContent\') }}</span>\n <kendo-dialog-actions layout="normal">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleDeleteConfirmation()">{{ getText(\'deleteButtonText\') }}</button>\n <button kendoButton (click)="handleConfirmationDialogClose()">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[m.TimelineViewService,y.ScrollSyncService,a.Renderer2,O.MappingService,j.OptionChangesService,_.DependencyDomService,k.EditService,b.LocalizationService,a.ElementRef,a.NgZone,S.NavigationService])],e)}();t.GanttComponent=F},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.FF=0]="FF",e[e.FS=1]="FS",e[e.SF=2]="SF",e[e.SS=3]="SS"}(t.DependencyType||(t.DependencyType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.locked=!1,t}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t}(n(17).ColumnBase);t.GanttColumnBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(46),r=n(47),s=n(48),c={day:o.TimelineDayViewService,week:s.TimelineWeekViewService,month:r.TimelineMonthViewService},l=function(){function e(e){this.injector=e,this.viewChange=new a.EventEmitter}return e.prototype.service=function(e){var t=c[e];return t?this.injector.get(t):null},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.Injector])],e)}();t.TimelineViewService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=n(5),s=n(26),c=n(11),l=n(68),d=function(){function e(e,t,n){this.zone=e,this.renderer=t,this.scrollSyncService=n,this.taskStatusChanges=new r.Subject,this.isTimelineFocused=!1,this.treeListLastActive=!1,this.timelineLastActive=!1,this._enabled=!1,this._activeTimelineIndex=0,this._activeTreeListCell={rowIndex:0,colIndex:0}}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTask",{get:function(){return{activeIndex:this.activeTimelineIndex,isFocused:this.isTimelineFocused}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTreeListCell",{get:function(){var e=this.treeListHeaderRowsCount+this.gantt.treeList.view.data.length-1,t=c.fitToRange(this._activeTreeListCell.rowIndex,0,e),n=this.gantt.columns.length;return{rowIndex:t,colIndex:c.fitToRange(this._activeTreeListCell.colIndex,0,n)}},set:function(e){this._activeTreeListCell=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTimelineIndex",{get:function(){var e=this.gantt.treeList.view.data.length-1;return c.fitToRange(this._activeTimelineIndex,0,e)},set:function(e){this._activeTimelineIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeListHeaderRowsCount",{get:function(){return this.treeListElement.querySelectorAll(".k-grid-header tr").length},enumerable:!0,configurable:!0}),e.prototype.initialize=function(e){var t=this,n=e.gantt,i=e.host,a=e.treeListElement,o=e.timelineElement;this._enabled=!0,this.gantt=n,this.host=i,this.treeListElement=a,this.timelineElement=o;var r=this.host.querySelector(".k-splitbar");c.isPresent(r)&&c.isPresent(r.previousElementSibling)&&c.isPresent(r.after)&&r.after(r.previousElementSibling),this.zone.runOutsideAngular((function(){t.eventListenerDisposers=[t.renderer.listen(t.host,"keydown",t.handleKeydown.bind(t)),t.renderer.listen(t.treeListElement,"mousedown",t.focusTreeList.bind(t)),t.renderer.listen(t.treeListElement,"focusin",t.handleTreeListFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"mousedown",t.handleTimelineMousedown.bind(t)),t.renderer.listen(t.timelineElement,"focusin",t.handleTimelineFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"focusout",t.handleTimelineFocusOut.bind(t))]}))},e.prototype.ngOnDestroy=function(){c.isPresent(this.eventListenerDisposers)&&(this.eventListenerDisposers.forEach((function(e){return e()})),this.eventListenerDisposers=null),this.gantt=null,this.host=null,this.treeListElement=null,this.timelineElement=null},e.prototype.focusLastActiveItem=function(){if(0===this.gantt.data.length||!this.treeListLastActive&&!this.timelineLastActive)this.focusCell(0,0);else if(this.treeListLastActive){var e=this.activeTreeListCell,t=e.rowIndex,n=e.colIndex;this.gantt.treeList.focusCell(t,n)}else this.timelineLastActive&&this.focusTask(this.activeTimelineIndex)},e.prototype.focusCell=function(e,t){this.activeTreeListCell={rowIndex:e,colIndex:t},this.activeTimelineIndex=e-this.treeListHeaderRowsCount,this.gantt.treeList.focusCell(this.activeTreeListCell.rowIndex,this.activeTreeListCell.colIndex)},e.prototype.focusTask=function(e){this.activeTimelineIndex=e,this.isTimelineFocused=!0,this.activeTreeListCell={rowIndex:e+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex},this.notifyTaskStatusChange()},e.prototype.handleTimelineFocusIn=function(e){var t=e.target;this.treeListLastActive=!1,this.timelineLastActive=!0,this.isTimelineFocused=!0,c.isTask(t,this.timelineElement)&&this.notifyTaskStatusChange()},e.prototype.handleTimelineFocusOut=function(e){var t=e.relatedTarget;this.isTimelineFocused=this.timelineElement.contains(t),c.isTask(t,this.timelineElement)||this.notifyTaskStatusChange()},e.prototype.handleTreeListFocusIn=function(e){if(this.treeListLastActive=!0,this.timelineLastActive=!1,this.treeListElement.contains(e.relatedTarget)){var t=this.gantt.treeList.activeCell,n=t.colIndex,i=t.rowIndex;this.activeTreeListCell={colIndex:n,rowIndex:i}}else{var a=this.activeTreeListCell;i=a.rowIndex,n=a.colIndex;this.gantt.treeList.focusCell(i,n)}this.activeTimelineIndex=this.gantt.treeList.activeCell.dataRowIndex,this.notifyTaskStatusChange(),this.gantt.treeList.activeCell.dataRowIndex>=0&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("treelist","timeline"))},e.prototype.handleKeydown=function(e){var t=this,n=e,a=n.keyCode,r=n.target,s=n.altKey,d=this.timelineElement.contains(r);if(d){if(l.isArrowUpDownKey(a)){var p=a===o.Keys.ArrowUp?-1:1;this.activeTimelineIndex=this.activeTimelineIndex+p,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}}else if(a===o.Keys.Home)this.activeTimelineIndex=0,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex};else if(a===o.Keys.End){var u=this.gantt.treeList.view.data.length-1;this.activeTimelineIndex=u,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}}if(l.isNavigationKey(a)&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("timeline","treelist"),this.notifyTaskStatusChange(),e.preventDefault()),a===o.Keys.Space&&o.hasObservers(this.gantt.selectionChange)){var h=this.gantt.renderedTreeListItems[this.activeTimelineIndex],b=this.gantt.getSelectionAction(e,h);c.isPresent(h)&&!this.gantt.isSameSelection(b,h)&&this.zone.run((function(){return t.gantt.notifySelectionChange(h,b)})),e.preventDefault()}if(a===o.Keys.Enter&&o.hasObservers(this.gantt.taskClick)){var m=this.gantt.renderedTreeListItems[this.activeTimelineIndex];c.isPresent(m)&&this.zone.run((function(){return t.gantt.notifyTaskClick(e,m,t.activeTimelineIndex)})),e.preventDefault()}if(l.isExpandCollapseKey(a,s)){var f=this.gantt.renderedTreeListItems[this.activeTimelineIndex];if(c.isPresent(f)&&this.gantt.hasChildren(f)){var g=a===o.Keys.ArrowRight,v=this.gantt.isExpanded(f);g===v||this.zone.run((function(){var e={dataItem:f};(g?t.gantt.rowExpand:t.gantt.rowCollapse).emit(e),t.gantt.expandStateChange.emit(i.__assign({},e,{expand:g})),t.gantt.updateView(),t.scrollHorizontallyToTask(t.activeTimelineIndex)}))}e.preventDefault()}}var y=this.treeListElement.contains(r);if(a===o.Keys.Delete&&(d||y)&&o.hasObservers(this.gantt.taskDelete)){var _=y?this.gantt.treeList.activeCell.dataRowIndex:this.activeTimelineIndex,O=this.gantt.renderedTreeListItems[_];c.isPresent(O)&&this.zone.run((function(){return t.gantt.notifyTaskDelete(O)}))}if(l.isViewDigitKey(a)&&!c.isToolbar(r,this.host)&&!this.gantt.isInEditMode){var j=l.getIndexFromViewDigitKeyCode(a),k=this.gantt.views.toArray()[j];c.isPresent(k)&&k.type!==this.gantt.activeView&&this.zone.run((function(){return t.gantt.changeActiveView(k.type)}))}},e.prototype.handleTimelineMousedown=function(e){var t=e.target;if(c.isTask(t,this.host)&&!c.isClearButton(t,this.host)){var n=c.getClosestTaskIndex(t,this.host);this.focusTask(n)}},e.prototype.scrollHorizontallyToTask=function(e){var t=this.timelineElement.querySelectorAll(".k-task-wrap").item(e);if(c.isPresent(t)){var n=this.timelineElement.clientWidth+this.timelineElement.scrollLeft<t.offsetLeft+200,i=this.timelineElement.scrollLeft>t.offsetLeft;(n||i)&&(this.timelineElement.scrollLeft=t.offsetLeft)}},e.prototype.focusTreeList=function(){this.gantt.treeList.focus()},e.prototype.notifyTaskStatusChange=function(){this.taskStatusChanges.next(this.activeTask)},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.NgZone,a.Renderer2,s.ScrollSyncService])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=function(){function e(e,t){this.optionChangesService=e,this.dependencyDomService=t,this.slotWidth=100}return e.prototype.ngOnChanges=function(e){o.anyChanged(["slotWidth"],e)&&(this.optionChangesService.notifyColumnChanges(),this.dependencyDomService.notifyChanges())},i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"slotWidth",void 0),e}();t.ViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.TOUCH_ENABLED=new i.InjectionToken("gantt-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=function(){function e(e){var t=this;this.ngZone=e,this.changes=new o.Subject,this.elements=[],this.subscriptions=new o.Subscription,this.subscriptions.add(this.changes.subscribe((function(e){t.scroll(e)})))}return e.prototype.registerElement=function(e,t){var n=this;this.elements.push({element:e,sourceType:t}),"timeline"!==t&&"treelist"!==t||this.ngZone.runOutsideAngular((function(){var i=o.fromEvent(e,"scroll").pipe(r.map((function(e){var n=e.target;return{scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,sourceType:t}}))),a="timeline"===t?function(e,t){return e.scrollTop===t.scrollTop&&e.scrollLeft===t.scrollLeft}:function(e,t){return e.scrollTop===t.scrollTop};n.subscriptions.add(i.pipe(r.distinctUntilChanged(a)).subscribe((function(e){return n.changes.next(e)})))}))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.elements=null},e.prototype.syncScrollTop=function(e,t){var n=this.elements.find((function(t){return t.sourceType===e})),i=this.elements.find((function(e){return e.sourceType===t}));this.ngZone.onStable.pipe(r.take(1)).subscribe((function(){return i.element.scrollTop=n.element.scrollTop}))},e.prototype.resetTimelineScrollLeft=function(){this.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollLeft=0},e.prototype.scroll=function(e){var t=this,n=e.scrollTop,i=e.scrollLeft,a=e.sourceType;this.ngZone.runOutsideAngular((function(){if("timeline"===a){if(t.elements.find((function(e){return"header"===e.sourceType})).element.scrollLeft=i,!t.syncingTimeline)t.syncingTreeList=!0,t.elements.find((function(e){return"treelist"===e.sourceType})).element.scrollTop=n;t.syncingTimeline=!1}if("treelist"===a){if(!t.syncingTreeList)t.syncingTimeline=!0,t.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollTop=n;t.syncingTreeList=!1}}))},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.NgZone])],e)}();t.ScrollSyncService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21);t.GanttColumnBase=i.GanttColumnBase;var a=n(40);t.GanttColumnComponent=a.GanttColumnComponent;var o=n(62);t.GanttColumnGroupComponent=o.GanttColumnGroupComponent;var r=n(63);t.GanttSpanColumnComponent=r.GanttSpanColumnComponent;var s=n(28);t.CellTemplateDirective=s.CellTemplateDirective;var c=n(29);t.HeaderTemplateDirective=c.HeaderTemplateDirective;var l=n(44);t.FooterTemplateDirective=l.FooterTemplateDirective;var d=n(41);t.ColumnMenuTemplateDirective=d.ColumnMenuTemplateDirective;var p=n(42);t.FilterCellTemplateDirective=p.FilterCellTemplateDirective;var u=n(43);t.FilterMenuTemplateDirective=u.FilterMenuTemplateDirective;var h=n(30);t.EditTemplateDirective=h.EditTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttCellTemplate]"}),i.__param(0,a.Optional()),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(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttHeaderTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.HeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttEditTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.EditTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(67),a=n(11),o=n(2);t.DAY_FORMAT="E d/MM",t.HOUR_FORMAT="HH:mm aa",t.MONTH_FORMAT="MMM";var r=function(){function e(e,t){this.intlService=e,this.mapper=t,this._viewStart=0}return Object.defineProperty(e.prototype,"viewStart",{get:function(){return this._viewStart},enumerable:!0,configurable:!0}),e.prototype.getRange=function(e){if(!e||!e.length)return{start:new Date,end:new Date};var t=i.orderBy(e,[{field:this.mapper.taskFields.start,dir:"asc"}]),n=i.orderBy(e,[{field:this.mapper.taskFields.end,dir:"desc"}]),a=this.intlService.firstDay(),o=this.mapper.extractFromTask(t[0],"start")||new Date,r=this.mapper.extractFromTask(n[0],"end")||new Date;a===r.getDay()&&r.setDate(r.getDate()+7);var s=this.getStartOffset(o),c=this.getEndOffset(r);return this._viewStart=Number(s),{start:new Date(s),end:new Date(c)}},e.prototype.getHours=function(e,n){for(var i=[],o=this.intlService.parseDate(this.options.workDayStart).getHours(),r=this.intlService.parseDate(this.options.workDayEnd).getHours(),s=new Date(e),c=new Date(n);s<c;){var l=new Date(s),d=a.isWorkHour(l,o,r);l.setHours(l.getHours()+1),i.push({start:s,end:l,isWorking:d,text:this.intlService.formatDate(s,t.HOUR_FORMAT),span:1}),s=l}return i},e.prototype.getDays=function(e,n){for(var i=[],r=new Date(e),s=new Date(n);r<=s;){var c=o.getDate(o.addDays(r,1)),l=a.isWorkDay(r,this.options.workWeekStart,this.options.workWeekEnd),d=s<c?s:c;i.push({start:r,end:d,isWorking:l,text:this.intlService.formatDate(r,t.DAY_FORMAT),span:1}),r=c}return i},e.prototype.getWeeks=function(e,n){for(var i=this.intlService.firstDay(),r=[],s=new Date(e),c=new Date(n);s<=c;){var l=a.lastDayOfWeek(s,i),d=l>c?c:l,p=this.getDays(s,d),u=p.length,h=this.intlService.formatDate(o.firstDayInWeek(o.getDate(s),i),t.DAY_FORMAT),b=this.intlService.formatDate(o.addDays(d,-1),t.DAY_FORMAT);u>0&&r.push({start:p[0].start,end:p[u-1].end,text:h+" - "+b,span:u}),s=o.firstDayInWeek(o.addWeeks(d,1))}return r},e.prototype.getMonths=function(e,n){for(var i=[],a=new Date(e),r=new Date(n);a<r;){var s=o.lastDayOfMonth(a),c=r<s?r:s,l=this.getDays(a,c),d=l.length,p=o.firstDayOfMonth(o.getDate(a)),u=this.intlService.formatDate(p,t.MONTH_FORMAT);d>0&&i.push({start:l[0].start,end:l[d-1].end,span:d,text:u}),a=o.firstDayOfMonth(o.addMonths(c,1))}return i},e}();t.TimelineBaseViewService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=function(){function e(){this.horizontalScroll=new o.Subject,this.verticalScroll=new o.Subject,this.scrollCancel=new o.Subject}return e.prototype.ngOnDestroy=function(){this.horizontalScroll.complete(),this.verticalScroll.complete(),this.scrollCancel.complete()},e.prototype.requestHorizontalScroll=function(e){this.horizontalScroll.next(e)},e.prototype.requestVerticalScroll=function(e){this.verticalScroll.next(e)},e.prototype.requestScrollCancel=function(){this.scrollCancel.next()},e=i.__decorate([a.Injectable()],e)}();t.TimelineScrollService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=function(){function e(e){this.localizationService=e}return e.prototype.get=function(e){return this.localizationService.get(e)},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.GanttLocalizationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttTaskTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GanttTaskTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttSummaryTaskTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GanttSummaryTaskTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttTaskContentTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GanttTaskContentTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e,this._position="top"}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),i.__decorate([a.Input("position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([a.Directive({selector:"[kendoGanttToolbarTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ToolbarTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),r=n(5),s=n(11),c={day:o.MS_PER_HOUR,week:o.MS_PER_DAY,month:7*o.MS_PER_DAY},l=function(){function e(e,t,n,i,a,o){var s=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=a,this.navigationService=o,this.wrapperClass=!0,this.subscriptions=new r.Subscription,this.subscriptions.add(this.optionChangesService.viewChanges.subscribe((function(){return s.cdr.markForCheck()}))),this.subscriptions.add(this.navigationService.taskStatusChanges.subscribe(this.updateActiveState.bind(this)))}return Object.defineProperty(e.prototype,"taskIndexAttribute",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return this.selectable?String(this.isSelected(this.dataItem)):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slotUnitDuration",{get:function(){return c[this.activeView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewService",{get:function(){return this.timelineViewService.service(this.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slotWidth",{get:function(){return this.viewService.options.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskWidth",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"end")-this.mapper.extractFromTask(this.dataItem,"start"))/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskOffset",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"start")-this.viewService.viewStart)/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"completionOverlayWidth",{get:function(){var e=this.taskWidth*this.mapper.extractFromTask(this.dataItem,"completionRatio");return s.isNumber(e)?e:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){s.isPresent(e.dataItem)?(s.isPresent(e.dataItem.previousValue)&&this.dependencyDomService.unregisterTask(e.dataItem.previousValue),this.dependencyDomService.registerTask(this.dataItem,this.taskElement.nativeElement)):s.isPresent(e.activeView)&&this.dependencyDomService.notifyChanges(),this.navigationService.enabled&&s.isPresent(e.index)&&this.updateActiveState(this.navigationService.activeTask)},e.prototype.ngOnDestroy=function(){s.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.subscriptions.unsubscribe()},e.prototype.updateActiveState=function(e){var t=e.activeIndex,n=e.isFocused,i=t===this.index,a=i?"0":"-1";this.taskElement.nativeElement.setAttribute("tabindex",a),i&&n?(this.taskElement.nativeElement.focus(),this.taskElement.nativeElement.classList.add("k-focus")):this.taskElement.nativeElement.classList.remove("k-focus")},i.__decorate([a.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClass",void 0),i.__decorate([a.HostBinding("attr.data-task-index"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"taskIndexAttribute",null),i.__decorate([a.ViewChild("task",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"taskElement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"index",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([a.HostBinding("style.left.px"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"taskOffset",null),e}();t.GanttTaskBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(3),c=n(26),l=n(15),d=n(11),p=function(){function e(e,t,n,i){var c=this;this.scrollSyncService=e,this.dependencyDomService=t,this.renderer=n,this.zone=i,this.hostClass=!0,this.dependencies=[],this.timelineContainerPress=new a.EventEmitter,this.timelineContainerDrag=new a.EventEmitter,this.timelineContainerRelease=new a.EventEmitter,this.subscriptions=new o.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(r.filter((function(e){return d.isPresent(e.timelineRow)})),r.switchMap((function(e){return c.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){var t=e.timelineRow,n=s.isDocumentAvailable()?t.getBoundingClientRect().height:0;c.renderer.setStyle(c.timelineColumns.nativeElement,"height",(c.rows||[]).length*n+"px")})))}return Object.defineProperty(e.prototype,"draggableEnabled",{get:function(){return this.renderDependencyDragClues},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this.timelineHeaderWrap.nativeElement,t=this.timelineContent.nativeElement;this.scrollSyncService.registerElement(t,"timeline"),this.scrollSyncService.registerElement(e,"header"),this.dependencyDomService.registerContentContainer(this.tasksContainer.nativeElement)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isNonWorking=function(e){return e.hasOwnProperty("isWorking")&&!e.isWorking},i.__decorate([a.ViewChild("timelineContent",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"timelineContent",void 0),i.__decorate([a.ViewChild("timelineColumns",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"timelineColumns",void 0),i.__decorate([a.ViewChild("timelineHeaderWrap",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"timelineHeaderWrap",void 0),i.__decorate([a.ViewChild("tasksContainer",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"tasksContainer",void 0),i.__decorate([a.ViewChild("dragPopupContainer",{static:!1,read:a.ViewContainerRef}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"dragPopupContainer",void 0),i.__decorate([a.ViewChild("dependencyDragCreatePolyline",{static:!1}),i.__metadata("design:type",a.ElementRef)],e.prototype,"dependencyDragCreatePolyline",void 0),i.__decorate([a.HostBinding("class.k-gantt-timeline"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tableWidth",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"dragScrollSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelineContainerPress",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelineContainerDrag",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelineContainerRelease",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-timeline",template:'\n <div class="k-timeline k-grid k-widget">\n <div class="k-grid-header">\n <div #timelineHeaderWrap class="k-grid-header-wrap">\n <table\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttHeaderTableBody\n [groupSlots]="groupSlots"\n [slots]="slots">\n </tbody>\n </table>\n </div>\n </div>\n \x3c!-- tabindex="-1" required for https://bugzilla.mozilla.org/show_bug.cgi?id=1069739 --\x3e\n <div\n #timelineContent\n class="k-grid-content"\n tabindex="-1"\n role="tree"\n aria-roledescription="Timeline"\n kendoGanttTimelineScrollable\n [scrollSettings]="dragScrollSettings"\n kendoDraggable\n [enableDrag]="draggableEnabled"\n (kendoPress)="timelineContainerPress.emit($event)"\n (kendoDrag)="timelineContainerDrag.emit($event)"\n (kendoRelease)="timelineContainerRelease.emit($event)"\n >\n <div class="k-gantt-tables">\n <table\n class="k-gantt-rows"\n [style.width.px]="tableWidth"\n role="presentation"\n >\n <tbody>\n <tr *ngFor="let item of rows; let i = index;"\n [class.k-alt]="i % 2"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class="k-gantt-columns"\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <colgroup>\n <col *ngFor="let item of slots">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor="let item of slots"\n [class.k-nonwork-hour]="isNonWorking(item)"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class="k-gantt-tasks"\n role="presentation"\n style="border-collapse: collapse;"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]="rows"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [summaryTaskTemplate]="summaryTaskTemplate"\n [taskClass]="taskClass"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </tbody>\n </table>\n </div>\n <svg class="k-gantt-dependencies-svg">\n <polyline\n *ngFor="let dependency of dependencies"\n kendoGanttDependency\n [dependency]="dependency"\n />\n <polyline #dependencyDragCreatePolyline />\n </svg>\n\n \x3c!-- placeholder for the dependency drag popup; its position is not arbitrary - the popup is intended to be absolutely positioned inside the .k-grid-content element --\x3e\n <ng-container #dragPopupContainer></ng-container>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[c.ScrollSyncService,l.DependencyDomService,a.Renderer2,a.NgZone])],e)}();t.GanttTimelineComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=n(16),s=n(21),c=n(28),l=n(41),d=n(42),p=n(43),u=n(44),h=n(29),b=n(30),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.headerTemplates=new a.QueryList,i.columnMenuTemplates=new a.QueryList,i.filter="text",i.filterable=!0,i.editor="text",i.editable=!0,i.locked=!1,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([a.ContentChildren(h.HeaderTemplateDirective,{descendants:!1}),i.__metadata("design:type",a.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([a.ContentChild(u.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",u.FooterTemplateDirective)],t.prototype,"footerTemplate",void 0),i.__decorate([a.ContentChildren(l.ColumnMenuTemplateDirective),i.__metadata("design:type",a.QueryList)],t.prototype,"columnMenuTemplates",void 0),i.__decorate([a.ContentChild(c.CellTemplateDirective,{static:!1}),i.__metadata("design:type",c.CellTemplateDirective)],t.prototype,"template",void 0),i.__decorate([a.ContentChild(b.EditTemplateDirective,{static:!1}),i.__metadata("design:type",b.EditTemplateDirective)],t.prototype,"editTemplate",void 0),i.__decorate([a.ContentChild(d.FilterCellTemplateDirective,{static:!1}),i.__metadata("design:type",d.FilterCellTemplateDirective)],t.prototype,"filterCellTemplate",void 0),i.__decorate([a.ContentChild(p.FilterMenuTemplateDirective,{static:!1}),i.__metadata("design:type",p.FilterMenuTemplateDirective)],t.prototype,"filterMenuTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"filterable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"editor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-column",template:"",providers:[{provide:s.GanttColumnBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__param(1,a.SkipSelf()),i.__param(1,a.Host()),i.__param(1,a.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(o.ColumnComponent);t.GanttColumnComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttColumnMenuTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ColumnMenuTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttFilterCellTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FilterCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttFilterMenuTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FilterMenuTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttFooterTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FooterTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(20);t.DependencyType=i.DependencyType;var a=n(65);t.CellCloseEvent=a.CellCloseEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(8),r=n(31),s=n(12),c=n(11),l=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){return c.setTime(e,e.getHours()-1)},t.prototype.getEndOffset=function(e){return c.setTime(e,e.getHours()+1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){for(var t=[],n=this.getRange(e),i=n.start,a=n.end,o=this.getDays(i,a),r=[],s=0;s<o.length;s++){var c=o[s],l=this.getHours(c.start,c.end);c.span=l.length,r.push.apply(r,l)}return t.push(o,r),t},t=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService,s.MappingService])],t)}(r.TimelineBaseViewService);t.TimelineDayViewService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(8),r=n(2),s=n(12),c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){var t=this.intlService.firstDay(),n=r.firstDayInWeek(r.getDate(e),t);return r.addWeeks(r.getDate(n),-1)},t.prototype.getEndOffset=function(e){var t=this.intlService.firstDay(),n=r.addDays(r.firstDayInWeek(r.getDate(e),t),6);return r.addWeeks(r.getDate(n),1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,a=n.end,o=this.getMonths(i,a),r=this.getWeeks(i,a);return t.push(o,r),t},t=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService,s.MappingService])],t)}(n(31).TimelineBaseViewService);t.TimelineMonthViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(8),r=n(2),s=n(12),c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){return r.addDays(r.getDate(e),-1)},t.prototype.getEndOffset=function(e){return r.addDays(r.getDate(e),1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,a=n.end,o=this.getWeeks(i,a),r=this.getDays(i,a);return t.push(o,r),t},t=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService,s.MappingService])],t)}(n(31).TimelineBaseViewService);t.TimelineWeekViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([a.Input("kendoGanttFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([a.Directive({selector:"[kendoGanttFlatBinding]",exportAs:"kendoGanttFlatBinding"})],t)}(n(17).FlatBindingDirective);t.GanttFlatBindingDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([a.Input("kendoGanttHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([a.Directive({selector:"[kendoGanttHierarchyBinding]",exportAs:"kendoGanttHierarchyBinding"})],t)}(n(17).HierarchyBindingDirective);t.GanttHierarchyBindingDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),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",Object)],t.prototype,"expandBy",void 0),t=i.__decorate([a.Directive({exportAs:"kendoGanttExpandable",selector:"[kendoGanttExpandable]"})],t)}(n(17).ExpandableDirective);t.GanttExpandableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(14),r=n(19),s=n(11),c=function(){function e(e){this.gantt=e,this.selectedKeysChange=new a.EventEmitter,this.state=new Set,this.isSelected=this.isSelected.bind(this),this.selectionChange=this.selectionChange.bind(this),this.selectable=!0}return Object.defineProperty(e.prototype,"selectable",{set:function(e){e?(this.gantt.isSelected=this.isSelected,this.subscribeSelection()):(this.gantt.isSelected=function(){return!1},this.unsubscribeSelection()),this.gantt.selectable=e,this.gantt.updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{set:function(e){if(!s.isPresent(e)||e!==this.lastChange){var t=(e||[]).slice(0,1);this.state=new Set(t),this.gantt.updateView()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemKey",{set:function(e){s.isString(e)?this._keyGetter=o.getter(e):this._keyGetter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyGetter",{get:function(){return this._keyGetter||this.gantt.idGetter},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.unsubscribeSelection()},e.prototype.isSelected=function(e){return this.state.has(this.keyGetter(e))},e.prototype.selectionChange=function(e){var t=this,n=e.action,i=e.items;this.state.clear(),"select"===n&&i.forEach((function(e){return t.state.add(t.keyGetter(e))})),this.emitSelectedItemsChange()},e.prototype.emitSelectedItemsChange=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},e.prototype.subscribeSelection=function(){this.unsubscribeSelection(),this.selectionSubscription=this.gantt.selectionChange.subscribe(this.selectionChange)},e.prototype.unsubscribeSelection=function(){this.selectionSubscription&&(this.selectionSubscription.unsubscribe(),this.selectionSubscription=null)},i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"selectable",null),i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"itemKey",null),e=i.__decorate([a.Directive({exportAs:"kendoGanttSelectable",selector:"[kendoGanttSelectable]"}),i.__metadata("design:paramtypes",[r.GanttComponent])],e)}();t.SelectableDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(20);t.getOffsetRelativeToParent=function(e,t){var n={top:0,left:0};if(!t.contains(e))return n;for(var i=e;i&&i!==t;)n.top+=i.offsetTop,n.left+=i.offsetLeft,i=i.offsetParent;return n},t.getElementRect=function(e,n){var i=t.getOffsetRelativeToParent(e,n),a=i.top,o=i.left;return{top:a+e.offsetHeight/2,left:o,right:o+e.offsetWidth}},t.dependencyCoordinates=function(e,t,n,o,r,s){var c,l,d=[],p=Math.floor(n/2),u=e.top<t.top;if(o===i.DependencyType.FF||o===i.DependencyType.SS){var h=o===i.DependencyType.SS?"left":"right";c=e.top,l=e[h],d.push({top:c,left:l}),l=Math["left"===h?"min":"max"](e[h],t[h]),l="left"===h?l-r:l+r,d.push({top:c,left:l}),c=t.top,d.push({top:c,left:l}),l="left"===h?t[h]-s:t[h]+s,d.push({top:c,left:l}),d.push.apply(d,a(c,l,"left"!==h,s))}else{var b=o===i.DependencyType.SF?"left":"right",m=o===i.DependencyType.SF?"right":"left",f=o===i.DependencyType.SF?e[b]-2*r<t[m]:e[b]+2*r>t[m];c=e.top,l=e[b],d.push({top:c,left:l}),l="left"===b?l-r:l+r,d.push({top:c,left:l}),f&&(c=u?c+p:c-p,d.push({top:c,left:l}),l="left"===b?t[m]+r:t[m]-r,d.push({top:c,left:l})),c=t.top,d.push({top:c,left:l}),l="left"===m?t[m]-s:t[m]+s,d.push({top:c,left:l}),d.push.apply(d,a(c,l,"left"!==m,s))}return d};var a=function(e,t,n,i){return n?o(e,t,i):r(e,t,i)},o=function(e,t,n){var i=[];return i.push({top:e-n/2,left:t}),i.push({top:e,left:t-n+1}),i.push({top:e+n/2,left:t}),i.push({top:e,left:t}),i},r=function(e,t,n){var i=[];return i.push({top:e+n/2,left:t}),i.push({top:e,left:t+n-1}),i.push({top:e-n/2,left:t}),i.push({top:e,left:t}),i};t.clientToOffsetCoords=function(e,t,n){var i=n.getBoundingClientRect();return{left:e-i.left+n.scrollLeft,top:t-i.top+n.scrollTop}},t.getElementClientCenterCoords=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return{left:n+t.width/2,top:i+t.height/2}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=n(13),s=n(19),c=n(12),l=n(32),d=n(55),p=n(53),u=n(11),h=n(11),b=function(){function e(e,t,n,i,a,o){this.gantt=e,this.zone=t,this.renderer=n,this.mapper=i,this.popupService=a,this.timelineScrollService=o,this.displayValidationTooltip=!0,this.gantt.renderDependencyDragClues=!0}return Object.defineProperty(e.prototype,"container",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.timelineContent)?this.gantt.timeline.timelineContent.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polyline",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dependencyDragCreatePolyline)?this.gantt.timeline.dependencyDragCreatePolyline.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupContainer",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dragPopupContainer)?this.gantt.timeline.dragPopupContainer:null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.subscribeDraggable(),this.addScrollListener()},e.prototype.ngOnDestroy=function(){this.unsubscribeDraggable(),this.removeScrollListener(),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup()},e.prototype.subscribeDraggable=function(){this.dragSubscriptions=this.gantt.timeline.timelineContainerPress.subscribe(this.handlePress.bind(this)),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerDrag.subscribe(this.handleDrag.bind(this))),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerRelease.subscribe(this.handleRelease.bind(this)))},e.prototype.unsubscribeDraggable=function(){u.isPresent(this.dragSubscriptions)&&(this.dragSubscriptions.unsubscribe(),this.dragSubscriptions=null)},e.prototype.handlePress=function(e){var t=e.clientX,n=e.clientY,i=h.elementFromPoint(t,n);if(u.isDependencyDragClue(i)){this.fromTaskClue=i,this.assignDragStartClasses(this.fromTaskClue);var a=p.getElementClientCenterCoords(this.fromTaskClue);this.polylineStartCoords=p.clientToOffsetCoords(a.left,a.top,this.container)}},e.prototype.handleDrag=function(e){var t=e.clientX,n=e.clientY;if(u.isPresent(this.fromTaskClue)){var i=p.clientToOffsetCoords(t,n,this.container);this.updatePolyline(this.polylineStartCoords,i),this.currentPointerClientCoords={left:t,top:n},this.gantt.dragScrollSettings.enabled&&this.scrollPointIntoView(this.currentPointerClientCoords),this.displayValidationTooltip&&this.updateDragPopup(i)}},e.prototype.handleRelease=function(e){var t=this,n=e.clientX,i=e.clientY;if(u.isPresent(this.fromTaskClue)){var a=h.elementFromPoint(n,i);u.isDependencyDragClue(a)&&!u.sameTaskClues(this.fromTaskClue,a,this.container)&&this.zone.run((function(){var e,n=t.fromTaskClue,i=a,o=t.gantt.renderedTreeListItems[u.getClosestTaskIndex(n,t.container)],r=t.gantt.renderedTreeListItems[u.getClosestTaskIndex(i,t.container)],s=u.getDependencyTypeFromTargetTasks(n,i),c=t.mapper.dependencyFields,l=c.fromId,d=c.toId,p=c.type;t.gantt.dependencyAdd.emit({fromTask:o,toTask:r,type:s,isValid:t.gantt.validateNewDependency((e={},e[l]=t.mapper.extractFromTask(o,"id"),e[d]=t.mapper.extractFromTask(r,"id"),e[p]=s,e))})})),this.clearPolyline(),this.removeDragStartClasses(this.fromTaskClue),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup()}},e.prototype.updatePolyline=function(e,t){var n=e.left+","+e.top+" "+t.left+","+t.top;this.renderer.setAttribute(this.polyline,"points",n)},e.prototype.clearPolyline=function(){this.renderer.removeAttribute(this.polyline,"points")},e.prototype.assignDragStartClasses=function(e){if(u.isPresent(e)){this.renderer.addClass(this.container,"k-user-select-none"),this.renderer.addClass(e,"k-state-hover");var t=u.getClosestTaskWrapper(e,this.container);u.isPresent(t)&&this.renderer.addClass(t,"k-origin")}},e.prototype.removeDragStartClasses=function(e){if(u.isPresent(e)){this.renderer.removeClass(this.container,"k-user-select-none"),this.renderer.removeClass(e,"k-state-hover");var t=u.getClosestTaskWrapper(e,this.container);u.isPresent(t)&&this.renderer.removeClass(t,"k-origin")}},e.prototype.scrollPointIntoView=function(e){var t=e.left,n=e.top;this.timelineScrollService.requestScrollCancel(),this.timelineScrollService.requestHorizontalScroll(t),this.timelineScrollService.requestVerticalScroll(n)},e.prototype.cancelScroll=function(){this.timelineScrollService.requestScrollCancel()},e.prototype.addScrollListener=function(){var e=this;o.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.scrollListenerDisposer=e.renderer.listen(e.container,"scroll",(function(){if(u.isPresent(e.fromTaskClue)&&u.isPresent(e.currentPointerClientCoords)){var t=e.currentPointerClientCoords,n=t.left,i=t.top,a=p.clientToOffsetCoords(n,i,e.container);e.updatePolyline(e.polylineStartCoords,a),e.displayValidationTooltip&&e.updateDragPopup(a)}}))}))},e.prototype.removeScrollListener=function(){u.isPresent(this.scrollListenerDisposer)&&(this.scrollListenerDisposer(),this.scrollListenerDisposer=null)},e.prototype.openDragPopup=function(){u.isPresent(this.dragPopup)&&this.closeDragPopup(),this.dragPopup=this.popupService.open({animate:!1,content:d.DragValidationTooltipComponent,appendTo:this.popupContainer,positionMode:"absolute",popupClass:"k-popup-transparent"})},e.prototype.updateDragPopup=function(e){u.isPresent(this.dragPopup)||this.openDragPopup();var t=this.dragPopup.content.instance,n=this.getTooltipContext(),i=n.fromTaskName,a=n.toTaskName,o=n.isValid,r=n.showValidityStatus;t.fromTaskName===i&&t.toTaskName===a&&t.isValid===o&&t.showValidityStatus===r||(t.fromTaskName=i,t.toTaskName=a,t.isValid=o,t.showValidityStatus=r,this.dragPopup.content.changeDetectorRef.detectChanges()),this.dragPopup.popup.instance.offset=this.normalizePopupPosition(e),this.dragPopup.popup.changeDetectorRef.detectChanges()},e.prototype.closeDragPopup=function(){u.isPresent(this.dragPopup)&&(this.dragPopup.close(),this.dragPopup=null)},e.prototype.extractTaskName=function(e){if(!u.isTaskWrapper(e,this.container))return null;var t=u.getClosestTaskIndex(e,this.container),n=this.gantt.renderedTreeListItems[t];return this.mapper.extractFromTask(n,"title")},e.prototype.getTooltipContext=function(){var e,t=this.extractTaskName(this.fromTaskClue),n=h.elementFromPoint(this.currentPointerClientCoords.left,this.currentPointerClientCoords.top),i=u.isTaskWrapper(n,this.container)&&!u.sameTaskClues(this.fromTaskClue,n,this.container)?this.extractTaskName(n):"",a=u.isDependencyDragClue(n)&&!u.sameTaskClues(this.fromTaskClue,n,this.container),o=this.mapper.dependencyFields,r=o.fromId,s=o.toId,c=o.type;return{fromTaskName:t,toTaskName:i,showValidityStatus:a,isValid:a&&this.gantt.validateNewDependency((e={},e[r]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(this.fromTaskClue,this.container)],"id"),e[s]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(n,this.container)],"id"),e[c]=u.getDependencyTypeFromTargetTasks(this.fromTaskClue,n),e))}},e.prototype.normalizePopupPosition=function(e){var t=e.top+20,n=this.container.clientHeight+this.container.scrollTop,i=this.dragPopup.popupElement.querySelector(".k-tooltip").clientHeight;t<n-i||(t-=i+40);var a=this.dragPopup.popupElement.querySelector(".k-tooltip").clientWidth,o=e.left-a/2;return{left:u.fitToRange(o,0,this.container.scrollWidth-a),top:u.fitToRange(t,0,this.container.scrollHeight-i)}},i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"displayValidationTooltip",void 0),e=i.__decorate([a.Directive({selector:"[kendoGanttDependencyDragCreate]"}),i.__metadata("design:paramtypes",[s.GanttComponent,a.NgZone,a.Renderer2,c.MappingService,r.PopupService,l.TimelineScrollService])],e)}();t.DependencyDragCreateDirective=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(){this.isValid=!1}return e=i.__decorate([a.Component({template:'\n <div\n class="k-tooltip k-gantt-tooltip-validation"\n [class.k-gantt-tooltip-valid]="showValidityStatus && isValid"\n [class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"\n >\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">From:</span>\n <span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>\n </div>\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">To:</span>\n <span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>\n </div>\n </div>\n ',styles:["\n .k-gantt-tooltip-validation {\n max-width: 200px;\n display: block;\n }\n .k-gantt-tooltip-validation::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 4px;\n height: 100%;\n background: #656565;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-valid::before {\n background: #37B400;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-invalid::before {\n background: #F31700;\n }\n .k-gantt-tooltip-validation-row {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .k-gantt-tooltip-validation-label {\n display: inline-flex;\n width: 50px;\n }\n .k-gantt-tooltip-validation-value {\n font-weight: bold;\n }\n "]})],e)}();t.DragValidationTooltipComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Backwards=-1]="Backwards",e[e.Forward=1]="Forward"}(t.ScrollDirection||(t.ScrollDirection={})),function(e){e.Vertical="scrollTop",e.Horizontal="scrollLeft"}(t.ScrollAxis||(t.ScrollAxis={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),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,"taskEditingGeneralTabTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingPredecessorsTabTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingSuccessorsTabTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesAddButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesRemoveButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesGridNameColumnTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesGridTypeColumnTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"deleteButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskDeleteLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogCloseTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogCloseTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addTaskText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addChildText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addAboveText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addBelowText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"saveButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"titleFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"startFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"endFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"completionRatioFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogContent",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"dayViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"weekViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"monthViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"yearViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"noRecords",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterEqOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotEqOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNullOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotNullOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsEmptyOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotEmptyOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterStartsWithOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterContainsOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotContainsOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterEndsWithOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterGteOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterGtOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterLteOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterLtOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsTrue",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsFalse",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterBooleanAll",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOrEqualOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOrEqualOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterFilterButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterClearButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterAndLogic",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterOrLogic",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"loading",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columnMenu",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columns",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"lock",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"unlock",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortAscending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortDescending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortedAscending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDescending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDefault",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columnsApply",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columnsReset",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(19);t.GanttComponent=a.GanttComponent;var o=n(71);t.GanttModule=o.GanttModule;var r=n(50);t.GanttHierarchyBindingDirective=r.GanttHierarchyBindingDirective;var s=n(49);t.GanttFlatBindingDirective=s.GanttFlatBindingDirective;var c=n(51);t.GanttExpandableDirective=c.GanttExpandableDirective;var l=n(54);t.DependencyDragCreateDirective=l.DependencyDragCreateDirective;var d=n(34);t.GanttTaskTemplateDirective=d.GanttTaskTemplateDirective;var p=n(36);t.GanttTaskContentTemplateDirective=p.GanttTaskContentTemplateDirective;var u=n(35);t.GanttSummaryTaskTemplateDirective=u.GanttSummaryTaskTemplateDirective;var h=n(37);t.ToolbarTemplateDirective=h.ToolbarTemplateDirective;var b=n(52);t.SelectableDirective=b.SelectableDirective,i.__exportStar(n(45),t),i.__exportStar(n(27),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-gantt",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647344447,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}),t.DEFAULT_DEPENDENCY_MODEL_FIELDS=Object.freeze({toId:"toId",fromId:"fromId",id:"id",type:"type"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TASK_MODEL_FIELDS=Object.freeze({id:"id",start:"start",end:"end",title:"title",completionRatio:"completionRatio",children:"children"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=n(16),s=n(21),c=n(29),l=function(e){function t(t,n){var i=e.call(this,n)||this;if(i.options=t,i.children=new a.QueryList,i.locked=!1,i.sortable=!0,n&&n.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent");return i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([a.ContentChildren(s.GanttColumnBase),i.__metadata("design:type",a.QueryList)],t.prototype,"children",void 0),i.__decorate([a.ContentChildren(c.HeaderTemplateDirective),i.__metadata("design:type",a.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"sortable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-column-group",template:"",providers:[{provide:s.GanttColumnBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__param(1,a.SkipSelf()),i.__param(1,a.Host()),i.__param(1,a.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(o.ColumnGroupComponent);t.GanttColumnGroupComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=n(16),s=n(28),c=n(21),l=n(40),d=n(30),p=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.childColumns=new a.QueryList,i.template=new a.QueryList,i.editTemplate=new a.QueryList,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([a.ContentChildren(l.GanttColumnComponent),i.__metadata("design:type",a.QueryList)],t.prototype,"childColumns",void 0),i.__decorate([a.ContentChildren(s.CellTemplateDirective,{descendants:!1}),i.__metadata("design:type",a.QueryList)],t.prototype,"template",void 0),i.__decorate([a.ContentChildren(d.EditTemplateDirective,{descendants:!1}),i.__metadata("design:type",a.QueryList)],t.prototype,"editTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-span-column",template:"",providers:[{provide:c.GanttColumnBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__param(1,a.SkipSelf()),i.__param(1,a.Host()),i.__param(1,a.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,c.GanttColumnBase])],t)}(o.SpanColumnComponent);t.GanttSpanColumnComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.hasChildren=function(){return!1},t.fetchChildren=function(){return i.of([])},t.rowClassCallback=function(){return null},t.taskClassCallback=function(){return null},t.isSelected=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return i.__extends(t,e),t}(n(66).PreventableEvent);t.CellCloseEvent=a},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){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(3);!function(e){e[e.Digit1=97]="Digit1",e[e.Digit2=98]="Digit2",e[e.Digit3=99]="Digit3",e[e.Digit4=100]="Digit4"}(i||(i={})),t.isArrowUpDownKey=function(e){return[a.Keys.ArrowUp,a.Keys.ArrowDown].some((function(t){return e===t}))},t.isNavigationKey=function(e){return[a.Keys.ArrowUp,a.Keys.ArrowDown,a.Keys.Home,a.Keys.End].some((function(t){return e===t}))},t.isExpandCollapseKey=function(e,t){return t&&[a.Keys.ArrowLeft,a.Keys.ArrowRight].some((function(t){return e===t}))},t.isViewDigitKey=function(e){return[a.Keys.Digit1,i.Digit1,a.Keys.Digit2,i.Digit2,a.Keys.Digit3,i.Digit3,a.Keys.Digit4,i.Digit4].some((function(t){return e===t}))},t.getIndexFromViewDigitKeyCode=function(e){switch(e){case i.Digit1:case a.Keys.Digit1:return 0;case i.Digit2:case a.Keys.Digit2:return 1;case i.Digit3:case a.Keys.Digit3:return 2;case i.Digit4:case a.Keys.Digit4:return 3;default:return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TREELIST_PANE_SETTINGS=Object.freeze({collapsible:!0,collapsed:!1}),t.DEFAULT_TIMELINE_PANE_SETTINGS=Object.freeze({collapsible:!0,collapsed:!1,size:"50%",resizable:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditItem=function(e,t,n){var a=t.find((function(t){return n.extractFromTask(t.data,"id")===n.extractFromTask(e,"id")}));return i(a)};var i=function(e){return{dataItem:e.data,parent:e.parent.data?i(e.parent):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(9),r=n(6),s=n(72),c=n(17),l=n(73),d=n(3),p=n(74),u=n(75),h=n(98),b=n(76),m=n(4),f=n(13),g=n(14),v=n(25),y=n(19),_=n(39),O=n(77),j=n(78),k=n(79),C=n(34),w=n(36),S=n(80),T=n(35),E=n(81),D=n(49),I=n(50),x=n(51),P=n(52),V=n(82),R=n(37),B=n(83),F=n(84),M=n(54),A=n(55),L=n(85),N=n(27),z=n(87),H=n(88),G=n(89),W=n(90),K=n(91),q=n(92),U=n(93),Z=n(94),$=n(95),Y=n(96),X=n(97),Q=[o.CommonModule,r.ReactiveFormsModule,u.LabelModule,h.InputsModule,b.DateInputsModule,l.ButtonsModule,s.SplitterModule,c.TreeListModule,l.ButtonsModule,p.DialogModule,d.EventsModule,f.PopupModule,d.DraggableModule,s.TabStripModule,Z.GridModule,$.DropDownsModule],J=[y.GanttComponent,D.GanttFlatBindingDirective,I.GanttHierarchyBindingDirective,k.GanttTaskComponent,S.GanttSummaryTaskComponent,E.GanttMilestoneTaskComponent,_.GanttTimelineComponent,O.GanttTasksTableBodyComponent,j.GanttHeaderTableBodyComponent,w.GanttTaskContentTemplateDirective,C.GanttTaskTemplateDirective,T.GanttSummaryTaskTemplateDirective,R.ToolbarTemplateDirective,V.ToolbarComponent,B.ViewSelectorComponent,N.GanttColumnComponent,N.GanttColumnGroupComponent,N.GanttSpanColumnComponent,N.FilterMenuTemplateDirective,N.FilterCellTemplateDirective,N.CellTemplateDirective,N.EditTemplateDirective,N.ColumnMenuTemplateDirective,N.HeaderTemplateDirective,N.FooterTemplateDirective,x.GanttExpandableDirective,F.GanttDependencyDirective,M.DependencyDragCreateDirective,z.TimelineDayViewComponent,H.TimelineWeekViewComponent,G.TimelineMonthViewComponent,P.SelectableDirective,W.EditDialogComponent,K.CustomMessagesComponent,q.LocalizedMessagesDirective,U.GanttAddTaskComponent,A.DragValidationTooltipComponent,L.TimelineScrollableDirective,Y.DependenciesTableComponent,X.TaskFieldsComponent],ee=function(){function e(){}return e=i.__decorate([a.NgModule({imports:Q.slice(),declarations:J.slice(),exports:J.slice(),entryComponents:[A.DragValidationTooltipComponent],providers:[{provide:m.L10N_PREFIX,useValue:"kendo.gantt"},{provide:v.TOUCH_ENABLED,useValue:g.touchEnabled}]})],e)}();t.GanttModule=ee},function(e,t){e.exports=b},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizedMessagesDirective",(function(){return h})),n.d(t,"Messages",(function(){return u})),n.d(t,"SharedDirectivesModule",(function(){return f})),n.d(t,"LabelDirective",(function(){return p})),n.d(t,"LabelModule",(function(){return w})),n.d(t,"FloatingLabelModule",(function(){return j})),n.d(t,"FloatingLabelComponent",(function(){return _})),n.d(t,"LabelComponent",(function(){return k})),n.d(t,"CustomMessagesComponent",(function(){return b}));var i=n(0),a=n(1),o=n(3),r=n(4),s=n(9),c=n(6),l=n(10),d=n(5),p=function(){function e(e,t,n){var i=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=i.getFocusableComponent();e&&(function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)}(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!Object(o.isDocumentAvailable)())return null;var e,t=this.getFocusableComponent()||{};return function(e){return e instanceof HTMLElement}(t)&&(e="id",!t.hasAttribute(e))&&this.renderer.setAttribute(t,"id","k-"+Object(o.guid)()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(Object(o.isDocumentAvailable)()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,i=n.id||"k-"+Object(o.guid)();n.getAttribute("id")||this.renderer.setAttribute(n,"id",i),this.renderer.setAttribute(t,"aria-labelledby",i)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.for"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"labelFor",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-label"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"labelClass",void 0),e=Object(i.__decorate)([Object(a.Directive)({selector:"label[for]"}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,a.NgZone])],e)}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"optional",void 0),t}(r.ComponentMessages),h=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:u,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),Object(i.__metadata)("design:paramtypes",[r.LocalizationService])],t)}(u),b=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:u,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),Object(i.__metadata)("design:paramtypes",[r.LocalizationService])],t)}(u),m=[h,b],f=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[m],exports:[m]})],e)}(),g={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219058,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"},v=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof d.Observable||e instanceof a.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),y=function(e){return"[object Function]"===Object.prototype.toString.call(e)},_=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=i,this.hostClasses=!0,this.positionChange=new a.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+Object(o.guid)(),this.autoFillStarted=!1,Object(l.validatePackage)(g),this.direction=i.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new v(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof a.EventEmitter){var i=e[t].subscribe(n);this.subscription?this.subscription.add(i):this.subscription=i}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;y(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=y(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+Object(o.guid)();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&Object(o.hasObservers)(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var i=function(){return t.updateState()};i(),this.subscribe(e,"onValueChange",i)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(Object(a.isDevMode)())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},Object(i.__decorate)([Object(a.HostBinding)("class.k-floating-label-container"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssStyle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(a.ContentChild)(o.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(a.ContentChild)(c.NgControl,{static:!1}),Object(i.__metadata)("design:type",c.NgControl)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,a.ChangeDetectorRef,r.LocalizationService])],e)}(),O=[_],j=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:O.slice(),exports:O.concat([f]),imports:[s.CommonModule,f]})],e)}(),k=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new d.Subscription,Object(l.validatePackage)(g),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select");if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+Object(o.guid)()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(a.ViewChild)(p,{static:!0}),Object(i.__metadata)("design:type",p)],e.prototype,"labelDirective",void 0),Object(i.__decorate)([Object(a.ContentChild)(o.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-label",exportAs:"kendoLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,r.LocalizationService])],e)}(),C=[p,k],w=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({imports:[s.CommonModule,f],declarations:C.slice(),exports:C.concat([j,f])})],e)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"CalendarCommonModule",(function(){return En})),n.d(t,"CALENDAR_RANGE_VALIDATORS",(function(){return Vt})),n.d(t,"CALENDAR_VALUE_ACCESSOR",(function(){return Pt})),n.d(t,"KENDO_INPUT_PROVIDER",(function(){return Rt})),n.d(t,"KForOf",(function(){return jn})),n.d(t,"KForOfContext",(function(){return On})),n.d(t,"HeaderComponent",(function(){return Sn})),n.d(t,"HorizontalViewListComponent",(function(){return on})),n.d(t,"CalendarMessages",(function(){return Rn})),n.d(t,"MultiViewCalendarCustomMessagesComponent",(function(){return Pn})),n.d(t,"Messages",(function(){return In})),n.d(t,"RANGE_CALENDAR_RANGE_VALIDATORS",(function(){return dn})),n.d(t,"RANGE_CALENDAR_VALUE_ACCESSOR",(function(){return ln})),n.d(t,"NavigationComponent",(function(){return pt})),n.d(t,"BusViewService",(function(){return Ee})),n.d(t,"CenturyViewService",(function(){return ue})),n.d(t,"DecadeViewService",(function(){return me})),n.d(t,"DisabledDatesService",(function(){return ft})),n.d(t,"CalendarDOMService",(function(){return Ye})),n.d(t,"MonthViewService",(function(){return ve})),n.d(t,"NavigationService",(function(){return bt})),n.d(t,"ScrollSyncService",(function(){return vt})),n.d(t,"SelectionService",(function(){return gt})),n.d(t,"WeekNamesService",(function(){return an})),n.d(t,"YearViewService",(function(){return Oe})),n.d(t,"TemplatesModule",(function(){return Dn})),n.d(t,"CellTemplateDirective",(function(){return yt})),n.d(t,"CenturyCellTemplateDirective",(function(){return kt})),n.d(t,"DecadeCellTemplateDirective",(function(){return jt})),n.d(t,"HeaderTitleTemplateDirective",(function(){return wt})),n.d(t,"MonthCellTemplateDirective",(function(){return _t})),n.d(t,"NavigationItemTemplateDirective",(function(){return St})),n.d(t,"WeekNumberCellTemplateDirective",(function(){return Ct})),n.d(t,"YearCellTemplateDirective",(function(){return Ot})),n.d(t,"ViewListComponent",(function(){return ut})),n.d(t,"ViewComponent",(function(){return Tn})),n.d(t,"PickerService",(function(){return Tt})),n.d(t,"DateInputMessages",(function(){return zn})),n.d(t,"DatePickerMessages",(function(){return Kn})),n.d(t,"DateRangeInput",(function(){return gn})),n.d(t,"DateRangePopupTemplateDirective",(function(){return un})),n.d(t,"DateTimePickerCustomMessagesComponent",(function(){return na})),n.d(t,"LocalizedMessagesDirective",(function(){return ia})),n.d(t,"Messages$1",(function(){return ta})),n.d(t,"TimePickerMessages",(function(){return Ki})),n.d(t,"TimePickerCustomMessagesComponent",(function(){return Ui})),n.d(t,"TimeSelectorCustomMessagesComponent",(function(){return $i})),n.d(t,"DayPeriodService",(function(){return Pi})),n.d(t,"TimePickerDOMService",(function(){return ii})),n.d(t,"HoursService",(function(){return li})),n.d(t,"MillisecondsService",(function(){return Ti})),n.d(t,"MinutesService",(function(){return mi})),n.d(t,"SecondsService",(function(){return Oi})),n.d(t,"TimeListComponent",(function(){return Fi})),n.d(t,"TimeSelectorComponent",(function(){return Wi})),n.d(t,"TOUCH_ENABLED",(function(){return Kt})),n.d(t,"ScrollerService",(function(){return tt})),n.d(t,"DEFAULT_SCROLLER_FACTORY",(function(){return it})),n.d(t,"SCROLLER_FACTORY_TOKEN",(function(){return nt})),n.d(t,"VirtualizationComponent",(function(){return ct})),n.d(t,"VirtualizationModule",(function(){return An})),n.d(t,"CalendarComponent",(function(){return Bt})),n.d(t,"DateInputComponent",(function(){return Gt})),n.d(t,"DatePickerComponent",(function(){return Ut})),n.d(t,"TimePickerComponent",(function(){return en})),n.d(t,"DateTimePickerComponent",(function(){return nn})),n.d(t,"MultiViewCalendarComponent",(function(){return pn})),n.d(t,"DateRangeComponent",(function(){return fn})),n.d(t,"DateRangePopupComponent",(function(){return mn})),n.d(t,"DateRangeEndInputDirective",(function(){return vn})),n.d(t,"DateRangeStartInputDirective",(function(){return yn})),n.d(t,"DateRangeSelectionDirective",(function(){return _n})),n.d(t,"CalendarModule",(function(){return Ln})),n.d(t,"CalendarsModule",(function(){return Nn})),n.d(t,"DateInputModule",(function(){return Wn})),n.d(t,"DatePickerModule",(function(){return $n})),n.d(t,"DateInputsModule",(function(){return ca})),n.d(t,"TimePickerModule",(function(){return ea})),n.d(t,"DateTimePickerModule",(function(){return ra})),n.d(t,"MultiViewCalendarModule",(function(){return Vn})),n.d(t,"DateRangeModule",(function(){return Qn})),n.d(t,"DateRangeService",(function(){return bn})),n.d(t,"CalendarCustomMessagesComponent",(function(){return Fn})),n.d(t,"DateInputCustomMessagesComponent",(function(){return Gn})),n.d(t,"DatePickerCustomMessagesComponent",(function(){return Un})),n.d(t,"PreventableEvent",(function(){return Wt})),n.d(t,"CalendarLocalizedMessagesDirective",(function(){return Bn})),n.d(t,"MultiViewCalendarLocalizedMessagesDirective",(function(){return xn})),n.d(t,"DateInputLocalizedMessagesDirective",(function(){return Hn})),n.d(t,"DatePickerLocalizedMessagesDirective",(function(){return qn})),n.d(t,"TimePickerLocalizedMessagesDirective",(function(){return qi})),n.d(t,"TimeSelectorLocalizedMessagesDirective",(function(){return Zi}));var i,a=n(0),o=n(1),r=n(6),s=n(4),c=n(2),l=n(3),d=n(10),p=n(8),u=n(5),h=n(7),b=n(13),m=n(9),f=n(14),g={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635945725,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){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"}(i||(i={}));var v,y,_,O,j,k,C={start:null,end:null},w=new Date(1980,0,1),S=new Date(1900,0,1),T=new Date(2099,11,31),E=new Date(1980,0,1),D=new Date(1980,0,1,23,59,59),I=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},x=function(e){return e.preventDefault()},P=function(e){return e.relatedTarget||document.activeElement},V=function(e){return null!=e},R=function(e){return null!=e},B=function(e){return function(t,n){var i=Object(c.cloneDate)(t);return i[e](n),i}},F=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},M=function(e,t,n){return{candidateValue:F(w,e),maxValue:Object(c.addDays)(F(w,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:F(w,t)}},A=B("setFullYear"),L=B("setHours"),N=B("setMinutes"),z=B("setSeconds"),H=B("setMilliseconds"),G=function(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i},W=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},K=function(e,t,n){if(!e||!t||!n)return!0;var i=M(e,t,n),a=i.candidateValue,o=i.minValue,r=i.maxValue;return o<=a&&a<=r},q=function(e,t){return!R(e)||!R(t)||e<=t},U=function(e,t,n){return e?t&&e<t?Object(c.cloneDate)(t):n&&e>n?Object(c.cloneDate)(n):e:e},Z=function(){return new Date},$=function(){return Object(c.getDate)(new Date)},Y=function(e){},X=function(){return"undefined"!=typeof window},Q=function(e,t){return e.slice(t).concat(e.slice(0,t))},J=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}},ee=function(e,t){return void 0!==e[t]},te=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},ne=function(e){return void 0===e&&(e=[]),e&&e[e.length-1]},ie=function(e,t){var n=t||C,i=n.start,a=n.end;return!(!i||!a)&&(i<e&&e<a)},ae=function(e,t){return e||t},oe=function(e){return{start:e,end:e}},re=function(e,t){var n=e||C,i=n.start,a=n.end,o=t||C,r=o.start,s=o.end;return Object(c.isEqual)(i,r)&&Object(c.isEqual)(a,s)},se=function(e,t){return t=t||[],(e=e||[]).length===t.length&&e.every((function(e,n){return Object(c.isEqual)(e,t[n])}))},ce=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},le=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},de=[[]],pe=((v={})[i.Left]=function(e){return Object(c.addDecades)(e,-1)},v[i.Up]=function(e){return Object(c.addDecades)(e,-5)},v[i.Right]=function(e){return Object(c.addDecades)(e,1)},v[i.Down]=function(e){return Object(c.addDecades)(e,5)},v[i.PrevView]=function(e){return Object(c.addCenturies)(e,-1)},v[i.NextView]=function(e){return Object(c.addCenturies)(e,1)},v[i.FirstInView]=function(e){return Object(c.firstDecadeOfCentury)(e)},v[i.LastInView]=function(e){return Object(c.lastDecadeOfCentury)(e)},v),ue=function(){function e(){this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addDecades)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.addCenturies)(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,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate;if(!p)return de;var u=G(0,4),h=Object(c.firstDecadeOfCentury)(p),b=Object(c.lastDecadeOfCentury)(p),m=$();return G(0,3).map((function(e){var l=Object(c.addDecades)(h,4*e);return u.map((function(e){var p=t.normalize(Object(c.addDecades)(l,e),r,o),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,o)||u)return null;var f=t.isEqual(p,d.start),g=t.isEqual(p,d.end),v=!f&&!g&&ie(p,d);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&t.isEqual(p,b),isRangeSplitStart:v&&t.isEqual(p,h),isToday:t.isEqual(p,m),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(c.firstYearOfDecade)(e).getFullYear()===Object(c.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=Object(c.firstYearOfDecade)(e).getFullYear(),a=!t||Object(c.firstYearOfDecade)(t).getFullYear()<=i,o=!n||i<=Object(c.firstYearOfDecade)(n).getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=Object(c.firstYearOfDecade)(Object(c.firstDecadeOfCentury)(e));return Object(c.createDate)(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastDecadeOfCentury)(e),n=Object(c.lastYearOfDecade)(t),i=Object(c.lastMonthOfYear)(n);return Object(c.lastDayOfMonth)(i)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=pe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(c.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(c.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(c.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(c.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(c.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 Object(c.addCenturies)(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),he=[[]],be=((y={})[i.Left]=function(e){return Object(c.addYears)(e,-1)},y[i.Up]=function(e){return Object(c.addYears)(e,-5)},y[i.Right]=function(e){return Object(c.addYears)(e,1)},y[i.Down]=function(e){return Object(c.addYears)(e,5)},y[i.PrevView]=function(e){return Object(c.addDecades)(e,-1)},y[i.NextView]=function(e){return Object(c.addDecades)(e,1)},y[i.FirstInView]=function(e){return Object(c.firstYearOfDecade)(e)},y[i.LastInView]=function(e){return Object(c.lastYearOfDecade)(e)},y),me=function(){function e(){this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addYears)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addDecades)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.addDecades)(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,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate;if(!p)return he;var u=G(0,4),h=Object(c.firstYearOfDecade)(p),b=Object(c.lastYearOfDecade)(p),m=$();return G(0,3).map((function(e){var l=Object(c.addYears)(h,4*e);return u.map((function(e){var p=t.normalize(Object(c.addYears)(l,e),r,o),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,o)||u)return null;var f=t.isEqual(p,d.start),g=t.isEqual(p,d.end),v=!f&&!g&&ie(p,d);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&t.isEqual(p,b),isRangeSplitStart:v&&t.isEqual(p,h),isToday:t.isEqual(p,m),title:t.cellTitle(p),value:p}}))}))},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=Object(c.firstYearOfDecade)(e);return Object(c.createDate)(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastYearOfDecade)(e),n=Object(c.lastMonthOfYear)(t);return Object(c.lastDayOfMonth)(n)},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.move=function(e,t){var n=be[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear()+" - "+Object(c.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(c.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 Object(c.addDecades)(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),fe=[[]],ge=((_={})[i.Left]=function(e){return Object(c.addDays)(e,-1)},_[i.Up]=function(e){return Object(c.addWeeks)(e,-1)},_[i.Right]=function(e){return Object(c.addDays)(e,1)},_[i.Down]=function(e){return Object(c.addWeeks)(e,1)},_[i.PrevView]=function(e){return Object(c.addMonths)(e,-1)},_[i.NextView]=function(e){return Object(c.addMonths)(e,1)},_[i.FirstInView]=function(e){return Object(c.firstDayOfMonth)(e)},_[i.LastInView]=function(e){return Object(c.lastDayOfMonth)(e)},_),ve=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addDays)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addMonths)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.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,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate,u=e.isDateDisabled,h=void 0===u?function(){return!1}:u;if(!p)return fe;var b=Object(c.firstDayOfMonth)(p),m=Object(c.getDate)(b),f=Object(c.lastDayOfMonth)(p),g=Object(c.getDate)(f),v=Object(c.dayOfWeek)(b,this._intlService.firstDay(),-1),y=G(0,7),_=$();return G(0,6).map((function(e){var l=Object(c.addDays)(v,7*e);return y.map((function(e){var p=t.normalize(Object(c.addDays)(l,e),r,o),u=Object(c.getDate)(p),v=u<m||u>g;if(p<r||p>o)return null;var y=t.isEqual(p,d.start),O=t.isEqual(p,d.end),j=!y&&!O&&ie(p,d);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:t.isWeekend(p),isRangeStart:y,isRangeMid:j,isRangeEnd:O,isRangeSplitStart:j&&t.isEqual(p,b),isRangeSplitEnd:j&&t.isEqual(p,f),isToday:t.isEqual(p,_),title:t.cellTitle(p),value:p,isDisabled:h(p),isOtherMonth:v}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(c.getDate)(e).getTime()===Object(c.getDate)(t).getTime()},e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(Object(c.addMonths)(t[t.length-1],1));return n<=e&&e<i},e.prototype.isInRange=function(e,t,n){var i=Object(c.getDate)(e),a=!t||Object(c.getDate)(t)<=i,o=!n||i<=Object(c.getDate)(n);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?Object(c.createDate)(e.getFullYear(),e.getMonth(),1):e},e.prototype.lastDayOfPeriod=function(e){return Object(c.lastDayOfMonth)(e)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ge[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 Object(c.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(c.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 Object(c.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)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),ye=[[]],_e=((O={})[i.Left]=function(e){return Object(c.addMonths)(e,-1)},O[i.Up]=function(e){return Object(c.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},O[i.Right]=function(e){return Object(c.addMonths)(e,1)},O[i.Down]=function(e){return Object(c.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},O[i.PrevView]=function(e){return Object(c.addYears)(e,-1)},O[i.NextView]=function(e){return Object(c.addYears)(e,1)},O[i.FirstInView]=function(e){return Object(c.firstMonthOfYear)(e)},O[i.LastInView]=function(e){return Object(c.lastMonthOfYear)(e)},O),Oe=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addMonths)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addYears)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.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,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate;if(!p)return ye;var u=this.abbrMonthNames(),h=Object(c.firstMonthOfYear)(p),b=Object(c.lastMonthOfYear)(p),m=h.getFullYear(),f=G(0,4),g=$();return G(0,3).map((function(e){var l=Object(c.addMonths)(h,4*e);return f.map((function(e){var p=t.normalize(Object(c.addMonths)(l,e),r,o),f=m<p.getFullYear();if(!t.isInRange(p,r,o)||f)return null;var v=t.isEqual(p,d.start),y=t.isEqual(p,d.end),_=!v&&!y&&ie(p,d);return{formattedValue:u[p.getMonth()],id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:v,isRangeMid:_,isRangeEnd:y,isRangeSplitEnd:_&&t.isEqual(p,b),isRangeSplitStart:_&&t.isEqual(p,h),isToday:t.isEqual(p,g),title:t.cellTitle(p),value:p}}))}))},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=Object(c.createDate)(e.getFullYear(),e.getMonth(),1),a=!t||Object(c.createDate)(t.getFullYear(),t.getMonth(),1)<=i,o=!n||i<=Object(c.createDate)(n.getFullYear(),n.getMonth(),1);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?Object(c.createDate)(e.getFullYear(),0,1):e},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastMonthOfYear)(e);return Object(c.lastDayOfMonth)(t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=_e[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 Object(c.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(c.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 Object(c.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)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}();!function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(j||(j={}));var je,ke,Ce,we,Se,Te=((k={})[j.month]=ve,k[j.year]=Oe,k[j.decade]=me,k[j.century]=ue,k),Ee=function(){function e(e){this.injector=e,this.viewChanged=new o.EventEmitter,this.bottom=j.month,this.top=j.century}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e){var t=Te[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=j[j[e+t]];return void 0!==n?n:e}(e,t));n!==e&&this.viewChanged.emit({view:n})},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[o.Injector])],e)}(),De=J("div"),Ie=J("ul"),xe=J("li"),Pe=J("td"),Ve=J("th"),Re=J("tr"),Be=J("tbody"),Fe=J("thead"),Me=J("table"),Ae=function(e,t){return new Array(e).fill("1").map(t)},Le=function(e){return De(e,"k-flex k-content k-calendar-content k-scrollable")},Ne=function(){return l.isDocumentAvailable?(je||(je=De([Le([Ie([xe("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),je):null},ze=function(e,t,n){var i,a=e.cells,o=e.rows;return function(){return l.isDocumentAvailable?(i||(i=function(e,t,n){return De([De('\n <span class="k-button k-flat k-title 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?Me([Fe([Re([Ve("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Le([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),Me([Be([Re([Ve("1","k-calendar-th")],"k-calendar-tr")].concat(Ae(e,(function(){return Re(Ae(t,(function(e){return Pe('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(o,a),t,n)),i):null}},He=function(e){return e.querySelector(".k-scrollable")},Ge=function(e){return He(e).classList.add("k-scrollable-horizontal"),e},We=ze({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Ke=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),qe=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Ue=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},Ze=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},$e=function(e){return e.querySelector("tbody")},Ye=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;Object(l.isDocumentAvailable)()&&(this.hostContainer=e,this.batch(We(),(function(e){var n=$e(e);t.calendarHeight=Ue(e),t.monthViewHeight=Ue(n),t.headerHeight=Ue(n.children[0]),t.scrollableContentHeight=Ue(He(e))})),this.batch(Ge(We()),(function(e){var n=$e(e);t.calendarWidth=Ze(e),t.monthViewWidth=Ze(n),t.scrollableContentWidth=Ze(He(e))})),this.batch(Ke(),(function(e){t.yearViewHeight=Ue($e(e)),t.scrollableYearContentHeight=Ue(He(e))})),this.batch(Ge(Ke()),(function(e){t.yearViewWidth=Ze($e(e))})),this.batch(qe(),(function(e){t.decadeViewHeight=Ue($e(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(Ge(qe()),(function(e){t.decadeViewWidth=Ze($e(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(Ne(),(function(e){t.navigationItemHeight=Ue(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 j.month:return this["month"+n];case j.year:return this["year"+n];case j.decade:return this["decade"+n];case j.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){if(V(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=Object(a.__decorate)([Object(o.Injectable)()],e)}(),Xe=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}(),Qe=function(e){return Math.max(e,0)},Je=function(e){this.offset=e},et=function(e){this.skip=e},tt=function(){function e(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,i,a,o,r){var s=this;void 0===a&&(a=0),void 0===o&&(o=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=a,this.bottomOffset=o,this.direction=r;var c=new u.ReplaySubject(2),l=this.rowsForHeight(a),d=Qe(t-l);return c.next(new Je(this.rowOffset(d))),l&&c.next(new et(d)),this.subscription=new u.Observable((function(e){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe((function(t){return s.onScroll(t,e)}))})).subscribe((function(e){return c.next(e)})),c},e.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},e.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,o=e.offsetWidth,r="vertical"===this.direction?i:n,s="vertical"===this.direction?a:o;if(this.lastScroll!==r){var c=this.lastScroll>=r;this.lastScroll=r;var l=this.rowHeightService.index(Qe(r-this.topOffset)),d=this.rowHeightService.index(Qe(r+s-this.bottomOffset));if(!c&&d>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,t.next(new Je(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new et(this.firstLoaded))),c&&l<=this.firstLoaded){var p=Math.floor(.3*this.take);this.firstLoaded=Qe(l-p),t.next(new Je(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new et(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}(),nt=new o.InjectionToken("dateinputs-scroll-service-factory");function it(e){return new tt(e)}!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(Se||(Se={}));var at,ot=((ke={})[Se.Forward]=function(e){return function(t){return t+e}},ke[Se.Backward]=function(e){return function(t){return t-e}},ke),rt=((Ce={})[Se.Forward]=function(e){return function(t){return Math.min(t,e)}},Ce[Se.Backward]=function(e){return function(t){return Math.max(t,e)}},Ce),st=((we={})[Se.Forward]=function(e){return function(t){return t<e}},we[Se.Backward]=function(e){return function(t){return t>e}},we),ct=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 o.EventEmitter,this.pageChange=new o.EventEmitter,this.scrollChange=new o.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new u.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(Object(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),c=ot[i](s),l=rt[i](r),d=st[i](c(r));this.zone.runOutsideAngular((function(){t.animationSubscription=Object(u.combineLatest)(Object(u.of)(o),Object(u.interval)(0,u.animationFrameScheduler)).pipe(Object(h.map)((function(e){return e[0]})),Object(h.scan)(c),Object(h.takeWhile)(d),Object(h.map)(l)).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,r=this.containerMaxScroll(),s=t===Se.Backward?1:-1,c=(i=n,a=e,o=this.maxScrollDifference,Math.min(Math.abs(a-i),o)),l=Math.min(e,r);return{start:Math.min(Math.max(l+s*c,0),r),end:l}},e.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},e.prototype.scroll$=function(){return Object(l.isDocumentAvailable)()?Object(u.fromEvent)(this.container.nativeElement,"scroll"):u.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 et?e.pageChange.emit(t):e.scrollChange.emit(t)}))},e.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Xe(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?Se.Backward:Se.Forward},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"itemHeight",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"itemWidth",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"topOffset",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"bottomOffset",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"maxScrollDifference",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"scrollDuration",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"skip",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"take",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"total",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeIndexChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"scrollChange",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-flex"),Object(o.HostBinding)("class.k-content"),Object(o.HostBinding)("class.k-calendar-content"),Object(o.HostBinding)("class.k-scrollable"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-scrollable-horizontal"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=Object(a.__decorate)([Object(o.Component)({providers:[{provide:nt,useValue:it}],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 '}),Object(a.__param)(0,Object(o.Inject)(nt)),Object(a.__metadata)("design:paramtypes",[Object,o.ElementRef,o.Renderer2,o.NgZone])],e)}(),lt=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},dt=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},pt=function(){function e(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(S),this.max=new Date(T),this.focusedDate=new Date,this.valueChange=new o.EventEmitter,this.pageChange=new o.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=j[this.activeView];var t=U(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=lt(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(Object(c.cloneDate)(i))}},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.intlChange=function(){this.activeView===j.month&&this.cdr.markForCheck()},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"templateRef",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(o.ViewChild)(ct,{static:!1}),Object(a.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(a.__decorate)([Object(o.ViewChild)("list",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"list",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-navigation"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.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 '}),Object(a.__metadata)("design:paramtypes",[Ee,Ye,p.IntlService,o.ChangeDetectorRef,o.Renderer2])],e)}(),ut=function(){function e(e,t,n,i,a){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=a,this.isActive=!0,this.min=new Date(S),this.max=new Date(T),this.selectedDates=[],this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this.todayButtonClick=new o.EventEmitter,this.pageChange=new o.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===j.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===j.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===j.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===j.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=ee(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var t,n,i=ee(e,"activeView"),a=this.focusedDate,o=U(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),r=this.service.total(this.min,this.max),s=this.total&&this.total!==r||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(o,this.min),this.total=r,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),s&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),t=this.activeDate,n=a,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=Object(c.cloneDate)(a));var l=ee(e,"focusedDate")||i;(s||l||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===j.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===j.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=Q(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()},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(o.ViewChild)(ct,{static:!1}),Object(a.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(a.__decorate)([Object(o.ViewChild)("list",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"list",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-vstack"),Object(o.HostBinding)("class.k-calendar-view"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-monthview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-yearview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-decadeview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-centuryview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.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 class="k-calendar-table" #list>\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 '}),Object(a.__metadata)("design:paramtypes",[Ee,o.ChangeDetectorRef,p.IntlService,Ye,o.Renderer2])],e)}(),ht={33:i.PrevView,34:i.NextView,35:i.LastInView,36:i.FirstInView,37:i.Left,38:i.Up,39:i.Right,40:i.Down,"meta+38":i.UpperView,"meta+40":i.LowerView},bt=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return ht[t]},e.prototype.move=function(e,t,n){var a=this.bus.service(n);return a?t===i.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===i.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):a.move(e,t):e},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[Ee])],e)}(),mt=function(){return!1},ft=function(){function e(){this.changes=new u.Subject,this.isDateDisabled=mt}return e.prototype.initialize=function(e){if("function"==typeof e)this.isDateDisabled=function(t){return e(Object(c.getDate)(t))};else if(i=e,Array.isArray(i)&&i.length>0&&i.every((function(e){return"number"==typeof e}))){var t=new Set(e);this.isDateDisabled=function(e){return t.has(e.getDay())}}else if(function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return e instanceof Date}))}(e)){var n=new Set(e.map((function(e){return Object(c.getDate)(e).getTime()})));this.isDateDisabled=function(e){return n.has(Object(c.getDate)(e).getTime())}}else this.isDateDisabled=mt,this.notifyInvalidInput(e);var i;this.notifyServiceChange()},e.prototype.notifyInvalidInput=function(e){if(V(e)&&Object(o.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=Object(a.__decorate)([Object(o.Injectable)()],e)}(),gt=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,o=e.rangePivot,r=e.selectedDates.slice();if("multiple"===i)if(n.ctrlKey||n.metaKey)this.isDateSelected(r,t)?r=r.filter((function(e){return!Object(c.isEqual)(e,t)})):r.push(t),o=t;else if(n.shiftKey){var s=[o||t,t].filter((function(e){return V(e)})).sort((function(e,t){return e.getTime()-t.getTime()})),l=s[0],d=s[1];r=this.bus.service(a).dateRange(l,d),o=t>r[0]?r[0]:ne(r)}else r=[t],o=t;else r=[t],o=t;return{selectedDates:r,rangePivot:o}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return Object(c.isEqual)(e,t)}))},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[Ee])],e)}(),vt=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=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[Ye,o.NgZone])],e)}(),yt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),_t=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarMonthCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Ot=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarYearCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),jt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarDecadeCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),kt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarCenturyCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Ct=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarWeekNumberCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),wt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarHeaderTitleTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),St=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarNavigationItemTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Tt=function(){this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.sameDateSelected=new o.EventEmitter,this.dateCompletenessChange=new o.EventEmitter},Et=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}},Dt=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}},It="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",xt=function(e){return e?e.virtualization:null},Pt={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return Bt}))},Vt={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return Bt}))},Rt={provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return Bt}))},Bt=function(){function e(e,t,n,i,a,r,s,c,p,u,h,b,m){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=r,this.ngZone=s,this.injector=c,this.scrollSyncService=p,this.disabledDatesService=u,this.localization=h,this.selectionService=b,this.pickerService=m,this.id=Object(l.guid)(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new o.EventEmitter,this.navigate=new o.EventEmitter,this.activeViewDateChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.isActive=!1,this.cellUID=Object(l.guid)(),this.selectedDates=[],this._min=new Date(S),this._max=new Date(T),this._focusedDate=$(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,Object(d.validatePackage)(g),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&&!Object(c.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||$(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(T)},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 V(e)})).map((function(e){return Object(c.cloneDate)(e)})):Object(c.cloneDate)(e);var t=[].concat(e).filter((function(e){return V(e)})).map((function(e){return Object(c.cloneDate)(e)}));if(!se(t,this.selectedDates)){var n=ne(t);this.rangePivot=Object(c.cloneDate)(n),this.focusedDate=Object(c.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",{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,"activeViewEnum",{get:function(){var e=j[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return j[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return j[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetRole",{get:function(){return"grid"},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 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(j[n])})),this.control=this.injector.get(r.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),te(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=U(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.onValidatorChange())},e.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},e.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(xt(this.navigationView),xt(this.monthView)))},e.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerService&&(this.pickerService.calendar=null),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(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.containsElement=function(e){var t=this;return Boolean(dt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.handleNavigation=function(e){if(!this.disabled){var t=e?new Date(Object(c.cloneDate)(e).setDate(1)):this.focusedDate;this.focusedDate=U(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;o.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Object(u.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||!se(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 Object(c.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 j.month:return this.monthCellTemplate||this.cellTemplate;case j.year:return this.yearCellTemplate;case j.decade:return this.decadeCellTemplate;case j.century:return this.centuryCellTemplate;default:return null}},e.prototype.emitNavigate=function(e){var t=j[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitEvent=function(e,t){Object(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:ne(e)})}))},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(Object(o.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(Object(o.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+It+" 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 "+It+" 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",x),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.handleBlur=function(e){var t=this;this.isActive=!1,!this.pickerService&&I(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,o.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Object(c.cloneDate)(this.focusedDate),this.detectChanges()),this.focus())},e.prototype.handleKeydown=function(e){var t=-1!==[l.Keys.ArrowUp,l.Keys.ArrowRight,l.Keys.ArrowDown,l.Keys.ArrowLeft].indexOf(e.keyCode);if(!(V(this.pickerService)&&t&&e.altKey)){var n=U(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(c.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(V(this.element)){var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(c.cloneDate)(ne(e)):e.map((function(e){return Object(c.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})},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"type",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(o.HostBinding)("class.k-week-number"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"navigate",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewDateChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!0}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("cellTemplate"),Object(a.__metadata)("design:type",yt),Object(a.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!0}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("monthCellTemplate"),Object(a.__metadata)("design:type",_t),Object(a.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!0}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("yearCellTemplate"),Object(a.__metadata)("design:type",Ot),Object(a.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!0}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("decadeCellTemplate"),Object(a.__metadata)("design:type",jt),Object(a.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!0}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("centuryCellTemplate"),Object(a.__metadata)("design:type",kt),Object(a.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!0}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.Input)("weekNumberTemplate"),Object(a.__metadata)("design:type",Ct),Object(a.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!0}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.Input)("headerTitleTemplate"),Object(a.__metadata)("design:type",wt),Object(a.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(St,{static:!0}),Object(a.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(a.__decorate)([Object(o.Input)("navigationItemTemplate"),Object(a.__metadata)("design:type",St),Object(a.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(a.__decorate)([Object(o.ViewChild)(pt,{static:!1}),Object(a.__metadata)("design:type",pt)],e.prototype,"navigationView",void 0),Object(a.__decorate)([Object(o.ViewChild)(ut,{static:!1}),Object(a.__metadata)("design:type",ut)],e.prototype,"monthView",void 0),Object(a.__decorate)([Object(o.HostBinding)("attr.id"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(a.__decorate)([Object(o.HostBinding)("attr.role"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(a.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(a.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[Ee,Pt,Vt,Rt,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.calendar"},bt,vt,gt],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplate?.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]="headerTitleTemplate?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.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]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="navigate.emit($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\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 '}),Object(a.__param)(12,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[Ee,Ye,o.ElementRef,bt,o.Renderer2,o.ChangeDetectorRef,o.NgZone,o.Injector,vt,ft,s.LocalizationService,gt,Tt])],e)}(),Ft=function(){return function(e,t){return!V(e.value)&&t?{incompleteDate:!0}:null}};!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None"}(at||(at={}));var Mt=/year|month|<day>/,At=/hour|minute|second|millisecond/,Lt=/d|M|H|h|m|s/,Nt=function(e){return e.replace(/^0*/,"")},zt=function(){this.symbols=""},Ht=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=Object(c.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"},Object(d.validatePackage)(g),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=Object(c.cloneDate)(i);else{this.value=Object(c.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 Object(c.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=Object(c.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(c.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="",d="",p=0;p<i.length;p++)o[p]===e?(l+=this.getExisting(e)?i[p]:"0",r=!0):r?d+=i[p]:s+=i[p];var u=l.length-3,h=null,b=this.matchMonth(t),m=this.matchDayPeriod(t,e),f="0"===t,g=(this.leadingZero||{})[e]||0;f?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(p=Math.max(0,u);p<=l.length;p++){var v=n?t:l.substring(p)+t;if("S"===e&&n)v=Array(o.match(/S+(\1)/)[0].length).join("0")+v;var y=parseInt(v,10);if(!(h=this.intl.parseDate(s+v+d,this.format))&&!isNaN(y)&&!isNaN(parseInt(t,10))){if("M"===e&&!b){var _=y-1;_>-1&&_<12&&((h=Object(c.cloneDate)(this.value)).setMonth(_),h.getMonth()!==_&&(h=Object(c.lastDayOfMonth)(Object(c.addMonths)(h,-1))))}"y"===e&&(h=Object(c.createDate)(parseInt(v,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&&h.getDate()!==this.value.getDate()&&(h=Object(c.lastDayOfMonth)(Object(c.addMonths)(h,-1))))}if(h){var O=this.partPattern(a.partMap,e).pattern,j=this.intl.parseDate(""+s+this.peek(v,O)+d,this.format),k=this.patternLength(O)||O.length,C=g+(Nt(v)||t).length>=k,w=null===j||C;return this.shouldNormalizeCentury()&&(h=this.normalizeCentury(h)),this.value=h,this.setExisting(e,!0),{value:this.value,switchToNext:w}}}return b&&(h=this.intl.parseDate(s+b+d,this.format))?(this.value=h,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(h=this.intl.parseDate(s+m+d,this.format))?(this.value=h,{value:this.value,switchToNext:!0}):(f&&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(!V(e))return e;var t=function(e){return!V(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))}(e),n=this.getNormalizedCenturyBase(t);return A(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=Nt(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:Lt.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 zt;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}(),Gt=function(){function e(e,t,n,i,a,r,s,c){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=a,this.injector=r,this.localization=s,this.pickerService=c,this.focusableId="k-"+Object(l.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 o.EventEmitter,this.valueUpdate=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.arrow=at,this.arrowDirection=at.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=Y,this.maxValidator=Y,this.incompleteValidator=Y,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,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&&!W(e,this.min,this.max)||(this._value=Object(c.cloneDate)(e),this.valueUpdate.emit(Object(c.cloneDate)(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.wrap&&!V(this.pickerService)){var t=this.wrap.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},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(dt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?Et(this.min):Y,this.maxValidator=this.rangeValidation?Dt(this.max):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&Object(c.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(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular((function(){e.bindEvents()})))},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=Object(c.cloneDate)(e),this.updateElementValue(this.isActive)},e.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Object(c.cloneDate)(e),this.notify())},e.prototype.notify=function(){var e=this;this.ngZone.run((function(){e.onControlChange(Object(c.cloneDate)(e.value)),e.valueChange.emit(Object(c.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=at.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t,n,i,a=this.caret(),o=this.currentFormat[a[0]],r=(this.steps||{})[this.symbolsMap[o]]||1;if("S"===o&&!this.steps.millisecond){var s=(n=this.inputFormat,(i=n&&n.match(/S+(\1)/))?i[0].length:0);t=s,r=Math.pow(10,3-t)}this.kendoDate.modifyPart(o,e*r),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(o),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=V(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,Object(l.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(),Object(l.hasObservers)(this.onBlur)||I(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 Ht(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&&V(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&&(Object(l.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(Object(o.isDevMode)()&&!q(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(Object(o.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=U(e,this.min,this.max);this.autoCorrect&&!Object(c.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||Mt.test(t.type),time:i||At.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;V(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.element.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!==l.Keys.Tab)if(e.keyCode!==l.Keys.Backspace){switch(e.keyCode){case l.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case l.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case l.Keys.ArrowRight:this.switchDateSegment(1);break;case l.Keys.ArrowLeft:this.switchDateSegment(-1);break;case l.Keys.Home:this.selectNearestSegment(0);break;case l.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=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),c=[];if(r===s&&i>0)return c.push([t[i-1],s[i-1]]),c;if(0===r.indexOf(s)&&(0===s.length||t[s.length-1]!==t[s.length])){var l="";1===s.length&&c.push([t[0],s[0]]);for(var d=s.length;d<r.length;d++)t[d]!==l&&"_"!==t[d]&&(l=t[d],c.push([l,""]));return c}if(0===s.indexOf(r)||"_"===t[i-1]){var p=t[0];for(d=Math.max(0,r.length-1);d<t.length;d++)if("_"!==t[d]){p=t[d];break}return[[p,s[i-1]]]}return" "===s[s.length-1]||s[s.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],s[i-1]]]}(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1],n=!1;if(!t){for(var i=0;i<e.length;i++)n=this.kendoDate.parsePart(e[i][0],e[i][1],this.resetSegmentValue).switchToNext;var a=this.kendoDate.getDateObject();this.value&&a&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(F(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&&(V(this.ngControl)&&!V(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))):V(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hasPopup",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueUpdate",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.ViewChild)("dateInput",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"dateInput",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrap",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrap",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-dateinput"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"wrapperClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:s.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},s.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 <span class="k-dateinput-wrap" #wrap>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input"\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-select" (mousedown)="$event.preventDefault()">\n <span\n class="k-link k-link-increase"\n [class.k-state-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-icon k-i-arrow-n"></span>\n </span>\n <span\n class="k-link k-link-decrease"\n (click)="handleButtonClick(-1)"\n [class.k-state-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-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(a.__param)(7,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[o.ChangeDetectorRef,p.IntlService,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,s.LocalizationService,Tt])],e)}(),Wt=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Kt=new o.InjectionToken("dateinputs-touch-enabled"),qt=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}},Ut=function(){function e(e,t,n,i,a,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=r,this.injector=s,this.pickerService=p,this.disabledDatesService=u,this.touchEnabled=h,this.focusableId="k-"+Object(l.guid)(),this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=Object(c.cloneDate)(S),this.max=Object(c.cloneDate)(T),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 o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(l.guid)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesValidateFn=Y,this.incompleteValidator=Y,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],Object(d.validatePackage)(g),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=Object(c.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,"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-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},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&&Object(l.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(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.disabledDatesValidateFn=this.disabledDatesValidation?qt(this.disabledDatesService.isDateDisabled):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,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=Object(c.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(Object(c.cloneDate)(e)),this.valueChange.emit(Object(c.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?F(e,this.value):e},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n===l.Keys.Escape&&(this.show=!1),t&&(n!==l.Keys.ArrowDown||this.show||(this.show=!0),n===l.Keys.ArrowUp&&(this.show=!1)),n===l.Keys.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)},e.prototype.togglePopup=function(e){var t=new Wt;!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(Object(o.isDevMode)()&&!q(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(Object(o.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.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),X()&&(this.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(l.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&&P(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(Object(l.hasObservers)(this.onBlur)||this.show&&Object(l.hasObservers)(this.close)||I(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()}))},Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrapper",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!1}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("cellTemplate"),Object(a.__metadata)("design:type",yt),Object(a.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!1}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("monthCellTemplate"),Object(a.__metadata)("design:type",_t),Object(a.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!1}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("yearCellTemplate"),Object(a.__metadata)("design:type",Ot),Object(a.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!1}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("decadeCellTemplate"),Object(a.__metadata)("design:type",jt),Object(a.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!1}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("centuryCellTemplate"),Object(a.__metadata)("design:type",kt),Object(a.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!1}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.Input)("weekNumberTemplate"),Object(a.__metadata)("design:type",Ct),Object(a.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!1}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.Input)("headerTitleTemplate"),Object(a.__metadata)("design:type",wt),Object(a.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(St,{static:!1}),Object(a.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(a.__decorate)([Object(o.Input)("navigationItemTemplate"),Object(a.__metadata)("design:type",St),Object(a.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-datepicker"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},s.LocalizationService,Tt,ft,{provide:s.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 <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\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 [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="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-icon k-i-calendar"></span>\n </span>\n </span>\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 '}),Object(a.__param)(9,Object(o.Optional)()),Object(a.__param)(9,Object(o.Inject)(Kt)),Object(a.__metadata)("design:paramtypes",[o.NgZone,s.LocalizationService,o.ChangeDetectorRef,b.PopupService,o.ElementRef,o.Renderer2,o.Injector,Tt,ft,Boolean])],e)}(),Zt="dayperiod",$t="hour",Yt="millisecond",Xt="minute",Qt="second",Jt=new RegExp($t+"|"+Xt+"|"+Qt+"|"+Yt+"|"+Zt+"|literal"),en=function(){function e(e,t,n,i,a,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=r,this.injector=s,this.pickerService=p,this.intl=u,this.touchEnabled=h,this.focusableId="k-"+Object(l.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 o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(l.guid)(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=Y,this.incompleteValidator=Y,this._min=Object(c.cloneDate)(E),this._max=Object(c.cloneDate)(D),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],Object(d.validatePackage)(g),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=Object(c.cloneDate)(e||E)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=Object(c.cloneDate)(e||D)},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=Object(c.cloneDate)(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-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},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&&Object(l.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(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngOnChanges=function(e){var t,n;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(t=this.min,n=this.max,function(e){if(!t||!n||!e.value)return null;var i={timeRangeError:{maxValue:n,minValue:t,value:e.value}};return K(e.value,t,n)?null:i}):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,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!==l.Keys.Escape?t&&(n===l.Keys.ArrowUp&&(this.show=!1),n!==l.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(c.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(Object(c.isEqual)(this.value,e))return this.focusInput(),void(this.show=!1);this.value=Object(c.cloneDate)(e),this.zone.run((function(){t.focusInput(),t.show=!1,t.onControlChange(Object(c.cloneDate)(e)),t.valueChange.emit(Object(c.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 F(w,e)},e.prototype.mergeTime=function(e){return this.value&&e?F(this.value,e):e},e.prototype.togglePopup=function(e){var t=new Wt;!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(Object(o.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(Object(o.isDevMode)()&&this.intl.splitDateFormat(this.format).some((function(e){return!Jt.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.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),X()&&(this.windowBlurSubscription=Object(u.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,Object(l.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&P(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(Object(l.hasObservers)(this.onBlur)||this.show&&Object(l.hasObservers)(this.close)||I(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()}))},Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!1}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!1}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrapper",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-timepicker"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.timepicker"},Tt],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 <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\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 [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="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-icon k-i-clock"></span>\n </span>\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 </span>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(9,Object(o.Optional)()),Object(a.__param)(9,Object(o.Inject)(Kt)),Object(a.__metadata)("design:paramtypes",[o.NgZone,s.LocalizationService,o.ChangeDetectorRef,b.PopupService,o.ElementRef,o.Renderer2,o.Injector,Tt,p.IntlService,Boolean])],e)}(),tn=new RegExp($t+"|"+Xt+"|"+Qt+"|"+Zt+"|literal"),nn=function(){function e(e,t,n,i,a,r,s,p,h,b){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.host=r,this.touchEnabled=s,this.localization=p,this.disabledDatesService=h,this.renderer=b,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+Object(l.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 o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=Object(c.cloneDate)(E),this.timeSelectorMax=Object(c.cloneDate)(D),this.calendarValue=null,this.calendarMin=Object(c.cloneDate)(S),this.calendarMax=le(T),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=ce(S,E),this._max=ce(T,D),this._isActive=!1,this.onControlTouched=Y,this.onControlChange=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesValidateFn=Y,this.incompleteValidator=Y,this.subscriptions=new u.Subscription,Object(d.validatePackage)(g)}var t;return t=e,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=Object(c.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(e)&&(this._min=Object(c.cloneDate)(e),this.calendarMin=Object(c.getDate)(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){V(e)&&(this._max=Object(c.cloneDate)(e),this.calendarMax=le(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return V(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-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),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,"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(this.calendar)||V(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(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(Object(h.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))),X()&&this.subscriptions.add(this.ngZone.runOutsideAngular((function(){return Object(u.fromEvent)(window,"blur").subscribe(e.handleCancel.bind(e))})))},e.prototype.ngOnChanges=function(e){(V(e.min)||V(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.disabledDatesValidateFn=this.disabledDatesValidation?qt(this.disabledDatesService.isDateDisabled):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,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(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(this.value)&&this.input.isEmpty()},e.prototype.handleIconClick=function(e){var t=this;if(!this.disabled&&!this.readonly){e.preventDefault();var n=!this.isOpen||Object(l.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,Object(l.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.host.nativeElement.classList.contains("ng-untouched")||Object(l.hasObservers)(this.onBlur)||this.isOpen&&Object(l.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&&(Object(c.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=ce(this.calendar.value,this.timeSelector.current),n=!Object(c.isEqual)(this.value,t)||Object(l.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=Object(l.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&&l.Keys.ArrowUp:case l.Keys.Escape:this.handleCancel();break;case!this.isOpen&&a&&l.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case a&&l.Keys.ArrowRight:this.changeActiveTab("time");break;case a&&l.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&V(this.calendarValue)&&l.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(a.nextElementSibling)&&!a.nextElementSibling.disabled;n!==l.Keys.Tab||i||o||(this.input.focus(),this.handleCancel())},e.prototype.handleBackTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey;n===l.Keys.Tab&&i&&this.input.focus()},e.prototype.preventMouseDown=function(e){e.preventDefault()},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&V(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(Object(o.isDevMode)()&&!q(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?tn.test(i.type):tn.test(e.type)},e.prototype.togglePopup=function(e){if(e!==this.isOpen){var t=new Wt;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){Object(c.isEqual)(this.value,e)||(this.value=Object(c.cloneDate)(e),this.onControlChange(Object(c.cloneDate)(e)),this.valueChange.emit(Object(c.cloneDate)(e)))},e.prototype.focusTargetInComponent=function(e){if(!V(e))return!1;var t=e.relatedTarget||document.activeElement,n=V(this.popupRef)&&this.popupRef.popupElement.contains(t),i=this.wrapper.nativeElement.contains(t);return n||i},e.prototype.setTimeSelectorMinMax=function(e){var t=V(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.min));this.timeSelectorMin=Object(c.cloneDate)(t?this.min:E);var n=V(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.max));this.timeSelectorMax=Object(c.cloneDate)(n?this.max:D)},e.prototype.setCalendarValue=function(e){var t=V(e)&&W(e,this.calendarMin,this.calendarMax);this.calendarValue=t?Object(c.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()}))},Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-datetimepicker"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"defaultTab",null),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!1}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!1}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!1}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!1}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!1}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!1}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!1}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("popupTemplate",{read:o.TemplateRef,static:!0}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=Object(a.__decorate)([Object(o.Component)({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:o.ChangeDetectionStrategy.OnPush,providers:[Tt,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.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 <span\n #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\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 >\n </kendo-dateinput>\n <span class="k-select"\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-link k-link-date">\n <span\n class="k-icon"\n [class.k-i-calendar]="activeTab === \'date\'"\n [class.k-i-clock]="activeTab === \'time\'"\n >\n </span>\n </span>\n </span>\n </span>\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-date-tab"\n [class.k-state-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-time-tab"\n [class.k-state-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 [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-time-accept k-button k-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 '}),Object(a.__param)(6,Object(o.Inject)(Kt)),Object(a.__metadata)("design:paramtypes",[b.PopupService,p.IntlService,o.ChangeDetectorRef,Tt,o.NgZone,o.ElementRef,Boolean,s.LocalizationService,ft,o.Renderer2])],e)}(),an=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=Q(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),on=function(){function e(e,t,n,i,a,r){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=r,this.activeView=j.month,this.isActive=!0,this.min=new Date(S),this.max=new Date(T),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.cellEnter=new o.EventEmitter,this.cellLeave=new o.EventEmitter,this.activeDateChange=new o.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===j.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===j.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===j.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===j.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=ee(e,"activeView"),a=this.views>0&&ee(e,"views");!i&&this.isInDates(t)&&!a&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=Object(c.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===j.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,a=n.querySelector("table"),o=parseFloat(getComputedStyle(n).width),r=parseFloat(getComputedStyle(a).width);this.renderer.setStyle(n,"width",o+"px"),this.renderer.setStyle(n,"overflow","visible"),e===i.NextView?this.nextAnimationDate=Object(c.cloneDate)(this.dates[0]):this.prevAnimationDate=Object(c.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",o+"px")}));var s=a.getBoundingClientRect(),l=parseFloat(getComputedStyle(n).columnGap),d=e===i.NextView?"translateX(0)":"translateX(-"+(s.width+l)+"px)",p=e===i.NextView?"translateX(-"+(s.width+l)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:d},{transform:p}],{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&&Object(l.isDocumentAvailable)()&&V(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=Object(c.cloneDate)(this.dates[0]),this.focusedDate=Object(c.cloneDate)(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Object(c.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 U(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)},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellEnter",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellLeave",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-view"),Object(o.HostBinding)("class.k-hstack"),Object(o.HostBinding)("class.k-align-items-start"),Object(o.HostBinding)("class.k-justify-content-center"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-monthview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-yearview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-decadeview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-centuryview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-horizontal",template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\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 '}),Object(a.__metadata)("design:paramtypes",[Ee,p.IntlService,an,o.ChangeDetectorRef,o.ElementRef,o.Renderer2])],e)}(),rn=function(){return null},sn=function(e){return V(e)?function(t){if(!(V(t)&&V(t.start)&&V(t.end))||t.start>t.end)return null;var n=function(e,t,n){if(!(e&&t&&n)||e>t)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=Object(c.addDays)(a,1);return i}(t.start,t.end,e),i={disabledDatesInRange:n};return n.length?i:null}:rn},cn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",ln={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return pn}))},dn={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return pn}))},pn=function(){function e(e,t,n,a,r,s,c,d){this.bus=e,this.element=t,this.navigator=n,this.renderer=a,this.cdr=r,this.zone=s,this.disabledDatesService=c,this.selectionService=d,this.id=Object(l.guid)(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new o.EventEmitter,this.navigate=new o.EventEmitter,this.cellEnter=new o.EventEmitter,this.cellLeave=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellUID=Object(l.guid)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=i.PrevView,this.nextView=i.NextView,this.selectedDates=[],this._min=new Date(S),this._max=new Date(T),this._focusedDate=$(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesRangeValidateFn=Y,this.subscriptions=new u.Subscription,this.setClasses(t.nativeElement)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||$()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(T)},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 V(e)})).map((function(e){return Object(c.cloneDate)(e)})):Object(c.cloneDate)(e);var t=[].concat(e).filter((function(e){return V(e)})).map((function(e){return Object(c.cloneDate)(e)}));if(!se(t,this.selectedDates)){var n=ne(t);this.rangePivot=Object(c.cloneDate)(n),this.focusedDate=Object(c.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",{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,"activeViewEnum",{get:function(){var e=j[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return j[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return j[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetRole",{get:function(){return"grid"},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.handleBlur=function(){this.onControlTouched(),this.isActive=!1,this.isHovered=!1},e.prototype.handleFocus=function(){this.isActive=!0},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){e.keyCode===l.Keys.Enter&&this.performSelection(this.focusedDate,e);var t=U(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(c.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=j[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),te(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=U(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?sn(this.disabledDatesService.isDateDisabled):Y,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.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&&se(i,this.selectedDates);this.disabled||a||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map((function(e){return Object(c.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=Object(c.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 j.month:return this.monthCellTemplate||this.cellTemplate;case j.year:return this.yearCellTemplate;case j.decade:return this.decadeCellTemplate;case j.century:return this.centuryCellTemplate;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=j[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitCellEvent=function(e,t){Object(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:ne(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(Object(o.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(Object(o.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+cn+" 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 "+cn+" 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?Object(c.cloneDate)(ne(e)):e.map((function(e){return Object(c.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})},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"navigate",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellEnter",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellLeave",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!0}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("cellTemplate"),Object(a.__metadata)("design:type",yt),Object(a.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!0}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("monthCellTemplate"),Object(a.__metadata)("design:type",_t),Object(a.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!0}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("yearCellTemplate"),Object(a.__metadata)("design:type",Ot),Object(a.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!0}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("decadeCellTemplate"),Object(a.__metadata)("design:type",jt),Object(a.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!0}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("centuryCellTemplate"),Object(a.__metadata)("design:type",kt),Object(a.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!0}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.Input)("weekNumberTemplate"),Object(a.__metadata)("design:type",Ct),Object(a.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!0}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.Input)("headerTitleTemplate"),Object(a.__metadata)("design:type",wt),Object(a.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(a.__decorate)([Object(o.ViewChild)(on,{static:!1}),Object(a.__metadata)("design:type",on)],e.prototype,"viewList",void 0),Object(a.__decorate)([Object(o.HostBinding)("attr.id"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(a.__decorate)([Object(o.HostBinding)("attr.role"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(a.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(a.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(a.__decorate)([Object(o.HostBinding)("attr.aria-activedescendant"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),Object(a.__decorate)([Object(o.HostListener)("blur"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleBlur",null),Object(a.__decorate)([Object(o.HostListener)("focus"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleFocus",null),Object(a.__decorate)([Object(o.HostListener)("mouseenter"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),Object(a.__decorate)([Object(o.HostListener)("mouseleave"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),Object(a.__decorate)([Object(o.HostListener)("mousedown",["$event"]),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Object]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleMousedown",null),Object(a.__decorate)([Object(o.HostListener)("click"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleClick",null),Object(a.__decorate)([Object(o.HostListener)("keydown",["$event"]),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Object]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"keydown",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[Ee,ln,dn,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},bt,gt],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplate?.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 >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || isHovered"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.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 '}),Object(a.__metadata)("design:paramtypes",[Ee,o.ElementRef,bt,o.Renderer2,o.ChangeDetectorRef,o.NgZone,ft,gt])],e)}(),un=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangePopupTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),hn=function(e){return e&&e.isActive||!1},bn=function(){function e(){this.activeRangeEnd$=new u.BehaviorSubject(null),this.focusedDate$=new u.BehaviorSubject(null),this.endInput$=new u.BehaviorSubject(null),this.startInput$=new u.BehaviorSubject(null),this.dateRangePopup$=new u.BehaviorSubject(null),this.range$=new u.BehaviorSubject(C)}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=hn(e),n=hn(this.startInput$.value),i=hn(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){Object(c.isEqual)(this.focusedDate$.value,e)||this.focusedDate$.next(e)},e.prototype.setRange=function(e){void 0===e&&(e=C),this.range$.next(e)},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),mn=function(){function e(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popupUID=Object(l.guid)(),this.calendarSubscriptions=new u.Subscription,this.popupSubscriptions=new u.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 Wt;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}))),X()&&this.zone.runOutsideAngular((function(){return e.windowBlurSubscription=Object(u.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=Object(u.merge)(e.contentCalendar.changes,e.viewCalendar.changes).pipe(Object(h.filter)((function(e){return e&&e.first})),Object(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!(!Object(l.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&&(Object(l.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===l.Keys.Escape||n&&i===l.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=Object(u.fromEvent)(n,"blur").subscribe((function(){return t.onBlur.emit()})),this.focusSubscription=Object(u.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];V(this.popupSubscriptions)||(this.popupSubscriptions=new u.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 Object(u.fromEvent)(a,"keydown").subscribe(t.handleKeydown.bind(t))})),Object(u.fromEvent)(a,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),o.subscribe((function(){return t.cancelPopup()})))}},e.prototype.destroyPopup=function(){V(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),V(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!1}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("defaultTemplate",{static:!1}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"defaultTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(un,{static:!1}),Object(a.__metadata)("design:type",un)],e.prototype,"contentTemplate",void 0),Object(a.__decorate)([Object(o.ViewChildren)(pn),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"viewCalendar",void 0),Object(a.__decorate)([Object(o.ContentChildren)(pn),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"contentCalendar",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"appendTo",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),e=Object(a.__decorate)([Object(o.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 "}),Object(a.__param)(4,Object(o.Optional)()),Object(a.__param)(4,Object(o.Inject)(s.RTL)),Object(a.__metadata)("design:paramtypes",[b.PopupService,bn,o.ChangeDetectorRef,o.NgZone,Boolean])],e)}(),fn=function(){function e(){this.showDefault=!1,Object(d.validatePackage)(g)}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()},Object(a.__decorate)([Object(o.ContentChildren)(mn),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"contentPopup",void 0),e=Object(a.__decorate)([Object(o.Component)({providers:[bn],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),Object(a.__metadata)("design:paramtypes",[])],e)}(),gn=function(){function e(e,t,n,i,a,o){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=o,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new u.Subscription,this.subscriptions=new u.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 V(e)&&V(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(Object(h.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)})),Object(u.fromEvent)(this.element.nativeElement,"click").subscribe((function(){return e.activate()})),Object(u.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 u.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===l.Keys.Escape?this.dateRangeService.cancelPopup():t&&n===l.Keys.ArrowDown&&this.dateRangeService.activatePopup()},e.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(Object(c.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.querySelector(".k-dateinput-wrap"),"k-state-focused")},e}(),vn=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 Object(a.__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(!W(e,i,a))return null;var o=(this.rangeService.selectionRange||C).start;return this.autoCorrectOn===t&&V(e)&&e<o?oe(e):{start:o,end:Object(c.cloneDate)(e)}},t.prototype.updateInputValue=function(e){var t=(e||C).end,n=this.dateInput,i=n.min,a=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&W(t,i,a)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangeEndInput]"}),Object(a.__metadata)("design:paramtypes",[bn,Gt,o.ElementRef,o.Renderer2,o.NgZone])],t)}(gn),yn=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 Object(a.__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(!W(e,i,a))return null;var o=(this.rangeService.selectionRange||C).end;return this.autoCorrectOn===t&&o&&e>o?oe(e):{start:Object(c.cloneDate)(e),end:o}},t.prototype.updateInputValue=function(e){var t=(e||C).start,n=this.dateInput,i=n.min,a=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&W(t,i,a)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangeStartInput]"}),Object(a.__metadata)("design:paramtypes",[bn,Gt,o.ElementRef,o.Renderer2,o.NgZone])],t)}(gn),_n=function(){function e(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new o.EventEmitter,this.selectionRangeChange=new o.EventEmitter,this.calendarSubscriptions=new u.Subscription,this.dateRangeService=this.dateRangeService||new bn,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),re(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||C},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.calendar,n=this.dateRangeService;t.min=ae(n.min,t.min),t.max=ae(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){Object(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)})),Object(u.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 re(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(oe(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?oe(e):this.updateRange(e);re(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||C,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)},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"autoCorrectOn",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangeSelection]"}),Object(a.__param)(4,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[pn,o.ChangeDetectorRef,o.ElementRef,o.Renderer2,bn])],e)}(),On=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}(),jn=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 '"+(((n=t).name||typeof n)+"'."))}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){if(Object(l.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 On(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 o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"kForOf",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"kForTrackBy",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e.prototype,"kForTemplate",null),e=Object(a.__decorate)([Object(o.Directive)({selector:"[kFor][kForOf]"}),Object(a.__metadata)("design:paramtypes",[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers])],e)}();var kn,Cn,wn,Sn=function(){function e(e,t,n,i,a){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=a,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(S),this.max=new Date(T),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new o.EventEmitter,this.prevButtonClick=new o.EventEmitter,this.nextButtonClick=new o.EventEmitter,this.getComponentClass=!0,this.subscriptions=new u.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=j[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($(),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=$(),t=W(e,Object(c.getDate)(this.min),Object(c.getDate)(this.max)),n=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!n,this.cdr.markForCheck()},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"currentDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"rangeLength",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"templateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"prevButtonClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"nextButtonClick",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-header"),Object(o.HostBinding)("class.k-hstack"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=Object(a.__decorate)([Object(o.Component)({selector:"kendo-calendar-header",template:'\n <span class="k-button k-flat k-title k-calendar-title" [class.k-state-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-flat 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-state-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-flat 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 '}),Object(a.__metadata)("design:paramtypes",[Ee,o.ChangeDetectorRef,s.LocalizationService,p.IntlService,ft])],e)}(),Tn=function(){function e(e,t,n,i,a,r,s){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=r,this.disabledDatesService=s,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.cellEnter=new o.EventEmitter,this.cellLeave=new o.EventEmitter,this.colSpan=0,this.subscriptions=new u.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===j.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===j.month},e.prototype.shouldRenderCellContent=function(e){return V(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?Object(c.weekInYear)(e,this.intl.firstDay()):null},e.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;var n=Object(c.weekInYear)(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:Object(c.cloneDate)(t.value)}},e.prototype.getStyles=function(e){var t,n=e.isRangeEnd,i=e.isRangeStart,a="end"===this.activeRangeEnd&&n,o="start"===this.activeRangeEnd&&i;return t={"k-range-end":!e.isOtherMonth&&n,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-state-active":o||a,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||i||n),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(t).reduce((function(e,n){return t[n]?e.concat(n):e}),[]).join(" ")},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=ne(this.selectedDates)||$(),t=F(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 lt(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]},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"viewDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"viewIndex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"templateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellEnter",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellLeave",void 0),e=Object(a.__decorate)([Object(o.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 '}),Object(a.__metadata)("design:paramtypes",[Ee,p.IntlService,o.ChangeDetectorRef,o.ElementRef,o.NgZone,o.Renderer2,ft])],e)}(),En=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[jn,Sn,Tn],exports:[jn,Sn,Tn],imports:[m.CommonModule,l.EventsModule]})],e)}(),Dn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[yt,_t,Ot,jt,kt,Ct,wt,St],exports:[yt,_t,Ot,jt,kt,Ct,wt,St]})],e)}(),In=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),xn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:In,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(In),Pn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:In,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(In),Vn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[on,xn,Pn,pn],exports:[on,xn,Pn,pn,En,Dn],imports:[m.CommonModule,En,p.IntlModule,Dn,b.PopupModule],providers:[bt,ue,me,ve,Oe,an]})],e)}(),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),Bn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Rn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Rn),Fn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Rn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Rn),Mn=[ct],An=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Mn],exports:[Mn],imports:[m.CommonModule]})],e)}(),Ln=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Bt,pt,Fn,Bn,ut],exports:[Bt,pt,Fn,Bn,ut,En,Dn],imports:[m.CommonModule,En,Vn,p.IntlModule,Dn,An,l.EventsModule,l.ResizeSensorModule],providers:[Ye,ue,me,ve,Oe,an]})],e)}(),Nn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({exports:[Ln,Vn],imports:[Ln,Vn]})],e)}(),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(s.ComponentMessages),Hn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:zn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Gn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:zn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Wn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Gt,Gn,Hn],exports:[Gt,Gn,Hn],imports:[m.CommonModule,p.IntlModule,l.EventsModule]})],e)}(),Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),qn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Kn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Kn),Un=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Kn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Kn),Zn=f.touchEnabled,$n=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Ut,Un,qn],exports:[Ut,Un,qn,Dn],imports:[m.CommonModule,Wn,Ln,p.IntlModule,b.PopupModule,Dn,l.EventsModule],providers:[{provide:Kt,useValue:Zn}]})],e)}(),Yn=[fn,mn,un,_n,yn,vn],Xn=[Vn,Wn,b.PopupModule,l.EventsModule],Qn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Yn],exports:[Yn],imports:[m.CommonModule,Xn]})],e)}(),Jn=J("div"),ei=J("ul"),ti=J("li"),ni=Object(l.isDocumentAvailable)()?Jn([Jn([Jn([ei([ti("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,ii=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(Object(l.isDocumentAvailable)()){var t=e&&e.querySelector(".k-time-list-container")||document.body,n=t.appendChild(ni);this.timeListHeight=n.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=n.querySelector("li").getBoundingClientRect().height,t.removeChild(n)}},e.prototype.isActive=function(e){return!(!Object(l.isDocumentAvailable)()||!e)&&(e.nativeElement||e)===document.activeElement},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),ai=(kn=24,function(e){return e%kn}),oi=function(e,t){return ai(24+e-t)},ri=function(e){return function(t,n){return!n||Object(c.getDate)(t).getTime()===Object(c.getDate)(n).getTime()?t:L(t,e)}},si=ri(0),ci=ri(23),li=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return L(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,c=e.max,l=void 0===c?this.max:c,d=e.part,p=e.step,u=void 0===p?this.step:p;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){var n=L(w,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=s,this.max=l,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 ai(t+e*n)}),r=G(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!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[si(e,n),ci(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(oi(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(L(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return oi(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=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),di=function(e){return function(t){return t%e}}(60),pi=function(e,t){return di(60+e-t)},ui=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:N(t,e)}},hi=ui(0),bi=ui(59),mi=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return N(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,c=e.part,l=e.step,d=void 0===l?this.step:l;this.insertUndividedMax=i,this.toListItem=function(e){var n=N(w,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=o,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return di(t+e*n)}),r=G(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!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[hi(e,n),bi(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(pi(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(N(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return pi(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=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),fi=function(e){return function(t){return t%e}}(60),gi=function(e,t){return fi(60+e-t)},vi=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()?t:z(t,e)}},yi=vi(0),_i=vi(59),Oi=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return z(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,c=e.part,l=e.step,d=void 0===l?this.step:l;this.insertUndividedMax=i,this.toListItem=function(e){var n=z(w,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=o,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return fi(t+e*n)}),r=G(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!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[yi(e,n),_i(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 gi(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(gi(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(z(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=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),ji=function(e){return function(t){return t%e}}(1e3),ki=function(e,t){return ji(1e3+e-t)},Ci=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()&&t.getSeconds()===n.getSeconds()?t:H(t,e)}},wi=Ci(0),Si=Ci(999),Ti=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return H(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,c=e.step,l=void 0===c?this.step:c;this.insertUndividedMax=i,this.toListItem=function(e){var n=H(w,e);return{text:t.intl.formatDate(n,"SSS"),value:n}},this.min=o,this.max=s,this.step=l},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return ji(t+e*n)}),r=G(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!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[wi(e,n),Si(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 ki(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(ki(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(H(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=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Ei=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t),n},Di=function(e){return null!==e&&e<12},Ii=function(e,t,n){return!t&&!n||e>=t&&e<=n},xi=function(e,t,n){return!t&&!n||e>=t||e<=n},Pi=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=Di(n),a=Di(t.getHours());if(i&&a||!i&&!a)return e;var o=this.normalizedRange(),r=o[0],s=o[1],c=void 0===s?24:s,l=n+(a?-12:12);return Ei(e,Math.min(Math.max(r,l),c||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],s=this.intl.dateFormatNames(t);return Di(o)&&i.push({text:s.am,value:Ei(this.min,o)}),null!==(n=r)&&(!n||n>11)&&i.push({text:s.pm,value:Ei(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]?xi:Ii)(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=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Vi=function(){return null},Ri={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]}},Bi=((Cn={})[Zt]=Pi,Cn[$t]=li,Cn[Xt]=mi,Cn[Qt]=Oi,Cn[Yt]=Ti,Cn),Fi=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=Object(c.cloneDate)(w),this.max=Object(c.cloneDate)(D),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(Bi[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=lt(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=(Ri[e.keyCode]||Vi)(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(Object(h.debounceTime)(100),Object(h.map)((function(e){return e.target.scrollTop})),Object(h.map)((function(t){return e.itemOffset(t)})),Object(h.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)))},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"part",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.ViewChild)(ct,{static:!0}),Object(a.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(a.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-time-list"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),e=Object(a.__decorate)([Object(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 '}),Object(a.__metadata)("design:paramtypes",[o.ElementRef,o.Injector,ii,o.Renderer2,o.NgZone])],e)}(),Mi=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},Ai=function(e,t){return Mi(e,t)&&e.getSeconds()===t.getSeconds()},Li=[{type:$t,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Xt,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return Mi(e,t)?t.getMinutes():0}},{type:Qt,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Ai(e,t)?t.getSeconds():0}},{type:Yt,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return function(e,t){return Ai(e,t)&&e.getMilliseconds()===t.getMilliseconds()}(e,t)?t.getMilliseconds():0}}],Ni=function(e){return function(t){return e.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}),{})}(t)))}}(Li),zi=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 c=s%n;return o-c+(c>n/2?n:0)}}(e.getter,e.minGetter,n):e.getter}))}}(Li),Hi=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},Gi=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"}(wn||(wn={}));var Wi=function(){function e(e,t,n,i,a,r,s,l){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=r,this.renderer=s,this.pickerService=l,this.componentClass=!0,this.format="t",this.min=Object(c.cloneDate)(E),this.max=Object(c.cloneDate)(D),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=function(e,t,n){if(!e||!t||!n)return e;var i=M(e,t,n),a=i.candidateValue,o=i.minValue,r=i.maxValue;return a<o?F(e,t):a>r?F(e,n):e}(this.snapTime(Object(c.cloneDate)(e||w),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.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(Object(c.cloneDate)(this.value||Object(c.getDate)(Z())),this.current))},e.prototype.handleNow=function(){this.current=Z(),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=P(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},e.prototype.containsElement=function(e){var t=this;return Boolean(dt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.partStep=function(e){return this.steps[e.type]||1},e.prototype.init=function(e){var t;e&&!ee(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hi(Ni(this.dateFormatParts))),e&&!ee(e,"steps")||(this.snapTime=(t=zi(this.steps),function(e,n){var i=Object(c.cloneDate)(e);return i.setHours.apply(i,t.map((function(e){return e(i,n)}))),i})),e&&!ee(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&K(Z(),this.min,this.max)},e.prototype.focusList=function(e){this.timeLists.length&&this.timeLists.reduce(Gi,[]).map((function(t){return e===wn.Right?t.next:t.prev})).map((function(e){return e&&e.focus()}))},e.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(Object(c.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=Hi(Ni(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,i=-1!==[l.Keys.ArrowLeft,l.Keys.ArrowRight].indexOf(t);V(this.pickerService)&&i&&n||(t!==l.Keys.Enter||this.hasActiveButton()?t!==l.Keys.ArrowLeft&&t!==l.Keys.ArrowRight||this.focusList(t===l.Keys.ArrowLeft?wn.Left:wn.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},Object(a.__decorate)([Object(o.ViewChild)("accept",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"accept",void 0),Object(a.__decorate)([Object(o.ViewChild)("cancel",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"cancel",void 0),Object(a.__decorate)([Object(o.ViewChild)("now",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"now",void 0),Object(a.__decorate)([Object(o.ViewChildren)(Fi),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"timeLists",void 0),Object(a.__decorate)([Object(o.ViewChildren)("listWrapper"),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"timeListWrappers",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-timeselector"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"setButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueReject",void 0),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[s.LocalizationService,{provide:s.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 class="k-button k-flat k-time-now" type="button"\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" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel" 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-time-accept k-button k-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 '}),Object(a.__param)(7,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[s.LocalizationService,o.ChangeDetectorRef,o.ElementRef,p.IntlService,ii,o.NgZone,o.Renderer2,Tt])],e)}(),Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"toggle",void 0),t}(s.ComponentMessages),qi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Ui=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Zi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),$i=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Yi=[qi,Fi,Ui,en,Zi,$i,Wi],Xi=[Wn,p.IntlModule,b.PopupModule,An,l.EventsModule],Qi=f.touchEnabled,Ji=[ii,li,mi,Oi,Ti,Pi,{provide:Kt,useValue:Qi}],ea=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Yi],exports:[Yi],imports:[m.CommonModule].concat(Xi),providers:Ji})],e)}(),ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"dateTab",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"dateTabLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"timeTab",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"timeTabLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),na=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:ta,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(ta),ia=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:ta,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(ta),aa=[nn,na,ia],oa=f.touchEnabled,ra=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:aa.slice(),exports:aa.concat([Dn]),imports:[m.CommonModule,p.IntlModule,Wn,Ln,ea,b.PopupModule,l.EventsModule,Dn],providers:[{provide:Kt,useValue:oa}]})],e)}(),sa=[Nn,Wn,$n,ea,Qn,ra],ca=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({exports:sa,imports:sa})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),r=n(15),s=n(12),c=n(11),l=function(){function e(e,t){this.dependencyDomService=e,this.mapper=t}return Object.defineProperty(e.prototype,"timelineRow",{set:function(e){c.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isMileStone=function(e){return!e.hasChildren&&o.isEqual(this.mapper.extractFromTask(e.data,"start"),this.mapper.extractFromTask(e.data,"end"))},i.__decorate([a.ViewChild("timelineRow",{static:!1}),i.__metadata("design:type",a.ElementRef),i.__metadata("design:paramtypes",[a.ElementRef])],e.prototype,"timelineRow",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"renderDependencyDragClues",void 0),e=i.__decorate([a.Component({selector:"[kendoGanttTasksTableBody]",template:'\n <tr #timelineRow *ngFor="let item of rows; let index = index">\n <td>\n <kendo-gantt-milestone-task\n *ngIf="isMileStone(item); else task"\n [dataItem]="item.data"\n [level]="item.level"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [isExpanded]="isExpanded"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,s.MappingService])],e)}();t.GanttTasksTableBodyComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(){}return i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),e=i.__decorate([a.Component({selector:"[kendoGanttHeaderTableBody]",template:'\n <tr>\n <td *ngFor="let item of groupSlots" [attr.colspan]="item.span" class="k-header">{{ item.text }}</td>\n </tr>\n\n <tr>\n <td *ngFor="let item of slots" [attr.colspan]="item.span" class="k-header" [attr.title]="item.text">{{ item.text }}</td>\n </tr>\n '})],e)}();t.GanttHeaderTableBodyComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(23),s=n(18),c=n(25),l=n(15),d=n(16),p=n(22),u=n(38),h=function(e){function t(t,n,i,a,o,r,s,c){var l=e.call(this,i,a,o,r,s,c)||this;return l.editService=t,l.touchEnabled=n,l}var n;return i.__extends(t,e),n=t,t.prototype.onTaskDelete=function(){this.editService.dataItem=this.dataItem,this.editService.taskDelete.next(this.dataItem)},i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],t.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],t.prototype,"taskTemplate",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-task",providers:[{provide:u.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-single"\n role="treeitem"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\n aria-hidden="true"\n >\n </div>\n <div class="k-task-content">\n <div class="k-task-template">\n <ng-container *ngIf="!taskContentTemplate; else taskContent">\n {{ mapper.extractFromTask(dataItem, \'title\') }}\n </ng-container>\n <ng-template\n #taskContent\n [ngTemplateOutlet]="taskContentTemplate"\n [ngTemplateOutletContext]="{ $implicit: dataItem }"\n >\n </ng-template>\n </div>\n <span\n class="k-task-actions"\n aria-hidden="true"\n >\n <span\n class="k-link k-task-delete"\n [kendoEventsOutsideAngular]="{\n click: onTaskDelete\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-close"></span>\n </span>\n </span>\n </div>\n </ng-container>\n <ng-template\n *ngIf="taskTemplate"\n [ngTemplateOutlet]="taskTemplate"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),i.__param(1,a.Inject(c.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[s.EditService,Boolean,o.MappingService,p.TimelineViewService,l.DependencyDomService,d.OptionChangesService,a.ChangeDetectorRef,r.NavigationService])],t)}(u.GanttTaskBase);t.GanttTaskComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(23),s=n(25),c=n(15),l=n(16),d=n(22),p=n(38),u=n(11),h=function(e){function t(t,n,i,a,o,r,s){var c=e.call(this,n,i,a,o,r,s)||this;return c.touchEnabled=t,c.summaryWrapperClass=!0,c}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=!u.isPresent(this.isExpanded)||this.isExpanded(this.dataItem);return String(e)},enumerable:!0,configurable:!0}),i.__decorate([a.HostBinding("class.k-summary-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"summaryWrapperClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],t.prototype,"template",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],t.prototype,"isExpanded",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-summary-task",providers:[{provide:p.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-level]="level + 1"\n >\n <div *ngIf="!template; else summaryTemplate"\n class="k-task-summary-progress"\n [style.width.px]="taskWidth">\n <div\n class="k-task-summary-complete"\n [style.width.px]="completionOverlayWidth"\n >\n </div>\n </div>\n <ng-template\n #summaryTemplate\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),i.__param(0,a.Inject(s.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[Boolean,o.MappingService,d.TimelineViewService,c.DependencyDomService,l.OptionChangesService,a.ChangeDetectorRef,r.NavigationService])],t)}(p.GanttTaskBase);t.GanttSummaryTaskComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(23),s=n(25),c=n(15),l=n(16),d=n(22),p=n(38),u=function(e){function t(t,n,i,a,o,r,s){var c=e.call(this,n,i,a,o,r,s)||this;return c.touchEnabled=t,c.milestoneWrapperClass=!0,c}var n;return i.__extends(t,e),n=t,i.__decorate([a.HostBinding("class.k-milestone-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"milestoneWrapperClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-milestone-task",providers:[{provide:p.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),i.__param(0,a.Inject(s.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[Boolean,o.MappingService,d.TimelineViewService,c.DependencyDomService,l.OptionChangesService,a.ChangeDetectorRef,r.NavigationService])],t)}(p.GanttTaskBase);t.GanttMilestoneTaskComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(19),r=function(){function e(e){this.gantt=e,this.context={},this.role="toolbar"}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this.context.position=this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbarTemplateRef",{get:function(){return this.gantt.toolbarTemplate?this.gantt.toolbarTemplate.templateRef:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderTemplate",{get:function(){var e=this.gantt.toolbarTemplate,t=e?e.position:null;return e&&("both"===t||t===this.position)},enumerable:!0,configurable:!0}),e.prototype.handleViewChange=function(e){this.gantt.changeActiveView(e)},i.__decorate([a.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showAddTask",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewSelector",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([a.Component({selector:"kendo-gantt-toolbar",template:'\n <ng-container *ngIf="!renderTemplate">\n <kendo-gantt-add-task *ngIf="showAddTask"></kendo-gantt-add-task>\n <span class="k-spacer k-toolbar-spacer"></span>\n <kendo-gantt-view-selector\n *ngIf="showViewSelector"\n [views]="gantt.viewTypes"\n [activeView]="gantt.activeView"\n (activeViewChange)="handleViewChange($event)"></kendo-gantt-view-selector>\n </ng-container>\n <ng-template\n *ngIf="renderTemplate"\n [ngTemplateOutlet]="toolbarTemplateRef"\n [ngTemplateOutletContext]="context"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[o.GanttComponent])],e)}();t.ToolbarComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=function(){function e(e){this.localizationService=e,this.hostClass=!0,this.activeView="week",this.activeViewChange=new a.EventEmitter}return e.prototype.onClick=function(e){e!==this.activeView&&this.activeViewChange.emit(e)},e.prototype.getViewTypeText=function(e){return this.localizationService.get(e+"ViewText")},i.__decorate([a.HostBinding("class.k-gantt-views-wrapper"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-view-selector",template:'\n <select\n class="k-dropdownlist k-picker k-rounded-md k-views-dropdown"\n aria-label="View Selector"\n [value]="activeView"\n (change)="activeViewChange.emit($event.target.value)">\n <option *ngFor="let view of views" [value]="view">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class="k-gantt-views" selection="single">\n <button *ngFor="let view of views"\n kendoButton\n type="button"\n [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.ViewSelectorComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(12),c=n(15),l=n(11),d=n(53),p=n(3),u=function(){function e(e,t,n,i,a){var s=this;this.polyline=e,this.zone=t,this.renderer=n,this.mapper=i,this.dependencyDomService=a,this.subscriptions=new o.Subscription,this.subscriptions.add(a.taskChanges.pipe(r.switchMap((function(e){return s.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){return s.updatePoints(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){l.isPresent(e.dependency)&&this.updatePoints(this.dependencyDomService.dependencyDomArgs)},e.prototype.updatePoints=function(e){var t=e.timelineRow,n=e.contentContainer,i=e.tasks;if(l.isPresent(t)&&l.isPresent(n)&&l.isPresent(i)&&0!==i.size&&i.has(this.mapper.extractFromDependency(this.dependency,"fromId"))&&i.has(this.mapper.extractFromDependency(this.dependency,"toId"))){var a=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"fromId")),n),o=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"toId")),n),r=p.isDocumentAvailable()?t.getBoundingClientRect().height:0,s=d.dependencyCoordinates(a,o,r,this.dependency.type,10,4);this.drawPoints(s)}else this.clearPoints()},e.prototype.clearPoints=function(){this.renderer.setAttribute(this.polyline.nativeElement,"points","")},e.prototype.drawPoints=function(e){if(l.isPresent(e)&&0!==e.length){var t=e.map((function(e){return e.left+","+e.top})).join(" ");this.renderer.setAttribute(this.polyline.nativeElement,"points",t)}else this.clearPoints()},i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"dependency",void 0),e=i.__decorate([a.Directive({selector:"[kendoGanttDependency]"}),i.__metadata("design:paramtypes",[a.ElementRef,a.NgZone,a.Renderer2,s.MappingService,c.DependencyDomService])],e)}();t.GanttDependencyDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(11),s=n(56),c=n(32),l=n(86),d=function(){function e(e,t,n){this.timelineScrollableContainer=e,this.scrollService=t,this.zone=n,this.subscriptions=new o.Subscription,this.subscriptions.add(this.scrollService.horizontalScroll.subscribe(this.scrollHorizontallyTo.bind(this))),this.subscriptions.add(this.scrollService.verticalScroll.subscribe(this.scrollVerticallyTo.bind(this))),this.subscriptions.add(this.scrollService.scrollCancel.subscribe(this.cancelScroll.bind(this)))}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.scrollHorizontallyTo=function(e){var t=this;this.zone.runOutsideAngular((function(){var n=t.timelineScrollableContainer.nativeElement,i=l.getViewportBoundaries(n);e<i.left+t.scrollSettings.threshold?t.horizontalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Horizontal)}),t.scrollSettings.interval):e>i.right-t.scrollSettings.threshold&&(t.horizontalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Horizontal)}),t.scrollSettings.interval))}))},e.prototype.scrollVerticallyTo=function(e){var t=this;this.zone.runOutsideAngular((function(){var n=t.timelineScrollableContainer.nativeElement,i=l.getViewportBoundaries(n);e<i.top+t.scrollSettings.threshold?t.verticalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Vertical)}),t.scrollSettings.interval):e>i.bottom-t.scrollSettings.threshold&&(t.verticalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Vertical)}),t.scrollSettings.interval))}))},e.prototype.cancelScroll=function(){r.isPresent(this.verticalScrollInterval)&&(clearInterval(this.verticalScrollInterval),this.verticalScrollInterval=null),r.isPresent(this.horizontalScrollInterval)&&(clearInterval(this.horizontalScrollInterval),this.horizontalScrollInterval=null)},i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"scrollSettings",void 0),e=i.__decorate([a.Directive({selector:"[kendoGanttTimelineScrollable]"}),i.__metadata("design:paramtypes",[a.ElementRef,c.TimelineScrollService,a.NgZone])],e)}();t.TimelineScrollableDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n(56),o=n(11),r=function(e,t){return Math.floor(e[t])<=0},s=function(e,t){var n=t===a.ScrollAxis.Horizontal?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight;return Math.ceil(e[t])>=n};t.scrollElement=function(e,t,n,c){if(o.isPresent(e)&&i.isDocumentAvailable())for(var l=e[c],d=t,p=0;l===e[c]&&(n!==a.ScrollDirection.Backwards||!r(e,c))&&(n!==a.ScrollDirection.Forward||!s(e,c))&&p<20;)e[c]+=d*n,d+=1,p+=1},t.getViewportBoundaries=function(e){var t=e.getBoundingClientRect(),n=Math.max(t.top,0),i=Math.max(t.left,0);return{top:n,bottom:n+Math.min(t.bottom,e.clientHeight),left:i,right:i+Math.min(t.right,e.clientWidth)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(15),r=n(24),s=n(16),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="day",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Component({selector:"kendo-gantt-timeline-day-view",template:"",providers:[{provide:r.ViewBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,o.DependencyDomService])],t)}(r.ViewBase);t.TimelineDayViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(15),r=n(24),s=n(16),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="week",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Component({selector:"kendo-gantt-timeline-week-view",template:"",providers:[{provide:r.ViewBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,o.DependencyDomService])],t)}(r.ViewBase);t.TimelineWeekViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(15),r=n(24),s=n(16),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="month",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Component({selector:"kendo-gantt-timeline-month-view",template:"",providers:[{provide:r.ViewBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,o.DependencyDomService])],t)}(r.ViewBase);t.TimelineMonthViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(12),s=n(20),c=n(18),l=function(){function e(e,t,n,i){this.mapper=e,this.editService=t,this.cdr=n,this.localizationService=i}return e.prototype.ngOnInit=function(){var e=this;this.editService.loadTasks(this.data).subscribe((function(t){e.loadedTasks=t}))},Object.defineProperty(e.prototype,"predecessors",{get:function(){return this.editService.predecessors},set:function(e){this.editService.predecessors=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"successors",{get:function(){return this.editService.successors},set:function(e){this.editService.successors=e},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.getDependencyType=function(e){return s.DependencyType[e]},e.prototype.handleEditingResult=function(e){this.editService.triggerEditEvent(e)},e.prototype.handleTaskDelete=function(){this.editService.taskDelete.next(this.editService.dataItem)},i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-edit-dialog",template:'\n <kendo-dialog\n [title]="getText(\'taskEditingDialogTitle\')"\n [width]="575"\n [height]="470"\n (close)="handleEditingResult(\'cancel\')">\n <kendo-dialog-messages\n [closeTitle]="getText(\'taskEditingDialogCloseTitle\')"></kendo-dialog-messages>\n\n <kendo-tabstrip [keepTabContent]="true" style="height: 345px;">\n <kendo-tabstrip-tab [title]="getText(\'taskEditingGeneralTabTitle\')" [selected]="true">\n <ng-template kendoTabContent>\n <kendo-gantt-task-fields></kendo-gantt-task-fields>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingPredecessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="predecessors"\n dependencyType="predecessor"\n >\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingSuccessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="successors"\n dependencyType="successor">\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n </kendo-tabstrip>\n\n <kendo-dialog-actions layout="normal">\n <button\n kendoButton\n [kendoEventsOutsideAngular]="{\n click: handleTaskDelete\n }"\n [scope]="this"\n >\n {{ getText(\'deleteButtonText\') }}\n </button>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleEditingResult(\'save\')">{{ getText(\'saveButtonText\') }}</button>\n <button kendoButton (click)="handleEditingResult(\'cancel\')">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[r.MappingService,c.EditService,a.ChangeDetectorRef,o.LocalizationService])],e)}();t.EditDialogComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(57),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-gantt-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(57),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:"[kendoGanttLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(18),s=function(){function e(e,t,n){this.localizationService=e,this.editService=t,this.ngZone=n,this.data=[{text:this.getText("addChildText"),type:"addChild"},{text:this.getText("addAboveText"),type:"addAbove"},{text:this.getText("addBelowText"),type:"addBelow"}],this.icon="plus"}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.handleOpen=function(e){this.editService.getSelectedItem()||e.preventDefault()},e.prototype.handleMouseClick=function(){var e=this;this.editService.getSelectedItem()||this.ngZone.run((function(){e.editService.addEvent.next({selectedItem:null,actionType:"addTask"})}))},e.prototype.handleItemClick=function(e){this.editService.addEvent.next({actionType:e.type,selectedItem:null})},i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-add-task",template:'\n <kendo-dropdownbutton\n [data]="data"\n [icon]="icon"\n [kendoEventsOutsideAngular]="{ click: handleMouseClick }"\n [scope]="this"\n (itemClick)="handleItemClick($event)"\n (open)="handleOpen($event)">\n {{ getText(\'addTaskText\') }}\n </kendo-dropdownbutton>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService,r.EditService,a.NgZone])],e)}();t.GanttAddTaskComponent=s},function(e,t){e.exports=g},function(e,t){e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(6),r=n(12),s=n(33),c=n(20),l=n(18),d=function(){function e(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n,this.dependenciesChange=new a.EventEmitter,this.selectedKeys=[],this.formGroups=new o.FormArray([]),this.dependencyTypes=this.getDependencyTypes()}return Object.defineProperty(e.prototype,"taskId",{get:function(){return this.editService.dataItem.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyIdField",{get:function(){return"predecessor"===this.dependencyType?"fromId":"toId"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(0===this.formGroups.controls.length){var t=this.mapper.dependencyFields;this.dependencies.forEach((function(n){var i,a=new o.FormGroup(((i={})[t.id]=new o.FormControl(e.mapper.extractFromDependency(n,"id")),i[t.fromId]=new o.FormControl(e.mapper.extractFromDependency(n,"fromId"),o.Validators.required),i[t.toId]=new o.FormControl(e.mapper.extractFromDependency(n,"toId"),o.Validators.required),i[t.type]=new o.FormControl(e.mapper.extractFromDependency(n,"type"),o.Validators.required),i));e.formGroups.push(a)}))}this.formGroups.valueChanges.subscribe((function(t){e.formGroups.controls.forEach((function(t){t.dirty&&e.editService.updateDependencies(t.value)})),e.dependenciesChange.emit(t)}))},e.prototype.getFormControl=function(e,t){return this.formGroups.controls.find((function(t,n){return n===e})).get(this.mapper.dependencyFields[t])},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.getDependencyTypes=function(){return Object.keys(c.DependencyType).filter((function(e){return"number"==typeof c.DependencyType[e]})).map((function(e){return{type:e,id:c.DependencyType[e]}}))},e.prototype.addHandler=function(){var e,t=this.mapper.dependencyFields,n=new o.FormGroup(((e={})[t.id]=new o.FormControl,e[t.fromId]=new o.FormControl("toId"===this.dependencyIdField?this.taskId:null,o.Validators.required),e[t.toId]=new o.FormControl("fromId"===this.dependencyIdField?this.taskId:null,o.Validators.required),e[t.type]=new o.FormControl(null,o.Validators.required),e));this.formGroups.push(n)},e.prototype.removeHandler=function(){var e=this.selectedKeys[0],t=this.formGroups.at(e).value;this.editService.deleteDependency(t),this.formGroups.removeAt(e)},i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"tasks",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"dependencyType",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dependenciesChange",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-dependencies-table",template:'\n <kendo-grid\n [data]="dependencies"\n [selectable]="{ mode: \'single\' }"\n [(selectedKeys)]="selectedKeys"\n kendoGridSelectBy\n [height]="275"\n >\n <ng-template kendoGridToolbarTemplate>\n <button kendoButton (click)="addHandler()">\n {{ getText(\'taskEditingDependenciesAddButtonText\') }}\n </button>\n <button kendoButton (click)="removeHandler()" [disabled]="selectedKeys.length === 0">\n {{ getText(\'taskEditingDependenciesRemoveButtonText\') }}\n </button>\n </ng-template>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridNameColumnTitle\')" [field]="dependencyIdField">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="tasks"\n textField="title"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridTypeColumnTitle\')" field="type">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="dependencyTypes"\n textField="type"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n </kendo-grid>\n '}),i.__metadata("design:paramtypes",[r.MappingService,l.EditService,s.GanttLocalizationService])],e)}();t.DependenciesTableComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(33),s=n(18),c=function(){function e(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n}return Object.defineProperty(e.prototype,"formGroup",{get:function(){return this.editService.taskFormGroup},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){return this.localizationService.get(e)},e=i.__decorate([a.Component({selector:"kendo-gantt-task-fields",template:'\n <form class="k-form" [formGroup]="formGroup">\n <kendo-formfield *ngIf="formGroup.contains(mapper.taskFields.title)">\n <kendo-label [for]="mapper.taskFields.title" [text]="getText(\'titleFieldInputLabel\')"></kendo-label>\n <input kendoTextBox [formControlName]="mapper.taskFields.title" />\n </kendo-formfield>\n <div class="k-hstack">\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.start)">\n <kendo-label [for]="mapper.taskFields.start" [text]="getText(\'startFieldInputLabel\')"></kendo-label>\n <kendo-datetimepicker [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>\n </kendo-formfield>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.end)">\n <kendo-label [for]="mapper.taskFields.end" [text]="getText(\'endFieldInputLabel\')"></kendo-label>\n <kendo-datetimepicker [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>\n </kendo-formfield>\n </div>\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.completionRatio)">\n <kendo-label [for]="mapper.taskFields.completionRatio" [text]="getText(\'completionRatioFieldInputLabel\')"></kendo-label>\n <kendo-numerictextbox\n [formControlName]="mapper.taskFields.completionRatio"\n [min]="0"\n [max]="1"\n [decimals]="2"\n format="p2"\n [step]="0.01"\n ></kendo-numerictextbox>\n </kendo-formfield>\n </form>\n '}),i.__metadata("design:paramtypes",[o.MappingService,s.EditService,r.GanttLocalizationService])],e)}();t.TaskFieldsComponent=c},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorContrastSvgComponent",(function(){return pn})),n.d(t,"ColorInputComponent",(function(){return qt})),n.d(t,"ContrastValidationComponent",(function(){return ln})),n.d(t,"ContrastComponent",(function(){return dn})),n.d(t,"FlatColorPickerActionButtonsComponent",(function(){return en})),n.d(t,"FlatColorPickerHeaderComponent",(function(){return Jt})),n.d(t,"FocusOnDomReadyDirective",(function(){return cn})),n.d(t,"ColorGradientLocalizationService",(function(){return Kt})),n.d(t,"ColorPaletteLocalizationService",(function(){return $t})),n.d(t,"ColorPickerLocalizationService",(function(){return Tt})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return rn})),n.d(t,"FlatColorPickerLocalizationService",(function(){return Et})),n.d(t,"ColorPickerMessages",(function(){return on})),n.d(t,"ColorPaletteService",(function(){return Yt})),n.d(t,"FlatColorPickerService",(function(){return It})),n.d(t,"MaskingService",(function(){return Ke})),n.d(t,"NumericTextBoxMessages",(function(){return Re})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return it})),n.d(t,"RangeSliderMessages",(function(){return tt})),n.d(t,"SHARED_DIRECTIVES",(function(){return yt})),n.d(t,"SliderCustomMessagesComponent",(function(){return Je})),n.d(t,"SliderMessages",(function(){return Xe})),n.d(t,"SliderBase",(function(){return ge})),n.d(t,"SlidersCommonModule",(function(){return Ye})),n.d(t,"SwitchCustomMessagesComponent",(function(){return st})),n.d(t,"Messages",(function(){return ot})),n.d(t,"TextFieldsBase",(function(){return jt})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return ft})),n.d(t,"TextBoxMessages",(function(){return mt})),n.d(t,"SliderComponent",(function(){return ve})),n.d(t,"RangeSliderComponent",(function(){return _e})),n.d(t,"LabelTemplateDirective",(function(){return fe})),n.d(t,"SwitchComponent",(function(){return Oe})),n.d(t,"TextBoxDirective",(function(){return je})),n.d(t,"TextAreaDirective",(function(){return ke})),n.d(t,"NumericTextBoxComponent",(function(){return Ve})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Be})),n.d(t,"MaskedTextBoxComponent",(function(){return Ue})),n.d(t,"InputsModule",(function(){return wn})),n.d(t,"SliderTicksComponent",(function(){return $e})),n.d(t,"SliderModule",(function(){return et})),n.d(t,"RangeSliderModule",(function(){return at})),n.d(t,"SwitchModule",(function(){return ct})),n.d(t,"NumericTextBoxModule",(function(){return dt})),n.d(t,"MaskedTextBoxModule",(function(){return pt})),n.d(t,"TextBoxModule",(function(){return Ot})),n.d(t,"TextAreaModule",(function(){return St})),n.d(t,"CheckBoxModule",(function(){return fn})),n.d(t,"RadioButtonModule",(function(){return vn})),n.d(t,"ColorPickerComponent",(function(){return an})),n.d(t,"ColorPaletteComponent",(function(){return Qt})),n.d(t,"ColorGradientComponent",(function(){return Zt})),n.d(t,"ColorPickerModule",(function(){return bn})),n.d(t,"FlatColorPickerComponent",(function(){return tn})),n.d(t,"CheckBoxDirective",(function(){return mn})),n.d(t,"RadioButtonDirective",(function(){return gn})),n.d(t,"HintComponent",(function(){return jn})),n.d(t,"ErrorComponent",(function(){return _n})),n.d(t,"FormFieldComponent",(function(){return kn})),n.d(t,"FormFieldModule",(function(){return Cn})),n.d(t,"TextBoxComponent",(function(){return bt})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return ht})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return ut})),n.d(t,"TextAreaComponent",(function(){return Ct})),n.d(t,"TextAreaSuffixComponent",(function(){return wt})),n.d(t,"InputSeparatorComponent",(function(){return vt})),n.d(t,"SharedModule",(function(){return _t})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return sn})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return lt})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return gt})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return Qe})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return nt})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return rt})),n.d(t,"ColorPickerCancelEvent",(function(){return xt})),n.d(t,"ColorPickerCloseEvent",(function(){return Pt})),n.d(t,"ColorPickerOpenEvent",(function(){return Vt})),n.d(t,"ActiveColorClickEvent",(function(){return Rt}));var i=n(0),a=n(1),o=n(6),r=n(5),s=n(7),c=n(4),l=n(3),d=n(10),p=n(14),u=n(8),h=n(9),b=n(13),m=function(){};var f=null,g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v={get browser(){return"undefined"==typeof window||f?f:f=function(e){var t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},n={};for(var i in t)if(t.hasOwnProperty(i)){var a=e.match(t[i]);if(a){n[i]=!0,n[a[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||a[2],10);break}}return n}(window.navigator.userAgent)}}.browser,y=function(e){var t=Object.keys(g);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return y=function(e){return n.exec(e)},n.exec(e)},_=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(e){return this.toBytes().toHex(e)},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(e){return"#"+this.toHex(e)},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return v.msie&&v.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===E(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new j(e.r,e.g,e.b,e.a)),e},t}(m),O=function(e){function t(t,n,i,a){e.call(this),this.r=t,this.g=n,this.b=i,this.a=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,a=this.b,o=Math.min(n,i,a),r=Math.max(n,i,a),s=r-o,c=r;return 0===s?new C(0,0,c,this.a):(0!==r?(t=s/r,e=n===r?(i-a)/s:i===r?2+(a-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new C(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,a=this.b,o=Math.max(n,i,a),r=Math.min(n,i,a),s=(o+r)/2;if(o===r)e=t=0;else{var c=o-r;switch(t=s>.5?c/(2-o-r):c/(o+r),o){case n:e=(i-a)/c+(i<a?6:0);break;case i:e=(a-n)/c+2;break;case a:e=(n-i)/c+4}}return new w(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new j(255*this.r,255*this.g,255*this.b,this.a)},t}(_),j=function(e){function t(t,n,i,a){e.call(this,Math.round(t),Math.round(n),Math.round(i),a)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(e){var t=k(this.r,2)+k(this.g,2)+k(this.b,2);return e&&e.alpha&&(t+=k(Math.round(255*this.a),2)),t},t.prototype.toBytes=function(){return this},t}(O);function k(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var C=function(e){function t(t,n,i,a){e.call(this),this.h=t,this.s=n,this.v=i,this.a=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,a=this.s,o=this.v;if(0===a)e=t=n=o;else{i/=60;var r=Math.floor(i),s=i-r,c=o*(1-a),l=o*(1-a*s),d=o*(1-a*(1-s));switch(r){case 0:e=o,t=d,n=c;break;case 1:e=l,t=o,n=c;break;case 2:e=c,t=o,n=d;break;case 3:e=c,t=l,n=o;break;case 4:e=d,t=c,n=o;break;default:e=o,t=c,n=l}}return new O(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(_),w=function(e){function t(t,n,i,a){e.call(this),this.h=t,this.s=n,this.l=i,this.a=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,a=this.s/100,o=this.l/100;if(0===a)e=t=n=o;else{var r=o<.5?o*(1+a):o+a-o*a,s=2*o-r;e=S(s,r,i+1/3),t=S(s,r,i),n=S(s,r,i-1/3)}return new O(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(_);function S(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function T(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function E(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof _)return e;var a=e.toLowerCase();if(n=y(a))return(a="transparent"===n[1]?new O(1,1,1,0):E(g[n[1]],t)).match=[n[1]],a;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(a))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(a))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(a))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),T(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(a))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),T(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(a))?i=new j(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(a))?i=new j(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(a))?i=new O(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(a))&&(i=new O(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+a);return i}var D=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var a=t.formats,o=this.resolveColor(n),r=0;r<a.length;r++){var s=a[r].re,c=a[r].process,l=s.exec(o);if(l){var d=c(l);i.r=d[0],i.g=d[1],i.b=d[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new j(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new O(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new C(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new w(e,t,n,null!=i?i:1)},t}(m);D.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],D.namedColors=g;var I=D,x=function(e){return null!=e},P=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},V=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},R=function(e,t,n){return!x(e)||isNaN(e)||e<=t?t:e>=n?n:e},B={small:"sm",medium:"md",large:"lg"},F={small:"sm",medium:"md",large:"lg",full:"full"},M=function(e,t,n,i){switch(t){case"size":return{toRemove:"k-"+e+"-"+B[n],toAdd:i?"k-"+e+"-"+B[i]:null};case"rounded":return{toRemove:"k-rounded-"+F[n],toAdd:i?"k-rounded-"+F[i]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:i?"k-"+e+"-"+i:null}}},A=function(e){return Math.min(e,20)},L=function(e){return(String(e).split(".")[1]||"").length},N=function(e,t){return Math.max(L(e),L(t))},z=function(e,t){var n=A(t);return parseFloat(e.toFixed(n))},H=function(e,t){var n=N(e,t);return z(e+t,n)},G=function(e,t){return H(e,-t)},W=function(e,t){var n=L(e)+L(t);return z(e*t,n)},K=function(e,t){if(0===t)return NaN;var n=N(e,t),i=Math.pow(10,n);return i*e/(i*t)},q=function(e,t){return Math.abs(G(e,W(t,Math.floor(K(e,t)))))},U=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},Z=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(G(t,e)),a=Math.floor(K(i,n));return H(a,1)},$=function(e){var t=e.trackWidth,n=e.min,i=e.max,a=e.reverse,o=e.value,r=t/Math.abs(i-n),s=x(o)?r*(o-n):n;return a&&(s=t-s),Math.floor(s)},Y=function(e,t,n){var i=t.max,a=t.min,o=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s,c=n&&r?W(o,r):o,l=G(e,a),d=q(l,c);return s=G(l,0===d?c:d),ne(H(s,a),a,i)},X=function(e,t,n){var i=t.max,a=t.min,o=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s=n&&r?W(o,r):o,c=G(e,a),l=q(c,s),d=H(G(c,l),s);return ne(H(d,a),a,i)},Q=function(e){return e.id.indexOf("k-start-handle")>-1},J=function(e,t,n){return n>e?e:n<t?t:n},ee=function(e,t,n){return n?[J(e,t,n[0]),J(e,t,n[1])]:[t,t]},te=function(e){return e},ne=function(e,t,n){return Math.max(Math.min(e,n),t)},ie=function(e,t,n){var i,a,o=n.min,r=n.max,s=n.vertical,c=n.rtl,l=(i=t.getBoundingClientRect(),a=document.documentElement,{left:i.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||0),top:i.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||0)}),d=(s?e.pageY-l.top:e.pageX-l.left)*((r-o)/(s?t.clientHeight:t.clientWidth)),p=c||s?r-d:o+d,u=L(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,a=t.max,o=ne(e,i,a);if(e!==o)return o;var r=Y(e,t),s=X(e,t);return(e-i)%n==0?e:s-e<=(s-r)/2?s:r}(p=z(p,u+1),n)},ae=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},oe=function(e){return X(e.value,e)},re=function(e){return Y(e.value,e)},se=function(e){return X(e.value,e,!0)},ce=function(e){return Y(e.value,e,!0)},le=function(e){if(a.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},de=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=U(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?U(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,a=Z(t,n,i),o=this.trackWidth(),r=o/G(n,t),s=[],c=0,l=0,d=0;d<a;d++){l=+(l+=0===d||d===a-1?i/2*r:i*r).toFixed(2)-.01;var p=Math.round(l-c);s.push(p),c+=p}return c>=o&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,a=t.reverse,o=t.vertical?"bottom":"left",r=this.trackWidth(),s=J(n,i,this.props.value);this.handlePosition=$({min:i,max:n,reverse:a,value:s,trackWidth:r}),this.renderer.setStyle(e,o,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",a=this.handlePosition;n&&(a=this.trackWidth()-a),this.renderer.setStyle(e,i,a+"px")},t}(de),ue=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function he(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var be=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},me={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646924118,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"},fe=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(a.Optional)()),Object(i.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),ge=function(){function e(e,t,n,i,o,s){var c=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=o,this.hostElement=s,this.title=te,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new r.Subscription,this.ifEnabled=function(e,t){c.isDisabled||e.call(c,t)},Object(d.validatePackage)(me),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[l.Keys.ArrowLeft]=t?oe:re,e[l.Keys.ArrowRight]=t?re:oe,e[l.Keys.ArrowDown]=re,e[l.Keys.ArrowUp]=oe,e[l.Keys.PageUp]=se,e[l.Keys.PageDown]=ce,e[l.Keys.Home]=function(e){return e.min},e[l.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(a.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(a.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(a.ViewChild)("ticks",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(a.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(a.ContentChild)(fe,{static:!1}),Object(i.__metadata)("design:type",fe)],e.prototype,"labelTemplate",void 0),e}(),ve=function(e){function t(t,n,i,a,o,r){var s=e.call(this,t,n,i,a,o,r)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=a,s.changeDetector=o,s.hostElement=r,s.focusableId="k-"+Object(l.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!ae(t)&&!ae(t.parentNode)){var n=ie(e,s.track.nativeElement,s.getProps());s.changeValue(n)}he(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,a=s.keyBinding[e.keyCode];if(!s.isDisabled&&a){var o=a(t);s.changeValue(J(n,i,o)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(Y(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(X(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(l.hasObservers)(s.onBlur)||V(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return x(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,he(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,he(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;Object(l.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(l.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(ie(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(Object(l.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,a=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,a,o,this.hostElement.nativeElement]);var r=this.getProps(),s=new pe(r,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(a),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(r.fromEvent)(e,"mousedown"),a=Object(r.fromEvent)(e,"mouseup"),o=Object(r.fromEvent)(e,"mouseout"),c=i.pipe(Object(s.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(s.concatMap)((function(){return Object(r.interval)(150).pipe(Object(s.startWith)(-1),Object(s.takeUntil)(Object(r.merge)(a,o)))}))).subscribe((function(){n.isFocused||he(n.draghandle,"focus"),t()}));n.subscriptions.add(c)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:J(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===l.Keys.Tab})))}))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(a.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(a.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],t)}(ge),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,a=t.reverse,o=t.vertical?"bottom":"left",r=this.trackWidth(),s=Q(e)?ee(n,i,this.props.value)[0]:ee(n,i,this.props.value)[1];Q(e)?(this.startHandlePosition=$({min:i,max:n,reverse:a,value:s,trackWidth:r}),this.renderer.setStyle(e,o,this.startHandlePosition+"px")):(this.endHandlePosition=$({min:i,max:n,reverse:a,value:s,trackWidth:r}),this.renderer.setStyle(e,o,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,a=n.vertical,o=a?"height":"width",r=a?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),c=a?e.style.bottom:e.style.left;this.renderer.setStyle(t,o,s+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(c)+"px":parseFloat(c)+"px")},t}(de),_e=function(e){function t(t,n,a,o,r,s){var c=e.call(this,t,n,a,o,r,s)||this;return c.localization=t,c.injector=n,c.renderer=a,c.ngZone=o,c.changeDetector=r,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(l.guid)(),c.endHandleId="k-end-handle-"+Object(l.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=ie(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,a=i[0],o=i[1];t<=a?(n=[t,o],c.activeHandle="startHandle"):a<t&&t<o?t<(a+o)/2?(n=[t,o],c.activeHandle="startHandle"):(n=[a,t],c.activeHandle="endHandle"):t>=o&&(n=[a,t],c.activeHandle="endHandle"),he("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,a=t.min,o=c.keyBinding[e.keyCode];if(!c.isDisabled&&o){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var r=Q(e.target),s=o(Object(i.__assign)({},t,{value:r?c.value[0]:c.value[1]}));r?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var l=J(n,a,s),d=r?[l,c.value[1]]:[c.value[0],l];c.changeValue(d),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,he(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,he("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(l.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&le(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(l.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var a=e.pageX<this.lastHandlePosition.x,o=e.pageX>this.lastHandlePosition.x,r=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([ie(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],ie(e,t.track.nativeElement,t.getProps())])},l=function(){return t.changeValue([ie(e,t.track.nativeElement,t.getProps()),ie(e,t.track.nativeElement,t.getProps())])},d=Q(this.draggedHandle),p=this.vertical,u=!p,h=p&&r||(this.reverse?u&&o:u&&a);this.value[0]===this.value[1]?h?d?s():l():d?l():c():d?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){le(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,P(t[0],n[0])&&P(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(l.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,a=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,a,o,this.hostElement.nativeElement]);var r=this.getProps(),s=new ye(r,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(a),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ee(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===l.Keys.Tab})))}))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(a.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(a.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],t)}(ge),Oe=function(){function e(e,t,n,i,o,s){var c=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,this.ngZone=s,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new r.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){c.isFocused||(c.focused=!0,Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;c.hostElement.nativeElement.contains(t)||(c.changeDetector.markForCheck(),c.focused=!1,(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()})))},Object(d.validatePackage)(me),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=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,"ieClass",{get:function(){return p.browser&&p.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(s.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(o.NgControl,null),this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=M("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=M("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"thumbRounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"trackRounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"track",void 0),Object(i.__decorate)([Object(a.ViewChild)("thumb",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"thumb",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoSwitch",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef,c.LocalizationService,a.Injector,a.ChangeDetectorRef,a.NgZone])],e)}(),je=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onValueChange=new a.EventEmitter,this.autoFillStart=new a.EventEmitter,this.autoFillEnd=new a.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(a.HostBinding)("class.k-textbox"),Object(a.HostBinding)("class.k-input"),Object(a.HostBinding)("class.k-input-md"),Object(a.HostBinding)("class.k-rounded-md"),Object(a.HostBinding)("class.k-input-solid"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(a.Directive)({selector:"input[kendoTextBox]",providers:[{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef,a.NgZone])],e)}(),ke=function(){function e(e,t,n,i,o,r){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new a.EventEmitter,this.autoSize=!1,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onValueChange=new a.EventEmitter,this.autoFillStart=new a.EventEmitter,this.autoFillEnd=new a.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=r?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(l.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(r.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(r.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(Object(s.take)(1)).subscribe((function(){return t.resize()}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(l.hasObservers)(this.onValueChange)||Object(l.hasObservers)(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;Object(l.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(l.hasObservers)(this.onBlur)||V(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(a.HostBinding)("class.k-textarea"),Object(a.HostBinding)("class.k-input"),Object(a.HostBinding)("class.k-input-md"),Object(a.HostBinding)("class.k-rounded-md"),Object(a.HostBinding)("class.k-input-solid"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(a.Optional)()),Object(i.__param)(5,Object(a.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef,a.NgZone,a.ChangeDetectorRef,a.Injector,Boolean])],e)}(),Ce=/[eE][\-+]?([0-9]+)/,we=function(e){return e>=0?Math.floor(e):Math.ceil(e)},Se=function(e){},Te=function(e){return!isNaN(e)&&null!==e};function Ee(e,t){var n=t-String(e).length,i=e;if(n>0){var a=new Array(n+1).join("0");i=parseFloat(e+a)}return i}var De;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(De||(De={}));var Ie,xe=["min","max","step","decimals"],Pe={decimals:null,max:null,min:null,step:1},Ve=function(){function e(e,t,n,i,o,r,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=o,this.changeDetector=r,this.hostElement=s,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.ArrowDirection=De,this.arrowDirection=De.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Se,this.maxValidateFn=Se,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Se,this.ngTouched=Se,this.ngValidatorChange=Se,this.domEvents=[],this.increasePress=function(e){c.arrowPress(De.Up,e)},this.decreasePress=function(e){c.arrowPress(De.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==De.None&&(c.arrowDirection=De.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===l.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var a=c.intl.parseNumber(i),o=c.restrictDecimals(a);if(c.autoCorrect){var r=c.limitInputValue(o);o=r.value,t=r.selectionStart,n=r.selectionEnd}a!==o||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(o),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(o),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===l.Keys.ArrowDown?t=-1:e.keyCode===l.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled&&c.changeValueOnScroll){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(d.validatePackage)(me),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=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,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){var t,n;Object(l.anyChanged)(xe,e,!1)&&this.parseOptions(xe.filter((function(t){return e[t]}))),this.verifySettings(),Object(l.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!x(n)||!x(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):Se,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!x(t)||!x(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):Se,this.ngValidatorChange()),Object(l.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(l.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){he(this.numericInput,"focus")},e.prototype.blur=function(){he(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){var n,i,a;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,a=n.which&&3===n.which,i||a))||(p.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,a=this.previousSelection,o=a.start,r=a.end;t.value=e=e.substring(0,o)+this.decimalSeparator+e.substring(r),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,a,o,r;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,a=t.decimals,o=t.min,"."===(r=t.separator)&&(r="\\"+r),n=0===a?"\\d*":"(?:(?:\\d+("+r+"\\d*)?)|(?:"+r+"\\d*))?",new RegExp("^"+(i&&null!==o&&o>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=H(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&he(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(Te(this.max)&&e>this.max&&(t=this.max),Te(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,a=t.value,o=e,r=!1;if(!this.isInRange(e)){var s=a.length-String(this.inputValue).length,c=this.min,l=this.max,d=Te(l),p=Te(c),u=void 0,h=void 0,b=e;if(0===n&&this.inputValue.substr(1)===a)return{selectionEnd:i,selectionStart:n,value:null};if(d&&e>l?e>0?h=!0:u=l:p&&e<c&&(e>0?u=c:h=!0),u){var m=this.tryPadValue(e,u);m&&we(e)!==we(u)&&(b=m,r=!0)}else h&&this.inputValue&&n!==a.length&&(b=parseFloat(a.substr(0,n)+a.substr(n+s)));o=this.limitValue(b),r=(r||o!==b)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:r?String(o).length:i,selectionStart:n,value:o}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,a=Ee(e,i),o=Ee(e,i+1);return this.isInRange(a)?n=a:this.isInRange(o)&&(n=o),n},e.prototype.isInRange=function(e){return!Te(e)||(!Te(this.min)||this.min<=e)&&(!Te(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,a=String(e);if(t||Ce.test(a))n=z(e,i);else{var o=a.split("."),r=o[1];r&&r.length>i&&(r=r.substr(0,i),n=parseFloat(o[0]+"."+r))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=Ce.exec(t);return n&&(t=e.toFixed(A(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()&&null!==this.min&&null!==this.max&&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/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),r=!isNaN(o);if(Object(a.isDevMode)()&&!r&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=r?o:Pe[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,a=this.elementValue,o=a.substring(0,i);if(this.setInputValue(),o.length){var r=(e=o,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(a,r);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,a=n[1].length;return i===t?a-1:a}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disableClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-input"),Object(a.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoNumericTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[u.IntlService,a.Renderer2,c.LocalizationService,a.Injector,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],e)}(),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(c.ComponentMessages),Be=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:Re,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Re);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Ie||(Ie={}));var Fe=function(){function e(e,t,n){void 0===n&&(n=Ie.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Me=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),Ae=function(e){return(e||"").split("")},Le=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Me?this.parse(e):this.parse(new Me(Ae(e),Ae(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===Ie.Literal},e}(),Ne=function(e,t){return new Le((function(n){var i=n.next().char,a=e[i];return"\\"===i?(i=n.next().char,new Fe(t.literal(i),n)):new Fe(a?t.mask(a):t.literal(i),n)}))},ze=function(e){var t=e.prompt,n=e.promptPlaceholder;return new Le((function(e){var i=e.next().char;return new Fe(i===t?n:i,e)}))},He=function(e){return new Le((function(t){var n=t.next().char;return new Fe(e?n:"",t)}))},Ge=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new Le((function(e){return new Fe(t,e)}))));var t},We=function(e){return new Le((function(t){for(var n=new Fe([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ke=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,a=void 0===i?"":i,o=e.promptPlaceholder,r=void 0===o?" ":o,s=e.rules,c=void 0===s?{}:s,l=e.includeLiterals,d=void 0!==l&&l;this.mask=n,this.prompt=a,this.promptPlaceholder=r,this.rules=c,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Ge(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(Ge(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(Ge(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var a="",o=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return Ge(this.maskTokens.slice(n,i)).run(e).fold((function(e){a=r.concat(e).concat(s).join("")})),{selection:o,value:a}},e.prototype.maskRemoved=function(e,t,n){var i=this,a="",o=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return Ge(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){o=i.adjustPosition(e,o),a=e.concat(r).join("")})),{selection:o,value:a}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,a="",o=n,r=e.slice(0,n);return Ge(this.unmaskTokens).run(r,t).chain((function(e){o=e.join("").length;var n=t.slice(o);return Ge(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){a=e.join("")})),{selection:o,value:a}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new Le((function(e){return e.peek().char===t?(e.eat(),new Fe(t,e,Ie.Literal)):new Fe(t,e,Ie.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new Le((function(i){for(;!i.eof();){var a=i.peek(),o=a.char,r=a.control;if(o===r&&r===t)return i.eat(),new Fe(t,i,Ie.Mask);if(e.test(o))return i.eat(),new Fe(o,i,Ie.Mask);if(o===n)return i.eat(),new Fe(t,i,Ie.Mask);i.eat_input()}return i.eat(),new Fe(t,i,Ie.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new Le((function(e){return e.eof()?new Fe("",e):(e.peek().char===t&&e.eat(),new Fe(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new Le((function(t){for(;!t.eof();){var i=t.peek(),a=i.char,o=i.control;if(a===n&&o===n)return t.eat(),new Fe(a,t);if(e.test(a))return t.eat(),new Fe(a,t);t.eat_input()}return t.eat(),new Fe("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return He(n)},mask:function(n){return ze({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return He(!1)},mask:function(t){return ze({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;We(Ne(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),We(Ne(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),We(Ne(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),We(Ne(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),qe=Promise.resolve(null),Ue=function(){function e(e,t,n,i,o,r,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=r,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(d.validatePackage)(me),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,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}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,a=i[0],o=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var r=this.maskedValue.length-o,s=n.length-r;t=this.service.maskInRange(n.slice(a,s),this.maskedValue,a,o)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(l.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(l.anyChanged)(["promptPlaceholder","includeLiterals"],e)?qe.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&he(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=x(e);if(t&&"string"!=typeof e){if(Object(a.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-input"),Object(a.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(a.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(a.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoMaskedTextBox",providers:[Ke,{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{multi:!0,provide:o.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(a.Optional)()),Object(i.__param)(6,Object(a.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Ke,a.Renderer2,a.ElementRef,a.NgZone,a.Injector,a.ChangeDetectorRef,Boolean])],e)}(),Ze=function(e){this.value=e,this.classes={"k-tick":!0}},$e=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,a,o,r,s,c=Z(this.min,this.max,this.step),l=this.largeStep,d={max:this.max,min:this.min,smallStep:this.step},p=[],u=0;u<c;u++)p.push(new Ze((e=u,n=void 0,i=void 0,a=void 0,o=void 0,r=void 0,s=void 0,n=(t=d).max,i=t.min,a=t.smallStep,o=t.reverse,r=t.vertical,s=H(i,W(e,a)),r||o?Math.abs(G(s,n)):s))),l&&u%l==0&&(p[u].large=!0,p[u].classes["k-tick-large"]=!0);p.length>0&&(Object.assign(p[0].classes,this.endTickClasses(!0)),Object.assign(p[p.length-1].classes,this.endTickClasses(!1))),this.ticks=p},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(a.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",a.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(a.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}(),Ye=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[$e,fe],exports:[fe,$e,l.DraggableModule,l.EventsModule,l.ResizeSensorModule],imports:[h.CommonModule,l.DraggableModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(c.ComponentMessages),Qe=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:Xe,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Xe),Je=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:Xe,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Xe),et=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[ve,Je,Qe],exports:[ve,Je,fe,Qe],imports:[h.CommonModule,Ye]})],e)}(),tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(c.ComponentMessages),nt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:tt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(tt),it=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:tt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(tt),at=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[_e,it,nt],exports:[_e,it,nt,fe],imports:[h.CommonModule,Ye]})],e)}(),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(c.ComponentMessages),rt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:ot,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ot),st=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:ot,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ot),ct=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[Oe,st,rt],exports:[Oe,st,rt],imports:[h.CommonModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),lt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:Re,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Re),dt=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[lt,Ve,Be],exports:[Ve,Be],imports:[h.CommonModule,l.EventsModule]})],e)}(),pt=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[Ue],exports:[Ue],imports:[h.CommonModule,l.EventsModule]})],e)}(),ut=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(a.Optional)()),Object(i.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),ht=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(a.Optional)()),Object(i.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),bt=function(){function e(e,t,n,i,o,r){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=r,this.focusableId="k-"+Object(l.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new a.EventEmitter,this.inputFocus=new a.EventEmitter,this.inputBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(l.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(l.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(l.hasObservers)(s.inputBlur)||V(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t,n,i=e.target,a=(t=navigator.userAgent,Object(p.detectDesktopBrowser)(t).safari||Object(p.detectMobileOS)(t)&&"mobilesafari"===Object(p.detectMobileOS)(t).browser),o=a&&(n=i.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(n))?e.data:i.value,r=[i.selectionStart,i.selectionEnd],c=r[0],l=r[1];s.updateValue(o),a&&i.setSelectionRange(c,l)},this.ngChange=function(e){},this.ngTouched=function(){},Object(d.validatePackage)(me),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=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,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(o.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(be(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&he(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(a.ContentChild)(ut,{static:!1}),Object(i.__metadata)("design:type",ut)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(a.ContentChild)(ht,{static:!1}),Object(i.__metadata)("design:type",ht)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-textbox"),Object(a.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textbox"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.Injector,a.ElementRef])],e)}(),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(c.ComponentMessages),ft=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:mt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(mt),gt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:mt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(mt),vt=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(a.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),yt=[vt,ke],_t=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[yt],exports:[yt]})],e)}(),Ot=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[je,bt,ut,ht,ft,gt],exports:[je,bt,ut,ht,l.EventsModule,ft,gt,yt],imports:[h.CommonModule,l.EventsModule,_t]})],e)}(),jt=function(){function e(e,t,n,i,o,s){var c=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=s,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new a.EventEmitter,this.inputBlur=new a.EventEmitter,this.subscriptions=new r.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){c.changeDetector.markForCheck(),(Object(l.hasObservers)(c.inputBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),kt={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Ct=function(e){function t(t,n,i,o,r,s){var c=e.call(this,t,n,i,o,r,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=o,c.injector=r,c.hostElement=s,c.focusableId="k-"+Object(l.guid)(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new a.EventEmitter,c.onBlur=new a.EventEmitter,c.valueChange=new a.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(l.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(l.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(d.validatePackage)(me),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(be(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab}))),e.handleFlow()}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(o.NgControl,null),Object(l.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(r.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?(this.renderer.removeClass(n,"!k-overflow-y-auto"),this.initialHeight=n.offsetHeight):(this.renderer.addClass(n,"!k-overflow-y-auto"),n.style.height=this.initialHeight+"px")),e.cols&&(x(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return kt[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&he(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,i=t.children[1];this.renderer[e?"addClass":"removeClass"](n,"!k-flex-none"),i&&this.renderer[e?"removeClass":"addClass"](i,"!k-align-items-start")},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-textarea"),Object(a.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.!k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(a.HostBinding)("class.!k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return n})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.Injector,a.ElementRef])],t)}(jt),wt=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(a.HostBinding)("class.k-input-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),St=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[Ct,wt],exports:[Ct,l.EventsModule,wt,yt],imports:[h.CommonModule,l.EventsModule,_t]})],e)}(),Tt=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean])],t)}(c.LocalizationService),Et=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.colorPickerLocalization=a,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__param)(3,Object(a.Optional)()),Object(i.__param)(3,Object(a.Inject)(Tt)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Tt])],t)}(c.LocalizationService),Dt={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}},It=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?"office":"accessible",i=e.palette,a="string"==typeof i&&Dt[i]?Dt[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||a||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),xt=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return Object(i.__extends)(t,e),t}(l.PreventableEvent),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(l.PreventableEvent),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(l.PreventableEvent),Rt=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),Bt=function(e,t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(x(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),x(g[e]))return e;E(e,t)&&(e=E(e,t).toHex());var n=Object.keys(g).find((function(t){return g[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}(e,i);var a=E(e.trim(),i);if(x(a))return"hex"===t?At(a,n):a.toCssRgba()}},Ft=function(e,t){void 0===t&&(t=!0);var n=E(e,t);return x(n)?n.toBytes():{}},Mt=function(e,t,n){void 0===t&&(t="rgba"),void 0===n&&(n=!1);var i=R(e.h,0,359.9),a=R(e.s,0,1),o=R(e.v,0,1),r=R(e.a,0,1),s=I.fromHSV(i,a,o,r);return"hex"===t?At(s,n):s.toCssRgba()},At=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},Lt=function(e){return Mt({h:e,s:1,v:1,a:1})};var Nt=function(e,t){var n=R(e.r,0,255),i=R(e.g,0,255),a=R(e.b,0,255),o=R(e.a,0,1),r=R(t.r,0,255),s=R(t.g,0,255),c=R(t.b,0,255);return{r:Math.round((1-o)*r+o*n),g:Math.round((1-o)*s+o*i),b:Math.round((1-o)*c+o*a)}},zt=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},Ht=function(e,t){return n=zt(Nt(e,t)),i=zt(Nt(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},Gt=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},Wt=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,a){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,a)}),"")},Kt=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=a,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__param)(3,Object(a.Optional)()),Object(i.__param)(3,Object(a.Inject)(Et)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Et])],t)}(c.LocalizationService),qt=function(){function e(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+Object(l.guid)(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new a.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new r.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(l.isDocumentAvailable)()||!x(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return x(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){x(e.value)&&!this.isFocused&&(this.hex=Bt(this.value,"hex",this.opacity),this.rgba=Ft(this.value),this.rgba.a=Bt(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e,t,n,i,a,o=(e=this.rgba,t=R(e.r,0,255),n=R(e.g,0,255),i=R(e.b,0,255),a=R(e.a,0,1),I.fromBytes(t,n,i,a).toCssRgba());this.rgbaInputValid&&o!==this.value&&(this.value=o,this.rgba=Ft(this.value),this.hex=Bt(o,"hex",this.opacity),this.valueChange.emit(o))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=Bt(e,"rgba",this.opacity);x(t)&&t!==this.value&&(this.value=t,this.rgba=Ft(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=Ft(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=Bt(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-colorgradient-inputs"),Object(a.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(a.ViewChild)("opacityInput",{static:!1}),Object(i.__metadata)("design:type",Ve)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(a.ViewChild)("hexInput",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"hexInput",void 0),Object(i.__decorate)([Object(a.ViewChild)("blueInput",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"blueInput",void 0),Object(i.__decorate)([Object(a.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,c.LocalizationService])],e)}(),Ut=0,Zt=function(){function e(e,t,n,i,o){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+Ut++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format="rgba",this.valueChange=new a.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva=new r.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new r.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(d.validatePackage)(me),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=Bt(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(x(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(l.isDocumentAvailable)()||!x(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(x(this.hsva.value)&&x(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){Object(l.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(l.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!x(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Mt(this.hsva.value,this.format,this.opacity)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,a=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":a=-5;break;case"ArrowDown":a=5}var o=parseInt(n.style.top,10)+a,r=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run((function(){return t.moveDragHandle(r,o)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,a=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,a)}))}},e.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(Mt(this.hsva.value,this.format,this.opacity)),this.backgroundColor=Lt(e),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0},e.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(Mt(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0},e.prototype.handleInputsValueChange=function(e){var t=Bt(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,x(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=Bt(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,a=n.width,o=n.height,r=R(t,0,o),s=R(e,0,a);this.setDragHandleElementPosition(r,s);var c=this.hsva.value;c.s=s/a,c.v=1-r/o,this.hsva.next(c),this.updateValues.next(Mt(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(Mt(Object(i.__assign)({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(x(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=Bt(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.setBackgroundColor=function(e){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",e)},e.prototype.updateUI=function(){if(Object(l.isDocumentAvailable)()){if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?function(e,t){void 0===t&&(t=!0);var n=E(e,t);return x(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=Lt(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,a;i=e.host.nativeElement,a=t.relatedTarget,(!i||!a||i!==a&&!i.contains(a))&&((n=e.host)&&n.nativeElement&&ue(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(Mt(e.hsva.value,e.format,e.opacity))}))})),a=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,a,o)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(s.throttleTime)(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(i.__decorate)([Object(a.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"contrastTool",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.ViewChild)("gradientDragHandle",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(a.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",qt)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(a.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",ve)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(a.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"gradientWrapper",void 0),Object(i.__decorate)([Object(a.ViewChild)("hsvRectangle",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"hsvRectangle",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},Kt,{provide:c.LocalizationService,useExisting:Kt},{provide:c.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" #hsvRectangle>\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [value]="hsva.value.h"\n [smallStep]="5"\n [largeStep]="10"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox"\n *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.NgZone,a.Renderer2,a.ChangeDetectorRef,c.LocalizationService])],e)}(),$t=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=a,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__param)(3,Object(a.Optional)()),Object(i.__param)(3,Object(a.Inject)(Et)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Et])],t)}(c.LocalizationService),Yt=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],x(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(x(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(x(e)&&x(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(x(e)&&x(e.row)&&x(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),Xt=0,Qt=function(){function e(e,t,n,i,o,r){var s=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.ngZone=r,this.id="k-colorpalette-"+Xt++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.cellSelection=new a.EventEmitter,this.hostClasses=!0,this.uniqueId=Object(l.guid)(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(d.validatePackage)(me),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;x(e)||(e="office"),"string"==typeof e&&x(Dt[e])&&(this.columns=this.columns||Dt[e].columns,e=Dt[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return Bt(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows()}},e.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){e.selectCell(e.value)}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case l.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case l.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case l.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case l.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case l.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=Bt(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,x(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},e.prototype.setRows=function(){x(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=Bt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(x(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(a.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(a.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},Yt,$t,{provide:c.LocalizationService,useExisting:$t},{provide:c.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,Yt,a.ChangeDetectorRef,a.Renderer2,c.LocalizationService,a.NgZone])],e)}(),Jt=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new a.EventEmitter,this.valuePaneClick=new a.EventEmitter,this.clearButtonClick=new a.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},Object(i.__decorate)([Object(a.HostBinding)("class.k-coloreditor-header"),Object(a.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"viewChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valuePaneClick",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"clearButtonClick",void 0),Object(i.__decorate)([Object(a.ViewChildren)("viewButtons",{read:a.ElementRef}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"viewButtonsCollection",void 0),Object(i.__decorate)([Object(a.ViewChild)("clearButton",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"clearButtonElement",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),en=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new a.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},Object(i.__decorate)([Object(a.HostBinding)("class.k-coloreditor-footer"),Object(a.HostBinding)("class.k-actions"),Object(a.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"actionButtonClick",void 0),Object(i.__decorate)([Object(a.ViewChild)("last",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"lastButton",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),tn=function(){function e(e,t,n,i,o,s){var c=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=o,this.ngZone=s,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new a.EventEmitter,this.cancel=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this.actionButtonClick=new a.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new r.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(d.validatePackage)(me),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){Object(l.isChanged)("value",e)&&(this.selection=this.value,this.setHostElementAriaLabel()),Object(l.isChanged)("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){x(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.gradient.gradientDragHandle.nativeElement.focus()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e)},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new xt(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=Bt(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(x(this.activeView)){if(Object(a.isDevMode)()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},Object(i.__decorate)([Object(a.HostBinding)("class.k-flatcolorpicker"),Object(a.HostBinding)("class.k-coloreditor"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(a.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"actionsLayout",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"actionButtonClick",void 0),Object(i.__decorate)([Object(a.ViewChild)("header",{static:!1}),Object(i.__metadata)("design:type",Jt)],e.prototype,"header",void 0),Object(i.__decorate)([Object(a.ViewChild)("gradient",{static:!1}),Object(i.__metadata)("design:type",Zt)],e.prototype,"gradient",void 0),Object(i.__decorate)([Object(a.ViewChild)("palette",{static:!1}),Object(i.__metadata)("design:type",Qt)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(a.ViewChild)("footer",{static:!1}),Object(i.__metadata)("design:type",en)],e.prototype,"footer",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},It,Et,{provide:c.LocalizationService,useExisting:Et},{provide:c.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,It,c.LocalizationService,a.ChangeDetectorRef,a.Renderer2,a.NgZone])],e)}(),nn=["focus","blur"],an=function(){function e(e,t,n,i,o,s){var c=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=o,this.renderer=s,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",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.cancel=new a.EventEmitter,this.activeColorClick=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new r.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},Object(d.validatePackage)(me),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return x(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&Dt[t]?Dt[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Bt(this.value,this.format,this.gradientSettings.opacity)),Object(l.isChanged)("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",nn)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),Object(l.closest)(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new Rt(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.reset=function(){x(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=x(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=Bt(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==l.Keys.ArrowDown&&e.keyCode!==l.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===l.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===l.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=M("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return Object(l.closest)(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new Vt,this.open.emit(t)):(t=new Pt,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){if(e.flatColorPicker){var t=e.flatColorPicker.gradient;(t?t.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){if(!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton){var e=this.flatColorPicker.gradient;return e?e.gradientDragHandle:this.flatColorPicker.palette.host}return this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&Object(l.closest)(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=Object(l.closest)(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",nn),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+Object(l.guid)();e.setAttribute("id",n),this.focusableId=n}},Object(i.__decorate)([Object(a.HostBinding)("class.k-colorpicker"),Object(a.HostBinding)("class.k-icon-picker"),Object(a.HostBinding)("class.k-picker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-focus"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-expanded"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaExpanded",null),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"view",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"actionsLayout",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(a.ViewChild)("activeColor",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"activeColor",void 0),Object(i.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(a.ViewChild)("flatColorPicker",{static:!1}),Object(i.__metadata)("design:type",tn)],e.prototype,"flatColorPicker",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},Tt,{provide:c.LocalizationService,useExisting:Tt},{provide:c.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,b.PopupService,a.ChangeDetectorRef,c.LocalizationService,a.NgZone,a.Renderer2])],e)}(),on=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPickerNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"previewColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"revertSelection",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"gradientView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"paletteView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"formatButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"applyButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"cancelButton",void 0),t}(c.ComponentMessages),rn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:on,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(on),sn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:on,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(on),cn=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.NgZone])],e)}(),ln=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?4.5:7;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),dn=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=4.5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=7},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Ht(Ft(this.value),Ft(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),pn=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){x(e.backgroundColor)&&this.metrics&&this.setPaths()},e.prototype.setPaths=function(){var e,t,n=(t=Gt,e=function(e,n,i,a){var o=t(n||e,i||e),r=o.angle+(a?Math.PI:0),s=.1*o.length;return[e[0]+Math.cos(r)*s,e[1]+Math.sin(r)*s]},function(t,n,i){var a=e(i[n-1],i[n-2],t),o=a[0],r=a[1],s=e(t,i[n-1],i[n+1],!0);return"C "+o+","+r+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});this.paths=[Wt(this.getPaths(4.5,16),n),Wt(this.getPaths(4.5,16,!0),n),Wt(this.getPaths(7,16),n),Wt(this.getPaths(7,16,!0),n)]},e.prototype.findValue=function(e,t,n,i,a){var o=(n+i)/2,r=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-o/this.metrics.height}),s=Ht(Ft(Mt(r)),Ft(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?o:null:a(s,e)?this.findValue(e,t,n,i-(i-n)/2,a):this.findValue(e,t,n+(i-n)/2,i,a)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=this.metrics.width;a+=this.metrics.width/t){var o=this.findValue(e,a,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==o&&i.push([a,o])}return i},Object(i.__decorate)([Object(a.HostBinding)("class.k-color-contrast-svg"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",r.BehaviorSubject)],e.prototype,"hsva",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"backgroundColor",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}(),un=[an,Qt,Zt,tn,sn,rn],hn=[qt,cn,dn,ln,Jt,en,pn],bn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[un,hn],exports:[un],imports:[et,dt,h.CommonModule,b.PopupModule,l.DraggableModule]})],e)}(),mn=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),e=Object(i.__decorate)([Object(a.Directive)({selector:"input[kendoCheckBox]"}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef])],e)}(),fn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[mn],exports:[mn],imports:[h.CommonModule]})],e)}(),gn=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",Object(d.validatePackage)(me)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),e=Object(i.__decorate)([Object(a.Directive)({selector:"input[kendoRadioButton]"}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef])],e)}(),vn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[gn],exports:[gn],imports:[h.CommonModule]})],e)}(),yn=0,_n=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+yn++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),On=0,jn=function(){function e(){this.align="start",this.id="kendo-hint-"+On++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),kn=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,Object(d.validatePackage)(me),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(a.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof o.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(l.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(a.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.ContentChildren)(o.NgControl,{descendants:!0}),Object(i.__metadata)("design:type",a.QueryList),Object(i.__metadata)("design:paramtypes",[a.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(a.ContentChildren)(o.NgControl,{read:a.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(a.ContentChild)(l.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(a.ContentChildren)(_n,{descendants:!0}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(a.ContentChildren)(jn,{descendants:!0}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,c.LocalizationService,a.ElementRef])],e)}(),Cn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[jn,_n,kn],exports:[jn,_n,kn],imports:[h.CommonModule]})],e)}(),wn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({exports:[St,Ot,et,at,ct,dt,pt,bn,fn,vn,Cn],imports:[h.CommonModule]})],e)}()}])}));
|