@progress/kendo-angular-gantt 0.1.4 → 0.2.0-dev.202111241002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/cdn/js/kendo-angular-gantt.js +2 -76
  2. package/dist/cdn/main.js +23 -1
  3. package/dist/es/columns/column.component.js +5 -0
  4. package/dist/es/columns/columns.js +1 -0
  5. package/dist/es/columns/edit-template.directive.js +34 -0
  6. package/dist/es/columns/span-column.component.js +6 -0
  7. package/dist/es/common/default-callbacks.js +4 -0
  8. package/dist/es/editing/edit-dialog.component.js +44 -0
  9. package/dist/es/editing/edit.service.js +39 -0
  10. package/dist/es/editing/util.js +17 -0
  11. package/dist/es/gantt.component.js +478 -22
  12. package/dist/es/gantt.module.js +62 -5
  13. package/dist/es/index.js +6 -0
  14. package/dist/es/localization/custom-messages.component.js +44 -0
  15. package/dist/es/localization/localized-messages.directive.js +35 -0
  16. package/dist/es/localization/messages.js +246 -0
  17. package/dist/es/localization/treelist-messages.directive.js +31 -0
  18. package/dist/es/main.js +1 -0
  19. package/dist/es/models/events/cell-click-event.interface.js +4 -0
  20. package/dist/es/models/events/cell-close-event.interface.js +19 -0
  21. package/dist/es/models/events/preventable-event.js +32 -0
  22. package/dist/es/models/events/task-click-event.interface.js +4 -0
  23. package/dist/es/models/events/task-edit-event.interface.js +4 -0
  24. package/dist/es/models/gantt-task-model-fields.interface.js +2 -1
  25. package/dist/es/package-metadata.js +1 -1
  26. package/dist/es/rendering/gantt-milestone-task.component.js +1 -1
  27. package/dist/es/rendering/gantt-summary-task.component.js +1 -1
  28. package/dist/es/rendering/gantt-task-base.js +8 -0
  29. package/dist/es/rendering/gantt-task.component.js +12 -4
  30. package/dist/es/rendering/gantt-tasks-table-body.component.js +5 -1
  31. package/dist/es/selection/selectable.directive.js +141 -0
  32. package/dist/es/selection/selection-change-event.js +4 -0
  33. package/dist/es/timeline/gantt-timeline.component.js +5 -1
  34. package/dist/es/toolbar/view-selector.component.js +7 -4
  35. package/dist/es/utils.js +48 -1
  36. package/dist/es2015/columns/column.component.d.ts +2 -0
  37. package/dist/es2015/columns/column.component.js +5 -0
  38. package/dist/es2015/columns/columns.d.ts +1 -0
  39. package/dist/es2015/columns/columns.js +1 -0
  40. package/dist/es2015/columns/edit-template.directive.d.ts +23 -0
  41. package/dist/es2015/columns/edit-template.directive.js +33 -0
  42. package/dist/es2015/columns/span-column.component.d.ts +2 -0
  43. package/dist/es2015/columns/span-column.component.js +6 -0
  44. package/dist/es2015/common/default-callbacks.d.ts +4 -0
  45. package/dist/es2015/common/default-callbacks.js +4 -0
  46. package/dist/es2015/editing/edit-dialog.component.d.ts +21 -0
  47. package/dist/es2015/editing/edit-dialog.component.js +86 -0
  48. package/dist/es2015/editing/edit.service.d.ts +20 -0
  49. package/dist/es2015/editing/edit.service.js +41 -0
  50. package/dist/es2015/editing/util.d.ts +10 -0
  51. package/dist/es2015/editing/util.js +17 -0
  52. package/dist/es2015/gantt.component.d.ts +236 -12
  53. package/dist/es2015/gantt.component.js +662 -21
  54. package/dist/es2015/gantt.module.d.ts +29 -1
  55. package/dist/es2015/gantt.module.js +62 -5
  56. package/dist/es2015/index.d.ts +6 -0
  57. package/dist/es2015/index.js +6 -0
  58. package/dist/es2015/index.metadata.json +1 -1
  59. package/dist/es2015/localization/custom-messages.component.d.ts +15 -0
  60. package/dist/es2015/localization/custom-messages.component.js +36 -0
  61. package/dist/es2015/localization/localized-messages.directive.d.ts +13 -0
  62. package/dist/es2015/localization/localized-messages.directive.js +31 -0
  63. package/dist/es2015/localization/messages.d.ts +246 -0
  64. package/dist/es2015/localization/messages.js +240 -0
  65. package/dist/es2015/localization/treelist-messages.directive.d.ts +14 -0
  66. package/dist/es2015/localization/treelist-messages.directive.js +29 -0
  67. package/dist/es2015/main.d.ts +2 -0
  68. package/dist/es2015/main.js +1 -0
  69. package/dist/es2015/models/events/cell-click-event.interface.d.ts +43 -0
  70. package/dist/es2015/models/events/cell-click-event.interface.js +4 -0
  71. package/dist/es2015/models/events/cell-close-event.interface.d.ts +48 -0
  72. package/dist/es2015/models/events/cell-close-event.interface.js +14 -0
  73. package/dist/es2015/models/events/preventable-event.d.ts +24 -0
  74. package/dist/es2015/models/events/preventable-event.js +30 -0
  75. package/dist/es2015/models/events/task-click-event.interface.d.ts +30 -0
  76. package/dist/es2015/models/events/task-click-event.interface.js +4 -0
  77. package/dist/es2015/models/events/task-edit-event.interface.d.ts +46 -0
  78. package/dist/es2015/models/events/task-edit-event.interface.js +4 -0
  79. package/dist/es2015/models/gantt-task-model-fields.interface.d.ts +1 -0
  80. package/dist/es2015/models/gantt-task-model-fields.interface.js +2 -1
  81. package/dist/es2015/models/models.d.ts +2 -0
  82. package/dist/es2015/package-metadata.js +1 -1
  83. package/dist/es2015/rendering/gantt-milestone-task.component.js +2 -0
  84. package/dist/es2015/rendering/gantt-summary-task.component.js +2 -0
  85. package/dist/es2015/rendering/gantt-task-base.d.ts +2 -0
  86. package/dist/es2015/rendering/gantt-task-base.js +8 -0
  87. package/dist/es2015/rendering/gantt-task.component.d.ts +4 -1
  88. package/dist/es2015/rendering/gantt-task.component.js +18 -2
  89. package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +1 -0
  90. package/dist/es2015/rendering/gantt-tasks-table-body.component.js +11 -1
  91. package/dist/es2015/selection/selectable.directive.d.ts +42 -0
  92. package/dist/es2015/selection/selectable.directive.js +122 -0
  93. package/dist/es2015/selection/selection-change-event.d.ts +25 -0
  94. package/dist/es2015/selection/selection-change-event.js +4 -0
  95. package/dist/es2015/timeline/gantt-timeline.component.d.ts +1 -0
  96. package/dist/es2015/timeline/gantt-timeline.component.js +5 -0
  97. package/dist/es2015/toolbar/view-selector.component.d.ts +3 -0
  98. package/dist/es2015/toolbar/view-selector.component.js +7 -7
  99. package/dist/es2015/utils.d.ts +39 -0
  100. package/dist/es2015/utils.js +48 -1
  101. package/dist/fesm2015/index.js +1387 -35
  102. package/dist/fesm5/index.js +1191 -45
  103. package/dist/npm/columns/column.component.js +5 -0
  104. package/dist/npm/columns/columns.js +2 -0
  105. package/dist/npm/columns/edit-template.directive.js +36 -0
  106. package/dist/npm/columns/span-column.component.js +6 -0
  107. package/dist/npm/common/default-callbacks.js +4 -0
  108. package/dist/npm/editing/edit-dialog.component.js +46 -0
  109. package/dist/npm/editing/edit.service.js +41 -0
  110. package/dist/npm/editing/util.js +19 -0
  111. package/dist/npm/gantt.component.js +475 -19
  112. package/dist/npm/gantt.module.js +61 -4
  113. package/dist/npm/index.js +12 -0
  114. package/dist/npm/localization/custom-messages.component.js +46 -0
  115. package/dist/npm/localization/localized-messages.directive.js +37 -0
  116. package/dist/npm/localization/messages.js +248 -0
  117. package/dist/npm/localization/treelist-messages.directive.js +33 -0
  118. package/dist/npm/main.js +2 -0
  119. package/dist/npm/models/events/cell-click-event.interface.js +6 -0
  120. package/dist/npm/models/events/cell-close-event.interface.js +21 -0
  121. package/dist/npm/models/events/preventable-event.js +34 -0
  122. package/dist/npm/models/events/task-click-event.interface.js +6 -0
  123. package/dist/npm/models/events/task-edit-event.interface.js +6 -0
  124. package/dist/npm/models/gantt-task-model-fields.interface.js +2 -1
  125. package/dist/npm/package-metadata.js +1 -1
  126. package/dist/npm/rendering/gantt-milestone-task.component.js +1 -1
  127. package/dist/npm/rendering/gantt-summary-task.component.js +1 -1
  128. package/dist/npm/rendering/gantt-task-base.js +8 -0
  129. package/dist/npm/rendering/gantt-task.component.js +12 -4
  130. package/dist/npm/rendering/gantt-tasks-table-body.component.js +5 -1
  131. package/dist/npm/selection/selectable.directive.js +143 -0
  132. package/dist/npm/selection/selection-change-event.js +6 -0
  133. package/dist/npm/timeline/gantt-timeline.component.js +5 -1
  134. package/dist/npm/toolbar/view-selector.component.js +7 -4
  135. package/dist/npm/utils.js +47 -0
  136. package/dist/systemjs/kendo-angular-gantt.js +1 -1
  137. package/package.json +15 -10
package/dist/cdn/main.js CHANGED
@@ -2,4 +2,26 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-treelist"),require("rxjs"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-intl"),require("rxjs/operators"),require("@progress/kendo-licensing"),require("@progress/kendo-data-query"),require("@progress/kendo-common"),require("@angular/common"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-treelist","rxjs","@progress/kendo-date-math","@progress/kendo-angular-common","@progress/kendo-angular-intl","rxjs/operators","@progress/kendo-licensing","@progress/kendo-data-query","@progress/kendo-common","@angular/common","@progress/kendo-angular-layout","@progress/kendo-angular-buttons"],t):"object"==typeof exports?exports.KendoAngularGantt=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-treelist"),require("rxjs"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-intl"),require("rxjs/operators"),require("@progress/kendo-licensing"),require("@progress/kendo-data-query"),require("@progress/kendo-common"),require("@angular/common"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons")):e.KendoAngularGantt=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-treelist"],e.rxjs,e["@progress/kendo-date-math"],e["@progress/kendo-angular-common"],e["@progress/kendo-angular-intl"],e["rxjs/operators"],e["@progress/kendo-licensing"],e["@progress/kendo-data-query"],e["@progress/kendo-common"],e["@angular/common"],e["@progress/kendo-angular-layout"],e["@progress/kendo-angular-buttons"])}(window,(function(e,t,n,i,a,o,r,s,p,l,d,c,u,m){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=37)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(44),r=n(45),s=n(46),p=n(6),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 p.isPresent(this.taskFields)?o.getter(this.taskFields[t])(e):null},e.prototype.extractFromDependency=function(e,t){return p.isPresent(this.dependencyFields)?o.getter(this.dependencyFields[t])(e):null},e=i.__decorate([a.Injectable()],e)}();t.MappingService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(7),r=n(4),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,a=n(9),o=n(8);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="&nbsp;",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)}},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});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(2).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(31),r=n(32),s=n(33),p={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=p[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(9),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(0),a=n(1),o=n(2),r=n(2),s=n(7),p=n(38),l=n(39),d=n(9),c=n(14),u=n(42),m=n(11),_=n(31),y=n(33),g=n(32),f=n(19),v=n(5),h=n(4),C=n(3),b=n(6),k=n(47),T=n(21),w=n(22),S=n(23),D=n(24),O=n(12),E=(n(8),function(){function e(e,t,n,o,r,d){var c=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=o,this.optionChangesService=r,this.dependencyDomService=d,this.hostClasses=!0,this.toolbarPosition="top",this.fetchChildren=u.fetchChildren,this.hasChildren=u.hasChildren,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.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new a.EventEmitter,this.rowCollapse=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.expandStateChange=new a.EventEmitter,this._columns=new a.QueryList,this._data=[],this._timelinePaneOptions=i.__assign({},k.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=i.__assign({},k.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=u.rowClassCallback,this._taskClass=u.taskClassCallback,this._activeView="week",this.optionChangesSubscriptions=new s.Subscription,p.validatePackage(l.packageMetadata),this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe((function(){c.loadTimelineData()}))),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe((function(){c.treeList.columns.notifyOnChanges()})))}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,"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=b.normalizeGanttData(e),this.loadTimelineData()},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({},k.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({},k.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,"renderedTreeListItems",{get:function(){return b.isPresent(this.treeList)?this.treeList.view.data.map((function(e){return e.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,"idGetter",{get:function(){if(b.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}),e.prototype.ngOnChanges=function(e){d.anyChanged(["data","activeView","workWeekStart","workWeekEnd","workDayStart","workDayEnd"],e)&&this.loadTimelineData()},e.prototype.ngAfterViewInit=function(){this.updateTreeListMargin();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()},e.prototype.autoFitColumn=function(e){b.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},e.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),b.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},e.prototype.reload=function(e,t){b.isPresent(this.treeList)&&this.treeList.reload(e,t)},e.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),b.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},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.updateView=function(){b.isPresent(this.treeList)&&this.treeList.updateView()},e.prototype.loadTimelineData=function(){if(b.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.toolbarPosition&&[e,"both"].indexOf(this.toolbarPosition)>-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.updateTreeListGroupClass=function(e){(void 0===e&&(e=this.columns),b.isPresent(this.treeList))&&(b.isPresent(e)&&e.length>0&&e.some((function(e){return b.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(b.scrollbarWidth()-1)+"px")},e.prototype.getActiveViewOptions=function(){var e=this;if(this.views)return this.views.find((function(t){return t.type===e.activeView}))},i.__decorate([a.ViewChild(r.TreeListComponent,{static:!0}),i.__metadata("design:type",r.TreeListComponent)],e.prototype,"treeList",void 0),i.__decorate([a.ContentChild(S.GanttTaskContentTemplateDirective,{static:!0}),i.__metadata("design:type",S.GanttTaskContentTemplateDirective)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.ContentChild(T.GanttTaskTemplateDirective,{static:!0}),i.__metadata("design:type",T.GanttTaskTemplateDirective)],e.prototype,"taskTemplate",void 0),i.__decorate([a.ContentChild(w.GanttSummaryTaskTemplateDirective,{static:!0}),i.__metadata("design:type",w.GanttSummaryTaskTemplateDirective)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.ContentChildren(D.ToolbarTemplateDirective),i.__metadata("design:type",a.QueryList)],e.prototype,"toolbarTemplateChildren",void 0),i.__decorate([a.HostBinding("class.k-gantt"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([a.ContentChildren(c.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(O.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",String)],e.prototype,"toolbarPosition",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),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",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.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"rowExpand",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,"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),e=t=i.__decorate([a.Component({selector:"kendo-gantt",providers:[{provide:o.DataBoundTreeComponent,useExisting:a.forwardRef((function(){return t}))},{provide:o.ExpandableTreeComponent,useExisting:a.forwardRef((function(){return t}))},m.TimelineViewService,_.TimelineDayViewService,y.TimelineWeekViewService,g.TimelineMonthViewService,f.ScrollSyncService,v.DependencyDomService,h.MappingService,C.OptionChangesService],template:'\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'top\')"\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 [isExpanded]="isExpanded"\n [autoSize]="columnsAutoSize"\n [columnMenu]="columnMenu"\n [reorderable]="columnsReorderable"\n [resizable]="columnsResizable"\n [rowClass]="rowClass"\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 >\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 [rows]="renderedTreeListItems"\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 [hasChildren]="hasChildren"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'bottom\')"\n class="k-gantt-footer k-toolbar k-gantt-toolbar"\n position="bottom"></kendo-gantt-toolbar>\n '}),i.__metadata("design:paramtypes",[m.TimelineViewService,f.ScrollSyncService,a.Renderer2,h.MappingService,C.OptionChangesService,v.DependencyDomService])],e)}());t.GanttComponent=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10);t.GanttColumnBase=i.GanttColumnBase;var a=n(26);t.GanttColumnComponent=a.GanttColumnComponent;var o=n(40);t.GanttColumnGroupComponent=o.GanttColumnGroupComponent;var r=n(41);t.GanttSpanColumnComponent=r.GanttSpanColumnComponent;var s=n(15);t.CellTemplateDirective=s.CellTemplateDirective;var p=n(16);t.HeaderTemplateDirective=p.HeaderTemplateDirective;var l=n(30);t.FooterTemplateDirective=l.FooterTemplateDirective;var d=n(27);t.ColumnMenuTemplateDirective=d.ColumnMenuTemplateDirective;var c=n(28);t.FilterCellTemplateDirective=c.FilterCellTemplateDirective;var u=n(29);t.FilterMenuTemplateDirective=u.FilterMenuTemplateDirective},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){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),a=n(6),o=n(8),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),p=this.getEndOffset(r);return this._viewStart=Number(s),{start:new Date(s),end:new Date(p)}},e.prototype.getHours=function(e,t){for(var n=[],i=this.intlService.parseDate(this.options.workDayStart).getHours(),o=this.intlService.parseDate(this.options.workDayEnd).getHours(),r=new Date(e),s=new Date(t);r<s;){var p=new Date(r),l=a.isWorkHour(p,i,o);p.setHours(p.getHours()+1),n.push({start:r,end:p,isWorking:l,text:this.intlService.formatDate(r,"HH:mm aa"),span:1}),r=p}return n},e.prototype.getDays=function(e,t){for(var n=[],i=new Date(e),r=new Date(t);i<=r;){var s=o.getDate(o.addDays(i,1)),p=a.isWorkDay(i,this.options.workWeekStart,this.options.workWeekEnd),l=r<s?r:s;n.push({start:i,end:l,isWorking:p,text:this.intlService.formatDate(i,"E d/MM"),span:1}),i=s}return n},e.prototype.getWeeks=function(e,t){for(var n=this.intlService.firstDay(),i=[],r=new Date(e),s=new Date(t);r<=s;){var p=a.lastDayOfWeek(r,n),l=p>s?s:p,d=this.getDays(r,l),c=d.length,u=this.intlService.formatDate(o.firstDayInWeek(o.getDate(r),n),"E d/MM"),m=this.intlService.formatDate(o.addDays(l,-1),"E d/MM");c>0&&i.push({start:d[0].start,end:d[c-1].end,text:u+" - "+m,span:c}),r=o.firstDayInWeek(o.addWeeks(l,1))}return i},e.prototype.getMonths=function(e,t){for(var n=[],i=new Date(e),a=new Date(t);i<a;){var r=o.lastDayOfMonth(i),s=a<r?a:r,p=this.getDays(i,s),l=p.length,d=o.firstDayOfMonth(o.getDate(i)),c=this.intlService.formatDate(d,"MMM");l>0&&n.push({start:p[0].start,end:p[l-1].end,span:l,text:c}),i=o.firstDayOfMonth(o.addMonths(s,1))}return n},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(7),r=n(20),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){e.exports=s},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(8),r=n(7),s=n(6),p={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){var o=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=a,this.wrapperClass=!0,this.viewChangesSubscription=new r.Subscription,this.viewChangesSubscription.add(this.optionChangesService.viewChanges.subscribe((function(){o.cdr.markForCheck()})))}return Object.defineProperty(e.prototype,"slotUnitDuration",{get:function(){return p[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}),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()},e.prototype.ngOnDestroy=function(){s.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.viewChangesSubscription.unsubscribe()},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}),i.__decorate([a.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClass",void 0),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",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),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(2),r=n(3),s=n(10),p=n(15),l=n(27),d=n(28),c=n(29),u=n(30),m=n(16),_=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(m.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(p.CellTemplateDirective,{static:!1}),i.__metadata("design:type",p.CellTemplateDirective)],t.prototype,"template",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(c.FilterMenuTemplateDirective,{static:!1}),i.__metadata("design:type",c.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=_},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(0),a=n(1),o=n(17),r=n(18),s=n(4),p=n(6),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 p.setTime(e,e.getHours()-1)},t.prototype.getEndOffset=function(e){return p.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 p=o[s],l=this.getHours(p.start,p.end);p.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(17),r=n(8),s=n(4),p=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(18).TimelineBaseViewService);t.TimelineMonthViewService=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(8),s=n(4),p=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(18).TimelineBaseViewService);t.TimelineWeekViewService=p},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(2).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(2).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(2).ExpandableDirective);t.GanttExpandableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(13);t.GanttComponent=a.GanttComponent;var o=n(48);t.GanttModule=o.GanttModule;var r=n(35);t.GanttHierarchyBindingDirective=r.GanttHierarchyBindingDirective;var s=n(34);t.GanttFlatBindingDirective=s.GanttFlatBindingDirective;var p=n(36);t.GanttExpandableDirective=p.GanttExpandableDirective;var l=n(21);t.GanttTaskTemplateDirective=l.GanttTaskTemplateDirective;var d=n(23);t.GanttTaskContentTemplateDirective=d.GanttTaskContentTemplateDirective;var c=n(22);t.GanttSummaryTaskTemplateDirective=c.GanttSummaryTaskTemplateDirective;var u=n(24);t.ToolbarTemplateDirective=u.ToolbarTemplateDirective,i.__exportStar(n(65),t),i.__exportStar(n(14),t)},function(e,t){e.exports=p},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:1633006629,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),r=n(3),s=n(10),p=n(16),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(p.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(2),r=n(3),s=n(15),p=n(10),l=n(26),d=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}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.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:p.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,p.GanttColumnBase])],t)}(o.SpanColumnComponent);t.GanttSpanColumnComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.hasChildren=function(){return!1},t.fetchChildren=function(){return i.of([])},t.rowClassCallback=function(){return null},t.taskClassCallback=function(){return null}},function(e,t){e.exports=l},function(e,t){e.exports=d},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"})},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});var i=n(0),a=n(1),o=n(49),r=n(50),s=n(2),p=n(51),l=n(13),d=n(52),c=n(53),u=n(54),m=n(55),_=n(21),y=n(23),g=n(56),f=n(22),v=n(57),h=n(34),C=n(35),b=n(36),k=n(58),T=n(24),w=n(59),S=n(60),D=n(14),O=n(62),E=n(63),I=n(64),P=[o.CommonModule,r.SplitterModule,s.TreeListModule,p.ButtonsModule],j=[l.GanttComponent,h.GanttFlatBindingDirective,C.GanttHierarchyBindingDirective,m.GanttTaskComponent,g.GanttSummaryTaskComponent,v.GanttMilestoneTaskComponent,d.GanttTimelineComponent,c.GanttTasksTableBodyComponent,u.GanttHeaderTableBodyComponent,y.GanttTaskContentTemplateDirective,_.GanttTaskTemplateDirective,f.GanttSummaryTaskTemplateDirective,T.ToolbarTemplateDirective,k.ToolbarComponent,w.ViewSelectorComponent,D.GanttColumnComponent,D.GanttColumnGroupComponent,D.GanttSpanColumnComponent,D.FilterMenuTemplateDirective,D.FilterCellTemplateDirective,D.CellTemplateDirective,D.ColumnMenuTemplateDirective,D.HeaderTemplateDirective,D.FooterTemplateDirective,b.GanttExpandableDirective,S.GanttDependencyDirective,O.TimelineDayViewComponent,E.TimelineWeekViewComponent,I.TimelineMonthViewComponent],M=function(){function e(){}return e=i.__decorate([a.NgModule({imports:P.slice(),declarations:j.slice(),exports:j.slice()})],e)}();t.GanttModule=M},function(e,t){e.exports=c},function(e,t){e.exports=u},function(e,t){e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(7),r=n(20),s=n(19),p=n(5),l=n(6),d=n(9),c=function(){function e(e,t,n,i){var a=this;this.scrollSyncService=e,this.dependencyDomService=t,this.renderer=n,this.zone=i,this.hostClass=!0,this.dependencies=[],this.subscriptions=new o.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(r.filter((function(e){return l.isPresent(e.timelineRow)})),r.switchMap((function(e){return a.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){var t=e.timelineRow,n=d.isDocumentAvailable()?t.getBoundingClientRect().height:0;a.renderer.setStyle(a.timelineColumns.nativeElement,"height",(a.rows||[]).length*n+"px")})))}return 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.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",Function)],e.prototype,"hasChildren",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",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 <div #timelineContent class="k-grid-content">\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 [hasChildren]="hasChildren"\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 </svg>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[s.ScrollSyncService,p.DependencyDomService,a.Renderer2,a.NgZone])],e)}();t.GanttTimelineComponent=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(5),s=n(6),p=n(4),l=function(){function e(e,t){this.dependencyDomService=e,this.mapper=t}return Object.defineProperty(e.prototype,"timelineRow",{set:function(e){s.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isMileStone=function(e){return!this.hasChildren(e)&&o.isEqualDate(this.mapper.extractFromTask(e,"start"),this.mapper.extractFromTask(e,"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",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,"hasChildren",void 0),e=i.__decorate([a.Component({selector:"[kendoGanttTasksTableBody]",template:'\n <tr #timelineRow *ngFor="let item of rows">\n <td>\n <kendo-gantt-milestone-task\n *ngIf="isMileStone(item); else task"\n [dataItem]="item"\n [activeView]="activeView"\n [taskClass]="taskClass"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="hasChildren(item)"\n [dataItem]="item"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!hasChildren(item)"\n [dataItem]="item"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,p.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(4),r=n(5),s=n(3),p=n(11),l=n(25),d=function(e){function t(t,n,i,a,o){return e.call(this,t,n,i,a,o)||this}var n;return i.__extends(t,e),n=t,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:l.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-single"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\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 </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 '}),i.__metadata("design:paramtypes",[o.MappingService,p.TimelineViewService,r.DependencyDomService,s.OptionChangesService,a.ChangeDetectorRef])],t)}(l.GanttTaskBase);t.GanttTaskComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(5),s=n(3),p=n(11),l=n(25),d=function(e){function t(t,n,i,a,o){var r=e.call(this,t,n,i,a,o)||this;return r.summaryWrapperClass=!0,r}var n;return i.__extends(t,e),n=t,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),t=n=i.__decorate([a.Component({selector:"kendo-gantt-summary-task",providers:[{provide:l.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\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 '}),i.__metadata("design:paramtypes",[o.MappingService,p.TimelineViewService,r.DependencyDomService,s.OptionChangesService,a.ChangeDetectorRef])],t)}(l.GanttTaskBase);t.GanttSummaryTaskComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(5),s=n(3),p=n(11),l=n(25),d=function(e){function t(t,n,i,a,o){var r=e.call(this,t,n,i,a,o)||this;return r.milestoneWrapperClass=!0,r}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:l.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n >\n </div>\n '}),i.__metadata("design:paramtypes",[o.MappingService,p.TimelineViewService,r.DependencyDomService,s.OptionChangesService,a.ChangeDetectorRef])],t)}(l.GanttTaskBase);t.GanttMilestoneTaskComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(13),r=n(19),s=function(){function e(e,t){this.gantt=e,this.scrollSyncService=t,this.context={}}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.onViewChange=function(e){this.gantt.activeView=e,this.gantt.loadTimelineData(),this.gantt.activeViewChange.emit(e),this.scrollSyncService.resetTimelineScrollLeft()},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 <span class="k-spacer k-toolbar-spacer"></span>\n <kendo-gantt-view-selector\n [views]="gantt.viewTypes"\n [activeView]="gantt.activeView"\n (activeViewChange)="onViewChange($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,r.ScrollSyncService])],e)}();t.ToolbarComponent=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.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""+e[0].toLocaleUpperCase()+e.slice(1)},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 class="k-dropdown k-views-dropdown" style="text-transform: capitalize;"\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 [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '})],e)}();t.ViewSelectorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(7),r=n(20),s=n(4),p=n(5),l=n(6),d=n(61),c=n(9),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=c.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,p.DependencyDomService])],e)}();t.GanttDependencyDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOffsetRelativeToParent=function(e,t){for(var n={top:0,left:0},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,a,o,r){var s,p,l=[],d=Math.floor(n/2),c=e.top<t.top;if(0===a||3===a){var u=3===a?"left":"right";s=e.top,p=e[u],l.push({top:s,left:p}),p=Math["left"===u?"min":"max"](e[u],t[u]),p="left"===u?p-o:p+o,l.push({top:s,left:p}),s=t.top,l.push({top:s,left:p}),p="left"===u?t[u]-r:t[u]+r,l.push({top:s,left:p}),l.push.apply(l,i(s,p,"left"!==u,r))}else{var m=2===a?"left":"right",_=2===a?"right":"left",y=2===a?e[m]-2*o<t[_]:e[m]+2*o>t[_];s=e.top,p=e[m],l.push({top:s,left:p}),p="left"===m?p-o:p+o,l.push({top:s,left:p}),y&&(s=c?s+d:s-d,l.push({top:s,left:p}),p="left"===m?t[_]+o:t[_]-o,l.push({top:s,left:p})),s=t.top,l.push({top:s,left:p}),p="left"===_?t[_]-r:t[_]+r,l.push({top:s,left:p}),l.push.apply(l,i(s,p,"left"!==_,r))}return l};var i=function(e,t,n,i){return n?a(e,t,i):o(e,t,i)},a=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},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}},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=n(3),p=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=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=n(3),p=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=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=n(3),p=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=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}])}));
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("@angular/common"),require("@progress/kendo-angular-intl"),require("@progress/kendo-licensing"),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")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-date-math","@progress/kendo-angular-common","rxjs","@angular/forms","rxjs/operators","@angular/common","@progress/kendo-angular-intl","@progress/kendo-licensing","@progress/kendo-common","@progress/kendo-angular-treelist","@progress/kendo-data-query","@progress/kendo-angular-layout","@progress/kendo-angular-buttons","@progress/kendo-angular-dialog"],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("@angular/common"),require("@progress/kendo-angular-intl"),require("@progress/kendo-licensing"),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")):e.KendoAngularGantt=t(e.tslib,e["@angular/core"],e["@progress/kendo-date-math"],e["@progress/kendo-angular-common"],e.rxjs,e["@angular/forms"],e["rxjs/operators"],e["@angular/common"],e["@progress/kendo-angular-intl"],e["@progress/kendo-licensing"],e["@progress/kendo-common"],e["@progress/kendo-angular-treelist"],e["@progress/kendo-data-query"],e["@progress/kendo-angular-layout"],e["@progress/kendo-angular-buttons"],e["@progress/kendo-angular-dialog"])}(window,(function(e,t,n,i,o,a,r,s,c,l,d,p,u,h,b,m){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));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=47)}([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),o=n(1),a=n(5),r=n(7),s=function(){function e(){this.changes=new a.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(o.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 o.InjectionToken("Kendo UI Right-to-Left token"),d=new o.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 a.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),o=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;o=this.defaultValue(i,t)}this.dictionary[i]=o},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(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(d)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(l)),Object(i.__metadata)("design:paramtypes",[String,s,Boolean])],e)}()},function(e,t){e.exports=o},function(e,t){e.exports=a},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){e.exports=d},function(e,t,n){"use strict";n.d(t,"b",(function(){return le})),n.d(t,"a",(function(){return pe}));var i=n(0),o=n(1),a="bottom",r="center",s="middle",c="left",l="right",d="top",p=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,c=e.margin;void 0===c&&(c={});var d=n.horizontal,p=n.vertical,u=o.horizontal,h=o.vertical,b=c.horizontal||0,m=c.vertical||0,f=t.top,g=t.left;return p===a&&(f+=t.height),p!==r&&p!==s||(f+=Math.round(t.height/2)),h===a&&(f-=i.height,m*=-1),h!==r&&h!==s||(f-=Math.round(i.height/2),m*=-1),d===l&&(g+=t.width),d!==r&&d!==s||(g+=Math.round(t.width/2)),u===l&&(g-=i.width,b*=-1),u!==r&&u!==s||(g-=Math.round(i.width/2),b*=-1),{top:f+m,left:g+b}};function u(e){return e.ownerDocument||e.document||e}var h=function(e){return u(e).defaultView},b=function(e){return u(e).documentElement},m=0;function f(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function g(e){var t=h(e),n=b(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=f()),i}var v=function(e){if(!e.getBoundingClientRect){var t=g(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},y=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||b(e)},_=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var a=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,a}(e)),{top:i,left:n,height:t.height,width:t.width}},O=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function j(e){var t=b(e),n=h(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var k=function(e){return e===(e.ownerDocument||{}).body?j(e):{x:e.scrollLeft,y:e.scrollTop}};var C=function(e,t){var n=h(e),i=n.getComputedStyle(e),o=_(e),a=t||y(e),r=e.ownerDocument,s=a!==r.body&&a!==r.documentElement,c={top:0,left:0};if("fixed"!==i.position&&s){var l=n.getComputedStyle(a);(c=_(a)).top+=parseInt(l.borderTopWidth,10),c.left+=parseInt(l.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},w=function(e,t){return e?k(e):function(e){var t=y(e);return t?k(t):{x:0,y:0}}(t)};var S="fit",E="flip",D=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},I=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,a=e.anchorAlignPoint,l=e.elementAlignPoint,p=0,u=2*e.margin;if(l!==a&&!(l===r||l===s)&&!(a===r||a===s)){var h=a===d||a===c;t<0&&h?t+(p=n+i+u)+n>o&&(p=0):t>=0&&!h&&(t+n>o&&(p+=-(i+n+u)),t+p<0&&(p=0))}return p},T=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,a=e.collisions,r=e.viewPort,s=e.margin;void 0===s&&(s={});var c=i.top,l=i.left,d=i.height,p=i.width,u=r.height,h=r.width,b=s.horizontal||0,m=s.vertical||0,f=0,g=0,v=a.horizontal===E,y=a.vertical===E;a.vertical===S&&(g+=D(c,d,u)),a.horizontal===S&&(f+=D(l,p,h)),y&&(g+=I({margin:m,offset:c,size:d,anchorSize:t.height,viewPortSize:u,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),v&&(f+=I({margin:b,offset:l,size:p,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var _=v&&0!==f,O=y&&0!==g;return{flipped:_||O,flip:{horizontal:_,vertical:O},offset:{left:f,top:g}}},x=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},R=function(e,t){for(var n,i,o=O(e),a=t;a&&(n=x(a),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)a=a.parentElement;return i};var V=n(3),P=n(5),B=n(7),M=function(){};function F(e){return{type:6,styles:e,offset:null}}
6
+ /**
7
+ * @license
8
+ * Copyright Google Inc. All Rights Reserved.
9
+ *
10
+ * Use of this source code is governed by an MIT-style license that can be
11
+ * found in the LICENSE file at https://angular.io/license
12
+ */
13
+ function A(e){Promise.resolve(null).then(e)}
14
+ /**
15
+ * @license
16
+ * Copyright Google Inc. All Rights Reserved.
17
+ *
18
+ * Use of this source code is governed by an MIT-style license that can be
19
+ * found in the LICENSE file at https://angular.io/license
20
+ */(function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;A((function(){return e._onFinish()}))},e.prototype._onStart=function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}})(),function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,i=0,o=0,a=this.players.length;0==a?A((function(){return t._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++n==a&&t._onFinish()})),e.onDestroy((function(){++i==a&&t._onDestroy()})),e.onStart((function(){++o==a&&t._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach((function(e){return e.init()}))},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))},e.prototype.pause=function(){this.players.forEach((function(e){return e.pause()}))},e.prototype.restart=function(){this.players.forEach((function(e){return e.restart()}))},e.prototype.finish=function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))},e.prototype.getPosition=function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e},e.prototype.beforeDestroy=function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}()
21
+ /**
22
+ * @license
23
+ * Copyright Google Inc. All Rights Reserved.
24
+ *
25
+ * Use of this source code is governed by an MIT-style license that can be
26
+ * found in the LICENSE file at https://angular.io/license
27
+ */;var L=n(10),N=n(8),z=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},H=function(){return"undefined"!=typeof window},G=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var K,U,q,Z=(K=function(){if(!Object(V.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t},q=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return q||(U=K.apply(void 0,e),q=!0),U}),Y=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],X=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.align=function(e){return p(e)},e.prototype.boundingOffset=function(e){return v(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return $.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return H()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?_(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,a=i.top,r=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=_(n);return n.style.left=o,n.style.top=a,n.offsetHeight,n.style.transition=r,s},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?function(e,t,n){void 0===n&&(n=1);var i=t?y(t):null,o=C(e,i),a=o.top,r=o.left,s=o.height,c=o.width,l=w(i,e),d=l.x,p=l.y,u=e.ownerDocument,h=i===u.body||i===u.documentElement?1:n;return{top:a+p*h,left:r+d*h,height:s,width:c}}(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return T(e)},e.prototype.scrollPosition=function(e){return j(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(V.isDocumentAvailable)()||!H())return t;for(var n=e.parentElement;n;)(G.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?_(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!Z())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return g(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(V.isDocumentAvailable)()||!H())return null;var n=R(e,t);if(!n)return null;var i=[e].concat(O(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(V.isDocumentAvailable)()&&H()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Q=new o.InjectionToken("Popup Document Scale"),J=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,a=e.margin,r=e.offset,s=e.positionMode,c=this.scale||1,l="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,r,c):this.relativeRect(t,n,r,c),d=Y(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:l,elementAlign:o,elementRect:d,margin:a})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),a=z(this._dom.offset(e),n),r=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=r,s.y/=r);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=r,c.top/=r),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(Y(a,i),c),s),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=z(this._dom.position(e,t,i),n);return Y(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(Q)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[X,Number])],e)}(),ee=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,a=e.elementAlign,r=e.collisions,s=e.margin,c=this._dom,l=this.scale||1,d=c.offsetAtPoint(i,n),p=Y(d,l),u=Y(c.offset(t),l),h=z(u,n),b=e.viewPort||c.windowViewPort(i);b.width=b.width/l,b.height=b.height/l;var m=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:r,elementAlign:a,elementRect:p,margin:s,viewPort:b}),f=c.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:f}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(Q)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[X,Number])],e)}(),te=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(V.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(P.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(B.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[X,o.NgZone])],e)}(),ne=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(V.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(P.fromEvent)(e,"scroll").pipe(Object(B.auditTime)(1e3/60))}));t.subscription=P.merge.apply(void 0,o).subscribe((function(o){var a=o.target,r=i.filter((function(e){return e===a})).length>0,s=a===document,c=a===window;(r||s||c)&&e(t.isVisible(n,a))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[X,o.NgZone])],e)}(),ie={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},oe=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=t.type||"slide",a=ie[i];if(a){var r=a(this.getDirection(n,t));this.playStates(e,r,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o,a,r=n.duration||100,s=this.animationBuilder.build([F(t.start),(o=r+"ms ease-in",a=F(t.end),void 0===a&&(a=null),{type:4,styles:a,timings:o})]),c=this.player=s.create(e);c.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),c.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[M])],e)}(),ae={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939378,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"},re={left:-1e4,top:0},se=function(){function e(e,t,n,i,a,r,s,c,l){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=a,this._scrollableService=r,this.animationService=s,this._renderer=c,this._zone=l,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=re,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(L.validatePackage)(ae),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=re,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(P.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(V.isDocumentAvailable)()){var t,n,i,o,a,r,s=this.position(),c=s.flip,l=s.offset;(!this.currentOffset||(t=this.currentOffset,n=l,i=t.left,o=t.top,a=n.left,r=n.top,Math.abs(i-a)>=1||Math.abs(o-r)>=1))&&(this.currentOffset=l,Object(V.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:l,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(V.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(V.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",V.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[J,oe,X,ee,te,ne],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,J,X,ee,te,ne,oe,o.Renderer2,o.NgZone])],e)}(),ce=new o.InjectionToken("Popup Container"),le=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,i=t.nodes,o=this.appendPopup(i,e.appendTo),a=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var r=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=r)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:a.anchorViewportLeave,popupClose:a.close,popupElement:r,popupOpen:a.open,popupPositionChange:a.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(se,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(ce)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),de=[se],pe=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[de],entryComponents:[de],exports:[de],imports:[N.CommonModule,V.ResizeSensorModule],providers:[le]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(11),r=n(53),s=n(54),c=n(17),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)?a.getter(this.taskFields[t])(e):null},e.prototype.extractFromDependency=function(e,t){return c.isPresent(this.dependencyFields)?a.getter(this.dependencyFields[t])(e):null},e=i.__decorate([o.Injectable()],e)}();t.MappingService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(){this.viewChanges=new o.EventEmitter,this.columnChanges=new o.EventEmitter}return e.prototype.notifyColumnChanges=function(){this.columnChanges.emit()},e.prototype.notifyViewChanges=function(){this.viewChanges.emit()},e=i.__decorate([o.Injectable()],e)}();t.OptionChangesService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(13),s=function(){function e(e){this.mapper=e,this.notifier=new a.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([o.Injectable(),i.__metadata("design:paramtypes",[r.MappingService])],e)}();t.DependencyDomService=s},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(3),a=n(2);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,o,r){if(void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),!t.isPresent(e))return null;var s=a.cloneDate(e);return s.setHours(n),s.setMinutes(i),s.setSeconds(o),s.setMilliseconds(r),s},t.lastDayOfWeek=function(e,t){var n=a.addWeeks(e,1),i=a.firstDayInWeek(n,t);return a.addDays(i,-1)},t.scrollbarWidth=function(){if(o.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="&nbsp;",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.getClosestTask=function(e,t){return o.closestInScope(e,o.matchesClasses("k-task"),t)},t.getClosestTaskIndex=function(e,n){var i=o.closestInScope(e,o.matchesClasses("k-task"),n);return t.isPresent(i)?Number(i.getAttribute("data-task-index")):null},t.isTask=function(e,n){var i=o.closestInScope(e,o.matchesClasses("k-task"),n);return t.isPresent(i)},t.isClearButton=function(e,n){var i=o.closestInScope(e,o.matchesClasses("k-task-actions"),n);return t.isPresent(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(16),r=(n(2),n(5)),s=n(10),c=n(48),l=n(3),d=n(22),p=n(51),u=n(20),h=n(39),b=n(41),m=n(40),f=n(27),g=n(15),v=n(13),y=n(14),_=n(28),O=n(4),j=n(17),k=n(55),C=n(29),w=n(30),S=n(31),E=n(32),D=n(21),I=n(56),T=function(){function e(e,t,n,a,l,d,u,h,b,m){var f=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=a,this.optionChangesService=l,this.dependencyDomService=d,this.editService=u,this.localizationService=h,this.hostElement=b,this.zone=m,this.hostClasses=!0,this.isSelected=p.isSelected,this.selectionChange=new o.EventEmitter,this.selectable=!1,this.toolbarPosition="top",this.fetchChildren=p.fetchChildren,this.hasChildren=p.hasChildren,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.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new o.EventEmitter,this.taskDblClick=new o.EventEmitter,this.cellDblClick=new o.EventEmitter,this.cellClose=new o.EventEmitter,this.taskDelete=new o.EventEmitter,this.rowCollapse=new o.EventEmitter,this.remove=new o.EventEmitter,this.cancel=new o.EventEmitter,this.save=new o.EventEmitter,this.sortChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.dataStateChange=new o.EventEmitter,this.treeListPaneCollapsedChange=new o.EventEmitter,this.timelinePaneCollapsedChange=new o.EventEmitter,this.timelinePaneSizeChange=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.columnResize=new o.EventEmitter,this.columnReorder=new o.EventEmitter,this.columnVisibilityChange=new o.EventEmitter,this.columnLockedChange=new o.EventEmitter,this.cellClick=new o.EventEmitter,this.taskClick=new o.EventEmitter,this.expandStateChange=new o.EventEmitter,this.showEditingDialog=!1,this.showConfirmationDialog=!1,this._columns=new o.QueryList,this._data=[],this._timelinePaneOptions=i.__assign({},k.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=i.__assign({},k.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=p.rowClassCallback,this._taskClass=p.taskClassCallback,this._activeView="week",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(){f.loadTimelineData()}))),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe((function(){f.treeList.columns.notifyOnChanges()}))),this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe((function(e){return f.showEditingDialog=e}))),this.editServiceSubscription.add(this.editService.showConfirmationDialog.subscribe((function(){return f.taskDelete.emit()}))),this.editServiceSubscription.add(this.editService.editEvent.subscribe((function(e){f[e.editResultType].emit({formGroup:e.formGroup,item:I.getEditItem(e.dataItem,f.treeList.view.data,f.mapper),sender:f}),f.showConfirmationDialog=f.showEditingDialog=!1,f.editService.dataItem=f.editService.formGroup=null,f.updateView(),f.dependencyDomService.notifyChanges()}))),this.localizationSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;f.rtl=t,f.direction=f.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,"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=j.normalizeGanttData(e),this.loadTimelineData()},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({},k.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({},k.DEFAULT_TREELIST_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskClass",{get:function(){return this._taskClass},set:function(e){if(o.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(o.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,"renderedTreeListItems",{get:function(){return j.isPresent(this.treeList)?this.treeList.view.data.map((function(e){return e.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:p.isSelected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idGetter",{get:function(){if(j.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,"editDialogFormGroup",{get:function(){return this.editService.formGroup},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();var e=this.treeList.wrapper.nativeElement.querySelector("kendo-treelist-list > div");this.scrollSyncService.registerElement(e,"treelist")},e.prototype.ngAfterContentInit=function(){if(o.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.autoFitColumn=function(e){j.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},e.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),j.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},e.prototype.reload=function(e,t){j.isPresent(this.treeList)&&this.treeList.reload(e,t)},e.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),j.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},e.prototype.updateView=function(){j.isPresent(this.treeList)&&this.treeList.updateView()},e.prototype.editTask=function(e,t){this.showEditingDialog||this.editService.createEditDialog(e,t)},e.prototype.closeTaskDialog=function(){this.showEditingDialog&&this.editService.closeEditDialog()},e.prototype.openConfirmationDialog=function(){this.showConfirmationDialog=!0},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(j.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],o=t[1];this.timelineSlots=o,this.timelineGroupSlots=n}},e.prototype.showToolbar=function(e){return"none"!==this.toolbarPosition&&[e,"both"].indexOf(this.toolbarPosition)>-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(j.isTask(n,i)&&!j.isClearButton(n,i)&&l.hasObservers(this.taskClick)){var o=j.getClosestTaskIndex(n,i),a=this.renderedTreeListItems[o];this.zone.run((function(){return t.emitTaskClick(e,a,o)}))}},e.prototype.handleTimelineClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(j.isTask(n,i)&&!j.isClearButton(n,i)){var o=j.getClosestTaskIndex(n,i),a=this.renderedTreeListItems[o],r=this.getSelectionAction(e,a);(l.hasObservers(this.selectionChange)&&!this.isSameSelection(r,a)||l.hasObservers(this.taskClick))&&this.zone.run((function(){t.emitSelectionChange(a,r),t.emitTaskClick(e,a,o)}))}},e.prototype.handleTreeListDoubleClick=function(e){var t=this;j.isPresent(this.lastTreeListCellClick)&&e.target===this.lastTreeListCellClick.originalEvent.target&&(this.editItem=I.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(!j.isPresent(this.lastTreeListCellClick)||"contextmenu"!==this.lastTreeListCellClick.type){var t=e.items.map((function(e){return e.dataItem}))[0],n=e.action;this.emitSelectionChange(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;j.isTask(t,n)&&!j.isClearButton(t,n)&&e.preventDefault()},e.prototype.handleTimelineDblClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(j.isTask(n,i)&&!j.isClearButton(n,i)&&l.hasObservers(this.taskDblClick)){var o=j.getClosestTaskIndex(n,i),a=this.renderedTreeListItems[o];this.zone.run((function(){return t.taskDblClick.emit({dataItem:a,originalEvent:e,sender:t,rowIndex:o,type:"dblclick"})}))}},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.emitTaskClick=function(e,t,n){this.taskClick.emit({originalEvent:e,dataItem:t,rowIndex:n,type:e.type,sender:this})},e.prototype.emitSelectionChange=function(e,t){this.isSameSelection(t,e)||(this.selectionChange.emit({action:t,items:[e],sender:this}),this.updateView())},e.prototype.updateTreeListGroupClass=function(e){(void 0===e&&(e=this.columns),j.isPresent(this.treeList))&&(j.isPresent(e)&&e.length>0&&e.some((function(e){return j.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(j.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.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"},i.__decorate([o.ViewChild(a.TreeListComponent,{static:!0}),i.__metadata("design:type",a.TreeListComponent)],e.prototype,"treeList",void 0),i.__decorate([o.ContentChild(S.GanttTaskContentTemplateDirective,{static:!0}),i.__metadata("design:type",S.GanttTaskContentTemplateDirective)],e.prototype,"taskContentTemplate",void 0),i.__decorate([o.ContentChild(C.GanttTaskTemplateDirective,{static:!0}),i.__metadata("design:type",C.GanttTaskTemplateDirective)],e.prototype,"taskTemplate",void 0),i.__decorate([o.ContentChild(w.GanttSummaryTaskTemplateDirective,{static:!0}),i.__metadata("design:type",w.GanttSummaryTaskTemplateDirective)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.ContentChildren(E.ToolbarTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"toolbarTemplateChildren",void 0),i.__decorate([o.HostBinding("class.k-gantt"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.ContentChildren(d.GanttColumnBase),i.__metadata("design:type",o.QueryList),i.__metadata("design:paramtypes",[o.QueryList])],e.prototype,"columns",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"taskModelFields",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dependencyModelFields",null),i.__decorate([o.ContentChildren(D.ViewBase),i.__metadata("design:type",o.QueryList)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeView",null),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"toolbarPosition",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"fetchChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"sortable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"sort",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"workDayStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"workDayEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"timelinePaneOptions",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"treeListPaneOptions",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"taskClass",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"rowClass",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsAutoSize",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"columnMenu",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsReorderable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsResizable",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"rowExpand",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskDblClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellDblClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellClose",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskDelete",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"rowCollapse",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"remove",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"save",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"sortChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"dataStateChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"treeListPaneCollapsedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"timelinePaneCollapsedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"timelinePaneSizeChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnResize",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnReorder",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnVisibilityChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnLockedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskClick",void 0),e=t=i.__decorate([o.Component({selector:"kendo-gantt",exportAs:"kendoGantt",providers:[O.LocalizationService,{provide:a.DataBoundTreeComponent,useExisting:o.forwardRef((function(){return t}))},{provide:a.ExpandableTreeComponent,useExisting:o.forwardRef((function(){return t}))},u.TimelineViewService,h.TimelineDayViewService,b.TimelineWeekViewService,m.TimelineMonthViewService,f.ScrollSyncService,g.DependencyDomService,v.MappingService,y.OptionChangesService,_.EditService],template:'\n <ng-container kendoGanttLocalizedMessages\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-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 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 [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 [kendoGanttTreeListMessages]="localizationService"></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 [rows]="renderedTreeListItems"\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 [hasChildren]="hasChildren"\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 class="k-gantt-footer k-toolbar k-gantt-toolbar"\n position="bottom"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog *ngIf="showEditingDialog" [formGroup]="editDialogFormGroup"></kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf="showConfirmationDialog"\n [width]="575"\n [height]="170"\n [title]="getText(\'confirmationDialogTitle\')"\n (close)="showConfirmationDialog = false;">\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)="showConfirmationDialog = false;">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[u.TimelineViewService,f.ScrollSyncService,o.Renderer2,v.MappingService,y.OptionChangesService,g.DependencyDomService,_.EditService,O.LocalizationService,o.ElementRef,o.NgZone])],e)}();t.GanttComponent=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=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([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t}(n(16).ColumnBase);t.GanttColumnBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(39),r=n(40),s=n(41),c={day:a.TimelineDayViewService,week:s.TimelineWeekViewService,month:r.TimelineMonthViewService},l=function(){function e(e){this.injector=e,this.viewChange=new o.EventEmitter}return e.prototype.service=function(e){var t=c[e];return t?this.injector.get(t):null},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.Injector])],e)}();t.TimelineViewService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(3),r=function(){function e(e,t){this.optionChangesService=e,this.dependencyDomService=t,this.slotWidth=100}return e.prototype.ngOnChanges=function(e){a.anyChanged(["slotWidth"],e)&&(this.optionChangesService.notifyColumnChanges(),this.dependencyDomService.notifyChanges())},i.__decorate([o.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(19);t.GanttColumnBase=i.GanttColumnBase;var o=n(34);t.GanttColumnComponent=o.GanttColumnComponent;var a=n(49);t.GanttColumnGroupComponent=a.GanttColumnGroupComponent;var r=n(50);t.GanttSpanColumnComponent=r.GanttSpanColumnComponent;var s=n(23);t.CellTemplateDirective=s.CellTemplateDirective;var c=n(24);t.HeaderTemplateDirective=c.HeaderTemplateDirective;var l=n(38);t.FooterTemplateDirective=l.FooterTemplateDirective;var d=n(35);t.ColumnMenuTemplateDirective=d.ColumnMenuTemplateDirective;var p=n(36);t.FilterCellTemplateDirective=p.FilterCellTemplateDirective;var u=n(37);t.FilterMenuTemplateDirective=u.FilterMenuTemplateDirective;var h=n(25);t.EditTemplateDirective=h.EditTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttCellTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.CellTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttHeaderTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.HeaderTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttEditTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.EditTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),o=n(17),a=n(2),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"}]),o=this.intlService.firstDay(),a=this.mapper.extractFromTask(t[0],"start")||new Date,r=this.mapper.extractFromTask(n[0],"end")||new Date;o===r.getDay()&&r.setDate(r.getDate()+7);var s=this.getStartOffset(a),c=this.getEndOffset(r);return this._viewStart=Number(s),{start:new Date(s),end:new Date(c)}},e.prototype.getHours=function(e,t){for(var n=[],i=this.intlService.parseDate(this.options.workDayStart).getHours(),a=this.intlService.parseDate(this.options.workDayEnd).getHours(),r=new Date(e),s=new Date(t);r<s;){var c=new Date(r),l=o.isWorkHour(c,i,a);c.setHours(c.getHours()+1),n.push({start:r,end:c,isWorking:l,text:this.intlService.formatDate(r,"HH:mm aa"),span:1}),r=c}return n},e.prototype.getDays=function(e,t){for(var n=[],i=new Date(e),r=new Date(t);i<=r;){var s=a.getDate(a.addDays(i,1)),c=o.isWorkDay(i,this.options.workWeekStart,this.options.workWeekEnd),l=r<s?r:s;n.push({start:i,end:l,isWorking:c,text:this.intlService.formatDate(i,"E d/MM"),span:1}),i=s}return n},e.prototype.getWeeks=function(e,t){for(var n=this.intlService.firstDay(),i=[],r=new Date(e),s=new Date(t);r<=s;){var c=o.lastDayOfWeek(r,n),l=c>s?s:c,d=this.getDays(r,l),p=d.length,u=this.intlService.formatDate(a.firstDayInWeek(a.getDate(r),n),"E d/MM"),h=this.intlService.formatDate(a.addDays(l,-1),"E d/MM");p>0&&i.push({start:d[0].start,end:d[p-1].end,text:u+" - "+h,span:p}),r=a.firstDayInWeek(a.addWeeks(l,1))}return i},e.prototype.getMonths=function(e,t){for(var n=[],i=new Date(e),o=new Date(t);i<o;){var r=a.lastDayOfMonth(i),s=o<r?o:r,c=this.getDays(i,s),l=c.length,d=a.firstDayOfMonth(a.getDate(i)),p=this.intlService.formatDate(d,"MMM");l>0&&n.push({start:c[0].start,end:c[l-1].end,span:l,text:p}),i=a.firstDayOfMonth(a.addMonths(s,1))}return n},e}();t.TimelineBaseViewService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(7),s=function(){function e(e){var t=this;this.ngZone=e,this.changes=new a.Subject,this.elements=[],this.subscriptions=new a.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=a.fromEvent(e,"scroll").pipe(r.map((function(e){var n=e.target;return{scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,sourceType:t}}))),o="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(o)).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,o=e.sourceType;this.ngZone.runOutsideAngular((function(){if("timeline"===o){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"===o){if(!t.syncingTreeList)t.syncingTimeline=!0,t.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollTop=n;t.syncingTreeList=!1}}))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone])],e)}();t.ScrollSyncService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=function(){function e(){this.showEditingDialog=new a.Subject,this.showConfirmationDialog=new a.Subject,this.editEvent=new a.Subject}return e.prototype.createEditDialog=function(e,t){this.dataItem=e,this.formGroup=t,this.showEditingDialog.next(!0)},e.prototype.closeEditDialog=function(){this.showEditingDialog.next(!1),this.dataItem=void 0,this.formGroup=void 0},e.prototype.triggerEditEvent=function(e){this.editEvent.next({formGroup:this.formGroup,dataItem:this.dataItem,editResultType:e})},e=i.__decorate([o.Injectable()],e)}();t.EditService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttTaskTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.GanttTaskTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttSummaryTaskTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.GanttSummaryTaskTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttTaskContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.GanttTaskContentTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=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([o.Input("position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([o.Directive({selector:"[kendoGanttToolbarTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ToolbarTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(2),r=n(5),s=n(17),c={day:a.MS_PER_HOUR,week:a.MS_PER_DAY,month:7*a.MS_PER_DAY},l=function(){function e(e,t,n,i,o){var a=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=o,this.wrapperClass=!0,this.viewChangesSubscription=new r.Subscription,this.viewChangesSubscription.add(this.optionChangesService.viewChanges.subscribe((function(){a.cdr.markForCheck()})))}return 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}),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()},e.prototype.ngOnDestroy=function(){s.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.viewChangesSubscription.unsubscribe()},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}),i.__decorate([o.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClass",void 0),i.__decorate([o.ViewChild("task",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"taskElement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),e}();t.GanttTaskBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(16),r=n(14),s=n(19),c=n(23),l=n(35),d=n(36),p=n(37),u=n(38),h=n(24),b=n(25),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.headerTemplates=new o.QueryList,i.columnMenuTemplates=new o.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([o.ContentChildren(h.HeaderTemplateDirective,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([o.ContentChild(u.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",u.FooterTemplateDirective)],t.prototype,"footerTemplate",void 0),i.__decorate([o.ContentChildren(l.ColumnMenuTemplateDirective),i.__metadata("design:type",o.QueryList)],t.prototype,"columnMenuTemplates",void 0),i.__decorate([o.ContentChild(c.CellTemplateDirective,{static:!1}),i.__metadata("design:type",c.CellTemplateDirective)],t.prototype,"template",void 0),i.__decorate([o.ContentChild(b.EditTemplateDirective,{static:!1}),i.__metadata("design:type",b.EditTemplateDirective)],t.prototype,"editTemplate",void 0),i.__decorate([o.ContentChild(d.FilterCellTemplateDirective,{static:!1}),i.__metadata("design:type",d.FilterCellTemplateDirective)],t.prototype,"filterCellTemplate",void 0),i.__decorate([o.ContentChild(p.FilterMenuTemplateDirective,{static:!1}),i.__metadata("design:type",p.FilterMenuTemplateDirective)],t.prototype,"filterMenuTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"filterable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"editor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-column",template:"",providers:[{provide:s.GanttColumnBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__param(1,o.SkipSelf()),i.__param(1,o.Host()),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(a.ColumnComponent);t.GanttColumnComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttColumnMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ColumnMenuTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttFilterCellTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FilterCellTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttFilterMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FilterMenuTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttFooterTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FooterTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(9),r=n(26),s=n(13),c=n(17),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,o=n.end,a=this.getDays(i,o),r=[],s=0;s<a.length;s++){var c=a[s],l=this.getHours(c.start,c.end);c.span=l.length,r.push.apply(r,l)}return t.push(a,r),t},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.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),o=n(1),a=n(9),r=n(2),s=n(13),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,o=n.end,a=this.getMonths(i,o),r=this.getWeeks(i,o);return t.push(a,r),t},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.IntlService,s.MappingService])],t)}(n(26).TimelineBaseViewService);t.TimelineMonthViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(9),r=n(2),s=n(13),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,o=n.end,a=this.getWeeks(i,o),r=this.getDays(i,o);return t.push(a,r),t},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.IntlService,s.MappingService])],t)}(n(26).TimelineBaseViewService);t.TimelineWeekViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([o.Input("kendoGanttFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([o.Directive({selector:"[kendoGanttFlatBinding]",exportAs:"kendoGanttFlatBinding"})],t)}(n(16).FlatBindingDirective);t.GanttFlatBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([o.Input("kendoGanttHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([o.Directive({selector:"[kendoGanttHierarchyBinding]",exportAs:"kendoGanttHierarchyBinding"})],t)}(n(16).HierarchyBindingDirective);t.GanttHierarchyBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"expandBy",void 0),t=i.__decorate([o.Directive({exportAs:"kendoGanttExpandable",selector:"[kendoGanttExpandable]"})],t)}(n(16).ExpandableDirective);t.GanttExpandableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(11),r=n(18),s=n(17),c=function(){function e(e){this.gantt=e,this.selectedKeysChange=new o.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=a.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([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"selectable",null),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"itemKey",null),e=i.__decorate([o.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(0),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskDeleteLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogCloseTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogCloseTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"deleteButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"saveButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"titleFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"startFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"endFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"completionRatioFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogContent",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dayViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"weekViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"monthViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"yearViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"noRecords",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterEqOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotEqOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNullOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotNullOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsEmptyOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotEmptyOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterStartsWithOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterContainsOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotContainsOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterEndsWithOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterGteOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterGtOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterLteOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterLtOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsTrue",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsFalse",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterBooleanAll",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOrEqualOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOrEqualOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterFilterButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterClearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterAndLogic",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterOrLogic",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"loading",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columnMenu",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columns",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"lock",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"unlock",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortAscending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortDescending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortedAscending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDescending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDefault",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columnsApply",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columnsReset",void 0),t}(n(4).ComponentMessages);t.Messages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(18);t.GanttComponent=o.GanttComponent;var a=n(57);t.GanttModule=a.GanttModule;var r=n(43);t.GanttHierarchyBindingDirective=r.GanttHierarchyBindingDirective;var s=n(42);t.GanttFlatBindingDirective=s.GanttFlatBindingDirective;var c=n(44);t.GanttExpandableDirective=c.GanttExpandableDirective;var l=n(29);t.GanttTaskTemplateDirective=l.GanttTaskTemplateDirective;var d=n(31);t.GanttTaskContentTemplateDirective=d.GanttTaskContentTemplateDirective;var p=n(30);t.GanttSummaryTaskTemplateDirective=p.GanttSummaryTaskTemplateDirective;var u=n(32);t.ToolbarTemplateDirective=u.ToolbarTemplateDirective;var h=n(45);t.SelectableDirective=h.SelectableDirective,i.__exportStar(n(80),t),i.__exportStar(n(22),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:1637747718,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(16),r=n(14),s=n(19),c=n(24),l=function(e){function t(t,n){var i=e.call(this,n)||this;if(i.options=t,i.children=new o.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([o.ContentChildren(s.GanttColumnBase),i.__metadata("design:type",o.QueryList)],t.prototype,"children",void 0),i.__decorate([o.ContentChildren(c.HeaderTemplateDirective),i.__metadata("design:type",o.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"sortable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-column-group",template:"",providers:[{provide:s.GanttColumnBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__param(1,o.SkipSelf()),i.__param(1,o.Host()),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(a.ColumnGroupComponent);t.GanttColumnGroupComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(16),r=n(14),s=n(23),c=n(19),l=n(34),d=n(25),p=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.childColumns=new o.QueryList,i.template=new o.QueryList,i.editTemplate=new o.QueryList,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([o.ContentChildren(l.GanttColumnComponent),i.__metadata("design:type",o.QueryList)],t.prototype,"childColumns",void 0),i.__decorate([o.ContentChildren(s.CellTemplateDirective,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"template",void 0),i.__decorate([o.ContentChildren(d.EditTemplateDirective,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"editTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-span-column",template:"",providers:[{provide:c.GanttColumnBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__param(1,o.SkipSelf()),i.__param(1,o.Host()),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,c.GanttColumnBase])],t)}(a.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){e.exports=u},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}),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 o=t.find((function(t){return n.extractFromTask(t.data,"id")===n.extractFromTask(e,"id")}));return i(o)};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),o=n(1),a=n(8),r=n(58),s=n(16),c=n(59),l=n(3),d=n(60),p=n(18),u=n(61),h=n(62),b=n(63),m=n(64),f=n(29),g=n(31),v=n(65),y=n(30),_=n(66),O=n(42),j=n(43),k=n(44),C=n(45),w=n(67),S=n(32),E=n(68),D=n(69),I=n(22),T=n(71),x=n(72),R=n(73),V=n(74),P=n(6),B=n(75),M=n(81),F=n(76),A=n(77),L=n(4),N=n(78),z=n(79),H=[a.CommonModule,P.ReactiveFormsModule,B.LabelModule,M.InputsModule,F.DateInputsModule,c.ButtonsModule,r.SplitterModule,s.TreeListModule,c.ButtonsModule,d.DialogModule,l.EventsModule],G=[p.GanttComponent,O.GanttFlatBindingDirective,j.GanttHierarchyBindingDirective,m.GanttTaskComponent,v.GanttSummaryTaskComponent,_.GanttMilestoneTaskComponent,u.GanttTimelineComponent,h.GanttTasksTableBodyComponent,b.GanttHeaderTableBodyComponent,g.GanttTaskContentTemplateDirective,f.GanttTaskTemplateDirective,y.GanttSummaryTaskTemplateDirective,S.ToolbarTemplateDirective,w.ToolbarComponent,E.ViewSelectorComponent,I.GanttColumnComponent,I.GanttColumnGroupComponent,I.GanttSpanColumnComponent,I.FilterMenuTemplateDirective,I.FilterCellTemplateDirective,I.CellTemplateDirective,I.EditTemplateDirective,I.ColumnMenuTemplateDirective,I.HeaderTemplateDirective,I.FooterTemplateDirective,k.GanttExpandableDirective,D.GanttDependencyDirective,T.TimelineDayViewComponent,x.TimelineWeekViewComponent,R.TimelineMonthViewComponent,C.SelectableDirective,V.EditDialogComponent,A.CustomMessagesComponent,N.LocalizedMessagesDirective,z.GanttTreeListMessagesDirective],W=function(){function e(){}return e=i.__decorate([o.NgModule({imports:H.slice(),declarations:G.slice(),exports:G.slice(),providers:[{provide:L.L10N_PREFIX,useValue:"kendo.gantt"}]})],e)}();t.GanttModule=W},function(e,t){e.exports=h},function(e,t){e.exports=b},function(e,t){e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(7),s=n(27),c=n(15),l=n(17),d=n(3),p=function(){function e(e,t,n,i){var o=this;this.scrollSyncService=e,this.dependencyDomService=t,this.renderer=n,this.zone=i,this.hostClass=!0,this.dependencies=[],this.subscriptions=new a.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(r.filter((function(e){return l.isPresent(e.timelineRow)})),r.switchMap((function(e){return o.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){var t=e.timelineRow,n=d.isDocumentAvailable()?t.getBoundingClientRect().height:0;o.renderer.setStyle(o.timelineColumns.nativeElement,"height",(o.rows||[]).length*n+"px")})))}return 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([o.ViewChild("timelineContent",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"timelineContent",void 0),i.__decorate([o.ViewChild("timelineColumns",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"timelineColumns",void 0),i.__decorate([o.ViewChild("timelineHeaderWrap",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"timelineHeaderWrap",void 0),i.__decorate([o.ViewChild("tasksContainer",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"tasksContainer",void 0),i.__decorate([o.HostBinding("class.k-gantt-timeline"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tableWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),e=i.__decorate([o.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 <div #timelineContent class="k-grid-content">\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 [hasChildren]="hasChildren"\n [isTaskSelected]="isTaskSelected"\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 </svg>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[s.ScrollSyncService,c.DependencyDomService,o.Renderer2,o.NgZone])],e)}();t.GanttTimelineComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(2),r=n(15),s=n(17),c=n(13),l=function(){function e(e,t){this.dependencyDomService=e,this.mapper=t}return Object.defineProperty(e.prototype,"timelineRow",{set:function(e){s.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isMileStone=function(e){return!this.hasChildren(e)&&a.isEqualDate(this.mapper.extractFromTask(e,"start"),this.mapper.extractFromTask(e,"end"))},i.__decorate([o.ViewChild("timelineRow",{static:!1}),i.__metadata("design:type",o.ElementRef),i.__metadata("design:paramtypes",[o.ElementRef])],e.prototype,"timelineRow",null),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),e=i.__decorate([o.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"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [isSelected]="isTaskSelected"\n [index]="index"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="hasChildren(item)"\n [dataItem]="item"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [isSelected]="isTaskSelected"\n [index]="index"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!hasChildren(item)"\n [dataItem]="item"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [isSelected]="isTaskSelected"\n [index]="index"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,c.MappingService])],e)}();t.GanttTasksTableBodyComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(){}return i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),e=i.__decorate([o.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=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(13),r=n(15),s=n(14),c=n(20),l=n(33),d=n(28),p=function(e){function t(t,n,i,o,a,r){var s=e.call(this,t,n,i,o,a)||this;return s.editService=r,s}var n;return i.__extends(t,e),n=t,t.prototype.onTaskDelete=function(){this.editService.dataItem=this.dataItem,this.editService.showConfirmationDialog.next()},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"taskTemplate",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-task",providers:[{provide:l.GanttTaskBase,useExisting:o.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-single"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [attr.data-task-index]="index"\n [class.k-state-selected]="isSelected(dataItem)"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\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 class="k-task-actions">\n <span\n (click)="onTaskDelete()"\n class="k-link k-task-delete">\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 '}),i.__metadata("design:paramtypes",[a.MappingService,c.TimelineViewService,r.DependencyDomService,s.OptionChangesService,o.ChangeDetectorRef,d.EditService])],t)}(l.GanttTaskBase);t.GanttTaskComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(13),r=n(15),s=n(14),c=n(20),l=n(33),d=function(e){function t(t,n,i,o,a){var r=e.call(this,t,n,i,o,a)||this;return r.summaryWrapperClass=!0,r}var n;return i.__extends(t,e),n=t,i.__decorate([o.HostBinding("class.k-summary-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"summaryWrapperClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"template",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-summary-task",providers:[{provide:l.GanttTaskBase,useExisting:o.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [attr.data-task-index]="index"\n [class.k-state-selected]="isSelected(dataItem)"\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 '}),i.__metadata("design:paramtypes",[a.MappingService,c.TimelineViewService,r.DependencyDomService,s.OptionChangesService,o.ChangeDetectorRef])],t)}(l.GanttTaskBase);t.GanttSummaryTaskComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(13),r=n(15),s=n(14),c=n(20),l=n(33),d=function(e){function t(t,n,i,o,a){var r=e.call(this,t,n,i,o,a)||this;return r.milestoneWrapperClass=!0,r}var n;return i.__extends(t,e),n=t,i.__decorate([o.HostBinding("class.k-milestone-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"milestoneWrapperClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-milestone-task",providers:[{provide:l.GanttTaskBase,useExisting:o.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.data-task-index]="index"\n >\n </div>\n '}),i.__metadata("design:paramtypes",[a.MappingService,c.TimelineViewService,r.DependencyDomService,s.OptionChangesService,o.ChangeDetectorRef])],t)}(l.GanttTaskBase);t.GanttMilestoneTaskComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(18),r=n(27),s=function(){function e(e,t){this.gantt=e,this.scrollSyncService=t,this.context={}}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.onViewChange=function(e){this.gantt.activeView=e,this.gantt.loadTimelineData(),this.gantt.activeViewChange.emit(e),this.scrollSyncService.resetTimelineScrollLeft()},i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([o.Component({selector:"kendo-gantt-toolbar",template:'\n <ng-container *ngIf="!renderTemplate">\n <span class="k-spacer k-toolbar-spacer"></span>\n <kendo-gantt-view-selector\n [views]="gantt.viewTypes"\n [activeView]="gantt.activeView"\n (activeViewChange)="onViewChange($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",[a.GanttComponent,r.ScrollSyncService])],e)}();t.ToolbarComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=function(){function e(e){this.localizationService=e,this.hostClass=!0,this.activeView="week",this.activeViewChange=new o.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([o.HostBinding("class.k-gantt-views-wrapper"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),e=i.__decorate([o.Component({selector:"kendo-gantt-view-selector",template:'\n <select class="k-dropdown k-views-dropdown"\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 [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '}),i.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.ViewSelectorComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(7),s=n(13),c=n(15),l=n(17),d=n(70),p=n(3),u=function(){function e(e,t,n,i,o){var s=this;this.polyline=e,this.zone=t,this.renderer=n,this.mapper=i,this.dependencyDomService=o,this.subscriptions=new a.Subscription,this.subscriptions.add(o.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 o=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"fromId")),n),a=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"toId")),n),r=p.isDocumentAvailable()?t.getBoundingClientRect().height:0,s=d.dependencyCoordinates(o,a,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([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dependency",void 0),e=i.__decorate([o.Directive({selector:"[kendoGanttDependency]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,s.MappingService,c.DependencyDomService])],e)}();t.GanttDependencyDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOffsetRelativeToParent=function(e,t){for(var n={top:0,left:0},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),o=i.top,a=i.left;return{top:o+e.offsetHeight/2,left:a,right:a+e.offsetWidth}},t.dependencyCoordinates=function(e,t,n,o,a,r){var s,c,l=[],d=Math.floor(n/2),p=e.top<t.top;if(0===o||3===o){var u=3===o?"left":"right";s=e.top,c=e[u],l.push({top:s,left:c}),c=Math["left"===u?"min":"max"](e[u],t[u]),c="left"===u?c-a:c+a,l.push({top:s,left:c}),s=t.top,l.push({top:s,left:c}),c="left"===u?t[u]-r:t[u]+r,l.push({top:s,left:c}),l.push.apply(l,i(s,c,"left"!==u,r))}else{var h=2===o?"left":"right",b=2===o?"right":"left",m=2===o?e[h]-2*a<t[b]:e[h]+2*a>t[b];s=e.top,c=e[h],l.push({top:s,left:c}),c="left"===h?c-a:c+a,l.push({top:s,left:c}),m&&(s=p?s+d:s-d,l.push({top:s,left:c}),c="left"===h?t[b]+a:t[b]-a,l.push({top:s,left:c})),s=t.top,l.push({top:s,left:c}),c="left"===b?t[b]-r:t[b]+r,l.push({top:s,left:c}),l.push.apply(l,i(s,c,"left"!==b,r))}return l};var i=function(e,t,n,i){return n?o(e,t,i):a(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},a=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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(15),r=n(21),s=n(14),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([o.Component({selector:"kendo-gantt-timeline-day-view",template:"",providers:[{provide:r.ViewBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,a.DependencyDomService])],t)}(r.ViewBase);t.TimelineDayViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(15),r=n(21),s=n(14),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([o.Component({selector:"kendo-gantt-timeline-week-view",template:"",providers:[{provide:r.ViewBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,a.DependencyDomService])],t)}(r.ViewBase);t.TimelineWeekViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(15),r=n(21),s=n(14),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([o.Component({selector:"kendo-gantt-timeline-month-view",template:"",providers:[{provide:r.ViewBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,a.DependencyDomService])],t)}(r.ViewBase);t.TimelineMonthViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(6),r=n(4),s=n(13),c=n(28),l=function(){function e(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.handleEditingResult=function(e){this.editService.triggerEditEvent(e)},e.prototype.onTaskDelete=function(){this.editService.showConfirmationDialog.next()},i.__decorate([o.Input(),i.__metadata("design:type",a.FormGroup)],e.prototype,"formGroup",void 0),e=i.__decorate([o.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 <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 class="k-textbox" [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 <kendo-dialog-actions layout="normal">\n <button kendoButton (click)="onTaskDelete()">{{ getText(\'deleteButtonText\') }}</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",[s.MappingService,c.EditService,r.LocalizationService])],e)}();t.EditDialogComponent=l},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),o=n(1),a=n(3),r=n(4),s=n(8),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(a.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(a.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(a.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(a.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(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.for"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"labelFor",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-label"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"labelClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"label[for]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.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(o.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(o.Directive)({providers:[{provide:u,useExisting:Object(o.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(o.Component)({providers:[{provide:u,useExisting:Object(o.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(o.NgModule)({declarations:[m],exports:[m]})],e)}(),g={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635940028,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 o.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 o.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+Object(a.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 o.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(a.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(a.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(o.isDevMode)())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},Object(i.__decorate)([Object(o.HostBinding)("class.k-floating-label-container"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssStyle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ContentChild)(a.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChild)(c.NgControl,{static:!1}),Object(i.__metadata)("design:type",c.NgControl)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(o.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",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,r.LocalizationService])],e)}(),O=[_],j=function(){function e(){}return e=Object(i.__decorate)([Object(o.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(a.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(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(o.ViewChild)(p,{static:!0}),Object(i.__metadata)("design:type",p)],e.prototype,"labelDirective",void 0),Object(i.__decorate)([Object(o.ContentChild)(a.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),e=Object(i.__decorate)([Object(o.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",[o.ElementRef,o.Renderer2,r.LocalizationService])],e)}(),C=[p,k],w=function(){function e(){}return e=Object(i.__decorate)([Object(o.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 Dn})),n.d(t,"CALENDAR_RANGE_VALIDATORS",(function(){return Vt})),n.d(t,"CALENDAR_VALUE_ACCESSOR",(function(){return Rt})),n.d(t,"KENDO_INPUT_PROVIDER",(function(){return Pt})),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 an})),n.d(t,"CalendarMessages",(function(){return Pn})),n.d(t,"MultiViewCalendarCustomMessagesComponent",(function(){return Rn})),n.d(t,"Messages",(function(){return Tn})),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 De})),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 $e})),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 on})),n.d(t,"YearViewService",(function(){return Oe})),n.d(t,"TemplatesModule",(function(){return In})),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 En})),n.d(t,"PickerService",(function(){return Et})),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 no})),n.d(t,"LocalizedMessagesDirective",(function(){return io})),n.d(t,"Messages$1",(function(){return to})),n.d(t,"TimePickerMessages",(function(){return Ki})),n.d(t,"TimePickerCustomMessagesComponent",(function(){return qi})),n.d(t,"TimeSelectorCustomMessagesComponent",(function(){return Yi})),n.d(t,"DayPeriodService",(function(){return Ri})),n.d(t,"TimePickerDOMService",(function(){return ii})),n.d(t,"HoursService",(function(){return li})),n.d(t,"MillisecondsService",(function(){return Ei})),n.d(t,"MinutesService",(function(){return mi})),n.d(t,"SecondsService",(function(){return Oi})),n.d(t,"TimeListComponent",(function(){return Mi})),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 qt})),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 Yn})),n.d(t,"DateInputsModule",(function(){return co})),n.d(t,"TimePickerModule",(function(){return eo})),n.d(t,"DateTimePickerModule",(function(){return ro})),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 Mn})),n.d(t,"DateInputCustomMessagesComponent",(function(){return Gn})),n.d(t,"DatePickerCustomMessagesComponent",(function(){return qn})),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 Un})),n.d(t,"TimePickerLocalizedMessagesDirective",(function(){return Ui})),n.d(t,"TimeSelectorLocalizedMessagesDirective",(function(){return Zi}));var i,o=n(0),a=n(1),r=n(6),s=n(4),c=n(2),l=n(3),d=n(10),p=n(9),u=n(5),h=n(7),b=n(12),m=n(8),f=n(11),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),E=new Date(2099,11,31),D=new Date(1980,0,1),I=new Date(1980,0,1,23,59,59),T=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},x=function(e){return e.preventDefault()},R=function(e){return e.relatedTarget||document.activeElement},V=function(e){return null!=e},P=function(e){return null!=e},B=function(e){return function(t,n){var i=Object(c.cloneDate)(t);return i[e](n),i}},M=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},F=function(e,t,n){return{candidateValue:M(w,e),maxValue:Object(c.addDays)(M(w,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:M(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=[],o=e;o<t;o+=n)i.push(o);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=F(e,t,n),o=i.candidateValue,a=i.minValue,r=i.maxValue;return a<=o&&o<=r},U=function(e,t){return!P(e)||!P(t)||e<=t},q=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},Y=function(){return Object(c.getDate)(new Date)},$=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 o=document.createElement(e);return o.className=n,Object.keys(i).map((function(e){return o.style[e]=i[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}},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,o=n.end;return!(!i||!o)&&(i<e&&e<o)},oe=function(e,t){return e||t},ae=function(e){return{start:e,end:e}},re=function(e,t){var n=e||C,i=n.start,o=n.end,a=t||C,r=a.start,s=a.end;return Object(c.isEqual)(i,r)&&Object(c.isEqual)(o,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,o=e.isActiveView,a=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=Y();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,a),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,a)||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:o&&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(),o=!t||Object(c.firstYearOfDecade)(t).getFullYear()<=i,a=!n||i<=Object(c.firstYearOfDecade)(n).getFullYear();return o&&a},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 o=n-i;return Object(c.addCenturies)(e,-1*o)}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(o.__decorate)([Object(a.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,o=e.isActiveView,a=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=Y();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,a),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,a)||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:o&&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(),o=!t||t.getFullYear()<=i,a=!n||i<=n.getFullYear();return o&&a},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 o=n-i;return Object(c.addDecades)(e,-1*o)}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(o.__decorate)([Object(a.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,o=e.isActiveView,a=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),_=Y();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,a),u=Object(c.getDate)(p),v=u<m||u>g;if(p<r||p>a)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:o&&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),o=!t||Object(c.getDate)(t)<=i,a=!n||i<=Object(c.getDate)(n);return o&&a},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 o=n-i;return Object(c.addMonths)(e,-1*o)}return e},e.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,i=t.end,o=e.getDay();return i<n?o<=i||n<=o:n<=o&&o<=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(o.__decorate)([Object(a.Injectable)(),Object(o.__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,o=e.isActiveView,a=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=Y();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,a),f=m<p.getFullYear();if(!t.isInRange(p,r,a)||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:o&&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),o=!t||Object(c.createDate)(t.getFullYear(),t.getMonth(),1)<=i,a=!n||i<=Object(c.createDate)(n.getFullYear(),n.getMonth(),1);return o&&a},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 o=n-i;return Object(c.addYears)(e,-1*o)}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(o.__decorate)([Object(a.Injectable)(),Object(o.__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,Ee=((k={})[j.month]=ve,k[j.year]=Oe,k[j.decade]=me,k[j.century]=ue,k),De=function(){function e(e){this.injector=e,this.viewChanged=new a.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=Ee[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(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[a.Injector])],e)}(),Ie=J("div"),Te=J("ul"),xe=J("li"),Re=J("td"),Ve=J("th"),Pe=J("tr"),Be=J("tbody"),Me=J("thead"),Fe=J("table"),Ae=function(e,t){return new Array(e).fill("1").map(t)},Le=function(e){return Ie(e,"k-flex k-content k-calendar-content k-scrollable")},Ne=function(){return l.isDocumentAvailable?(je||(je=Ie([Le([Te([xe("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),je):null},ze=function(e,t,n){var i,o=e.cells,a=e.rows;return function(){return l.isDocumentAvailable?(i||(i=function(e,t,n){return Ie([Ie('\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?Fe([Me([Pe([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),Fe([Be([Pe([Ve("1","k-calendar-th")],"k-calendar-tr")].concat(Ae(e,(function(){return Pe(Ae(t,(function(e){return Re('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(a,o),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),Ue=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),qe=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},Ye=function(e){return e.querySelector("tbody")},$e=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=Ye(e);t.calendarHeight=qe(e),t.monthViewHeight=qe(n),t.headerHeight=qe(n.children[0]),t.scrollableContentHeight=qe(He(e))})),this.batch(Ge(We()),(function(e){var n=Ye(e);t.calendarWidth=Ze(e),t.monthViewWidth=Ze(n),t.scrollableContentWidth=Ze(He(e))})),this.batch(Ke(),(function(e){t.yearViewHeight=qe(Ye(e)),t.scrollableYearContentHeight=qe(He(e))})),this.batch(Ge(Ke()),(function(e){t.yearViewWidth=Ze(Ye(e))})),this.batch(Ue(),(function(e){t.decadeViewHeight=qe(Ye(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(Ge(Ue()),(function(e){t.decadeViewWidth=Ze(Ye(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(Ne(),(function(e){t.navigationItemHeight=qe(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(o.__decorate)([Object(a.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,o=0;o<e;o++)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,o,a,r){var s=this;void 0===o&&(o=0),void 0===a&&(a=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=o,this.bottomOffset=a,this.direction=r;var c=new u.ReplaySubject(2),l=this.rowsForHeight(o),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,o=e.offsetHeight,a=e.offsetWidth,r="vertical"===this.direction?i:n,s="vertical"===this.direction?o:a;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 a.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 ot,at=((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 a.EventEmitter,this.pageChange=new a.EventEmitter,this.scrollChange=new a.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),o=i+this.rowHeightService.height(e);return i>=t&&o<=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),o=this.scrollRange(n,i),a=o.start,r=o.end;if(a!==r){var s=this.scrollStep(a,r),c=at[i](s),l=rt[i](r),d=st[i](c(r));this.zone.runOutsideAngular((function(){t.animationSubscription=Object(u.combineLatest)(Object(u.of)(a),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,o,a,r=this.containerMaxScroll(),s=t===Se.Backward?1:-1,c=(i=n,o=e,a=this.maxScrollDifference,Math.min(Math.abs(o-i),a)),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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"itemHeight",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"itemWidth",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"topOffset",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"bottomOffset",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"maxScrollDifference",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"scrollDuration",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"skip",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"take",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"total",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeIndexChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"scrollChange",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-flex"),Object(a.HostBinding)("class.k-content"),Object(a.HostBinding)("class.k-calendar-content"),Object(a.HostBinding)("class.k-scrollable"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-scrollable-horizontal"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=Object(o.__decorate)([Object(a.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(o.__param)(0,Object(a.Inject)(nt)),Object(o.__metadata)("design:paramtypes",[Object,a.ElementRef,a.Renderer2,a.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,o){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=o,this.min=new Date(S),this.max=new Date(E),this.focusedDate=new Date,this.valueChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}return Object.defineProperty(e.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=j[this.activeView];var t=q(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n;this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),(e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}},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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(o.__decorate)([Object(a.ViewChild)(ct,{static:!1}),Object(o.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(o.__decorate)([Object(a.ViewChild)("list",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"list",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-navigation"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(o.__metadata)("design:paramtypes",[De,$e,p.IntlService,a.ChangeDetectorRef,a.Renderer2])],e)}(),ut=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=o,this.isActive=!0,this.min=new Date(S),this.max=new Date(E),this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.todayButtonClick=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===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"),o=this.focusedDate,a=q(this.service.viewDate(o,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(o,this.dates);this.skip=this.service.skip(a,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(a,this.getTake(this.skip))),t=this.activeDate,n=o,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=Object(c.cloneDate)(o));var l=ee(e,"focusedDate")||i;(s||l||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(o,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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(o.__decorate)([Object(a.ViewChild)(ct,{static:!1}),Object(o.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(o.__decorate)([Object(a.ViewChild)("list",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"list",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-vstack"),Object(a.HostBinding)("class.k-calendar-view"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-monthview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-yearview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-decadeview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-centuryview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table 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(o.__metadata)("design:paramtypes",[De,a.ChangeDetectorRef,p.IntlService,$e,a.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 o=this.bus.service(n);return o?t===i.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===i.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):o.move(e,t):e},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[De])],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(a.isDevMode)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},e.prototype.notifyServiceChange=function(){this.changes.next()},e=Object(o.__decorate)([Object(a.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,o=e.activeViewEnum,a=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),a=t;else if(n.shiftKey){var s=[a||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(o).dateRange(l,d),a=t>r[0]?r[0]:ne(r)}else r=[t],a=t;else r=[t],a=t;return{selectedDates:r,rangePivot:a}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return Object(c.isEqual)(e,t)}))},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[De])],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,o;n.navSubscription=e.scroll$().subscribe((function(e){o?o=!1:(i=!0,n.scrollSiblingOf(e.target))})),n.viewSubscription=t.scroll$().subscribe((function(e){i?i=!1:(o=!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(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[$e,a.NgZone])],e)}(),yt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),_t=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarMonthCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Ot=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarYearCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),jt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarDecadeCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),kt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarCenturyCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Ct=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarWeekNumberCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),wt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarHeaderTitleTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),St=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarNavigationItemTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Et=function(){this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.sameDateSelected=new a.EventEmitter,this.dateCompletenessChange=new a.EventEmitter},Dt=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}},It=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}},Tt="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",xt=function(e){return e?e.virtualization:null},Rt={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return Bt}))},Vt={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return Bt}))},Pt={provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return Bt}))},Bt=function(){function e(e,t,n,i,o,r,s,c,p,u,h,b,m){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=o,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 a.EventEmitter,this.navigate=new a.EventEmitter,this.activeViewDateChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.isActive=!1,this.cellUID=Object(l.guid)(),this.selectedDates=[],this._min=new Date(S),this._max=new Date(E),this._focusedDate=Y(),this.onControlChange=$,this.onControlTouched=$,this.onValidatorChange=$,this.minValidateFn=$,this.maxValidateFn=$,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||Y(),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(E)},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=q(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Dt(this.min):$,this.maxValidateFn=this.rangeValidation?It(this.max):$,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=q(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;a.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),o=n.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!se(o,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run((function(){t.selectedDates=o.map((function(e){return Object(c.cloneDate)(e)})),t.value=t.parseSelectionToValue(o),t.onControlChange(t.parseSelectionToValue(o)),t.valueChange.emit(t.parseSelectionToValue(o)),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(a.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Tt+" 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 "+Tt+" 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&&T(this.control)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):(this.emitBlur(e),this.detectChanges())},e.prototype.handleFocus=function(){this.isActive=!0,a.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.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=q(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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],e.prototype,"type",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(a.HostBinding)("class.k-week-number"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewDateChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!0}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("cellTemplate"),Object(o.__metadata)("design:type",yt),Object(o.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!0}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("monthCellTemplate"),Object(o.__metadata)("design:type",_t),Object(o.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!0}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("yearCellTemplate"),Object(o.__metadata)("design:type",Ot),Object(o.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!0}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("decadeCellTemplate"),Object(o.__metadata)("design:type",jt),Object(o.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!0}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("centuryCellTemplate"),Object(o.__metadata)("design:type",kt),Object(o.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!0}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.Input)("weekNumberTemplate"),Object(o.__metadata)("design:type",Ct),Object(o.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!0}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.Input)("headerTitleTemplate"),Object(o.__metadata)("design:type",wt),Object(o.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(St,{static:!0}),Object(o.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(o.__decorate)([Object(a.Input)("navigationItemTemplate"),Object(o.__metadata)("design:type",St),Object(o.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(o.__decorate)([Object(a.ViewChild)(pt,{static:!1}),Object(o.__metadata)("design:type",pt)],e.prototype,"navigationView",void 0),Object(o.__decorate)([Object(a.ViewChild)(ut,{static:!1}),Object(o.__metadata)("design:type",ut)],e.prototype,"monthView",void 0),Object(o.__decorate)([Object(a.HostBinding)("attr.id"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(o.__decorate)([Object(a.HostBinding)("attr.role"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(o.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(o.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[De,Rt,Vt,Pt,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(o.__param)(12,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[De,$e,a.ElementRef,bt,a.Renderer2,a.ChangeDetectorRef,a.NgZone,a.Injector,vt,ft,s.LocalizationService,gt,Et])],e)}(),Mt=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"}(ot||(ot={}));var Ft=/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,o){if(void 0===o&&(o=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=o,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 a=this.dateFormatString(this.value,this.format).symbols,r=0;r<a.length;r++)this.setExisting(a[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),o=this.dateFormatString(this.value,this.format),a=o.symbols,r=!1,s="",l="",d="",p=0;p<i.length;p++)a[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(o.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(a.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(o.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=[],o=[],a=0;a<n.length;a++)for(var r=this.intl.formatDate(e,{pattern:n[a].pattern}).length;r>0;)i.push(this.symbols[n[a].pattern[0]]||"_"),o.push(n[a]),r--;var s=new zt;return s.symbols=i.join(""),s.partMap=o,s},e.prototype.merge=function(e,t){for(var n="",i="",o=t.symbols,a=o.length-1;a>=0;a--)if(-1===this.knownParts.indexOf(o[a])||this.getExisting(o[a]))n=e[a]+n,i=o[a]+i;else{for(var r=o[a];a>=0&&r===o[a];)a--;for(a++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[a])+n;i.length<n.length;)i=o[a]+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,o,r,s,c){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=o,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 a.EventEmitter,this.valueUpdate=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.arrow=ot,this.arrowDirection=ot.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=$,this.maxValidator=$,this.incompleteValidator=$,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=$,this.onControlTouched=$,this.onValidatorChange=$,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?Dt(this.min):$,this.maxValidator=this.rangeValidation?It(this.max):$,this.incompleteValidator=this.incompleteDateValidation?Mt():$,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=ot.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t,n,i,o=this.caret(),a=this.currentFormat[o[0]],r=(this.steps||{})[this.symbolsMap[a]]||1;if("S"===a&&!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(a,e*r),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(a),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 o=i;o>=0&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[i];)o+=e;return i>o&&(o+1!==t[0]||i+1!==t[1])?(this.caret(o+1,i+1),this.resetSegmentValue=!0,!0):i<o&&(i!==t[0]||o!==t[1])&&(this.caret(i,o),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)||T(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),o=!this.isActive&&V(this.placeholder)&&!this.kendoDate.hasValue(),a=this.inputElement;this.currentFormat=i[1],this.currentValue=o?"":i[0],this.renderer.setProperty(a,"value",this.currentValue),a.placeholder!==this.placeholder&&this.renderer.setProperty(a,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},e.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],o=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==o.selectionStart&&(n&&(Object(l.isDocumentAvailable)()&&document.activeElement!==o&&o.focus(),o.setSelectionRange(e,t)),i=[o.selectionStart,o.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(a.isDevMode)()&&!U(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(a.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},e.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=q(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||Ft.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 o=i+e.length-n.length,a=e[o],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]===a&&"_"===t[o]?[[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 o=this.kendoDate.getDateObject();this.value&&o&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(M(this.value,o)))}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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"hasPopup",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueUpdate",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.ViewChild)("dateInput",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"dateInput",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrap",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrap",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-dateinput"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"wrapperClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:s.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:l.KendoInput,useExisting:Object(a.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(o.__param)(7,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[a.ChangeDetectorRef,p.IntlService,a.Renderer2,a.ElementRef,a.NgZone,a.Injector,s.LocalizationService,Et])],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 a.InjectionToken("dateinputs-touch-enabled"),Ut=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}},qt=function(){function e(e,t,n,i,o,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=o,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)(E),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(l.guid)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=$,this.onControlTouched=$,this.onValidatorChange=$,this.minValidateFn=$,this.maxValidateFn=$,this.disabledDatesValidateFn=$,this.incompleteValidator=$,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?Dt(this.min):$,this.maxValidateFn=this.rangeValidation?It(this.max):$,this.disabledDatesValidateFn=this.disabledDatesValidation?Ut(this.disabledDatesService.isDateDisabled):$,this.incompleteValidator=this.incompleteDateValidation?Mt():$,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?M(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(a.isDevMode)()&&!U(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(a.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},e.prototype.bindEvents=function(){var e=this.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&&R(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(Object(l.hasObservers)(this.onBlur)||this.show&&Object(l.hasObservers)(this.close)||T(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(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrapper",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!1}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("cellTemplate"),Object(o.__metadata)("design:type",yt),Object(o.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!1}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("monthCellTemplate"),Object(o.__metadata)("design:type",_t),Object(o.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!1}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("yearCellTemplate"),Object(o.__metadata)("design:type",Ot),Object(o.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!1}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("decadeCellTemplate"),Object(o.__metadata)("design:type",jt),Object(o.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("centuryCellTemplate"),Object(o.__metadata)("design:type",kt),Object(o.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!1}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.Input)("weekNumberTemplate"),Object(o.__metadata)("design:type",Ct),Object(o.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!1}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.Input)("headerTitleTemplate"),Object(o.__metadata)("design:type",wt),Object(o.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(St,{static:!1}),Object(o.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(o.__decorate)([Object(a.Input)("navigationItemTemplate"),Object(o.__metadata)("design:type",St),Object(o.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-datepicker"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},s.LocalizationService,Et,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(o.__param)(9,Object(a.Optional)()),Object(o.__param)(9,Object(a.Inject)(Kt)),Object(o.__metadata)("design:paramtypes",[a.NgZone,s.LocalizationService,a.ChangeDetectorRef,b.b,a.ElementRef,a.Renderer2,a.Injector,Et,ft,Boolean])],e)}(),Zt="dayperiod",Yt="hour",$t="millisecond",Xt="minute",Qt="second",Jt=new RegExp(Yt+"|"+Xt+"|"+Qt+"|"+$t+"|"+Zt+"|literal"),en=function(){function e(e,t,n,i,o,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=o,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 a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(l.guid)(),this.onControlChange=$,this.onControlTouched=$,this.onValidatorChange=$,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=$,this.incompleteValidator=$,this._min=Object(c.cloneDate)(D),this._max=Object(c.cloneDate)(I),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||D)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=Object(c.cloneDate)(e||I)},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}):$,this.incompleteValidator=this.incompleteDateValidation?Mt():$,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 M(w,e)},e.prototype.mergeTime=function(e){return this.value&&e?M(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(a.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},e.prototype.verifyFormat=function(){if(Object(a.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&&R(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(Object(l.hasObservers)(this.onBlur)||this.show&&Object(l.hasObservers)(this.close)||T(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(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!1}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!1}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrapper",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-timepicker"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.timepicker"},Et],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(o.__param)(9,Object(a.Optional)()),Object(o.__param)(9,Object(a.Inject)(Kt)),Object(o.__metadata)("design:paramtypes",[a.NgZone,s.LocalizationService,a.ChangeDetectorRef,b.b,a.ElementRef,a.Renderer2,a.Injector,Et,p.IntlService,Boolean])],e)}(),tn=new RegExp(Yt+"|"+Xt+"|"+Qt+"|"+Zt+"|literal"),nn=function(){function e(e,t,n,i,o,r,s,p,h,b){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=o,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 a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=Object(c.cloneDate)(D),this.timeSelectorMax=Object(c.cloneDate)(I),this.calendarValue=null,this.calendarMin=Object(c.cloneDate)(S),this.calendarMax=le(E),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=ce(S,D),this._max=ce(E,I),this._isActive=!1,this.onControlTouched=$,this.onControlChange=$,this.onValidatorChange=$,this.minValidateFn=$,this.maxValidateFn=$,this.disabledDatesValidateFn=$,this.incompleteValidator=$,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?Dt(this.min):$,this.maxValidateFn=this.rangeValidation?It(this.max):$,this.disabledDatesValidateFn=this.disabledDatesValidation?Ut(this.disabledDatesService.isDateDisabled):$,this.incompleteValidator=this.incompleteDateValidation?Mt():$,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,o=n.altKey;switch(i){case o&&l.Keys.ArrowUp:case l.Keys.Escape:this.handleCancel();break;case!this.isOpen&&o&&l.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case o&&l.Keys.ArrowRight:this.changeActiveTab("time");break;case o&&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,o=t.target,a=V(o.nextElementSibling)&&!o.nextElementSibling.disabled;n!==l.Keys.Tab||i||a||(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(a.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(a.isDevMode)()&&!U(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:D);var n=V(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.max));this.timeSelectorMax=Object(c.cloneDate)(n?this.max:I)},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(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-datetimepicker"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],e.prototype,"defaultTab",null),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!1}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!1}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!1}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!1}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!1}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!1}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("popupTemplate",{read:a.TemplateRef,static:!0}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=Object(o.__decorate)([Object(a.Component)({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:a.ChangeDetectionStrategy.OnPush,providers:[Et,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <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(o.__param)(6,Object(a.Inject)(Kt)),Object(o.__metadata)("design:paramtypes",[b.b,p.IntlService,a.ChangeDetectorRef,Et,a.NgZone,a.ElementRef,Boolean,s.LocalizationService,ft,a.Renderer2])],e)}(),on=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(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),an=function(){function e(e,t,n,i,o,r){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=o,this.renderer=r,this.activeView=j.month,this.isActive=!0,this.min=new Date(S),this.max=new Date(E),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===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"),o=this.views>0&&ee(e,"views");!i&&this.isInDates(t)&&!o&&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,o=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),r=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(n,"width",a+"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",a+"px")}));var s=o.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 q(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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-view"),Object(a.HostBinding)("class.k-hstack"),Object(a.HostBinding)("class.k-align-items-start"),Object(a.HostBinding)("class.k-justify-content-center"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-monthview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-yearview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-decadeview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-centuryview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.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(o.__metadata)("design:paramtypes",[De,p.IntlService,on,a.ChangeDetectorRef,a.ElementRef,a.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=[],o=e;o<=t;)n(o)&&i.push(o),o=Object(c.addDays)(o,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(a.forwardRef)((function(){return pn}))},dn={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return pn}))},pn=function(){function e(e,t,n,o,r,s,c,d){this.bus=e,this.element=t,this.navigator=n,this.renderer=o,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 a.EventEmitter,this.navigate=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.valueChange=new a.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(E),this._focusedDate=Y(),this.resolvedPromise=Promise.resolve(),this.onControlChange=$,this.onControlTouched=$,this.onValidatorChange=$,this.minValidateFn=$,this.maxValidateFn=$,this.disabledDatesRangeValidateFn=$,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||Y()},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(E)},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=q(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=q(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Dt(this.min):$,this.maxValidateFn=this.rangeValidation?It(this.max):$,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?sn(this.disabledDatesService.isDateDisabled):$,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 o=!n&&se(i,this.selectedDates);this.disabled||o||(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(a.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(Object(a.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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!0}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("cellTemplate"),Object(o.__metadata)("design:type",yt),Object(o.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!0}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("monthCellTemplate"),Object(o.__metadata)("design:type",_t),Object(o.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!0}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("yearCellTemplate"),Object(o.__metadata)("design:type",Ot),Object(o.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!0}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("decadeCellTemplate"),Object(o.__metadata)("design:type",jt),Object(o.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!0}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("centuryCellTemplate"),Object(o.__metadata)("design:type",kt),Object(o.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!0}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.Input)("weekNumberTemplate"),Object(o.__metadata)("design:type",Ct),Object(o.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!0}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.Input)("headerTitleTemplate"),Object(o.__metadata)("design:type",wt),Object(o.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(o.__decorate)([Object(a.ViewChild)(an,{static:!1}),Object(o.__metadata)("design:type",an)],e.prototype,"viewList",void 0),Object(o.__decorate)([Object(a.HostBinding)("attr.id"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(o.__decorate)([Object(a.HostBinding)("attr.role"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(o.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(o.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(o.__decorate)([Object(a.HostBinding)("attr.aria-activedescendant"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),Object(o.__decorate)([Object(a.HostListener)("blur"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleBlur",null),Object(o.__decorate)([Object(a.HostListener)("focus"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleFocus",null),Object(o.__decorate)([Object(a.HostListener)("mouseenter"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),Object(o.__decorate)([Object(a.HostListener)("mouseleave"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),Object(o.__decorate)([Object(a.HostListener)("mousedown",["$event"]),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Object]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleMousedown",null),Object(o.__decorate)([Object(a.HostListener)("click"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleClick",null),Object(o.__decorate)([Object(a.HostListener)("keydown",["$event"]),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Object]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"keydown",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[De,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(o.__metadata)("design:paramtypes",[De,a.ElementRef,bt,a.Renderer2,a.ChangeDetectorRef,a.NgZone,ft,gt])],e)}(),un=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangePopupTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.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(o.__decorate)([Object(a.Injectable)()],e)}(),mn=function(){function e(e,t,n,i,o){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=o,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.cancel=new a.EventEmitter,this.popupUID=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,o=i.popupElement,a=i.popupAnchorViewportLeave;o.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular((function(){return Object(u.fromEvent)(o,"keydown").subscribe(t.handleKeydown.bind(t))})),Object(u.fromEvent)(o,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),a.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(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!1}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("defaultTemplate",{static:!1}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"defaultTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(un,{static:!1}),Object(o.__metadata)("design:type",un)],e.prototype,"contentTemplate",void 0),Object(o.__decorate)([Object(a.ViewChildren)(pn),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"viewCalendar",void 0),Object(o.__decorate)([Object(a.ContentChildren)(pn),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"contentCalendar",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"anchor",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"appendTo",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),e=Object(o.__decorate)([Object(a.Component)({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),Object(o.__param)(4,Object(a.Optional)()),Object(o.__param)(4,Object(a.Inject)(s.RTL)),Object(o.__metadata)("design:paramtypes",[b.b,bn,a.ChangeDetectorRef,a.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(o.__decorate)([Object(a.ContentChildren)(mn),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"contentPopup",void 0),e=Object(o.__decorate)([Object(a.Component)({providers:[bn],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),Object(o.__metadata)("design:paramtypes",[])],e)}(),gn=function(){function e(e,t,n,i,o,a){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=o,this.zone=a,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,o,a){var r=e.call(this,"end",t,n,i,o,a)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return Object(o.__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,o=n.max;if(!W(e,i,o))return null;var a=(this.rangeService.selectionRange||C).start;return this.autoCorrectOn===t&&V(e)&&e<a?ae(e):{start:a,end:Object(c.cloneDate)(e)}},t.prototype.updateInputValue=function(e){var t=(e||C).end,n=this.dateInput,i=n.min,o=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&W(t,i,o)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangeEndInput]"}),Object(o.__metadata)("design:paramtypes",[bn,Gt,a.ElementRef,a.Renderer2,a.NgZone])],t)}(gn),yn=function(e){function t(t,n,i,o,a){var r=e.call(this,"start",t,n,i,o,a)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return Object(o.__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,o=n.max;if(!W(e,i,o))return null;var a=(this.rangeService.selectionRange||C).end;return this.autoCorrectOn===t&&a&&e>a?ae(e):{start:Object(c.cloneDate)(e),end:a}},t.prototype.updateInputValue=function(e){var t=(e||C).start,n=this.dateInput,i=n.min,o=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&W(t,i,o)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangeStartInput]"}),Object(o.__metadata)("design:paramtypes",[bn,Gt,a.ElementRef,a.Renderer2,a.NgZone])],t)}(gn),_n=function(){function e(e,t,n,i,o){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=o,this.autoCorrectOn="change",this.activeRangeEndChange=new a.EventEmitter,this.selectionRangeChange=new a.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=oe(n.min,t.min),t.max=oe(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(ae(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",o=n?ae(e):this.updateRange(e);re(t.selectionRange,o)||(this.acceptAndEmit(o),t.setActiveRangeEnd(i),t.setRange(o))},e.prototype.handleHover=function(e){if(!this.hasCompleteRange()){var t=this.calendarRange,n=t.start,i=t.end,o=this.calendar.activeRangeEnd;(n&&"end"===o||i&&"start"===o)&&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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"autoCorrectOn",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangeSelection]"}),Object(o.__param)(4,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[pn,a.ChangeDetectorRef,a.ElementRef,a.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 o=t;o<n;o++)this._viewContainer.createEmbeddedView(this._template,new On(null,this.kForOf,-1,-1),o);for(o=this._viewContainer.length;o>n;o--)this._viewContainer.remove(o-1);for(o=0;o<this._viewContainer.length;o++){var a=this._viewContainer.get(o);a.context.index=o,a.context.count=length,a.context.$implicit=i[o]||null}}},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"kForOf",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Function)],e.prototype,"kForTrackBy",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e.prototype,"kForTemplate",null),e=Object(o.__decorate)([Object(a.Directive)({selector:"[kFor][kForOf]"}),Object(o.__metadata)("design:paramtypes",[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers])],e)}();var kn,Cn,wn,Sn=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=o,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(S),this.max=new Date(E),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new a.EventEmitter,this.prevButtonClick=new a.EventEmitter,this.nextButtonClick=new a.EventEmitter,this.getComponentClass=!0,this.subscriptions=new 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(q(Y(),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=Y(),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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"currentDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"rangeLength",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"prevButtonClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"nextButtonClick",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-header"),Object(a.HostBinding)("class.k-hstack"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=Object(o.__decorate)([Object(a.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(o.__metadata)("design:paramtypes",[De,a.ChangeDetectorRef,s.LocalizationService,p.IntlService,ft])],e)}(),En=function(){function e(e,t,n,i,o,r,s){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=o,this.renderer=r,this.disabledDatesService=s,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.colSpan=0,this.subscriptions=new 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,o="end"===this.activeRangeEnd&&n,a="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":a||o,"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)||Y(),t=M(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 o=e.ctrlKey,a=e.metaKey,r=e.shiftKey;this.cellClick.emit({date:i.value,modifiers:{ctrlKey:o,metaKey:a,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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"viewDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"viewIndex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),e=Object(o.__decorate)([Object(a.Component)({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *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(o.__metadata)("design:paramtypes",[De,p.IntlService,a.ChangeDetectorRef,a.ElementRef,a.NgZone,a.Renderer2,ft])],e)}(),Dn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[jn,Sn,En],exports:[jn,Sn,En],imports:[m.CommonModule,l.EventsModule]})],e)}(),In=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[yt,_t,Ot,jt,kt,Ct,wt,St],exports:[yt,_t,Ot,jt,kt,Ct,wt,St]})],e)}(),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__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(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Tn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Tn),Rn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Tn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Tn),Vn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[an,xn,Rn,pn],exports:[an,xn,Rn,pn,Dn,In],imports:[m.CommonModule,Dn,p.IntlModule,In,b.a],providers:[bt,ue,me,ve,Oe,on]})],e)}(),Pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__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(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Pn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Pn),Mn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Pn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Pn),Fn=[ct],An=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[Fn],exports:[Fn],imports:[m.CommonModule]})],e)}(),Ln=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[Bt,pt,Mn,Bn,ut],exports:[Bt,pt,Mn,Bn,ut,Dn,In],imports:[m.CommonModule,Dn,Vn,p.IntlModule,In,An,l.EventsModule,l.ResizeSensorModule],providers:[$e,ue,me,ve,Oe,on]})],e)}(),Nn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({exports:[Ln,Vn],imports:[Ln,Vn]})],e)}(),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__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(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:zn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),Object(o.__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(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:zn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Wn=function(){function e(){}return e=Object(o.__decorate)([Object(a.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(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),Un=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Kn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Kn),qn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Kn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Kn),Zn=f.touchEnabled,Yn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[qt,qn,Un],exports:[qt,qn,Un,In],imports:[m.CommonModule,Wn,Ln,p.IntlModule,b.a,In,l.EventsModule],providers:[{provide:Kt,useValue:Zn}]})],e)}(),$n=[fn,mn,un,_n,yn,vn],Xn=[Vn,Wn,b.a,l.EventsModule],Qn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[$n],exports:[$n],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(o.__decorate)([Object(a.Injectable)()],e)}(),oi=(kn=24,function(e){return e%kn}),ai=function(e,t){return oi(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,o=e.insertUndividedMax,a=void 0===o?this.insertUndividedMax:o,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=a,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,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return oi(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(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(ai(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 ai(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(o.__decorate)([Object(a.Injectable)(),Object(o.__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,o=e.min,a=void 0===o?this.min:o,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=a,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return di(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(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(o.__decorate)([Object(a.Injectable)(),Object(o.__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,o=e.min,a=void 0===o?this.min:o,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=a,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return fi(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(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(o.__decorate)([Object(a.Injectable)(),Object(o.__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),Ei=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,o=e.min,a=void 0===o?this.min:o,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=a,this.max=s,this.step=l},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return ji(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(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(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Di=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t),n},Ii=function(e){return null!==e&&e<12},Ti=function(e,t,n){return!t&&!n||e>=t&&e<=n},xi=function(e,t,n){return!t&&!n||e>=t||e<=n},Ri=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=Ii(n),o=Ii(t.getHours());if(i&&o||!i&&!o)return e;var a=this.normalizedRange(),r=a[0],s=a[1],c=void 0===s?24:s,l=n+(o?-12:12);return Di(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,o=void 0===i?this.max:i,a=e.part,r=void 0===a?this.part:a;this.min=n,this.max=o,this.part=r},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],o=this.normalizedRange(),a=o[0],r=o[1],s=this.intl.dateFormatNames(t);return Ii(a)&&i.push({text:s.am,value:Di(this.min,a)}),null!==(n=r)&&(!n||n>11)&&i.push({text:s.pm,value:Di(this.min,Math.max(12,r))}),this.min.getHours()!==a?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:Ti)(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(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Vi=function(){return null},Pi={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]=Ri,Cn[Yt]=li,Cn[Xt]=mi,Cn[Qt]=Oi,Cn[$t]=Ei,Cn),Mi=function(){function e(e,t,n,i,o){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=o,this.min=Object(c.cloneDate)(w),this.max=Object(c.cloneDate)(I),this.step=1,this.disabled=!1,this.valueChange=new a.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),o=i[0],a=i[1];(this.service.isRangeChanged(o,a)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:o,max:a}))),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),o=Math.abs(Math.ceil(e)-i);if(t===n&&o<2)return i;var a=t>n;return a&&o>=this.bottomThreshold||!a&&o>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),o=n&&!this.service.valueInList(n);return i||o},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)],o=this.data[this.selectedIndex(n)];return i&&o&&i.text!==o.text},e.prototype.handleKeyDown=function(e){var t=(Pi[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(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"part",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.ViewChild)(ct,{static:!0}),Object(o.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(o.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-time-list"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),e=Object(o.__decorate)([Object(a.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(o.__metadata)("design:paramtypes",[a.ElementRef,a.Injector,ii,a.Renderer2,a.NgZone])],e)}(),Fi=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},Ai=function(e,t){return Fi(e,t)&&e.getSeconds()===t.getSeconds()},Li=[{type:Yt,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 Fi(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:$t,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,o){var a=e(i),r=t(i,o),s=a-r;if(s<0)return r;var c=s%n;return a-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,o,r,s,l){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=o,this.zone=r,this.renderer=s,this.pickerService=l,this.componentClass=!0,this.format="t",this.min=Object(c.cloneDate)(D),this.max=Object(c.cloneDate)(I),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new a.EventEmitter,this.valueReject=new a.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=F(e,t,n),o=i.candidateValue,a=i.minValue,r=i.maxValue;return o<a?M(e,t):o>r?M(e,n):e}(this.snapTime(Object(c.cloneDate)(e||w),this.min),this.min,this.max),a.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=R(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(o.__decorate)([Object(a.ViewChild)("accept",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"accept",void 0),Object(o.__decorate)([Object(a.ViewChild)("cancel",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"cancel",void 0),Object(o.__decorate)([Object(a.ViewChild)("now",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"now",void 0),Object(o.__decorate)([Object(a.ViewChildren)(Mi),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"timeLists",void 0),Object(o.__decorate)([Object(a.ViewChildren)("listWrapper"),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"timeListWrappers",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-timeselector"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"setButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueReject",void 0),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.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(o.__param)(7,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,a.ElementRef,p.IntlService,ii,a.NgZone,a.Renderer2,Et])],e)}(),Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"toggle",void 0),t}(s.ComponentMessages),Ui=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Ki,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),qi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Ki,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),Object(o.__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(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Ki,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Yi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Ki,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),$i=[Ui,Mi,qi,en,Zi,Yi,Wi],Xi=[Wn,p.IntlModule,b.a,An,l.EventsModule],Qi=f.touchEnabled,Ji=[ii,li,mi,Oi,Ei,Ri,{provide:Kt,useValue:Qi}],eo=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[$i],exports:[$i],imports:[m.CommonModule].concat(Xi),providers:Ji})],e)}(),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"dateTab",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"dateTabLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"timeTab",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"timeTabLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),no=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:to,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(to),io=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:to,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(to),oo=[nn,no,io],ao=f.touchEnabled,ro=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:oo.slice(),exports:oo.concat([In]),imports:[m.CommonModule,p.IntlModule,Wn,Ln,eo,b.a,l.EventsModule,In],providers:[{provide:Kt,useValue:ao}]})],e)}(),so=[Nn,Wn,Yn,eo,Qn,ro],co=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({exports:so,imports:so})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=n(46),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([o.Component({providers:[{provide:r.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-gantt-messages",template:""}),i.__metadata("design:paramtypes",[a.LocalizationService])],t)}(r.Messages);t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=n(46),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([o.Directive({providers:[{provide:r.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoGanttLocalizedMessages]"}),i.__metadata("design:paramtypes",[a.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=function(){function e(e){this.localizationService=e}return e.prototype.ngAfterViewInit=function(){var e=this,t=this.localizationService.dictionary;Object.keys(t).forEach((function(n){return t[n]=e.kendoGanttTreeListMessages.get(n.replace("kendo.treelist.",""))}))},i.__decorate([o.Input(),i.__metadata("design:type",a.LocalizationService)],e.prototype,"kendoGanttTreeListMessages",void 0),e=i.__decorate([o.Directive({selector:"[kendoGanttTreeListMessages]"}),i.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.GanttTreeListMessagesDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return rn})),n.d(t,"ColorInputComponent",(function(){return Nt})),n.d(t,"ContrastValidationComponent",(function(){return Jt})),n.d(t,"ContrastComponent",(function(){return en})),n.d(t,"FocusOnDomReadyDirective",(function(){return Qt})),n.d(t,"ColorGradientLocalizationService",(function(){return Lt})),n.d(t,"ColorPaletteLocalizationService",(function(){return Ut})),n.d(t,"ColorPickerLocalizationService",(function(){return At})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return $t})),n.d(t,"ColorPickerMessages",(function(){return Yt})),n.d(t,"ColorPaletteService",(function(){return Kt})),n.d(t,"MaskingService",(function(){return Ue})),n.d(t,"NumericTextBoxMessages",(function(){return Be})),n.d(t,"RadioButtonModule",(function(){return cn})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return ot})),n.d(t,"RangeSliderMessages",(function(){return nt})),n.d(t,"SHARED_DIRECTIVES",(function(){return _t})),n.d(t,"SliderCustomMessagesComponent",(function(){return et})),n.d(t,"SliderMessages",(function(){return Qe})),n.d(t,"SliderBase",(function(){return me})),n.d(t,"SlidersCommonModule",(function(){return Xe})),n.d(t,"SwitchCustomMessagesComponent",(function(){return ct})),n.d(t,"Messages",(function(){return rt})),n.d(t,"TextFieldsBase",(function(){return kt})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return gt})),n.d(t,"TextBoxMessages",(function(){return ft})),n.d(t,"SliderComponent",(function(){return fe})),n.d(t,"RangeSliderComponent",(function(){return ve})),n.d(t,"LabelTemplateDirective",(function(){return be})),n.d(t,"SwitchComponent",(function(){return ye})),n.d(t,"TextBoxContainerComponent",(function(){return ke})),n.d(t,"TextBoxDirective",(function(){return Ce})),n.d(t,"TextAreaDirective",(function(){return _e})),n.d(t,"NumericTextBoxComponent",(function(){return Pe})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Me})),n.d(t,"MaskedTextBoxComponent",(function(){return Ze})),n.d(t,"InputsModule",(function(){return mn})),n.d(t,"SliderTicksComponent",(function(){return $e})),n.d(t,"SliderModule",(function(){return tt})),n.d(t,"RangeSliderModule",(function(){return at})),n.d(t,"SwitchModule",(function(){return lt})),n.d(t,"NumericTextBoxModule",(function(){return pt})),n.d(t,"MaskedTextBoxModule",(function(){return ut})),n.d(t,"TextBoxModule",(function(){return jt})),n.d(t,"TextAreaModule",(function(){return Et})),n.d(t,"ColorPickerComponent",(function(){return Wt})),n.d(t,"ColorPaletteComponent",(function(){return Zt})),n.d(t,"ColorGradientComponent",(function(){return Ht})),n.d(t,"ColorPickerModule",(function(){return on})),n.d(t,"ActiveColorClickEvent",(function(){return It})),n.d(t,"CheckBoxDirective",(function(){return an})),n.d(t,"RadioButtonDirective",(function(){return sn})),n.d(t,"HintComponent",(function(){return un})),n.d(t,"ErrorComponent",(function(){return dn})),n.d(t,"FormFieldComponent",(function(){return hn})),n.d(t,"FormFieldModule",(function(){return bn})),n.d(t,"TextBoxComponent",(function(){return mt})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return bt})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return ht})),n.d(t,"TextAreaComponent",(function(){return wt})),n.d(t,"TextAreaSuffixComponent",(function(){return St})),n.d(t,"InputSeparatorComponent",(function(){return yt})),n.d(t,"SharedModule",(function(){return Ot})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return Xt})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return dt})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return vt})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return Je})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return it})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return st}));var i=n(0),o=n(1),a=n(6),r=n(5),s=n(7),c=n(4),l=n(3),d=n(10),p=n(11),u=n(9),h=n(8),b=n(12),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 o=e.match(t[i]);if(o){n[i]=!0,n[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||o[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()===D(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,o){e.call(this),this.r=t,this.g=n,this.b=i,this.a=o}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,o=this.b,a=Math.min(n,i,o),r=Math.max(n,i,o),s=r-a,c=r;return 0===s?new C(0,0,c,this.a):(0!==r?(t=s/r,e=n===r?(i-o)/s:i===r?2+(o-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,o=this.b,a=Math.max(n,i,o),r=Math.min(n,i,o),s=(a+r)/2;if(a===r)e=t=0;else{var c=a-r;switch(t=s>.5?c/(2-a-r):c/(a+r),a){case n:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-n)/c+2;break;case o: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,o){e.call(this,Math.round(t),Math.round(n),Math.round(i),o)}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,o){e.call(this),this.h=t,this.s=n,this.v=i,this.a=o}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,o=this.s,a=this.v;if(0===o)e=t=n=a;else{i/=60;var r=Math.floor(i),s=i-r,c=a*(1-o),l=a*(1-o*s),d=a*(1-o*(1-s));switch(r){case 0:e=a,t=d,n=c;break;case 1:e=l,t=a,n=c;break;case 2:e=c,t=a,n=d;break;case 3:e=c,t=l,n=a;break;case 4:e=d,t=c,n=a;break;default:e=a,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,o){e.call(this),this.h=t,this.s=n,this.l=i,this.a=o}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,o=this.s/100,a=this.l/100;if(0===o)e=t=n=a;else{var r=a<.5?a*(1+o):a+o-a*o,s=2*a-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 E(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function D(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof _)return e;var o=e.toLowerCase();if(n=y(o))return(o="transparent"===n[1]?new O(1,1,1,0):D(g[n[1]],t)).match=[n[1]],o;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?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(o))?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(o))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),E(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),E(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(o))?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(o))?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(o))?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(o))&&(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: "+o);return i}var I=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var o=t.formats,a=this.resolveColor(n),r=0;r<o.length;r++){var s=o[r].re,c=o[r].process,l=s.exec(a);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);I.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)]}}],I.namedColors=g;var T=I,x=function(e){return null!=e},R=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)},P=function(e,t,n){return!x(e)||isNaN(e)||e<=t?t:e>=n?n:e},B=function(e){return Math.min(e,20)},M=function(e){return(String(e).split(".")[1]||"").length},F=function(e,t){return Math.max(M(e),M(t))},A=function(e,t){var n=B(t);return parseFloat(e.toFixed(n))},L=function(e,t){var n=F(e,t);return A(e+t,n)},N=function(e,t){return L(e,-t)},z=function(e,t){var n=M(e)+M(t);return A(e*t,n)},H=function(e,t){if(0===t)return NaN;var n=F(e,t),i=Math.pow(10,n);return i*e/(i*t)},G=function(e,t){return Math.abs(N(e,z(t,Math.floor(H(e,t)))))},W=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},K=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},U=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(N(t,e)),o=Math.floor(H(i,n));return L(o,1)},q=function(e){var t=e.handleWidth,n=e.trackWidth,i=e.min,o=e.max,a=e.reverse,r=e.value,s=Math.floor(t/2),c=n/Math.abs(o-i),l=x(r)?c*(r-i):i;return a&&(l=n-l),Math.floor(l-s)},Z=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s,c=n&&r?z(a,r):a,l=N(e,o),d=G(l,c);return s=N(l,0===d?c:d),ee(L(s,o),o,i)},Y=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s=n&&r?z(a,r):a,c=N(e,o),l=G(c,s),d=L(N(c,l),s);return ee(L(d,o),o,i)},$=function(e){return e.id.indexOf("k-start-handle")>-1},X=function(e,t,n){return n>e?e:n<t?t:n},Q=function(e,t,n){return n?[X(e,t,n[0]),X(e,t,n[1])]:[t,t]},J=function(e){return e},ee=function(e,t,n){return Math.max(Math.min(e,n),t)},te=function(e,t,n){var i,o,a=n.min,r=n.max,s=n.vertical,c=n.rtl,l=(i=t.getBoundingClientRect(),o=document.documentElement,{left:i.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),top:i.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}),d=(s?e.pageY-l.top:e.pageX-l.left)*((r-a)/(s?t.clientHeight:t.clientWidth)),p=c||s?r-d:a+d,u=M(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,o=t.max,a=ee(e,i,o);if(e!==a)return a;var r=Z(e,t),s=Y(e,t);return(e-i)%n==0?e:s-e<=(s-r)/2?s:r}(p=A(p,u+1),n)},ne=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},ie=function(e){return Y(e.value,e)},oe=function(e){return Z(e.value,e)},ae=function(e){return Y(e.value,e,!0)},re=function(e){return Z(e.value,e,!0)},se=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},ce=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.trackWidth();this.track.style[e]=t+"px"},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=this.elementSize(this.wrapper),n=K(t,this.elementOffset(this.track)),i=W(this.props),o=this.wrapper.parentElement;o.style[e]=n>i?t-(n-i)+"px":t+(i-n)+"px"},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?W(this.props):K(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=U(t,n,i),a=this.trackWidth(),r=a/N(n,t),s=[],c=0,l=0,d=0;d<o;d++){l=+(l+=0===d||d===o-1?i/2*r:i*r).toFixed(2)-.01;var p=Math.round(l-c);s.push(p),c+=p}return c>=a&&(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}(),le=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,o=t.reverse,a=t.vertical?"bottom":"left",r=this.trackWidth(),s=X(n,i,this.props.value);this.handlePosition=q({min:i,max:n,reverse:o,value:s,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.handlePosition+"px")},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical?"height":"width",a=Math.floor(e.offsetWidth/2),r=this.handlePosition+a;i&&(r=this.trackWidth()-r),this.renderer.setStyle(t,o,r+"px")},t}(ce),de=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function pe(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 ue=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},he={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1637576485,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"},be=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),me=function(){function e(e,t,n,i,a,s){var c=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=a,this.hostElement=s,this.title=J,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 o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.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)(he),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(a.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?ie:oe,e[l.Keys.ArrowRight]=t?oe:ie,e[l.Keys.ArrowDown]=oe,e[l.Keys.ArrowUp]=ie,e[l.Keys.PageUp]=ae,e[l.Keys.PageDown]=re,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(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(o.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(o.ContentChild)(be,{static:!1}),Object(i.__metadata)("design:type",be)],e.prototype,"labelTemplate",void 0),e}(),fe=function(e){function t(t,n,i,o,a,r){var s=e.call(this,t,n,i,o,a,r)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=a,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&&!ne(t)&&!ne(t.parentNode)){var n=te(e,s.track.nativeElement,s.getProps());s.changeValue(n)}pe(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var a=o(t);s.changeValue(X(n,i,a)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(Z(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(Y(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,pe(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,pe(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(te(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;R(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,o=this.draghandle.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,a,this.hostElement.nativeElement]);var r=this.getProps(),s=new le(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(o),s.positionSelection(o,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"),o=Object(r.fromEvent)(e,"mouseup"),a=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)(o,a)))}))).subscribe((function(){n.isFocused||pe(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:X(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(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(o.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(o.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 <span\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n role="presentation"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </span>\n <span\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.aria-label]="currentValue"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </span>\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 <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(me),ge=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,o=t.reverse,a=t.vertical?"bottom":"left",r=this.trackWidth(),s=$(e)?Q(n,i,this.props.value)[0]:Q(n,i,this.props.value)[1];$(e)?(this.startHandlePosition=q({min:i,max:n,reverse:o,value:s,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.startHandlePosition+"px")):(this.endHandlePosition=q({min:i,max:n,reverse:o,value:s,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,a=o?"height":"width",r=o?"bottom":i?"right":"left",s=Math.floor(e.offsetWidth/2),c=Math.abs(this.endHandlePosition-this.startHandlePosition),l=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,a,c+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(l)-s+"px":parseFloat(l)+s+"px")},t}(ce),ve=function(e){function t(t,n,o,a,r,s){var c=e.call(this,t,n,o,a,r,s)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=a,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=te(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],a=i[1];t<=o?(n=[t,a],c.activeHandle="startHandle"):o<t&&t<a?t<(o+a)/2?(n=[t,a],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=a&&(n=[o,t],c.activeHandle="endHandle"),pe("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,o=t.min,a=c.keyBinding[e.keyCode];if(!c.isDisabled&&a){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var r=$(e.target),s=a(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=X(n,o,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,pe(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,pe("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&&se(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 o=e.pageX<this.lastHandlePosition.x,a=e.pageX>this.lastHandlePosition.x,r=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([te(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],te(e,t.track.nativeElement,t.getProps())])},l=function(){return t.changeValue([te(e,t.track.nativeElement,t.getProps()),te(e,t.track.nativeElement,t.getProps())])},d=$(this.draggedHandle),p=this.vertical,u=!p,h=p&&r||(this.reverse?u&&a:u&&o);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){se(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,R(t[0],n[0])&&R(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,o=this.draghandleEnd.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,a,this.hostElement.nativeElement]);var r=this.getProps(),s=new ge(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(o),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:Q(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(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(o.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 <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\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(me),ye=function(){function e(e,t,n,i,a,r){var s=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=a,this.ngZone=r,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){s.focused=!0,Object(l.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()}))},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(l.hasObservers)(s.onBlur)||V(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()}))},Object(d.validatePackage)(he),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,"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(a.NgControl,null),this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.wrapper&&this.wrapper.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-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.setHostClasses=function(e){e?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSwitch",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.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 #wrapper\n class="k-switch-container"\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]="{ click: clickHandler, 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 class="k-switch-handle" [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,c.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}(),_e=function(){function e(e,t,n,i,a,r){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=a,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.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(a.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.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(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(o.Optional)()),Object(i.__param)(5,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}(),Oe=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof r.Observable||e instanceof o.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}(),je=function(e){return"[object Function]"===Object.prototype.toString.call(e)},ke=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=i?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textareaElementClass",{get:function(){return!!this.textarea},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(){var e=this;if(this.formControl||this.kendoInput){var t=new Oe(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(t){return function(){e.focused=t,e.updateState()}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}));var i=function(){return e.updateState()};if(i(),this.subscribe(t,"onValueChange",i),this.id&&t.focusableId)this.id=t.focusableId;else if(this.id)t.focusableId=this.id;else if(t.focusableId)this.id=t.focusableId;else{var a="_"+Object(l.guid)();t.focusableId=a,this.id=a}}else if(Object(o.isDevMode)())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions=[]},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof o.EventEmitter){var i=e[t].subscribe(n);this._subscriptions.push(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;je(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=je(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()},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox-container"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostClasses",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-wrapper"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"textareaElementClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"floatingLabel",void 0),Object(i.__decorate)([Object(o.ContentChild)(l.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChild)(_e,{static:!1}),Object(i.__metadata)("design:type",_e)],e.prototype,"textarea",void 0),Object(i.__decorate)([Object(o.ContentChild)(a.NgControl,{static:!1}),Object(i.__metadata)("design:type",a.NgControl)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,Boolean])],e)}(),Ce=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClass=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.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(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoTextBox]",providers:[{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}(),we=/[eE][\-+]?([0-9]+)/,Se=function(e){return e>=0?Math.floor(e):Math.ceil(e)},Ee=function(e){},De=function(e){return!isNaN(e)&&null!==e};function Ie(e,t){var n=t-String(e).length,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i}var Te;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(Te||(Te={}));var xe,Re=["min","max","step","decimals"],Ve={decimals:null,max:null,min:null,step:1},Pe=function(){function e(e,t,n,i,a,r,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=a,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 o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=Te,this.arrowDirection=Te.None,this.inputValue="",this.minValidateFn=Ee,this.maxValidateFn=Ee,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=Ee,this.ngTouched=Ee,this.ngValidatorChange=Ee,this.increasePress=function(e){c.arrowPress(Te.Up,e)},this.decreasePress=function(e){c.arrowPress(Te.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==Te.None&&(c.arrowDirection=Te.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 o=c.intl.parseNumber(i),a=c.restrictDecimals(o);if(c.autoCorrect){var r=c.limitInputValue(a);a=r.value,t=r.selectionStart,n=r.selectionEnd}o!==a||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(a),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(a),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)(he),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,"widgetClasses",{get:function(){return!0},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(a.NgControl,null)},e.prototype.ngOnChanges=function(e){var t,n;Object(l.anyChanged)(Re,e,!1)&&this.parseOptions(Re.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}}}):Ee,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}}}):Ee,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)},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(){pe(this.numericInput,"focus")},e.prototype.blur=function(){pe(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.numericWrap){var t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement;e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),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,o;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,o=n.which&&3===n.which,i||o))||(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;R(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,o=this.previousSelection,a=o.start,r=o.end;t.value=e=e.substring(0,a)+this.decimalSeparator+e.substring(r),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,o,a,r;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,o=t.decimals,a=t.min,"."===(r=t.separator)&&(r="\\"+r),n=0===o?"\\d*":"(?:(?:\\d+("+r+"\\d*)?)|(?:"+r+"\\d*))?",new RegExp("^"+(i&&null!==a&&a>=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=L(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&&pe(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(De(this.max)&&e>this.max&&(t=this.max),De(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,o=t.value,a=e,r=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,c=this.min,l=this.max,d=De(l),p=De(c),u=void 0,h=void 0,b=e;if(0===n&&this.inputValue.substr(1)===o)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&&Se(e)!==Se(u)&&(b=m,r=!0)}else h&&this.inputValue&&n!==o.length&&(b=parseFloat(o.substr(0,n)+o.substr(n+s)));a=this.limitValue(b),r=(r||a!==b)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:r?String(a).length:i,selectionStart:n,value:a}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=Ie(e,i),a=Ie(e,i+1);return this.isInRange(o)?n=o:this.isInRange(a)&&(n=a),n},e.prototype.isInRange=function(e){return!De(e)||(!De(this.min)||this.min<=e)&&(!De(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,o=String(e);if(t||we.test(o))n=A(e,i);else{var a=o.split("."),r=a[1];r&&r.length>i&&(r=r.substr(0,i),n=parseFloat(a[0]+"."+r))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=we.exec(t);return n&&(t=e.toFixed(B(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(o.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(o.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 a=parseFloat(i),r=!isNaN(a);if(Object(o.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?a:Ve[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,o=this.elementValue,a=o.substring(0,i);if(this.setInputValue(),a.length){var r=(e=a,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(o,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,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericWrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericWrap",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"widgetClasses",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoNumericTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:a.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.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 <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\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 class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[u.IntlService,o.Renderer2,c.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(c.ComponentMessages),Me=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(o.Component)({providers:[{provide:Be,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Be);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(xe||(xe={}));var Fe=function(){function e(e,t,n){void 0===n&&(n=xe.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}(),Ae=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}(),Le=function(e){return(e||"").split("")},Ne=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Ae?this.parse(e):this.parse(new Ae(Le(e),Le(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===xe.Literal},e}(),ze=function(e,t){return new Ne((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new Fe(t.literal(i),n)):new Fe(o?t.mask(o):t.literal(i),n)}))},He=function(e){var t=e.prompt,n=e.promptPlaceholder;return new Ne((function(e){var i=e.next().char;return new Fe(i===t?n:i,e)}))},Ge=function(e){return new Ne((function(t){var n=t.next().char;return new Fe(e?n:"",t)}))},We=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 Ne((function(e){return new Fe(t,e)}))));var t},Ke=function(e){return new Ne((function(t){for(var n=new Fe([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ue=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,o=void 0===i?"":i,a=e.promptPlaceholder,r=void 0===a?" ":a,s=e.rules,c=void 0===s?{}:s,l=e.includeLiterals,d=void 0!==l&&l;this.mask=n,this.prompt=o,this.promptPlaceholder=r,this.rules=c,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return We(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?(We(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?(We(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 o="",a=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return We(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=r.concat(e).concat(s).join("")})),{selection:a,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",a=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return We(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){a=i.adjustPosition(e,a),o=e.concat(r).join("")})),{selection:a,value:o}},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,o="",a=n,r=e.slice(0,n);return We(this.unmaskTokens).run(r,t).chain((function(e){a=e.join("").length;var n=t.slice(a);return We(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:a,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new Ne((function(e){return e.peek().char===t?(e.eat(),new Fe(t,e,xe.Literal)):new Fe(t,e,xe.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new Ne((function(i){for(;!i.eof();){var o=i.peek(),a=o.char,r=o.control;if(a===r&&r===t)return i.eat(),new Fe(t,i,xe.Mask);if(e.test(a))return i.eat(),new Fe(a,i,xe.Mask);if(a===n)return i.eat(),new Fe(t,i,xe.Mask);i.eat_input()}return i.eat(),new Fe(t,i,xe.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 Ne((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 Ne((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,a=i.control;if(o===n&&a===n)return t.eat(),new Fe(o,t);if(e.test(o))return t.eat(),new Fe(o,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 Ge(n)},mask:function(n){return He({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Ge(!1)},mask:function(t){return He({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Ke(ze(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Ke(ze(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Ke(ze(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Ke(ze(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),qe=Promise.resolve(null),Ze=function(){function e(e,t,n,i,a,r,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=a,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 o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.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.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)(he),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,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(a.NgControl,null)},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,o=i[0],a=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var r=this.maskedValue.length-a,s=n.length-r;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,a)}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&&pe(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-state-focused"):this.renderer.removeClass(t,"k-state-focused"),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(o.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.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(o.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(o.Component)({exportAs:"kendoMaskedTextBox",providers:[Ue,{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{multi:!0,provide:a.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.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-textbox"\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(o.Optional)()),Object(i.__param)(6,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Ue,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}(),Ye=function(e){this.value=e,this.classes={"k-tick":!0}},$e=function(){function e(e){this.rtl=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,o,a,r,s,c=U(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 Ye((e=u,n=void 0,i=void 0,o=void 0,a=void 0,r=void 0,s=void 0,n=(t=d).max,i=t.min,o=t.smallStep,a=t.reverse,r=t.vertical,s=L(i,z(e,o)),r||a?Math.abs(N(s,n)):s))),l&&u%l==0&&(p[u].large=!0,p[u].classes["k-tick-large"]=!0);(this.rtl||this.vertical)&&(p=p.reverse()),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(o.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(o.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(o.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">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Boolean])],e)}(),Xe=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[$e,be],exports:[be,$e,l.DraggableModule,l.EventsModule,l.ResizeSensorModule],imports:[h.CommonModule,l.DraggableModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(c.ComponentMessages),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,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Qe,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Qe),et=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(o.Component)({providers:[{provide:Qe,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Qe),tt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[fe,et,Je],exports:[fe,et,be,Je],imports:[h.CommonModule,Xe]})],e)}(),nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(c.ComponentMessages),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,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:nt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(nt),ot=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(o.Component)({providers:[{provide:nt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(nt),at=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ve,ot,it],exports:[ve,ot,it,be],imports:[h.CommonModule,Xe]})],e)}(),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(c.ComponentMessages),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,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:rt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(rt),ct=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(o.Component)({providers:[{provide:rt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(rt),lt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ye,ct,st],exports:[ye,ct,st],imports:[h.CommonModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),dt=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(o.Directive)({providers:[{provide:Be,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Be),pt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[dt,Pe,Me],exports:[Pe,Me],imports:[h.CommonModule,l.EventsModule]})],e)}(),ut=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ze],exports:[Ze],imports:[h.CommonModule,l.EventsModule]})],e)}(),ht=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),bt=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),mt=function(){function e(e,t,n,i,a,r){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=a,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 o.EventEmitter,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,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=(n=navigator.userAgent,(Object(p.detectDesktopBrowser)(n).safari||Object(p.detectMobileOS)(n)&&"mobilesafari"===Object(p.detectMobileOS)(n).browser)&&(t=e.target.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(t))?e.data:e.target.value);s.updateValue(i)},this.ngChange=function(e){},this.ngTouched=function(){},Object(d.validatePackage)(he),this.direction=e.rtl?"rtl":"ltr"}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,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.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?(ue(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})))}))},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?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error 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-close-circle"},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&&pe(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;R(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-state-focused"):this.renderer.removeClass(t,"k-state-focused"),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}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.ContentChild)(ht,{static:!1}),Object(i.__metadata)("design:type",ht)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(bt,{static:!1}),Object(i.__metadata)("design:type",bt)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.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\n class="k-input"\n #input\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 <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\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 >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],e)}(),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(c.ComponentMessages),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,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:ft,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ft),vt=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(o.Directive)({providers:[{provide:ft,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ft),yt=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),_t=[yt,_e],Ot=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[_t],exports:[_t]})],e)}(),jt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ce,ke,mt,ht,bt,gt,vt],exports:[Ce,ke,mt,ht,bt,l.EventsModule,gt,vt,_t],imports:[h.CommonModule,l.EventsModule,Ot]})],e)}(),kt=function(){function e(e,t,n,i,a,s){var c=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=a,this.hostElement=s,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.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(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),Ct={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},wt=function(e){function t(t,n,i,a,r,s){var c=e.call(this,t,n,i,a,r,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=a,c.injector=r,c.hostElement=s,c.focusableId="k-"+Object(l.guid)(),c.hostClass=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,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)(he),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}),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?(ue(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})))}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.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.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),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;R(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 Ct[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,"overflow-y","hidden"),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-state-focus"):this.renderer.removeClass(t,"k-state-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&&pe(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.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"\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,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(kt),St=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),Et=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[wt,St],exports:[wt,l.EventsModule,St,_t],imports:[h.CommonModule,l.EventsModule,Ot]})],e)}(),Dt=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),It=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}(),Tt=function(e,t,n){void 0===n&&(n=!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;D(e,t)&&(e=D(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 shoud be set to 'hex' or 'rgba' ");return n}(e,n);var i=D(e.trim(),n);if(x(i))return"hex"===t?i.toCss():i.toCssRgba()}},xt=function(e,t){void 0===t&&(t=!0);var n=D(e,t);return x(n)?n.toBytes():{}},Rt=function(e){var t=P(e.h,0,359.9),n=P(e.s,0,1),i=P(e.v,0,1),o=P(e.a,0,1);return T.fromHSV(t,n,i,o).toCssRgba()},Vt=function(e){return Rt({h:e,s:1,v:1,a:1})};var Pt=function(e,t){var n=P(e.r,0,255),i=P(e.g,0,255),o=P(e.b,0,255),a=P(e.a,0,1),r=P(t.r,0,255),s=P(t.g,0,255),c=P(t.b,0,255);return{r:Math.round((1-a)*r+a*n),g:Math.round((1-a)*s+a*i),b:Math.round((1-a)*c+a*o)}},Bt=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]},Mt=function(e,t){return n=Bt(Pt(e,t)),i=Bt(Pt(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},Ft={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}},At=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(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean])],t)}(c.LocalizationService),Lt=function(e){function t(t,n,i,o){var a=e.call(this,t,n,i)||this;return a.colorPickerLocalization=o,a}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(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(At)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,At])],t)}(c.LocalizationService),Nt=function(){function e(e,t,n){this.localization=e,this.host=t,this.renderer=n,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.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=Tt(this.value,"hex"),this.rgba=xt(this.value),this.rgba.a=Tt(this.value,"rgba")?this.rgba.a:1)},e.prototype.handleRgbaValueChange=function(){var e,t,n,i,o,a=(e=this.rgba,t=P(e.r,0,255),n=P(e.g,0,255),i=P(e.b,0,255),o=P(e.a,0,1),T.fromBytes(t,n,i,o).toCssRgba());this.rgbaInputValid&&a!==this.value&&(this.value=a,this.rgba=xt(this.value),this.hex=Tt(a,"hex"),this.valueChange.emit(a))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=Tt(e,"rgba");x(t)&&t!==this.value&&(this.value=t,this.rgba=xt(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=xt(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=Tt(this.value,"hex")},e.prototype.textFor=function(e){return this.localization.get(e)},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(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient-inputs"),Object(o.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(o.ViewChild)("opacityInput",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button class="k-colorgradient-toggle-mode k-button k-icon-button k-flat" #toggleFormatButton>\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <input *ngIf="formatView === \'hex\'"\n #hexInput\n class="k-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n [placeholder]="textFor(\'hexInputPlaceholder\')"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\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 [placeholder]="textFor(\'redInputPlaceholder\')"\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 [placeholder]="textFor(\'greenInputPlaceholder\')"\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 [placeholder]="textFor(\'blueInputPlaceholder\')"\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 [placeholder]="textFor(\'alphaInputPlaceholder\')"\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",[c.LocalizationService,o.ElementRef,o.Renderer2])],e)}(),zt=0,Ht=function(){function e(e,t,n,i,a){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=a,this.hostClasses=!0,this.id="k-colorgradient-"+zt++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new o.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new r.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=a.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,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Tt(e,this.format)},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,"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)&&x(this.hsva.a))return 100*this.hsva.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"string"==typeof this.contrastTool&&""!==this.contrastTool},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.host.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(Rt(this.hsva)))},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,o=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":o=-5;break;case"ArrowDown":o=5}var a=parseInt(n.style.top,10)+o,r=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run((function(){return t.moveDragHandle(r,a)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=e.clientX-this.gradientRect.left,i=e.clientY-this.gradientRect.top;this.ngZone.run((function(){return t.moveDragHandle(n,i)}))}},e.prototype.handleHueSliderChange=function(e){this.handleValueChange(Rt(this.hsva)),this.backgroundColor=Vt(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(Rt(this.hsva))},e.prototype.handleInputsValueChange=function(e){var t=Tt(e,this.format);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=Tt(this.value,this.format);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=P(t,0,this.gradientRect.height),o=P(e,0,this.gradientRect.width);this.setDragHandleElementPosition(n,o),this.hsva.s=o/this.gradientRect.width,this.hsva.v=1-n/this.gradientRect.height,this.updateValues.next(Rt(this.hsva)),this.setAlphaSliderBackground(Rt(Object(i.__assign)({},this.hsva,{a:1})))},e.prototype.updateUI=function(){if(Object(l.isDocumentAvailable)()){this.hsva=this.value?function(e,t){void 0===t&&(t=!0);var n=D(e,t);return x(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1};var e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width;this.setDragHandleElementPosition(e,t),this.backgroundColor=Vt(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},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=Tt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},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,o;i=e.host.nativeElement,o=t.relatedTarget,(!i||!o||i!==o&&!i.contains(o))&&((n=e.host)&&n.nativeElement&&de(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(Rt(e.hsva))}))})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),a=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,o,a)}))},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(o.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"contrastTool",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientDragHandle",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",Nt)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(o.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",fe)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorgradient",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Lt,{provide:c.LocalizationService,useExisting:Lt},{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-hexInputPlaceholder="kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha"\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 </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\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 </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-flat 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 [smallStep]="5"\n [largeStep]="10"\n [(value)]="hsva.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity && format === \'rgba\'"\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" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-align-self-end {\n height: 140px;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,c.LocalizationService])],e)}(),Gt=0,Wt=function(){function e(e,t,n,i){var a=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=i,this.hostClasses=!0,this.focusableId="k-colorpicker-"+Gt++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",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.activeColorClick=new o.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(d.validatePackage)(he),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Tt(e,this.format)},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,"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&&Ft[t]?Ft[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Tt(this.value,this.format))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},e.prototype.handleActiveColorClick=function(){this.focus();var e=new It(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){x(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},e.prototype.blur=function(){this.wrapper.nativeElement.blur()},e.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},e.prototype.reset=function(){x(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=x(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e,t){var n=Tt(e,this.format),i=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),i&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},e.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),n=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||n||t||(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){e.keyCode!==l.Keys.ArrowDown&&e.keyCode!==l.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===l.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===l.Keys.Tab){var t=this.colorGradient?this.colorGradient.gradientDragHandle.nativeElement:this.palette.nativeElement,n=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(e.shiftKey){if(e.target===t)return e.preventDefault(),void n.focus()}else if(e.target===n)return e.preventDefault(),void t.focus()}},e.prototype.isEmpty=function(){return!1},e.prototype.toggleWithEvents=function(e){var t=this,n=this.isOpen===e;if(!(this.disabled||this.readonly||n)){var i=new Dt;e?this.open.emit(i):this.close.emit(i),i.isDefaultPrevented()||this.toggle(e),e&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.colorGradient&&t.colorGradient.gradientDragHandle.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.wrapper,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.wrapper.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-colorpicker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"view",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("palette",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(o.ViewChild)("colorGradient",{static:!1}),Object(i.__metadata)("design:type",Ht)],e.prototype,"colorGradient",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},At,{provide:c.LocalizationService,useExisting:At},{provide:c.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorGradient="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradient="kendo.colorpalette.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-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha">\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.aria-disabled]="disabled"\n [attr.aria-label]="value"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background-color]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="handleWrapperClick()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <kendo-colorgradient #colorGradient\n *ngIf="view === \'gradient\' || view === \'combo\'"\n [value]="value"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [clearButton]="gradientSettings.clearButton"\n [delay]="gradientSettings.delay"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event, false)"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette\n #palette\n *ngIf="view === \'palette\' || view === \'combo\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="value"\n (blur)="handlePopupBlur($event)"\n (cellSelection)="handleValueChange($event, true)"\n (mousedown)="$event.preventDefault()"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorpalette>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[b.b,o.ChangeDetectorRef,c.LocalizationService,o.NgZone])],e)}(),Kt=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(o.Injectable)()],e)}(),Ut=function(e){function t(t,n,i,o){var a=e.call(this,t,n,i)||this;return a.colorPickerLocalization=o,a}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(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(At)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,At])],t)}(c.LocalizationService),qt=0,Zt=function(){function e(e,t,n,i,a){var r=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=a,this.id="k-colorpalette-"+qt++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=a.changes.subscribe((function(e){var t=e.rtl;r.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=Tt(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(Ft[e])&&(this.columns=this.columns||Ft[e].columns,e=Ft[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return Tt(e,t.format,!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(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},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.focusedCell=this.service.getCellCoordsFor(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=Tt(e,this.format,!1);this.cellSelection.emit(n),this.value!==n&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n),this.setHostElementAriaLabel()),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId=this.selectedCell.row+"-"+this.selectedCell.col)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},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._value=void 0,this.notifyNgChanged(void 0))},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,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=Tt(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(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.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(o.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(o.Component)({selector:"kendo-colorpalette",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Kt,Ut,{provide:c.LocalizationService,useExisting:Ut},{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]="rowIndex + \'-\' + colIndex"\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",[o.ElementRef,Kt,o.ChangeDetectorRef,o.Renderer2,c.LocalizationService])],e)}(),Yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),t}(c.ComponentMessages),$t=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(o.Component)({providers:[{provide:Yt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Yt),Xt=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(o.Directive)({providers:[{provide:Yt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Yt),Qt=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(o.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),Jt=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(){return this.type+": "+this.ratio.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"ratio",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\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 '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),en=function(){function e(e){this.localization=e,this.aaRatio=4.5,this.aaaRatio=7}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioMessage",{get:function(){return this.localization.get("contrastRatio")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=this.aaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=this.aaaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Mt(xt(this.value),xt(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioMessage}}: {{formatedRatio}}</span>\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 </div>\n <div kendoContrastValidation\n type="AA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),tn=[Wt,Zt,Ht,Xt,$t],nn=[Nt,Qt,en,Jt],on=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[tn,nn],exports:[tn],imports:[tt,pt,h.CommonModule,b.a,l.DraggableModule]})],e)}(),an=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoCheckBox]"})],e)}(),rn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[an],exports:[an],imports:[h.CommonModule]})],e)}(),sn=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoRadioButton]"})],e)}(),cn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[sn],exports:[sn],imports:[h.CommonModule]})],e)}(),ln=0,dn=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+ln++,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(o.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),pn=0,un=function(){function e(){this.align="start",this.id="kendo-hint-"+pn++,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(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),hn=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)(he),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(o.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 a.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(o.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.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(o.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(o.ContentChildren)(a.NgControl,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList),Object(i.__metadata)("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(o.ContentChildren)(a.NgControl,{read:o.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(o.ContentChild)(l.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChildren)(dn,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(o.ContentChildren)(un,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(o.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",[o.Renderer2,c.LocalizationService,o.ElementRef])],e)}(),bn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[un,dn,hn],exports:[un,dn,hn],imports:[h.CommonModule]})],e)}(),mn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[Et,jt,tt,at,lt,pt,ut,on,rn,cn,bn],imports:[h.CommonModule]})],e)}()}])}));