@progress/kendo-angular-gantt 0.3.0-dev.202201190830 → 1.0.0-dev.202201191538
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-gantt.js +2 -2
- package/dist/cdn/main.js +1 -23
- package/dist/es/editing/dependencies-table.component.js +1 -1
- package/dist/es/editing/edit-dialog.component.js +1 -1
- package/dist/es/editing/task-fields.component.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/toolbar/view-selector.component.js +1 -1
- package/dist/es2015/editing/dependencies-table.component.js +1 -1
- package/dist/es2015/editing/edit-dialog.component.js +1 -1
- package/dist/es2015/editing/task-fields.component.js +1 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/toolbar/view-selector.component.js +1 -1
- package/dist/fesm2015/index.js +5 -5
- package/dist/fesm5/index.js +5 -5
- package/dist/npm/editing/dependencies-table.component.js +1 -1
- package/dist/npm/editing/edit-dialog.component.js +1 -1
- package/dist/npm/editing/task-fields.component.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/toolbar/view-selector.component.js +1 -1
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +22 -21
|
@@ -2,4 +2,4 @@
|
|
|
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
|
-
System.register("@progress/kendo-angular-gantt",["tslib","@angular/core","@angular/common","@angular/forms","@progress/kendo-angular-layout","@progress/kendo-angular-treelist","@progress/kendo-angular-buttons","@progress/kendo-angular-common","@progress/kendo-angular-dialog","@progress/kendo-angular-popup","@progress/kendo-common","@progress/kendo-angular-grid","@progress/kendo-date-math","rxjs","@progress/kendo-licensing","rxjs/operators","@progress/kendo-angular-intl","@progress/kendo-data-query","@telerik/kendo-draggable"],function(a){var r,s,c,d,l,p,u,h,b,m,g,f,v,y,_,O,j,k,C;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){l=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){h=t(e)},function(e){b=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){f=t(e)},function(e){v=t(e)},function(e){y=t(e)},function(e){_=t(e)},function(e){O=t(e)},function(e){j=t(e)},function(e){k=t(e)},function(e){C=t(e)}],execute:function(){function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,o;o={},i.m=n=[function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=h},function(e,t){e.exports=v},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",function(){return r}),n.d(t,"ComponentMessages",function(){return s}),n.d(t,"L10N_PREFIX",function(){return d}),n.d(t,"LocalizationService",function(){return l}),n.d(t,"RTL",function(){return c});var i=n(0),t=n(1),o=n(5),a=n(6),r=(h.prototype.notify=function(e){this.changes.next({rtl:e})},h.prototype.get=function(e){},Object(i.__decorate)([Object(t.Injectable)()],h)),s=(Object.defineProperty(u.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),u.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},u.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(a.skip)(1)).subscribe(function(){return e.register(e)})},u.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},u.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},u),c=new t.InjectionToken("Kendo UI Right-to-Left token"),d=new t.InjectionToken("Localization key prefix"),l=(Object.defineProperty(p.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},p.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},p.prototype.register=function(e,t,n){void 0===n&&(n=!1);var i=this.key(e),e=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;e=this.defaultValue(i,t)}this.dictionary[i]=e},p.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},p.prototype.key=function(e){return this.prefix+"."+e},p.prototype.defaultValue=function(e,t){if(!this.messageService)return t;e=this.messageService.get(e);return void 0===e?t:e},Object(i.__decorate)([Object(t.Injectable)(),Object(i.__param)(0,Object(t.Inject)(d)),Object(i.__param)(1,Object(t.Optional)()),Object(i.__param)(2,Object(t.Optional)()),Object(i.__param)(2,Object(t.Inject)(c)),Object(i.__metadata)("design:paramtypes",[String,r,Boolean])],p));function p(e,t,n){var i=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new o.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(a.map)(function(e){e=e.rtl;return void 0!==e?e:i._rtl}),Object(a.tap)(function(e){return i._rtl=e})).subscribe(function(e){i.dictionary={},i.changes.next({rtl:e})}))}function u(){}function h(){this.changes=new o.BehaviorSubject({rtl:void 0})}},function(e,t){e.exports=y},function(e,t){e.exports=O},function(e,t){e.exports=d},function(e,t){e.exports=g},function(e,t){e.exports=c},function(e,t){e.exports=j},function(e,t){e.exports=m},function(e,t){e.exports=_},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n,i=t(2),r=t(3),o=t(19);a.isWorkDay=function(e,t,n){return e.getDay()>=t&&e.getDay()<=n},a.isWorkHour=function(e,t,n){return e.getHours()>=t&&e.getHours()<=n},a.isPresent=function(e){return null!=e},a.normalizeGanttData=function(e){return a.isPresent(e)?Array.isArray(e.data)?e.data:e:[]},a.isArray=function(e){return Array.isArray(e)},a.setTime=function(e,t,n,i,o){if(void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=0),!a.isPresent(e))return null;e=r.cloneDate(e);return e.setHours(t),e.setMinutes(n),e.setSeconds(i),e.setMilliseconds(o),e},a.lastDayOfWeek=function(e,t){e=r.addWeeks(e,1),t=r.firstDayInWeek(e,t);return r.addDays(t,-1)},a.scrollbarWidth=function(){var e;if(i.isDocumentAvailable())return isNaN(n)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),n},a.isColumnGroup=function(e){return e.isColumnGroup},a.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},a.isString=function(e){return"string"==typeof e},a.getClosestTaskWrapper=function(e,t){return i.closestInScope(e,i.matchesClasses("k-task-wrap"),t)},a.isTaskWrapper=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task-wrap"),t);return a.isPresent(t)},a.getClosestTask=function(e,t){return i.closestInScope(e,i.matchesClasses("k-task"),t)},a.getClosestTaskIndex=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task-wrap"),t);return a.isPresent(t)?Number(t.getAttribute("data-task-index")):null},a.isTask=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task"),t);return a.isPresent(t)},a.isToolbar=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-gantt-toolbar"),t);return a.isPresent(t)},a.isClearButton=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task-actions"),t);return a.isPresent(t)},a.isDependencyDragClue=function(e){return!!a.isPresent(e)&&e.classList.contains("k-task-dot")},a.isDependencyDragStartClue=function(e){return!!a.isPresent(e)&&e.classList.contains("k-task-dot")&&e.classList.contains("k-task-start")},a.getDependencyTypeFromTargetTasks=function(e,t){if(!a.isDependencyDragClue(e)||!a.isDependencyDragClue(t))return null;switch((a.isDependencyDragStartClue(e)?"S":"F")+(a.isDependencyDragStartClue(t)?"S":"F")){case"FF":return o.DependencyType.FF;case"FS":return o.DependencyType.FS;case"SF":return o.DependencyType.SF;case"SS":return o.DependencyType.SS;default:return null}},a.sameTaskClues=function(e,t,n){return!(!a.isPresent(e)||!a.isPresent(t))&&a.getClosestTaskWrapper(e,n)===a.getClosestTaskWrapper(t,n)},a.fitToRange=function(e,t,n){return!a.isPresent(e)||e<t?t:n<e?n:e},a.areParentChild=function(e,t){for(var n=!1,i=e;a.isPresent(i)&&a.isPresent(i.data);){if(i.data===t.data){n=!0;break}i=i.parent}for(var o=t;!n&&a.isPresent(o)&&a.isPresent(o.data);){if(o.data===e.data){n=!0;break}o=o.parent}return n},a.elementFromPoint=function(e,t){return i.isDocumentAvailable()?document.elementFromPoint(e,t):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(96),s=n(95),c=n(13),o=(Object.defineProperty(d.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(d.prototype,"dependencyFields",{get:function(){return this._dependencyFields},set:function(e){this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),d.prototype.extractFromTask=function(e,t){return c.isPresent(this.taskFields)?a.getter(this.taskFields[t])(e):null},d.prototype.extractFromDependency=function(e,t){return c.isPresent(this.dependencyFields)?a.getter(this.dependencyFields[t])(e):null},i.__decorate([o.Injectable()],d));function d(){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS),this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS)}t.MappingService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),i=(a.prototype.notifyColumnChanges=function(){this.columnChanges.emit()},a.prototype.notifyViewChanges=function(){this.viewChanges.emit()},i.__decorate([o.Injectable()],a));function a(){this.viewChanges=new o.EventEmitter,this.columnChanges=new o.EventEmitter}t.OptionChangesService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),n=n(14),n=(Object.defineProperty(r.prototype,"taskChanges",{get:function(){return this.notifier.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dependencyDomArgs",{get:function(){return{tasks:this.tasks,contentContainer:this.contentContainer,timelineRow:this.timelineRow}},enumerable:!0,configurable:!0}),r.prototype.ngOnDestroy=function(){this.tasks.clear(),this.tasks=null,this.contentContainer=null},r.prototype.registerTimelineRow=function(e){this.timelineRow=e,this.notifyChanges()},r.prototype.registerContentContainer=function(e){this.contentContainer=e,this.notifyChanges()},r.prototype.registerTask=function(e,t){e=this.mapper.extractFromTask(e,"id");this.tasks.set(e,t),this.notifyChanges()},r.prototype.unregisterTask=function(e){e=this.mapper.extractFromTask(e,"id");this.tasks.delete(e),this.notifyChanges()},r.prototype.notifyChanges=function(){this.notifier.next(this.dependencyDomArgs)},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[n.MappingService])],r));function r(e){this.mapper=e,this.notifier=new a.Subject,this.tasks=new Map}t.DependencyDomService=n},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(6),s=n(14),c=n(13),s=(Object.defineProperty(d.prototype,"dependencies",{get:function(){return this.predecessors.concat(this.successors)},set:function(e){var t=this,n=this.mapper.extractFromTask(this.dataItem,"id");this.predecessors=e.filter(function(e){return t.mapper.extractFromDependency(e,"toId")===n}),this.successors=e.filter(function(e){return t.mapper.extractFromDependency(e,"fromId")===n})},enumerable:!0,configurable:!0}),d.prototype.createEditDialog=function(e,t,n){this.dataItem=e,this.taskFormGroup=t,this.dependencies=n,this.showEditingDialog.next(!0)},d.prototype.closeEditDialog=function(){this.showEditingDialog.next(!1),this.dataItem=void 0,this.taskFormGroup=void 0,this.dependencies=[],this.updatedItems=[],this.deletedItems=[]},d.prototype.triggerEditEvent=function(e){this.editEvent.next({taskFormGroup:this.taskFormGroup,dataItem:this.dataItem,dependencies:{createdItems:this.getCreatedDependencies(),updatedItems:this.updatedItems,deletedItems:this.deletedItems},editResultType:e})},d.prototype.updateDependencies=function(e){var t;this.isNew(e)||(-1!==(t=this.itemIndex(e,this.updatedItems))?this.updatedItems.splice(t,1,e):this.updatedItems.push(e))},d.prototype.getCreatedDependencies=function(){var t=this;return this.dependencies.filter(function(e){return null===t.mapper.extractFromDependency(e,"id")})},d.prototype.deleteDependency=function(e){var t=this.itemIndex(e,this.updatedItems);-1!==t&&this.updatedItems.splice(t,1),this.isNew(e)||this.deletedItems.push(e)},d.prototype.loadTasks=function(e,t){var n=this;return void 0===t&&(t=!0),a.forkJoin(e.map(function(e){return n.getElementById(e)})).pipe(r.map(function(e){return e.reduce(function(e,t){return e.concat(c.normalizeGanttData(t))},[])}),r.expand(function(e){return e.some(function(e){return n.hasChildren(e)})?n.loadTasks(e,!1):a.EMPTY}),r.reduce(function(e,t){return e.concat(t)},t?e.slice():[]))},d.prototype.getElementById=function(e){e=this.fetchChildren(e);return a.isObservable(e)?e:a.of(e)},d.prototype.isNew=function(e){return!c.isPresent(this.mapper.extractFromDependency(e,"id"))},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[s.MappingService])],d));function d(e){var n=this;this.mapper=e,this.showEditingDialog=new a.Subject,this.taskDelete=new a.Subject,this.editEvent=new a.Subject,this.addEvent=new a.Subject,this.predecessors=[],this.successors=[],this.updatedItems=[],this.deletedItems=[],this.itemIndex=function(t,e){return e.findIndex(function(e){return n.mapper.extractFromTask(e,"id")===n.mapper.extractFromTask(t,"id")})}}t.EditService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.DependencyType||(t.DependencyType={}))[t.FF=0]="FF",t[t.FS=1]="FS",t[t.SF=2]="SF",t[t.SS=3]="SS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,u=n(0),h=n(1),o=n(17),b=(n(3),n(5)),m=n(12),g=n(97),f=n(2),a=n(57),r=n(37),v=n(92),l=n(51),s=n(4),c=n(24),d=n(50),p=n(48),y=n(49),_=n(38),O=n(16),j=n(14),k=n(15),C=n(18),S=n(32),w=n(31),I=n(23),x=n(13),E=n(87),D=n(30),T=n(29),P=n(28),F=n(27),R=n(22),V=n(86),B={enabled:!0,step:3,interval:1,threshold:10},I=(i=A,Object.defineProperty(A.prototype,"toolbarTemplate",{get:function(){return this._customToolbarTemplate||(this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0)},set:function(e){this._customToolbarTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"hostRoleDescriptionAttr",{get:function(){return this.roleDescription},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"hostRoleAttr",{get:function(){return this.role},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.updateTreeListGroupClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"taskModelFields",{set:function(e){this.mapper.taskFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"dependencyModelFields",{set:function(e){this.mapper.dependencyFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"activeView",{get:function(){var t=this;return this.views.find(function(e){return e.type===t._activeView})?this._activeView:this.views.first.type},set:function(e){this._activeView=e},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"data",{get:function(){return this._data},set:function(e){this._data=x.normalizeGanttData(e),this.loadTimelineData()},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"toolbarSettings",{get:function(){return this._toolbarSettings},set:function(e){this._toolbarSettings={position:e.position||"top",addTaskTool:e.addTaskTool||"none",viewSelectorTool:e.viewSelectorTool||"top"}},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"fetchChildren",{get:function(){return this._fetchChildren},set:function(e){this._fetchChildren=e,this.editService.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"hasChildren",{get:function(){return this._hasChildren},set:function(e){this._hasChildren=e,this.editService.hasChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"timelinePaneOptions",{get:function(){return u.__assign({},this._timelinePaneOptions,{size:this.treeListPaneOptions.collapsed?"100%":this._timelinePaneOptions.size})},set:function(e){this._timelinePaneOptions.collapsed&&!e.collapsed&&this.dependencyDomService.notifyChanges(),this._timelinePaneOptions=u.__assign({},E.DEFAULT_TIMELINE_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"treeListPaneOptions",{get:function(){return this._treeListPaneOptions},set:function(e){this._treeListPaneOptions=u.__assign({},E.DEFAULT_TREELIST_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"taskClass",{get:function(){return this._taskClass},set:function(e){if(h.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(A.prototype,"rowClass",{get:function(){return this._rowClass},set:function(e){if(h.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(A.prototype,"taskIdField",{get:function(){return this.mapper.taskFields.id},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"dragScrollSettings",{get:function(){return this._dragScrollSettings},set:function(e){this._dragScrollSettings=u.__assign({},B,e)},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"renderedTreeListItems",{get:function(){return x.isPresent(this.treeList)?this.treeList.view.data.map(function(e){return e.data}):[]},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"viewItems",{get:function(){return x.isPresent(this.treeList)?this.treeList.view.data:[]},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"filterMenu",{get:function(){return!!this.filterable&&"menu"},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"viewService",{get:function(){return this.views&&this.views.length?this.timelineViewService.service(this.activeView):null},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"isTaskSelected",{get:function(){return(this.selectable?this:v).isSelected},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"idGetter",{get:function(){if(x.isPresent(this.treeList))return this.treeList.idGetter},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"viewTypes",{get:function(){return this.views.map(function(e){return e.type})},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"isInEditMode",{get:function(){return this.showEditingDialog||this.showConfirmationDialog||this.treeList.isEditing()},enumerable:!0,configurable:!0}),A.prototype.ngOnChanges=function(e){f.anyChanged(["data","activeView","workWeekStart","workWeekEnd","workDayStart","workDayEnd"],e)&&this.loadTimelineData()},A.prototype.ngAfterViewInit=function(){this.updateTreeListMargin(),this.navigable&&this.navigationService.initialize({gantt:this,host:this.hostElement.nativeElement,treeListElement:this.treeList.wrapper.nativeElement,timelineElement:this.timeline.timelineContent.nativeElement});var e=this.treeList.wrapper.nativeElement.querySelector("kendo-treelist-list > div");this.scrollSyncService.registerElement(e,"treelist")},A.prototype.ngAfterContentInit=function(){if(h.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-gantt>. Please, declare at least one view.");this.loadTimelineData(),this.updateTreeListGroupClass()},A.prototype.ngOnDestroy=function(){this.optionChangesSubscriptions.unsubscribe(),this.editServiceSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe()},A.prototype.focus=function(){this.navigable&&this.navigationService.focusLastActiveItem()},A.prototype.focusCell=function(e,t){this.navigable&&this.navigationService.focusCell(e,t)},A.prototype.focusTask=function(e){this.navigable&&this.navigationService.focusTask(e)},A.prototype.autoFitColumn=function(e){x.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},A.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),x.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},A.prototype.reload=function(e,t){x.isPresent(this.treeList)&&this.treeList.reload(e,t)},A.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),x.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},A.prototype.updateView=function(){x.isPresent(this.treeList)&&this.treeList.updateView(),this.loadTimelineData(),this.dependencyDomService.notifyChanges()},A.prototype.editTask=function(e,t){var n,i,o=this;this.showEditingDialog||(n=this.mapper.extractFromTask(e,"id"),i=this.dependencies.filter(function(e){return o.mapper.extractFromDependency(e,"toId")===n||o.mapper.extractFromDependency(e,"fromId")===n}),this.editService.createEditDialog(e,t,i))},A.prototype.closeTaskDialog=function(){this.showEditingDialog&&this.editService.closeEditDialog()},A.prototype.openConfirmationDialog=function(){this.showConfirmationDialog=!0},A.prototype.handleConfirmationDialogClose=function(){this.showConfirmationDialog=!1,this.navigable&&this.focus()},A.prototype.editCell=function(e,t,n){this.treeList.editCell(e,t,n)},A.prototype.closeCell=function(){this.treeList.closeCell()},A.prototype.handleCellClose=function(e){this.cellClose.emit(Object.assign(e,{item:this.editItem,sender:this})),this.dependencyDomService.notifyChanges()},A.prototype.onTreeListCollapsedChange=function(e){this.treeListPaneCollapsedChange.emit(e),e||this.scrollSyncService.syncScrollTop("timeline","treelist")},A.prototype.onTimelineCollapsedChange=function(e){this.timelinePaneCollapsedChange.emit(e),e||(this.scrollSyncService.syncScrollTop("treelist","timeline"),this.dependencyDomService.notifyChanges())},A.prototype.loadTimelineData=function(){var e,t;x.isPresent(this.viewService)&&(e=this.getActiveViewOptions(),this.viewService.options=u.__assign({workWeekStart:this.workWeekStart,workWeekEnd:this.workWeekEnd,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd},e),this.tableWidth=this.viewService.getTableWidth(this.data),e=(t=this.viewService.getSlots(this.data))[0],t=t[1],this.timelineSlots=t,this.timelineGroupSlots=e)},A.prototype.showToolbar=function(e){return"none"!==this.toolbarSettings.position&&-1<[e,"both"].indexOf(this.toolbarSettings.position)},A.prototype.handleColumnVisibilityChange=function(e){this.columnVisibilityChange.emit(e),this.updateTreeListGroupClass()},A.prototype.onTimelinePaneSizeChange=function(e){this._timelinePaneOptions.size=e,this.timelinePaneSizeChange.emit(e)},A.prototype.handleTimelineRightClick=function(e){var t,n,i=this,o=e.target,a=this.hostElement.nativeElement;x.isTask(o,a)&&!x.isClearButton(o,a)&&f.hasObservers(this.taskClick)&&(t=x.getClosestTaskIndex(o,a),n=this.renderedTreeListItems[t],this.zone.run(function(){return i.notifyTaskClick(e,n,t)}))},A.prototype.handleTimelineClick=function(e){var t,n,i,o=this,a=e.target,r=this.hostElement.nativeElement;x.isTask(a,r)&&!x.isClearButton(a,r)&&(t=x.getClosestTaskIndex(a,r),n=this.renderedTreeListItems[t],i=this.getSelectionAction(e,n),(f.hasObservers(this.selectionChange)&&!this.isSameSelection(i,n)||f.hasObservers(this.taskClick))&&this.zone.run(function(){o.notifySelectionChange(n,i),o.notifyTaskClick(e,n,t)}))},A.prototype.handleTreeListDoubleClick=function(e){var t=this;x.isPresent(this.lastTreeListCellClick)&&e.target===this.lastTreeListCellClick.originalEvent.target&&(this.editItem=V.getEditItem(this.lastTreeListCellClick.dataItem,this.treeList.view.data,this.mapper),f.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})}))},A.prototype.handleTreeListSelectionChange=function(e){var t;x.isPresent(this.lastTreeListCellClick)&&"contextmenu"===this.lastTreeListCellClick.type||(t=e.items.map(function(e){return e.dataItem})[0],e=e.action,this.notifySelectionChange(t,e))},A.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})},A.prototype.handleDeleteConfirmation=function(){this.editService.triggerEditEvent("remove")},A.prototype.handleTimelineMouseDown=function(e){var t=e.target,n=this.hostElement.nativeElement;x.isTask(t,n)&&!x.isClearButton(t,n)&&e.preventDefault()},A.prototype.handleTimelineDblClick=function(e){var t,n,i=this,o=e.target,a=this.hostElement.nativeElement;x.isTask(o,a)&&!x.isClearButton(o,a)&&f.hasObservers(this.taskDblClick)&&(t=x.getClosestTaskIndex(o,a),n=this.renderedTreeListItems[t],this.zone.run(function(){return i.taskDblClick.emit({dataItem:n,originalEvent:e,sender:i,index:t,type:"dblclick"})}))},A.prototype.getText=function(e){return this.localizationService.get(e)},A.prototype.changeActiveView=function(e){e!==this.activeView&&(this.activeView=e,this.loadTimelineData(),this.scrollSyncService.resetTimelineScrollLeft(),this.activeViewChange.emit(e))},A.prototype.notifyTaskClick=function(e,t,n){var i=e instanceof KeyboardEvent?"click":e.type;this.taskClick.emit({originalEvent:e,dataItem:t,index:n,type:i,sender:this})},A.prototype.notifySelectionChange=function(e,t){this.isSameSelection(t,e)||(this.selectionChange.emit({action:t,items:[e],sender:this}),this.treeList.updateView())},A.prototype.notifyTaskDelete=function(e){this.editService.dataItem=e,this.taskDelete.emit({item:V.getEditItem(e,this.treeList.view.data,this.mapper),sender:this})},A.prototype.isSameSelection=function(e,t){return"select"===e&&this.isSelected(t)},A.prototype.getSelectionAction=function(e,t){var n=e.ctrlKey,e=e.metaKey;return(n||e)&&this.isSelected(t)?"remove":"select"},A.prototype.updateTreeListGroupClass=function(e){void 0===e&&(e=this.columns),x.isPresent(this.treeList)&&(x.isPresent(e)&&0<e.length&&e.some(function(e){return x.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"))},A.prototype.updateTreeListMargin=function(){var e=this.treeList.wrapper.nativeElement.querySelector(".k-treelist .k-grid-content");this.renderer.setStyle(e,"margin-right",-Math.abs(x.scrollbarWidth()-1)+"px")},A.prototype.getActiveViewOptions=function(){var t=this;if(this.views)return this.views.find(function(e){return e.type===t.activeView})},A.prototype.getFirstSelectedItem=function(){var e=this.isSelected||v.isSelected;return(this.renderedTreeListItems||[]).find(e)},A.prototype.defaultValidateNewDependencyCallback=function(e){var n=this,i=this.mapper.extractFromDependency(e,"fromId"),o=this.mapper.extractFromDependency(e,"toId"),t=this.treeList.view.data.find(function(e){return n.mapper.extractFromTask(e.data,"id")===i}),a=this.treeList.view.data.find(function(e){return n.mapper.extractFromTask(e.data,"id")===o});if(!(x.isPresent(t)&&x.isPresent(t.data)&&x.isPresent(a)&&x.isPresent(a.data)&&t.data!==a.data))return!1;if(this.dependencies.some(function(e){var t=n.mapper.extractFromDependency(e,"fromId"),e=n.mapper.extractFromDependency(e,"toId");return i===t&&o===e||o===t&&i===e})||x.areParentChild(t,a))return!1;var r=this.mapper.extractFromTask(t.data,"start"),s=this.mapper.extractFromTask(t.data,"end"),c=this.mapper.extractFromTask(a.data,"start"),d=this.mapper.extractFromTask(a.data,"end");switch(this.mapper.extractFromDependency(e,"type")){case l.DependencyType.FF:return s<=d;case l.DependencyType.FS:return s<=c;case l.DependencyType.SF:return r<=d;case l.DependencyType.SS:return r<=c;default:return!1}},u.__decorate([h.ViewChild(o.TreeListComponent,{static:!0}),u.__metadata("design:type",o.TreeListComponent)],A.prototype,"treeList",void 0),u.__decorate([h.ViewChild(a.GanttTimelineComponent,{static:!1}),u.__metadata("design:type",a.GanttTimelineComponent)],A.prototype,"timeline",void 0),u.__decorate([h.ContentChild(P.GanttTaskContentTemplateDirective,{static:!0}),u.__metadata("design:type",P.GanttTaskContentTemplateDirective)],A.prototype,"taskContentTemplate",void 0),u.__decorate([h.ContentChild(D.GanttTaskTemplateDirective,{static:!0}),u.__metadata("design:type",D.GanttTaskTemplateDirective)],A.prototype,"taskTemplate",void 0),u.__decorate([h.ContentChild(T.GanttSummaryTaskTemplateDirective,{static:!0}),u.__metadata("design:type",T.GanttSummaryTaskTemplateDirective)],A.prototype,"summaryTaskTemplate",void 0),u.__decorate([h.ContentChildren(F.ToolbarTemplateDirective),u.__metadata("design:type",h.QueryList)],A.prototype,"toolbarTemplateChildren",void 0),u.__decorate([h.Input("aria-roledescription"),u.__metadata("design:type",String)],A.prototype,"roleDescription",void 0),u.__decorate([h.HostBinding("attr.aria-roledescription"),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[])],A.prototype,"hostRoleDescriptionAttr",null),u.__decorate([h.Input("role"),u.__metadata("design:type",String)],A.prototype,"role",void 0),u.__decorate([h.HostBinding("attr.role"),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[])],A.prototype,"hostRoleAttr",null),u.__decorate([h.HostBinding("class.k-gantt"),u.__metadata("design:type",Boolean)],A.prototype,"hostClasses",void 0),u.__decorate([h.HostBinding("attr.dir"),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[])],A.prototype,"dir",null),u.__decorate([h.ContentChildren(r.GanttColumnBase),u.__metadata("design:type",h.QueryList),u.__metadata("design:paramtypes",[h.QueryList])],A.prototype,"columns",null),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],A.prototype,"taskModelFields",null),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],A.prototype,"dependencyModelFields",null),u.__decorate([h.ContentChildren(R.ViewBase),u.__metadata("design:type",h.QueryList)],A.prototype,"views",void 0),u.__decorate([h.Input(),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[String])],A.prototype,"activeView",null),u.__decorate([h.Input(),u.__metadata("design:type",Array),u.__metadata("design:paramtypes",[Array])],A.prototype,"data",null),u.__decorate([h.Input(),u.__metadata("design:type",Function)],A.prototype,"isSelected",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Function)],A.prototype,"validateNewDependency",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"selectionChange",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],A.prototype,"selectable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],A.prototype,"toolbarSettings",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],A.prototype,"fetchChildren",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],A.prototype,"hasChildren",null),u.__decorate([h.Input(),u.__metadata("design:type",Array)],A.prototype,"dependencies",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object)],A.prototype,"sortable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Array)],A.prototype,"sort",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],A.prototype,"filterable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object)],A.prototype,"filter",void 0),u.__decorate([h.Input(),u.__metadata("design:type",String)],A.prototype,"workDayStart",void 0),u.__decorate([h.Input(),u.__metadata("design:type",String)],A.prototype,"workDayEnd",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Number)],A.prototype,"workWeekStart",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Number)],A.prototype,"workWeekEnd",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],A.prototype,"navigable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],A.prototype,"timelinePaneOptions",null),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],A.prototype,"treeListPaneOptions",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],A.prototype,"taskClass",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],A.prototype,"rowClass",null),u.__decorate([h.Input(),u.__metadata("design:type",Function)],A.prototype,"isExpanded",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],A.prototype,"columnsAutoSize",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object)],A.prototype,"columnMenu",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],A.prototype,"columnsReorderable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],A.prototype,"columnsResizable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],A.prototype,"dragScrollSettings",null),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"rowExpand",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"taskDblClick",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"cellDblClick",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"cellClose",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"taskDelete",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"rowCollapse",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"remove",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"cancel",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"save",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"taskAdd",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"dependencyAdd",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"sortChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"filterChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"dataStateChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"treeListPaneCollapsedChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"timelinePaneCollapsedChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"timelinePaneSizeChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"activeViewChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"columnResize",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"columnReorder",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"columnVisibilityChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"columnLockedChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"cellClick",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],A.prototype,"taskClick",void 0),i=u.__decorate([h.Component({selector:"kendo-gantt",exportAs:"kendoGantt",providers:[w.GanttLocalizationService,s.LocalizationService,{provide:o.DataBoundTreeComponent,useExisting:h.forwardRef(function(){return i})},{provide:o.ExpandableTreeComponent,useExisting:h.forwardRef(function(){return i})},c.TimelineViewService,d.TimelineDayViewService,p.TimelineWeekViewService,y.TimelineMonthViewService,_.ScrollSyncService,O.DependencyDomService,j.MappingService,k.OptionChangesService,C.EditService,S.TimelineScrollService,I.NavigationService],template:'\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle="kendo.gantt.taskEditingGeneralTabTitle|The title of the \'General\' tab of the editing dialog TabStrip"\n taskEditingGeneralTabTitle="General"\n\n i18n-taskEditingPredecessorsTabTitle="kendo.gantt.taskEditingPredecessorsTabTitle|The title of the \'Predecessors\' dependencies tab of the editing dialog TabStrip"\n taskEditingPredecessorsTabTitle="Predecessors"\n\n i18n-taskEditingSuccessorsTabTitle="kendo.gantt.taskEditingSuccessorsTabTitle|The title of the \'Successors\' dependencies tab of the editing dialog TabStrip"\n taskEditingSuccessorsTabTitle="Successors"\n\n i18n-taskEditingDependenciesAddButtonText="kendo.gantt.taskEditingDependenciesAddButtonText|The text of the \'Add\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesAddButtonText="Add"\n\n i18n-taskEditingDependenciesRemoveButtonText="kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the \'Remove\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesRemoveButtonText="Remove"\n\n i18n-taskEditingDependenciesGridNameColumnTitle="kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the \'Task Title\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridNameColumnTitle="Task Title"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle="kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the \'Type\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridTypeColumnTitle="Type"\n\n i18n-taskDeleteLabel="kendo.gantt.taskDeleteLabel|The label of the task delete icon"\n taskDeleteLabel="Delete"\n\n i18n-taskEditingDialogTitle="kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog"\n taskEditingDialogTitle="Editing Task"\n\n i18n-taskEditingDialogCloseTitle="kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button"\n taskEditingDialogCloseTitle="Close"\n\n i18n-confirmationDialogCloseTitle="kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button"\n confirmationDialogCloseTitle="Close"\n\n i18n-confirmationDialogTitle="kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog"\n confirmationDialogTitle="Delete Task"\n\n i18n-confirmationDialogContent="kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog"\n confirmationDialogContent="Are you sure you want to delete this task?"\n\n i18n-deleteButtonText="kendo.gantt.deleteButtonText|The text of the task editing dialog \'Delete\' button"\n deleteButtonText="Delete"\n\n i18n-cancelButtonText="kendo.gantt.cancelButtonText|The text of the task editing dialog \'Cancel\' button"\n cancelButtonText="Cancel"\n\n i18n-saveButtonText="kendo.gantt.saveButtonText|The text of the task editing dialog \'Save\' button"\n saveButtonText="Save"\n\n i18n-titleFieldInputLabel="kendo.gantt.titleFieldInputLabel|The label of the \'title\' field input in editing mode"\n titleFieldInputLabel="Title"\n\n i18n-startFieldInputLabel="kendo.gantt.startFieldInputLabel|The label of the \'start\' field input in editing mode"\n startFieldInputLabel="Start"\n\n i18n-endFieldInputLabel="kendo.gantt.endFieldInputLabel|The label of the \'end\' field input in editing mode"\n endFieldInputLabel="End"\n\n i18n-completionRatioFieldInputLabel="kendo.gantt.completionRatioFieldInputLabel|The label of the \'completionRatio\' field input in editing mode"\n completionRatioFieldInputLabel="Progress"\n\n i18n-dayViewText="kendo.gantt.dayViewText|The text of the day view in the ViewSelector component"\n dayViewText="Day"\n\n i18n-weekViewText="kendo.gantt.weekViewText|The text of the week view in the ViewSelector component"\n weekViewText="Week"\n\n i18n-monthViewText="kendo.gantt.monthViewText|The text of the month view in the ViewSelector component"\n monthViewText="Month"\n\n i18n-yearViewText-disabled="kendo.gantt.yearViewText|The text of the year view in the ViewSelector component"\n yearViewText="Year"\n\n i18n-addTaskText="kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component"\n addTaskText="Add Task"\n\n i18n-addChildText="kendo.gantt.addChildText|The text of the \'Add Child\' option in the AddTask component"\n addChildText="Add Child"\n\n i18n-addAboveText="kendo.gantt.addAboveText|The text of the \'Add Above\' option in the AddTask component"\n addAboveText="Add Above"\n\n i18n-addBelowText="kendo.gantt.addBelowText|The text of the \'Add Below\' option in the AddTask component"\n addBelowText="Add Below"\n\n i18n-noRecords="kendo.gantt.noRecords|The label visible in the TreeList when there are no records"\n noRecords="No records available."\n\n i18n-filter="kendo.gantt.filter|The label of the filter cell or icon"\n filter="Filter"\n\n i18n-filterEqOperator="kendo.gantt.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.gantt.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.gantt.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.gantt.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterGteOperator="kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator"\n filterGteOperator="Is greater than or equal to"\n\n i18n-filterGtOperator="kendo.gantt.filterGtOperator|The text of the greater than filter operator"\n filterGtOperator="Is greater than"\n\n i18n-filterLteOperator="kendo.gantt.filterLteOperator|The text of the less than or equal filter operator"\n filterLteOperator="Is less than or equal to"\n\n i18n-filterLtOperator="kendo.gantt.filterLtOperator|The text of the less than filter operator"\n filterLtOperator="Is less than"\n\n i18n-filterIsTrue="kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option"\n filterIsTrue="Is True"\n\n i18n-filterIsFalse="kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option"\n filterIsFalse="Is False"\n\n i18n-filterBooleanAll="kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option"\n filterBooleanAll="(All)"\n\n i18n-filterAfterOrEqualOperator="kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator"\n filterAfterOrEqualOperator="Is after or equal to"\n\n i18n-filterAfterOperator="kendo.gantt.filterAfterOperator|The text of the after date filter operator"\n filterAfterOperator="Is after"\n\n i18n-filterBeforeOperator="kendo.gantt.filterBeforeOperator|The text of the before date filter operator"\n filterBeforeOperator="Is before"\n\n i18n-filterBeforeOrEqualOperator="kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator"\n filterBeforeOrEqualOperator="Is before or equal to"\n\n i18n-filterFilterButton="kendo.gantt.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.gantt.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-filterAndLogic="kendo.gantt.filterAndLogic|The text of the And filter logic"\n filterAndLogic="And"\n\n i18n-filterOrLogic="kendo.gantt.filterOrLogic|The text of the Or filter logic"\n filterOrLogic="Or"\n\n i18n-loading="kendo.gantt.loading|The loading text"\n loading="Loading"\n\n i18n-columnMenu="kendo.gantt.columnMenu|The title of the column menu icon"\n columnMenu="Column Menu"\n\n i18n-columns="kendo.gantt.columns|The text shown in the column menu for the columns item"\n columns="Columns"\n\n i18n-lock-disabled="kendo.gantt.lock|The text shown in the column menu for the lock item"\n lock-disabled="Lock"\n\n i18n-unlock-disabled="kendo.gantt.unlock|The text shown in the column menu for the unlock item"\n unlock-disabled="Unlock"\n\n i18n-sortable="kendo.gantt.sortable|The label of the sort icon"\n sortable="Sortable"\n\n i18n-sortAscending="kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item"\n sortAscending="Sort Ascending"\n\n i18n-sortDescending="kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item"\n sortDescending="Sort Descending"\n\n i18n-sortedAscending="kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending"\n sortedAscending="Sorted Ascending"\n\n i18n-sortedDescending="kendo.gantt.sortedDescending|The status announcement when a column is sorted descending"\n sortedDescending="Sorted Descending"\n\n i18n-sortedDefault="kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted"\n sortedDefault="Not Sorted"\n\n i18n-columnsApply="kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button"\n columnsApply="Apply"\n\n i18n-columnsReset="kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button"\n columnsReset="Reset"></ng-container>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'top\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'top\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'top\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-header k-toolbar k-gantt-toolbar"\n position="top"></kendo-gantt-toolbar>\n <div class="k-gantt-content">\n <kendo-splitter [style.border]="0">\n <kendo-splitter-pane\n class="k-gantt-treelist k-gantt-treelist-scrollable"\n [collapsible]="treeListPaneOptions?.collapsible"\n [collapsed]="treeListPaneOptions?.collapsed"\n (collapsedChange)="onTreeListCollapsedChange($event)"\n [scrollable]="false">\n <kendo-treelist\n [idField]="taskIdField"\n [columns]="columns"\n [data]="data"\n [hasChildren]="hasChildren"\n [fetchChildren]="fetchChildren"\n [navigable]="navigable"\n [isExpanded]="isExpanded"\n [autoSize]="columnsAutoSize"\n [columnMenu]="columnMenu"\n [reorderable]="columnsReorderable"\n [resizable]="columnsResizable"\n [rowClass]="rowClass"\n [isSelected]="isSelected"\n [selectable]="selectable"\n [sortable]="sortable"\n [sort]="sort"\n [filterable]="filterMenu"\n [filter]="filter"\n (filterChange)="filterChange.emit($event)"\n (sortChange)="sortChange.emit($event)"\n (dataStateChange)="dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })"\n (expandStateChange)="expandStateChange.emit($event)"\n (expand)="rowExpand.emit({ dataItem: $event.dataItem })"\n (collapse)="rowCollapse.emit({ dataItem: $event.dataItem })"\n (columnReorder)="columnReorder.emit($event)"\n (columnResize)="columnResize.emit($event)"\n (columnVisibilityChange)="handleColumnVisibilityChange($event)"\n (columnLockedChange)="columnLockedChange.emit($event)"\n (selectionChange)="handleTreeListSelectionChange($event)"\n (cellClick)="handleTreeListCellClick($event)"\n (cellClose)="handleCellClose($event)"\n [kendoEventsOutsideAngular]="{\n dblclick: handleTreeListDoubleClick\n }"\n [scope]="this"\n >\n <kendo-treelist-messages\n [noRecords]="getText(\'noRecords\')"\n [filter]="getText(\'filter\')"\n [filterEqOperator]="getText(\'filterEqOperator\')"\n [filterNotEqOperator]="getText(\'filterNotEqOperator\')"\n [filterIsNullOperator]="getText(\'filterIsNullOperator\')"\n [filterIsNotNullOperator]="getText(\'filterIsNotNullOperator\')"\n [filterIsEmptyOperator]="getText(\'filterIsEmptyOperator\')"\n [filterIsNotEmptyOperator]="getText(\'filterIsNotEmptyOperator\')"\n [filterStartsWithOperator]="getText(\'filterStartsWithOperator\')"\n [filterContainsOperator]="getText(\'filterContainsOperator\')"\n [filterNotContainsOperator]="getText(\'filterNotContainsOperator\')"\n [filterEndsWithOperator]="getText(\'filterEndsWithOperator\')"\n [filterGteOperator]="getText(\'filterGteOperator\')"\n [filterGtOperator]="getText(\'filterGtOperator\')"\n [filterLteOperator]="getText(\'filterLteOperator\')"\n [filterLtOperator]="getText(\'filterLtOperator\')"\n [filterIsTrue]="getText(\'filterIsTrue\')"\n [filterIsFalse]="getText(\'filterIsFalse\')"\n [filterBooleanAll]="getText(\'filterBooleanAll\')"\n [filterAfterOrEqualOperator]="getText(\'filterAfterOrEqualOperator\')"\n [filterAfterOperator]="getText(\'filterAfterOperator\')"\n [filterBeforeOperator]="getText(\'filterBeforeOperator\')"\n [filterBeforeOrEqualOperator]="getText(\'filterBeforeOrEqualOperator\')"\n [filterFilterButton]="getText(\'filterFilterButton\')"\n [filterClearButton]="getText(\'filterClearButton\')"\n [filterAndLogic]="getText(\'filterAndLogic\')"\n [filterOrLogic]="getText(\'filterOrLogic\')"\n [loading]="getText(\'loading\')"\n [columnMenu]="getText(\'columnMenu\')"\n [columns]="getText(\'columns\')"\n [sortable]="getText(\'sortable\')"\n [sortAscending]="getText(\'sortAscending\')"\n [sortDescending]="getText(\'sortDescending\')"\n [sortedAscending]="getText(\'sortedAscending\')"\n [sortedDescending]="getText(\'sortedDescending\')"\n [sortedDefault]="getText(\'sortedDefault\')"\n [columnsApply]="getText(\'columnsApply\')"\n [columnsReset]="getText(\'columnsReset\')"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]="timelinePaneOptions?.collapsible"\n [resizable]="timelinePaneOptions?.resizable"\n [collapsed]="timelinePaneOptions?.collapsed"\n [min]="timelinePaneOptions?.min"\n [max]="timelinePaneOptions?.max"\n [size]="timelinePaneOptions?.size"\n (collapsedChange)="onTimelineCollapsedChange($event)"\n (sizeChange)="onTimelinePaneSizeChange($event)"\n [scrollable]="false">\n <kendo-gantt-timeline\n *ngIf="views && views.length"\n [renderDependencyDragClues]="renderDependencyDragClues"\n [dragScrollSettings]="dragScrollSettings"\n [rows]="viewItems"\n [slots]="timelineSlots"\n [groupSlots]="timelineGroupSlots"\n [tableWidth]="tableWidth"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate?.templateRef"\n [taskTemplate]="taskTemplate?.templateRef"\n [summaryTaskTemplate]="summaryTaskTemplate?.templateRef"\n [taskClass]="taskClass"\n [dependencies]="dependencies"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [kendoEventsOutsideAngular]="{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }"\n [scope]="this"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'bottom\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'bottom\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'bottom\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-footer k-toolbar k-gantt-toolbar"\n position="bottom"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf="showEditingDialog"\n [data]="data">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf="showConfirmationDialog"\n [width]="575"\n [height]="170"\n [title]="getText(\'confirmationDialogTitle\')"\n (close)="handleConfirmationDialogClose()">\n <span>{{ getText(\'confirmationDialogContent\') }}</span>\n <kendo-dialog-actions layout="normal">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleDeleteConfirmation()">{{ getText(\'deleteButtonText\') }}</button>\n <button kendoButton (click)="handleConfirmationDialogClose()">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),u.__metadata("design:paramtypes",[c.TimelineViewService,_.ScrollSyncService,h.Renderer2,j.MappingService,k.OptionChangesService,O.DependencyDomService,C.EditService,s.LocalizationService,h.ElementRef,h.NgZone,I.NavigationService])],A));function A(e,t,n,i,o,a,r,s,c,d,l){var p=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=i,this.optionChangesService=o,this.dependencyDomService=a,this.editService=r,this.localizationService=s,this.hostElement=c,this.zone=d,this.navigationService=l,this.roleDescription="Gantt Chart",this.role="application",this.hostClasses=!0,this.isSelected=v.isSelected,this.validateNewDependency=this.defaultValidateNewDependencyCallback.bind(this),this.selectionChange=new h.EventEmitter,this.selectable=!1,this.dependencies=[],this.sortable=!1,this.sort=[],this.filterable=!1,this.workDayStart="08:00",this.workDayEnd="17:00",this.workWeekStart=1,this.workWeekEnd=5,this.navigable=!1,this.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new h.EventEmitter,this.taskDblClick=new h.EventEmitter,this.cellDblClick=new h.EventEmitter,this.cellClose=new h.EventEmitter,this.taskDelete=new h.EventEmitter,this.rowCollapse=new h.EventEmitter,this.remove=new h.EventEmitter,this.cancel=new h.EventEmitter,this.save=new h.EventEmitter,this.taskAdd=new h.EventEmitter,this.dependencyAdd=new h.EventEmitter,this.sortChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.dataStateChange=new h.EventEmitter,this.treeListPaneCollapsedChange=new h.EventEmitter,this.timelinePaneCollapsedChange=new h.EventEmitter,this.timelinePaneSizeChange=new h.EventEmitter,this.activeViewChange=new h.EventEmitter,this.columnResize=new h.EventEmitter,this.columnReorder=new h.EventEmitter,this.columnVisibilityChange=new h.EventEmitter,this.columnLockedChange=new h.EventEmitter,this.cellClick=new h.EventEmitter,this.taskClick=new h.EventEmitter,this.renderDependencyDragClues=!1,this.expandStateChange=new h.EventEmitter,this.showEditingDialog=!1,this.showConfirmationDialog=!1,this._columns=new h.QueryList,this._data=[],this._dragScrollSettings=u.__assign({},B),this._timelinePaneOptions=u.__assign({},E.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=u.__assign({},E.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=v.rowClassCallback,this._taskClass=v.taskClassCallback,this._activeView="week",this._toolbarSettings={position:"top",addTaskTool:"none",viewSelectorTool:"top"},this._fetchChildren=v.fetchChildren,this._hasChildren=v.hasChildren,this.rtl=!1,this.optionChangesSubscriptions=new b.Subscription,this.editServiceSubscription=new b.Subscription,m.validatePackage(g.packageMetadata),this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe(function(){p.loadTimelineData()})),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe(function(){p.treeList.columns.notifyOnChanges()})),this.editService.getSelectedItem=this.getFirstSelectedItem.bind(this),this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe(function(e){return p.showEditingDialog=e})),this.editServiceSubscription.add(this.editService.taskDelete.subscribe(function(e){f.hasObservers(p.taskDelete)&&p.zone.run(function(){return p.notifyTaskDelete(e)})})),this.editServiceSubscription.add(this.editService.editEvent.subscribe(function(e){p[e.editResultType].emit({taskFormGroup:e.taskFormGroup,item:V.getEditItem(e.dataItem,p.treeList.view.data,p.mapper),dependencies:e.dependencies,sender:p}),p.showConfirmationDialog=p.showEditingDialog=!1,p.editService.dataItem=p.editService.taskFormGroup=null,p.updateView(),p.navigable&&p.focus()})),this.editServiceSubscription.add(this.editService.addEvent.subscribe(function(e){var t=p.getFirstSelectedItem();p.taskAdd.emit({actionType:e.actionType,selectedItem:t?V.getEditItem(t,p.treeList.view.data,p.mapper):null}),p.updateView()})),this.localizationSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;p.rtl=e,p.direction=p.rtl?"rtl":"ltr"})}t.GanttComponent=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(1);t.TOUCH_ENABLED=new n.InjectionToken("gantt-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(2),i=(r.prototype.ngOnChanges=function(e){a.anyChanged(["slotWidth"],e)&&(this.optionChangesService.notifyColumnChanges(),this.dependencyDomService.notifyChanges())},i.__decorate([o.Input(),i.__metadata("design:type",Number)],r.prototype,"slotWidth",void 0),r);function r(e,t){this.optionChangesService=e,this.dependencyDomService=t,this.slotWidth=100}t.ViewBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var m=n(0),i=n(1),g=n(2),o=n(5),a=n(38),f=n(13),v=n(88),a=(Object.defineProperty(r.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeTask",{get:function(){return{activeIndex:this.activeTimelineIndex,isFocused:this.isTimelineFocused}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeTreeListCell",{get:function(){var e=this.treeListHeaderRowsCount+this.gantt.treeList.view.data.length-1,t=f.fitToRange(this._activeTreeListCell.rowIndex,0,e),e=this.gantt.columns.length;return{rowIndex:t,colIndex:f.fitToRange(this._activeTreeListCell.colIndex,0,e)}},set:function(e){this._activeTreeListCell=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeTimelineIndex",{get:function(){var e=this.gantt.treeList.view.data.length-1;return f.fitToRange(this._activeTimelineIndex,0,e)},set:function(e){this._activeTimelineIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"treeListHeaderRowsCount",{get:function(){return this.treeListElement.querySelectorAll(".k-grid-header tr").length},enumerable:!0,configurable:!0}),r.prototype.initialize=function(e){var t=this,n=e.gantt,i=e.host,o=e.treeListElement,e=e.timelineElement;this._enabled=!0,this.gantt=n,this.host=i,this.treeListElement=o,this.timelineElement=e;e=this.host.querySelector(".k-splitbar");f.isPresent(e)&&f.isPresent(e.previousElementSibling)&&f.isPresent(e.after)&&e.after(e.previousElementSibling),this.zone.runOutsideAngular(function(){t.eventListenerDisposers=[t.renderer.listen(t.host,"keydown",t.handleKeydown.bind(t)),t.renderer.listen(t.treeListElement,"mousedown",t.focusTreeList.bind(t)),t.renderer.listen(t.treeListElement,"focusin",t.handleTreeListFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"mousedown",t.handleTimelineMousedown.bind(t)),t.renderer.listen(t.timelineElement,"focusin",t.handleTimelineFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"focusout",t.handleTimelineFocusOut.bind(t))]})},r.prototype.ngOnDestroy=function(){f.isPresent(this.eventListenerDisposers)&&(this.eventListenerDisposers.forEach(function(e){return e()}),this.eventListenerDisposers=null),this.gantt=null,this.host=null,this.treeListElement=null,this.timelineElement=null},r.prototype.focusLastActiveItem=function(){var e,t;0===this.gantt.data.length||!this.treeListLastActive&&!this.timelineLastActive?this.focusCell(0,0):this.treeListLastActive?(e=(t=this.activeTreeListCell).rowIndex,t=t.colIndex,this.gantt.treeList.focusCell(e,t)):this.timelineLastActive&&this.focusTask(this.activeTimelineIndex)},r.prototype.focusCell=function(e,t){this.activeTreeListCell={rowIndex:e,colIndex:t},this.activeTimelineIndex=e-this.treeListHeaderRowsCount,this.gantt.treeList.focusCell(this.activeTreeListCell.rowIndex,this.activeTreeListCell.colIndex)},r.prototype.focusTask=function(e){this.activeTimelineIndex=e,this.isTimelineFocused=!0,this.activeTreeListCell={rowIndex:e+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex},this.notifyTaskStatusChange()},r.prototype.handleTimelineFocusIn=function(e){e=e.target;this.treeListLastActive=!1,this.timelineLastActive=!0,this.isTimelineFocused=!0,f.isTask(e,this.timelineElement)&&this.notifyTaskStatusChange()},r.prototype.handleTimelineFocusOut=function(e){e=e.relatedTarget;this.isTimelineFocused=this.timelineElement.contains(e),f.isTask(e,this.timelineElement)||this.notifyTaskStatusChange()},r.prototype.handleTreeListFocusIn=function(e){var t,n,i;this.treeListLastActive=!0,this.timelineLastActive=!1,this.treeListElement.contains(e.relatedTarget)?(i=(t=this.gantt.treeList.activeCell).colIndex,n=t.rowIndex,this.activeTreeListCell={colIndex:i,rowIndex:n}):(n=(t=this.activeTreeListCell).rowIndex,i=t.colIndex,this.gantt.treeList.focusCell(n,i)),this.activeTimelineIndex=this.gantt.treeList.activeCell.dataRowIndex,this.notifyTaskStatusChange(),0<=this.gantt.treeList.activeCell.dataRowIndex&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("treelist","timeline"))},r.prototype.handleKeydown=function(e){var t,n,i,o,a,r,s=this,c=e.keyCode,d=e.target,l=e.altKey,p=this.timelineElement.contains(d);p&&(v.isArrowUpDownKey(c)?(t=c===g.Keys.ArrowUp?-1:1,this.activeTimelineIndex=this.activeTimelineIndex+t,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}):c===g.Keys.Home?(this.activeTimelineIndex=0,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}):c===g.Keys.End&&(t=this.gantt.treeList.view.data.length-1,this.activeTimelineIndex=t,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}),v.isNavigationKey(c)&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("timeline","treelist"),this.notifyTaskStatusChange(),e.preventDefault()),c===g.Keys.Space&&g.hasObservers(this.gantt.selectionChange)&&(n=this.gantt.renderedTreeListItems[this.activeTimelineIndex],i=this.gantt.getSelectionAction(e,n),f.isPresent(n)&&!this.gantt.isSameSelection(i,n)&&this.zone.run(function(){return s.gantt.notifySelectionChange(n,i)}),e.preventDefault()),c===g.Keys.Enter&&g.hasObservers(this.gantt.taskClick)&&(o=this.gantt.renderedTreeListItems[this.activeTimelineIndex],f.isPresent(o)&&this.zone.run(function(){return s.gantt.notifyTaskClick(e,o,s.activeTimelineIndex)}),e.preventDefault()),v.isExpandCollapseKey(c,l)&&(a=this.gantt.renderedTreeListItems[this.activeTimelineIndex],f.isPresent(a)&&this.gantt.hasChildren(a)&&(r=c===g.Keys.ArrowRight,b=this.gantt.isExpanded(a),r===b||this.zone.run(function(){var e={dataItem:a};(r?s.gantt.rowExpand:s.gantt.rowCollapse).emit(e),s.gantt.expandStateChange.emit(m.__assign({},e,{expand:r})),s.gantt.updateView(),s.scrollHorizontallyToTask(s.activeTimelineIndex)})),e.preventDefault()));var u,h,b=this.treeListElement.contains(d);c===g.Keys.Delete&&(p||b)&&g.hasObservers(this.gantt.taskDelete)&&(b=b?this.gantt.treeList.activeCell.dataRowIndex:this.activeTimelineIndex,u=this.gantt.renderedTreeListItems[b],f.isPresent(u)&&this.zone.run(function(){return s.gantt.notifyTaskDelete(u)})),!v.isViewDigitKey(c)||f.isToolbar(d,this.host)||this.gantt.isInEditMode||(c=v.getIndexFromViewDigitKeyCode(c),h=this.gantt.views.toArray()[c],f.isPresent(h)&&h.type!==this.gantt.activeView&&this.zone.run(function(){return s.gantt.changeActiveView(h.type)}))},r.prototype.handleTimelineMousedown=function(e){var e=e.target;f.isTask(e,this.host)&&!f.isClearButton(e,this.host)&&(e=f.getClosestTaskIndex(e,this.host),this.focusTask(e))},r.prototype.scrollHorizontallyToTask=function(e){var t,n=this.timelineElement.querySelectorAll(".k-task-wrap").item(e);f.isPresent(n)&&(t=this.timelineElement.clientWidth+this.timelineElement.scrollLeft<n.offsetLeft+200,e=this.timelineElement.scrollLeft>n.offsetLeft,(t||e)&&(this.timelineElement.scrollLeft=n.offsetLeft))},r.prototype.focusTreeList=function(){this.gantt.treeList.focus()},r.prototype.notifyTaskStatusChange=function(){this.taskStatusChanges.next(this.activeTask)},m.__decorate([i.Injectable(),m.__metadata("design:paramtypes",[i.NgZone,i.Renderer2,a.ScrollSyncService])],r));function r(e,t,n){this.zone=e,this.renderer=t,this.scrollSyncService=n,this.taskStatusChanges=new o.Subject,this.isTimelineFocused=!1,this.treeListLastActive=!1,this.timelineLastActive=!1,this._enabled=!1,this._activeTimelineIndex=0,this._activeTreeListCell={rowIndex:0,colIndex:0}}t.NavigationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(50),r=n(49),n=n(48),s={day:a.TimelineDayViewService,week:n.TimelineWeekViewService,month:r.TimelineMonthViewService},i=(c.prototype.service=function(e){e=s[e];return e?this.injector.get(e):null},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.Injector])],c));function c(e){this.injector=e,this.viewChange=new o.EventEmitter}t.TimelineViewService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(17).ColumnBase,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],r.prototype,"locked",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],r.prototype,"lockable",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Boolean)],r.prototype,"hidden",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"media",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],r.prototype,"style",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],r.prototype,"headerStyle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],r.prototype,"footerStyle",void 0),o.__decorate([a.Input("class"),o.__metadata("design:type",Object)],r.prototype,"cssClass",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],r.prototype,"headerClass",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Object)],r.prototype,"footerClass",void 0),r);function r(){var e=null!==i&&i.apply(this,arguments)||this;return e.locked=!1,e}t.GanttColumnBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(3),s=n(5),r=n(13),c={day:a.MS_PER_HOUR,week:a.MS_PER_DAY,month:7*a.MS_PER_DAY},i=(Object.defineProperty(d.prototype,"taskIndexAttribute",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaSelected",{get:function(){return this.selectable?String(this.isSelected(this.dataItem)):null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"slotUnitDuration",{get:function(){return c[this.activeView]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewService",{get:function(){return this.timelineViewService.service(this.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"slotWidth",{get:function(){return this.viewService.options.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"taskOffset",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"start")-this.viewService.viewStart)/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"completionOverlayWidth",{get:function(){var e=this.taskWidth*this.mapper.extractFromTask(this.dataItem,"completionRatio");return r.isNumber(e)?e:0},enumerable:!0,configurable:!0}),d.prototype.ngOnChanges=function(e){r.isPresent(e.dataItem)?(r.isPresent(e.dataItem.previousValue)&&this.dependencyDomService.unregisterTask(e.dataItem.previousValue),this.dependencyDomService.registerTask(this.dataItem,this.taskElement.nativeElement)):r.isPresent(e.activeView)&&this.dependencyDomService.notifyChanges(),this.navigationService.enabled&&r.isPresent(e.index)&&this.updateActiveState(this.navigationService.activeTask)},d.prototype.ngOnDestroy=function(){r.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.subscriptions.unsubscribe()},d.prototype.updateActiveState=function(e){var t=e.activeIndex,e=e.isFocused,t=t===this.index;this.taskElement.nativeElement.setAttribute("tabindex",t?"0":"-1"),t&&e?(this.taskElement.nativeElement.focus(),this.taskElement.nativeElement.classList.add("k-focus")):this.taskElement.nativeElement.classList.remove("k-focus")},i.__decorate([o.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],d.prototype,"wrapperClass",void 0),i.__decorate([o.HostBinding("attr.data-task-index"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],d.prototype,"taskIndexAttribute",null),i.__decorate([o.ViewChild("task",{static:!0}),i.__metadata("design:type",o.ElementRef)],d.prototype,"taskElement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],d.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],d.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],d.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"renderDependencyDragClues",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],d.prototype,"isSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],d.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],d.prototype,"taskClass",void 0),i.__decorate([o.HostBinding("style.left.px"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],d.prototype,"taskOffset",null),d);function d(e,t,n,i,o,a){var r=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=o,this.navigationService=a,this.wrapperClass=!0,this.subscriptions=new s.Subscription,this.subscriptions.add(this.optionChangesService.viewChanges.subscribe(function(){return r.cdr.markForCheck()})),this.subscriptions.add(this.navigationService.taskStatusChanges.subscribe(this.updateActiveState.bind(this)))}t.GanttTaskBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(Object.defineProperty(o.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),i.__decorate([n.Input("position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],o.prototype,"position",null),i.__decorate([n.Directive({selector:"[kendoGanttToolbarTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o));function o(e){this.templateRef=e,this._position="top"}t.ToolbarTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttTaskContentTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.GanttTaskContentTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttSummaryTaskTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.GanttSummaryTaskTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttTaskTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.GanttTaskTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(4),n=(a.prototype.get=function(e){return this.localizationService.get(e)},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[n.LocalizationService])],a));function a(e){this.localizationService=e}t.GanttLocalizationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),o=(r.prototype.ngOnDestroy=function(){this.horizontalScroll.complete(),this.verticalScroll.complete(),this.scrollCancel.complete()},r.prototype.requestHorizontalScroll=function(e){this.horizontalScroll.next(e)},r.prototype.requestVerticalScroll=function(e){this.verticalScroll.next(e)},r.prototype.requestScrollCancel=function(){this.scrollCancel.next()},i.__decorate([o.Injectable()],r));function r(){this.horizontalScroll=new a.Subject,this.verticalScroll=new a.Subject,this.scrollCancel=new a.Subject}t.TimelineScrollService=o},function(e,p,t){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var i=t(89),u=t(13),h=t(3);p.DAY_FORMAT="E d/MM",p.HOUR_FORMAT="HH:mm aa",p.MONTH_FORMAT="MMM";Object.defineProperty(n.prototype,"viewStart",{get:function(){return this._viewStart},enumerable:!0,configurable:!0}),n.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"}]),e=this.intlService.firstDay(),t=this.mapper.extractFromTask(t[0],"start")||new Date,n=this.mapper.extractFromTask(n[0],"end")||new Date;e===n.getDay()&&n.setDate(n.getDate()+7);t=this.getStartOffset(t),n=this.getEndOffset(n);return this._viewStart=Number(t),{start:new Date(t),end:new Date(n)}},n.prototype.getHours=function(e,t){for(var n=[],i=this.intlService.parseDate(this.options.workDayStart).getHours(),o=this.intlService.parseDate(this.options.workDayEnd).getHours(),a=new Date(e),r=new Date(t);a<r;){var s=new Date(a),c=u.isWorkHour(s,i,o);s.setHours(s.getHours()+1),n.push({start:a,end:s,isWorking:c,text:this.intlService.formatDate(a,p.HOUR_FORMAT),span:1}),a=s}return n},n.prototype.getDays=function(e,t){for(var n=[],i=new Date(e),o=new Date(t);i<=o;){var a=h.getDate(h.addDays(i,1)),r=u.isWorkDay(i,this.options.workWeekStart,this.options.workWeekEnd);n.push({start:i,end:o<a?o:a,isWorking:r,text:this.intlService.formatDate(i,p.DAY_FORMAT),span:1}),i=a}return n},n.prototype.getWeeks=function(e,t){for(var n=this.intlService.firstDay(),i=[],o=new Date(e),a=new Date(t);o<=a;){var r=u.lastDayOfWeek(o,n),s=a<r?a:r,c=this.getDays(o,s),d=c.length,l=this.intlService.formatDate(h.firstDayInWeek(h.getDate(o),n),p.DAY_FORMAT),r=this.intlService.formatDate(h.addDays(s,-1),p.DAY_FORMAT);0<d&&i.push({start:c[0].start,end:c[d-1].end,text:l+" - "+r,span:d}),o=h.firstDayInWeek(h.addWeeks(s,1))}return i},n.prototype.getMonths=function(e,t){for(var n=[],i=new Date(e),o=new Date(t);i<o;){var a=h.lastDayOfMonth(i),r=o<a?o:a,s=this.getDays(i,r),c=s.length,a=h.firstDayOfMonth(h.getDate(i)),a=this.intlService.formatDate(a,p.MONTH_FORMAT);0<c&&n.push({start:s[0].start,end:s[c-1].end,span:c,text:a}),i=h.firstDayOfMonth(h.addMonths(r,1))}return n},t=n;function n(e,t){this.intlService=e,this.mapper=t,this._viewStart=0}p.TimelineBaseViewService=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttEditTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.EditTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttHeaderTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.HeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttCellTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.CellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25);t.GanttColumnBase=i.GanttColumnBase;i=n(56);t.GanttColumnComponent=i.GanttColumnComponent;i=n(94);t.GanttColumnGroupComponent=i.GanttColumnGroupComponent;i=n(93);t.GanttSpanColumnComponent=i.GanttSpanColumnComponent;i=n(36);t.CellTemplateDirective=i.CellTemplateDirective;i=n(35);t.HeaderTemplateDirective=i.HeaderTemplateDirective;i=n(52);t.FooterTemplateDirective=i.FooterTemplateDirective;i=n(55);t.ColumnMenuTemplateDirective=i.ColumnMenuTemplateDirective;i=n(54);t.FilterCellTemplateDirective=i.FilterCellTemplateDirective;i=n(53);t.FilterMenuTemplateDirective=i.FilterMenuTemplateDirective;n=n(34);t.EditTemplateDirective=n.EditTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(6),o=(s.prototype.registerElement=function(t,n){var i=this;this.elements.push({element:t,sourceType:n}),"timeline"!==n&&"treelist"!==n||this.ngZone.runOutsideAngular(function(){var e=a.fromEvent(t,"scroll").pipe(r.map(function(e){e=e.target;return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,sourceType:n}}));i.subscriptions.add(e.pipe(r.distinctUntilChanged("timeline"===n?function(e,t){return e.scrollTop===t.scrollTop&&e.scrollLeft===t.scrollLeft}:function(e,t){return e.scrollTop===t.scrollTop})).subscribe(function(e){return i.changes.next(e)}))})},s.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.elements=null},s.prototype.syncScrollTop=function(t,n){var e=this.elements.find(function(e){return e.sourceType===t}),i=this.elements.find(function(e){return e.sourceType===n});this.ngZone.onStable.pipe(r.take(1)).subscribe(function(){return i.element.scrollTop=e.element.scrollTop})},s.prototype.resetTimelineScrollLeft=function(){this.elements.find(function(e){return"timeline"===e.sourceType}).element.scrollLeft=0},s.prototype.scroll=function(e){var t=this,n=e.scrollTop,i=e.scrollLeft,o=e.sourceType;this.ngZone.runOutsideAngular(function(){"timeline"===o&&(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),"treelist"===o&&(t.syncingTreeList||(t.syncingTimeline=!0,t.elements.find(function(e){return"timeline"===e.sourceType}).element.scrollTop=n),t.syncingTreeList=!1)})},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone])],s));function s(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)}))}t.ScrollSyncService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),o=(i=n(4).ComponentMessages,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingGeneralTabTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingPredecessorsTabTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingSuccessorsTabTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesAddButtonText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesRemoveButtonText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesGridNameColumnTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesGridTypeColumnTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"deleteButtonText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskDeleteLabel",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingDialogTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"taskEditingDialogCloseTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"confirmationDialogCloseTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"confirmationDialogTitle",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"addTaskText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"addChildText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"addAboveText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"addBelowText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"cancelButtonText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"saveButtonText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"titleFieldInputLabel",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"startFieldInputLabel",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"endFieldInputLabel",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"completionRatioFieldInputLabel",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"confirmationDialogContent",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"dayViewText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"weekViewText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"monthViewText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"yearViewText",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"noRecords",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filter",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterEqOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterNotEqOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterIsNullOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterIsNotNullOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterIsEmptyOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterIsNotEmptyOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterStartsWithOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterContainsOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterNotContainsOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterEndsWithOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterGteOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterGtOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterLteOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterLtOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterIsTrue",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterIsFalse",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterBooleanAll",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterAfterOrEqualOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterAfterOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterBeforeOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterBeforeOrEqualOperator",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterFilterButton",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterClearButton",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterAndLogic",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"filterOrLogic",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"loading",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"columnMenu",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"columns",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"lock",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"unlock",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"sortable",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"sortAscending",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"sortDescending",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"sortedAscending",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"sortedDescending",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"sortedDefault",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"columnsApply",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],r.prototype,"columnsReset",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=o},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.ScrollDirection||(t.ScrollDirection={}))[i.Backwards=-1]="Backwards",i[i.Forward=1]="Forward",(t=t.ScrollAxis||(t.ScrollAxis={})).Vertical="scrollTop",t.Horizontal="scrollLeft"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Component({template:'\n <div\n class="k-tooltip k-gantt-tooltip-validation"\n [class.k-gantt-tooltip-valid]="showValidityStatus && isValid"\n [class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"\n >\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">From:</span>\n <span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>\n </div>\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">To:</span>\n <span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>\n </div>\n </div>\n ',styles:["\n .k-gantt-tooltip-validation {\n max-width: 200px;\n display: block;\n }\n .k-gantt-tooltip-validation::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 4px;\n height: 100%;\n background: #656565;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-valid::before {\n background: #37B400;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-invalid::before {\n background: #F31700;\n }\n .k-gantt-tooltip-validation-row {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .k-gantt-tooltip-validation-label {\n display: inline-flex;\n width: 50px;\n }\n .k-gantt-tooltip-validation-value {\n font-weight: bold;\n }\n "]})],o);function o(){this.isValid=!1}t.DragValidationTooltipComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(2),r=n(11),s=n(20),c=n(14),d=n(32),l=n(41),p=n(43),u=n(13),h=n(13),d=(Object.defineProperty(b.prototype,"container",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.timelineContent)?this.gantt.timeline.timelineContent.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"polyline",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dependencyDragCreatePolyline)?this.gantt.timeline.dependencyDragCreatePolyline.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"popupContainer",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dragPopupContainer)?this.gantt.timeline.dragPopupContainer:null},enumerable:!0,configurable:!0}),b.prototype.ngAfterViewInit=function(){this.subscribeDraggable(),this.addScrollListener()},b.prototype.ngOnDestroy=function(){this.unsubscribeDraggable(),this.removeScrollListener(),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup()},b.prototype.subscribeDraggable=function(){this.dragSubscriptions=this.gantt.timeline.timelineContainerPress.subscribe(this.handlePress.bind(this)),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerDrag.subscribe(this.handleDrag.bind(this))),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerRelease.subscribe(this.handleRelease.bind(this)))},b.prototype.unsubscribeDraggable=function(){u.isPresent(this.dragSubscriptions)&&(this.dragSubscriptions.unsubscribe(),this.dragSubscriptions=null)},b.prototype.handlePress=function(e){var t=e.clientX,e=e.clientY,e=h.elementFromPoint(t,e);u.isDependencyDragClue(e)&&(this.fromTaskClue=e,this.assignDragStartClasses(this.fromTaskClue),e=p.getElementClientCenterCoords(this.fromTaskClue),this.polylineStartCoords=p.clientToOffsetCoords(e.left,e.top,this.container))},b.prototype.handleDrag=function(e){var t=e.clientX,n=e.clientY;u.isPresent(this.fromTaskClue)&&(e=p.clientToOffsetCoords(t,n,this.container),this.updatePolyline(this.polylineStartCoords,e),this.currentPointerClientCoords={left:t,top:n},this.gantt.dragScrollSettings.enabled&&this.scrollPointIntoView(this.currentPointerClientCoords),this.displayValidationTooltip&&this.updateDragPopup(e))},b.prototype.handleRelease=function(e){var s,c=this,t=e.clientX,e=e.clientY;u.isPresent(this.fromTaskClue)&&(s=h.elementFromPoint(t,e),u.isDependencyDragClue(s)&&!u.sameTaskClues(this.fromTaskClue,s,this.container)&&this.zone.run(function(){var e=c.fromTaskClue,t=s,n=c.gantt.renderedTreeListItems[u.getClosestTaskIndex(e,c.container)],i=c.gantt.renderedTreeListItems[u.getClosestTaskIndex(t,c.container)],o=u.getDependencyTypeFromTargetTasks(e,t),a=c.mapper.dependencyFields,r=a.fromId,e=a.toId,t=a.type;c.gantt.dependencyAdd.emit({fromTask:n,toTask:i,type:o,isValid:c.gantt.validateNewDependency(((a={})[r]=c.mapper.extractFromTask(n,"id"),a[e]=c.mapper.extractFromTask(i,"id"),a[t]=o,a))})}),this.clearPolyline(),this.removeDragStartClasses(this.fromTaskClue),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup())},b.prototype.updatePolyline=function(e,t){t=e.left+","+e.top+" "+t.left+","+t.top;this.renderer.setAttribute(this.polyline,"points",t)},b.prototype.clearPolyline=function(){this.renderer.removeAttribute(this.polyline,"points")},b.prototype.assignDragStartClasses=function(e){u.isPresent(e)&&(this.renderer.addClass(this.container,"k-user-select-none"),this.renderer.addClass(e,"k-state-hover"),e=u.getClosestTaskWrapper(e,this.container),u.isPresent(e)&&this.renderer.addClass(e,"k-origin"))},b.prototype.removeDragStartClasses=function(e){u.isPresent(e)&&(this.renderer.removeClass(this.container,"k-user-select-none"),this.renderer.removeClass(e,"k-state-hover"),e=u.getClosestTaskWrapper(e,this.container),u.isPresent(e)&&this.renderer.removeClass(e,"k-origin"))},b.prototype.scrollPointIntoView=function(e){var t=e.left,e=e.top;this.timelineScrollService.requestScrollCancel(),this.timelineScrollService.requestHorizontalScroll(t),this.timelineScrollService.requestVerticalScroll(e)},b.prototype.cancelScroll=function(){this.timelineScrollService.requestScrollCancel()},b.prototype.addScrollListener=function(){var n=this;a.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return n.scrollListenerDisposer=n.renderer.listen(n.container,"scroll",function(){var e,t;u.isPresent(n.fromTaskClue)&&u.isPresent(n.currentPointerClientCoords)&&(e=(t=n.currentPointerClientCoords).left,t=t.top,t=p.clientToOffsetCoords(e,t,n.container),n.updatePolyline(n.polylineStartCoords,t),n.displayValidationTooltip&&n.updateDragPopup(t))})})},b.prototype.removeScrollListener=function(){u.isPresent(this.scrollListenerDisposer)&&(this.scrollListenerDisposer(),this.scrollListenerDisposer=null)},b.prototype.openDragPopup=function(){u.isPresent(this.dragPopup)&&this.closeDragPopup(),this.dragPopup=this.popupService.open({animate:!1,content:l.DragValidationTooltipComponent,appendTo:this.popupContainer,positionMode:"absolute",popupClass:"k-popup-transparent"})},b.prototype.updateDragPopup=function(e){u.isPresent(this.dragPopup)||this.openDragPopup();var t=this.dragPopup.content.instance,n=this.getTooltipContext(),i=n.fromTaskName,o=n.toTaskName,a=n.isValid,n=n.showValidityStatus;t.fromTaskName===i&&t.toTaskName===o&&t.isValid===a&&t.showValidityStatus===n||(t.fromTaskName=i,t.toTaskName=o,t.isValid=a,t.showValidityStatus=n,this.dragPopup.content.changeDetectorRef.detectChanges()),this.dragPopup.popup.instance.offset=this.normalizePopupPosition(e),this.dragPopup.popup.changeDetectorRef.detectChanges()},b.prototype.closeDragPopup=function(){u.isPresent(this.dragPopup)&&(this.dragPopup.close(),this.dragPopup=null)},b.prototype.extractTaskName=function(e){if(!u.isTaskWrapper(e,this.container))return null;e=u.getClosestTaskIndex(e,this.container),e=this.gantt.renderedTreeListItems[e];return this.mapper.extractFromTask(e,"title")},b.prototype.getTooltipContext=function(){var e=this.extractTaskName(this.fromTaskClue),t=h.elementFromPoint(this.currentPointerClientCoords.left,this.currentPointerClientCoords.top),n=u.isTaskWrapper(t,this.container)&&!u.sameTaskClues(this.fromTaskClue,t,this.container)?this.extractTaskName(t):"",i=u.isDependencyDragClue(t)&&!u.sameTaskClues(this.fromTaskClue,t,this.container),o=this.mapper.dependencyFields,a=o.fromId,r=o.toId,o=o.type;return{fromTaskName:e,toTaskName:n,showValidityStatus:i,isValid:i&&this.gantt.validateNewDependency(((i={})[a]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(this.fromTaskClue,this.container)],"id"),i[r]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(t,this.container)],"id"),i[o]=u.getDependencyTypeFromTargetTasks(this.fromTaskClue,t),i))}},b.prototype.normalizePopupPosition=function(e){var t=e.top+20,n=this.container.clientHeight+this.container.scrollTop,i=this.dragPopup.popupElement.querySelector(".k-tooltip").clientHeight;t<n-i||(t-=i+40);n=this.dragPopup.popupElement.querySelector(".k-tooltip").clientWidth,e=e.left-n/2;return{left:u.fitToRange(e,0,this.container.scrollWidth-n),top:u.fitToRange(t,0,this.container.scrollHeight-i)}},i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],b.prototype,"displayValidationTooltip",void 0),i.__decorate([o.Directive({selector:"[kendoGanttDependencyDragCreate]"}),i.__metadata("design:paramtypes",[s.GanttComponent,o.NgZone,o.Renderer2,c.MappingService,r.PopupService,d.TimelineScrollService])],b));function b(e,t,n,i,o,a){this.gantt=e,this.zone=t,this.renderer=n,this.mapper=i,this.popupService=o,this.timelineScrollService=a,this.displayValidationTooltip=!0,this.gantt.renderDependencyDragClues=!0}t.DependencyDragCreateDirective=d},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=t(19);i.getOffsetRelativeToParent=function(e,t){var n={top:0,left:0};if(!t.contains(e))return n;for(var i=e;i&&i!==t;)n.top+=i.offsetTop,n.left+=i.offsetLeft,i=i.offsetParent;return n},i.getElementRect=function(e,t){var n=i.getOffsetRelativeToParent(e,t),t=n.top,n=n.left;return{top:t+e.offsetHeight/2,left:n,right:n+e.offsetWidth}},i.dependencyCoordinates=function(e,t,n,i,o,a){var r,s,c,d=[],l=Math.floor(n/2),p=e.top<t.top;return i===u.DependencyType.FF||i===u.DependencyType.SS?(c=i===u.DependencyType.SS?"left":"right",r=e.top,s=e[c],d.push({top:r,left:s}),s=Math["left"==c?"min":"max"](e[c],t[c]),d.push({top:r,left:s="left"==c?s-o:s+o}),r=t.top,d.push({top:r,left:s}),s="left"==c?t[c]-a:t[c]+a,d.push({top:r,left:s}),d.push.apply(d,h(r,s,"left"!=c,a))):(n=i===u.DependencyType.SF?"left":"right",c=i===u.DependencyType.SF?"right":"left",i=i===u.DependencyType.SF?e[n]-2*o<t[c]:e[n]+2*o>t[c],r=e.top,s=e[n],d.push({top:r,left:s}),d.push({top:r,left:s="left"==n?s-o:s+o}),i&&(d.push({top:r=p?r+l:r-l,left:s}),s="left"==n?t[c]+o:t[c]-o,d.push({top:r,left:s})),r=t.top,d.push({top:r,left:s}),s="left"==c?t[c]-a:t[c]+a,d.push({top:r,left:s}),d.push.apply(d,h(r,s,"left"!=c,a))),d};var h=function(e,t,n,i){return(n?o: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};i.clientToOffsetCoords=function(e,t,n){var i=n.getBoundingClientRect();return{left:e-i.left+n.scrollLeft,top:t-i.top+n.scrollTop}},i.getElementClientCenterCoords=function(e){var t=e.getBoundingClientRect(),n=t.left,e=t.top;return{left:n+t.width/2,top:e+t.height/2}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(8),r=n(20),s=n(13),r=(Object.defineProperty(c.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(c.prototype,"selectedKeys",{set:function(e){s.isPresent(e)&&e===this.lastChange||(e=(e||[]).slice(0,1),this.state=new Set(e),this.gantt.updateView())},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"itemKey",{set:function(e){s.isString(e)?this._keyGetter=a.getter(e):this._keyGetter=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"keyGetter",{get:function(){return this._keyGetter||this.gantt.idGetter},enumerable:!0,configurable:!0}),c.prototype.ngOnDestroy=function(){this.unsubscribeSelection()},c.prototype.isSelected=function(e){return this.state.has(this.keyGetter(e))},c.prototype.selectionChange=function(e){var t=this,n=e.action,e=e.items;this.state.clear(),"select"===n&&e.forEach(function(e){return t.state.add(t.keyGetter(e))}),this.emitSelectedItemsChange()},c.prototype.emitSelectedItemsChange=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},c.prototype.subscribeSelection=function(){this.unsubscribeSelection(),this.selectionSubscription=this.gantt.selectionChange.subscribe(this.selectionChange)},c.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])],c.prototype,"selectable",null),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],c.prototype,"selectedKeys",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],c.prototype,"selectedKeysChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],c.prototype,"itemKey",null),i.__decorate([o.Directive({exportAs:"kendoGanttSelectable",selector:"[kendoGanttSelectable]"}),i.__metadata("design:paramtypes",[r.GanttComponent])],c));function c(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}t.SelectableDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),a=(i=n(17).ExpandableDirective,o.__extends(r,i),o.__decorate([a.Input(),o.__metadata("design:type",Object)],r.prototype,"expandBy",void 0),o.__decorate([a.Directive({exportAs:"kendoGanttExpandable",selector:"[kendoGanttExpandable]"})],r));function r(){return null!==i&&i.apply(this,arguments)||this}t.GanttExpandableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),a=(i=n(17).HierarchyBindingDirective,o.__extends(r,i),o.__decorate([a.Input("kendoGanttHierarchyBinding"),o.__metadata("design:type",Array)],r.prototype,"data",void 0),o.__decorate([a.Directive({selector:"[kendoGanttHierarchyBinding]",exportAs:"kendoGanttHierarchyBinding"})],r));function r(){var e=null!==i&&i.apply(this,arguments)||this;return e.data=[],e}t.GanttHierarchyBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),a=(i=n(17).FlatBindingDirective,o.__extends(r,i),o.__decorate([a.Input("kendoGanttFlatBinding"),o.__metadata("design:type",Array)],r.prototype,"data",void 0),o.__decorate([a.Directive({selector:"[kendoGanttFlatBinding]",exportAs:"kendoGanttFlatBinding"})],r));function r(){var e=null!==i&&i.apply(this,arguments)||this;return e.data=[],e}t.GanttFlatBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(10),s=n(3),c=n(14),c=(i=n(33).TimelineBaseViewService,o.__extends(d,i),d.prototype.getStartOffset=function(e){return s.addDays(s.getDate(e),-1)},d.prototype.getEndOffset=function(e){return s.addDays(s.getDate(e),1)},d.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],e=this.options.slotWidth;return Math.round(t.length*e)},d.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,e=n.end,n=this.getWeeks(i,e),e=this.getDays(i,e);return t.push(n,e),t},o.__decorate([a.Injectable(),o.__metadata("design:paramtypes",[r.IntlService,c.MappingService])],d));function d(e,t){return i.call(this,e,t)||this}t.TimelineWeekViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(10),s=n(3),c=n(14),c=(i=n(33).TimelineBaseViewService,o.__extends(d,i),d.prototype.getStartOffset=function(e){var t=this.intlService.firstDay(),t=s.firstDayInWeek(s.getDate(e),t);return s.addWeeks(s.getDate(t),-1)},d.prototype.getEndOffset=function(e){var t=this.intlService.firstDay(),t=s.addDays(s.firstDayInWeek(s.getDate(e),t),6);return s.addWeeks(s.getDate(t),1)},d.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],e=this.options.slotWidth;return Math.round(t.length*e)},d.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,e=n.end,n=this.getMonths(i,e),e=this.getWeeks(i,e);return t.push(n,e),t},o.__decorate([a.Injectable(),o.__metadata("design:paramtypes",[r.IntlService,c.MappingService])],d));function d(e,t){return i.call(this,e,t)||this}t.TimelineMonthViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),a=n(1),r=n(10),s=n(33),c=n(14),d=n(13),c=(i=s.TimelineBaseViewService,o.__extends(l,i),l.prototype.getStartOffset=function(e){return d.setTime(e,e.getHours()-1)},l.prototype.getEndOffset=function(e){return d.setTime(e,e.getHours()+1)},l.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],e=this.options.slotWidth;return Math.round(t.length*e)},l.prototype.getSlots=function(e){for(var t=[],n=this.getRange(e),e=n.start,n=n.end,i=this.getDays(e,n),o=[],a=0;a<i.length;a++){var r=i[a],s=this.getHours(r.start,r.end);r.span=s.length,o.push.apply(o,s)}return t.push(i,o),t},o.__decorate([a.Injectable(),o.__metadata("design:paramtypes",[r.IntlService,c.MappingService])],l));function l(e,t){return i.call(this,e,t)||this}t.TimelineDayViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(19);t.DependencyType=i.DependencyType;n=n(91);t.CellCloseEvent=n.CellCloseEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttFooterTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.FooterTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttFilterMenuTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.FilterMenuTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttFilterCellTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.FilterCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttColumnMenuTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ColumnMenuTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(17),c=n(15),d=n(25),l=n(36),p=n(55),u=n(54),h=n(53),b=n(52),m=n(35),n=n(34),d=(i=s.ColumnComponent,a.__extends(g,i),(o=g).prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},a.__decorate([r.ContentChildren(m.HeaderTemplateDirective,{descendants:!1}),a.__metadata("design:type",r.QueryList)],g.prototype,"headerTemplates",void 0),a.__decorate([r.ContentChild(b.FooterTemplateDirective,{static:!1}),a.__metadata("design:type",b.FooterTemplateDirective)],g.prototype,"footerTemplate",void 0),a.__decorate([r.ContentChildren(p.ColumnMenuTemplateDirective),a.__metadata("design:type",r.QueryList)],g.prototype,"columnMenuTemplates",void 0),a.__decorate([r.ContentChild(l.CellTemplateDirective,{static:!1}),a.__metadata("design:type",l.CellTemplateDirective)],g.prototype,"template",void 0),a.__decorate([r.ContentChild(n.EditTemplateDirective,{static:!1}),a.__metadata("design:type",n.EditTemplateDirective)],g.prototype,"editTemplate",void 0),a.__decorate([r.ContentChild(u.FilterCellTemplateDirective,{static:!1}),a.__metadata("design:type",u.FilterCellTemplateDirective)],g.prototype,"filterCellTemplate",void 0),a.__decorate([r.ContentChild(h.FilterMenuTemplateDirective,{static:!1}),a.__metadata("design:type",h.FilterMenuTemplateDirective)],g.prototype,"filterMenuTemplate",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],g.prototype,"format",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String)],g.prototype,"filter",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],g.prototype,"filterable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String)],g.prototype,"editor",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],g.prototype,"editable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],g.prototype,"locked",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],g.prototype,"lockable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],g.prototype,"hidden",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String)],g.prototype,"media",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],g.prototype,"style",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],g.prototype,"headerStyle",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],g.prototype,"footerStyle",void 0),a.__decorate([r.Input("class"),a.__metadata("design:type",Object)],g.prototype,"cssClass",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],g.prototype,"headerClass",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],g.prototype,"footerClass",void 0),o=a.__decorate([r.Component({selector:"kendo-gantt-column",template:"",providers:[{provide:d.GanttColumnBase,useExisting:r.forwardRef(function(){return o})}]}),a.__param(1,r.SkipSelf()),a.__param(1,r.Host()),a.__param(1,r.Optional()),a.__metadata("design:paramtypes",[c.OptionChangesService,d.GanttColumnBase])],g));function g(e,t){t=i.call(this,t)||this;return t.options=e,t.headerTemplates=new r.QueryList,t.columnMenuTemplates=new r.QueryList,t.filter="text",t.filterable=!0,t.editor="text",t.editable=!0,t.locked=!1,t}t.GanttColumnComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),r=n(5),s=n(6),c=n(2),o=n(38),d=n(16),l=n(13),d=(Object.defineProperty(p.prototype,"draggableEnabled",{get:function(){return this.renderDependencyDragClues},enumerable:!0,configurable:!0}),p.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)},p.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},p.prototype.isNonWorking=function(e){return e.hasOwnProperty("isWorking")&&!e.isWorking},i.__decorate([a.ViewChild("timelineContent",{static:!0}),i.__metadata("design:type",a.ElementRef)],p.prototype,"timelineContent",void 0),i.__decorate([a.ViewChild("timelineColumns",{static:!0}),i.__metadata("design:type",a.ElementRef)],p.prototype,"timelineColumns",void 0),i.__decorate([a.ViewChild("timelineHeaderWrap",{static:!0}),i.__metadata("design:type",a.ElementRef)],p.prototype,"timelineHeaderWrap",void 0),i.__decorate([a.ViewChild("tasksContainer",{static:!0}),i.__metadata("design:type",a.ElementRef)],p.prototype,"tasksContainer",void 0),i.__decorate([a.ViewChild("dragPopupContainer",{static:!1,read:a.ViewContainerRef}),i.__metadata("design:type",a.ViewContainerRef)],p.prototype,"dragPopupContainer",void 0),i.__decorate([a.ViewChild("dependencyDragCreatePolyline",{static:!1}),i.__metadata("design:type",a.ElementRef)],p.prototype,"dependencyDragCreatePolyline",void 0),i.__decorate([a.HostBinding("class.k-gantt-timeline"),i.__metadata("design:type",Boolean)],p.prototype,"hostClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],p.prototype,"rows",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],p.prototype,"slots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],p.prototype,"groupSlots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],p.prototype,"tableWidth",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],p.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],p.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],p.prototype,"taskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],p.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],p.prototype,"taskClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],p.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],p.prototype,"dragScrollSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],p.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],p.prototype,"isTaskSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],p.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],p.prototype,"dependencies",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],p.prototype,"timelineContainerPress",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],p.prototype,"timelineContainerDrag",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],p.prototype,"timelineContainerRelease",void 0),i.__decorate([a.Component({selector:"kendo-gantt-timeline",template:'\n <div class="k-timeline k-grid k-widget">\n <div class="k-grid-header">\n <div #timelineHeaderWrap class="k-grid-header-wrap">\n <table\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttHeaderTableBody\n [groupSlots]="groupSlots"\n [slots]="slots">\n </tbody>\n </table>\n </div>\n </div>\n \x3c!-- tabindex="-1" required for https://bugzilla.mozilla.org/show_bug.cgi?id=1069739 --\x3e\n <div\n #timelineContent\n class="k-grid-content"\n tabindex="-1"\n role="tree"\n aria-roledescription="Timeline"\n kendoGanttTimelineScrollable\n [scrollSettings]="dragScrollSettings"\n kendoDraggable\n [enableDrag]="draggableEnabled"\n (kendoPress)="timelineContainerPress.emit($event)"\n (kendoDrag)="timelineContainerDrag.emit($event)"\n (kendoRelease)="timelineContainerRelease.emit($event)"\n >\n <div class="k-gantt-tables">\n <table\n class="k-gantt-rows"\n [style.width.px]="tableWidth"\n role="presentation"\n >\n <tbody>\n <tr *ngFor="let item of rows; let i = index;"\n [class.k-alt]="i % 2"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class="k-gantt-columns"\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <colgroup>\n <col *ngFor="let item of slots">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor="let item of slots"\n [class.k-nonwork-hour]="isNonWorking(item)"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class="k-gantt-tasks"\n role="presentation"\n style="border-collapse: collapse;"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]="rows"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [summaryTaskTemplate]="summaryTaskTemplate"\n [taskClass]="taskClass"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </tbody>\n </table>\n </div>\n <svg class="k-gantt-dependencies-svg">\n <polyline\n *ngFor="let dependency of dependencies"\n kendoGanttDependency\n [dependency]="dependency"\n />\n <polyline #dependencyDragCreatePolyline />\n </svg>\n\n \x3c!-- placeholder for the dependency drag popup; its position is not arbitrary - the popup is intended to be absolutely positioned inside the .k-grid-content element --\x3e\n <ng-container #dragPopupContainer></ng-container>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[o.ScrollSyncService,d.DependencyDomService,a.Renderer2,a.NgZone])],p));function p(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.timelineContainerPress=new a.EventEmitter,this.timelineContainerDrag=new a.EventEmitter,this.timelineContainerRelease=new a.EventEmitter,this.subscriptions=new r.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(s.filter(function(e){return l.isPresent(e.timelineRow)}),s.switchMap(function(e){return o.zone.onStable.pipe(s.take(1),s.map(function(){return e}))})).subscribe(function(e){e=e.timelineRow,e=c.isDocumentAvailable()?e.getBoundingClientRect().height:0;o.renderer.setStyle(o.timelineColumns.nativeElement,"height",(o.rows||[]).length*e+"px")}))}t.GanttTimelineComponent=d},function(e,t,n){"use strict";n.r(t);function i(){}var o,a,r,s=n(0),c=n(1),d=n(7),l=n(5),p=n(6),u=n(4),h=n(2),b=n(12),m=n(8),g=n(10),f=n(9),v=n(11),y=null,_={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"},O={get browser(){return"undefined"==typeof window||y?y:y=function(e){var t,n={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},i={};for(t in n)if(n.hasOwnProperty(t)){var o=e.match(n[t]);if(o){i[t]=!0,i[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,i.version=parseInt(document.documentMode||o[2],10);break}}return i}(window.navigator.userAgent)}}.browser,j=function(e){var t=Object.keys(_);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return j=function(e){return n.exec(e)},n.exec(e)},k=((r=i)&&(x.__proto__=r),((x.prototype=Object.create(r&&r.prototype)).constructor=x).prototype.toHSV=function(){return this},x.prototype.toRGB=function(){return this},x.prototype.toHex=function(e){return this.toBytes().toHex(e)},x.prototype.toBytes=function(){return this},x.prototype.toCss=function(e){return"#"+this.toHex(e)},x.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},x.prototype.toDisplay=function(){return O.msie&&O.version<9?this.toCss():this.toCssRgba()},x.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===M(e).toCssRgba()},x.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),e=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-e.r),2)+Math.pow(.59*(t.g-e.g),2)+Math.pow(.11*(t.b-e.b),2))},x.prototype.clone=function(){var e=this.toBytes();return e=e===this?new S(e.r,e.g,e.b,e.a):e},x),C=((a=k)&&(I.__proto__=a),((I.prototype=Object.create(a&&a.prototype)).constructor=I).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,a=r;return 0==s?new P(0,0,a,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 P(e,t,a,this.a))},I.prototype.toHSL=function(){var e,t=this.r,n=this.g,i=this.b,o=Math.max(t,n,i),a=Math.min(t,n,i),r=(o+a)/2;if(o===a)e=c=0;else{var s=o-a,c=.5<r?s/(2-o-a):s/(o+a);switch(o){case t:e=(n-i)/s+(n<i?6:0);break;case n:e=(i-t)/s+2;break;case i:e=(t-n)/s+4}}return new F(60*e,100*c,100*r,this.a)},I.prototype.toBytes=function(){return new S(255*this.r,255*this.g,255*this.b,this.a)},I),S=((o=C)&&(w.__proto__=o),((w.prototype=Object.create(o&&o.prototype)).constructor=w).prototype.toRGB=function(){return new o(this.r/255,this.g/255,this.b/255,this.a)},w.prototype.toHSV=function(){return this.toRGB().toHSV()},w.prototype.toHSL=function(){return this.toRGB().toHSL()},w.prototype.toHex=function(e){var t=E(this.r,2)+E(this.g,2)+E(this.b,2);return e&&e.alpha&&(t+=E(Math.round(255*this.a),2)),t},w.prototype.toBytes=function(){return this},w);function w(e,t,n,i){o.call(this,Math.round(e),Math.round(t),Math.round(n),i)}function I(e,t,n,i){a.call(this),this.r=e,this.g=t,this.b=n,this.a=i}function x(){r.call(this)}function E(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var D,T,P=((T=k)&&(V.__proto__=T),((V.prototype=Object.create(T&&T.prototype)).constructor=V).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),i=i-r,s=a*(1-o),c=a*(1-o*i),d=a*(1-o*(1-i));switch(r){case 0:e=a,t=d,n=s;break;case 1:e=c,t=a,n=s;break;case 2:e=s,t=a,n=d;break;case 3:e=s,t=c,n=a;break;case 4:e=d,t=s,n=a;break;default:e=a,t=s,n=c}}return new C(e,t,n,this.a)},V.prototype.toHSL=function(){return this.toRGB().toHSL()},V.prototype.toBytes=function(){return this.toRGB().toBytes()},V),F=((D=k)&&(R.__proto__=D),((R.prototype=Object.create(D&&D.prototype)).constructor=R).prototype.toRGB=function(){var e,t,n,i=this.h/360,o=this.s/100,a=this.l/100;return 0==o?e=t=n=a:(e=B(o=2*a-(a=a<.5?a*(1+o):a+o-a*o),a,i+1/3),t=B(o,a,i),n=B(o,a,i-1/3)),new C(e,t,n,this.a)},R.prototype.toHSV=function(){return this.toRGB().toHSV()},R.prototype.toBytes=function(){return this.toRGB().toBytes()},R);function R(e,t,n,i){D.call(this),this.h=e,this.s=t,this.l=n,this.a=i}function V(e,t,n,i){T.call(this),this.h=e,this.s=t,this.v=n,this.a=i}function B(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function A(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function M(e,t){var n;if(null==e||"none"===e)return null;if(e instanceof k)return e;var i=e.toLowerCase();if(e=j(i))return(i="transparent"===e[1]?new C(1,1,1,0):M(_[e[1]],t)).match=[e[1]],i;if((e=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?n=new S(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1):(e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?n=new S(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),1):(e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?n=new S(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),A(e[4]+e[4])):(e=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?n=new S(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),A(e[4])):(e=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(i))?n=new S(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),1):(e=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(i))?n=new S(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])):(e=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(i))?n=new C(parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])/100,1):(e=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(i))&&(n=new C(parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])/100,parseFloat(e[4]))),n)n.match=e;else if(!t)throw new Error("Cannot parse color: "+i);return n}var L,N=((L=i)&&(z.__proto__=L),((z.prototype=Object.create(L&&L.prototype)).constructor=z).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)},z.prototype.resolveColor=function(e){e=(e=(e="#"===(e=e||"black").charAt(0)?e.substr(1,6):e).replace(/ /g,"")).toLowerCase();return z.namedColors[e]||e},z.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:255<e?255:e},z.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},z.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},z.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},z.prototype.isDark=function(){return this.percBrightness()<180},z.fromBytes=function(e,t,n,i){return new S(e,t,n,null!=i?i:1)},z.fromRGB=function(e,t,n,i){return new C(e,t,n,null!=i?i:1)},z.fromHSV=function(e,t,n,i){return new P(e,t,n,null!=i?i:1)},z.fromHSL=function(e,t,n,i){return new F(e,t,n,null!=i?i:1)},z);function z(e){if(L.call(this),1===arguments.length)for(var t=z.formats,n=this.resolveColor(e),i=0;i<t.length;i++){var o=t[i].re,a=t[i].process,o=o.exec(n);o&&(o=a(o),this.r=o[0],this.g=o[1],this.b=o[2])}else this.r=e,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)}N.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)]}}],N.namedColors=_;var H=N;n.d(t,"CheckBoxModule",function(){return ro}),n.d(t,"ColorInputComponent",function(){return Ki}),n.d(t,"ContrastValidationComponent",function(){return no}),n.d(t,"ContrastComponent",function(){return io}),n.d(t,"FocusOnDomReadyDirective",function(){return to}),n.d(t,"ColorGradientLocalizationService",function(){return Hi}),n.d(t,"ColorPaletteLocalizationService",function(){return qi}),n.d(t,"ColorPickerLocalizationService",function(){return zi}),n.d(t,"ColorPickerCustomMessagesComponent",function(){return Ji}),n.d(t,"ColorPickerMessages",function(){return Qi}),n.d(t,"ColorPaletteService",function(){return Zi}),n.d(t,"MaskingService",function(){return rn}),n.d(t,"NumericTextBoxMessages",function(){return mt}),n.d(t,"RadioButtonModule",function(){return co}),n.d(t,"RangeSliderCustomMessagesComponent",function(){return vn}),n.d(t,"RangeSliderMessages",function(){return gn}),n.d(t,"SHARED_DIRECTIVES",function(){return Rn}),n.d(t,"SliderCustomMessagesComponent",function(){return bn}),n.d(t,"SliderMessages",function(){return un}),n.d(t,"SliderBase",function(){return Le}),n.d(t,"SlidersCommonModule",function(){return pn}),n.d(t,"SwitchCustomMessagesComponent",function(){return jn}),n.d(t,"Messages",function(){return _n}),n.d(t,"TextFieldsBase",function(){return An}),n.d(t,"TextBoxCustomMessagesComponent",function(){return Tn}),n.d(t,"TextBoxMessages",function(){return Dn}),n.d(t,"SliderComponent",function(){return Ne}),n.d(t,"RangeSliderComponent",function(){return He}),n.d(t,"LabelTemplateDirective",function(){return Me}),n.d(t,"SwitchComponent",function(){return Ke}),n.d(t,"TextBoxContainerComponent",function(){return Ue}),n.d(t,"TextBoxDirective",function(){return $e}),n.d(t,"TextAreaDirective",function(){return Ge}),n.d(t,"NumericTextBoxComponent",function(){return bt}),n.d(t,"NumericTextBoxCustomMessagesComponent",function(){return gt}),n.d(t,"MaskedTextBoxComponent",function(){return cn}),n.d(t,"InputsModule",function(){return go}),n.d(t,"SliderTicksComponent",function(){return ln}),n.d(t,"SliderModule",function(){return mn}),n.d(t,"RangeSliderModule",function(){return yn}),n.d(t,"SwitchModule",function(){return kn}),n.d(t,"NumericTextBoxModule",function(){return Sn}),n.d(t,"MaskedTextBoxModule",function(){return wn}),n.d(t,"TextBoxModule",function(){return Bn}),n.d(t,"TextAreaModule",function(){return zn}),n.d(t,"ColorPickerComponent",function(){return $i}),n.d(t,"ColorPaletteComponent",function(){return Xi}),n.d(t,"ColorGradientComponent",function(){return Wi}),n.d(t,"ColorPickerModule",function(){return oo}),n.d(t,"ActiveColorClickEvent",function(){return Kn}),n.d(t,"CheckBoxDirective",function(){return ao}),n.d(t,"RadioButtonDirective",function(){return so}),n.d(t,"HintComponent",function(){return ho}),n.d(t,"ErrorComponent",function(){return po}),n.d(t,"FormFieldComponent",function(){return bo}),n.d(t,"FormFieldModule",function(){return mo}),n.d(t,"TextBoxComponent",function(){return En}),n.d(t,"TextBoxPrefixTemplateDirective",function(){return xn}),n.d(t,"TextBoxSuffixTemplateDirective",function(){return In}),n.d(t,"TextAreaComponent",function(){return Ln}),n.d(t,"TextAreaSuffixComponent",function(){return Nn}),n.d(t,"InputSeparatorComponent",function(){return Fn}),n.d(t,"SharedModule",function(){return Vn}),n.d(t,"LocalizedColorPickerMessagesDirective",function(){return eo}),n.d(t,"LocalizedNumericTextBoxMessagesDirective",function(){return Cn}),n.d(t,"LocalizedTextBoxMessagesDirective",function(){return Pn}),n.d(t,"LocalizedSliderMessagesDirective",function(){return hn}),n.d(t,"LocalizedRangeSliderMessagesDirective",function(){return fn}),n.d(t,"LocalizedSwitchMessagesDirective",function(){return On});function K(e){return null!=e}function G(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t}function W(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function U(e){return Math.min(e,20)}function $(e,t){if(0===t)return NaN;var n=pe(e,t);return(n=Math.pow(10,n))*e/(n*t)}function Z(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth}function q(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),(n=void 0===n?1:n)<=0)throw new Error("Invalid argument: smallStep must be a positive number");return e=Math.abs(be(t,e)),n=Math.floor($(e,n)),he(n,1)}function Y(e){var t=e.trackWidth,n=e.min,i=e.max,o=e.reverse,e=e.value,i=t/Math.abs(i-n),n=K(e)?i*(e-n):n;return o&&(n=t-n),Math.floor(n)}function X(e){return-1<e.id.indexOf("k-start-handle")}function Q(e,t,n){return e<n?e:n<t?t:n}function J(e,t,n){return n?[Q(e,t,n[0]),Q(e,t,n[1])]:[t,t]}function ee(e){return e}function te(e,t,n){var i,o=n.min,a=n.max,r=n.vertical,s=n.rtl,c=(i=t.getBoundingClientRect(),c=document.documentElement,{left:i.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||0),top:i.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||0)}),t=(r?e.pageY-c.top:e.pageX-c.left)*((a-o)/(r?t.clientHeight:t.clientWidth)),o=s||r?a-t:o+t,t=le(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,o=t.max,o=ye(e,i,o);if(e!==o)return o;o=fe(e,t),t=ve(e,t);return(e-i)%n==0?e:t-e<=(t-o)/2?t:o}(ue(o,t+1),n)}function ne(e){return 0<=e.className.indexOf("k-button-increase")||0<=e.className.indexOf("k-button-decrease")}function ie(e){return ve(e.value,e)}function oe(e){return fe(e.value,e)}function ae(e){return ve(e.value,e,!0)}function re(e){return fe(e.value,e,!0)}function se(e){if(c.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")}var ce,de=function(e,t,n){return!K(e)||isNaN(e)||e<=t?t:n<=e?n:e},le=function(e){return(String(e).split(".")[1]||"").length},pe=function(e,t){return Math.max(le(e),le(t))},ue=function(e,t){t=U(t);return parseFloat(e.toFixed(t))},he=function(e,t){var n=pe(e,t);return ue(e+t,n)},be=function(e,t){return he(e,-t)},me=function(e,t){var n=le(e)+le(t);return ue(e*t,n)},ge=function(e,t){return Math.abs(be(e,me(t,Math.floor($(e,t)))))},fe=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?me(a,t):a,a=be(e,o),e=ge(a,t),e=be(a,0===e?t:e);return ye(he(e,o),o,i)},ve=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?me(a,t):a,a=be(e,o),e=ge(a,t),t=he(be(a,e),t);return ye(he(t,o),o,i)},ye=function(e,t,n){return Math.max(Math.min(e,n),t)},t=(je.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},je.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)},je.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=Z(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},je.prototype.trackWidth=function(){return this.props.fixedTickWidth?Z(this.props):this.elementSize(this.track.parentElement)},je.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=q(t,n,i),e=this.trackWidth(),a=e/be(n,t),r=[],s=0,c=0,d=0;d<o;d++){var c=+(c+=0===d||d===o-1?i/2*a:i*a).toFixed(2)-.01,l=Math.round(c-s);r.push(l),s+=l}return e<=s&&--r[r.length-1],r},je.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce(function(e,t){return e+t},0),t=this.trackWidth()-t;0!=t&&(t=t+this.elementOffset(this.track),e.style.paddingTop=t+"px")},je.prototype.elementOffset=function(e){var t=this.props.vertical,e=getComputedStyle(e);return parseInt(t?e.bottom:e.left,10)},je.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},je),_e=(ce=t,Object(s.__extends)(Oe,ce),Oe.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(),t=Q(n,i,this.props.value);this.handlePosition=Y({min:i,max:n,reverse:o,value:t,trackWidth:r}),this.renderer.setStyle(e,a,this.handlePosition+"px")},Oe.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",t=this.handlePosition;n&&(t=this.trackWidth()-t),this.renderer.setStyle(e,i,t+"px")},Oe);function Oe(){return null!==ce&&ce.apply(this,arguments)||this}function je(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()}function ke(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return e&&e.nativeElement&&e.nativeElement[t].apply(e.nativeElement,n)}function Ce(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function Se(e){return"[object Function]"===Object.prototype.toString.call(e)}function we(e){return 0<=e?Math.floor(e):Math.ceil(e)}function Ie(e){}function xe(e){return!isNaN(e)&&null!==e}var Ee,De,Te,Pe,Fe,Re,Ve,Be,Ae={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642518309,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"},Me=Object(s.__decorate)([Object(c.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(s.__param)(0,Object(c.Optional)()),Object(s.__metadata)("design:paramtypes",[c.TemplateRef])],ot),Le=(Object.defineProperty(it.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),it.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},it.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(d.NgControl,null)},Object.defineProperty(it.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),it.prototype.isEmpty=function(){return!1},Object.defineProperty(it.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[h.Keys.ArrowLeft]=t?ie:oe,e[h.Keys.ArrowRight]=t?oe:ie,e[h.Keys.ArrowDown]=oe,e[h.Keys.ArrowUp]=ie,e[h.Keys.PageUp]=ae,e[h.Keys.PageDown]=re,e[h.Keys.Home]=function(e){return e.min},e[h.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),it.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(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Function)],it.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],it.prototype,"tickPlacement",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],it.prototype,"vertical",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],it.prototype,"min",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],it.prototype,"max",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],it.prototype,"smallStep",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],it.prototype,"largeStep",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],it.prototype,"fixedTickWidth",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],it.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],it.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],it.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],it.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],it.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],it.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],it.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-slider-horizontal"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],it.prototype,"horizontalClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-slider-vertical"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],it.prototype,"verticalClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-slider"),Object(s.__metadata)("design:type",Boolean)],it.prototype,"sliderClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-widget"),Object(s.__metadata)("design:type",Boolean)],it.prototype,"widgetClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],it.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.ViewChild)("wrap",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],it.prototype,"wrapper",void 0),Object(s.__decorate)([Object(c.ViewChild)("track",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],it.prototype,"track",void 0),Object(s.__decorate)([Object(c.ViewChild)("sliderSelection",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],it.prototype,"sliderSelection",void 0),Object(s.__decorate)([Object(c.ViewChild)("ticks",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],it.prototype,"ticksContainer",void 0),Object(s.__decorate)([Object(c.ViewChild)("ticks",{static:!1}),Object(s.__metadata)("design:type",Object)],it.prototype,"ticks",void 0),Object(s.__decorate)([Object(c.ContentChild)(Me,{static:!1}),Object(s.__metadata)("design:type",Me)],it.prototype,"labelTemplate",void 0),it),Ne=(Ve=Le,Object(s.__extends)(nt,Ve),Be=nt,Object.defineProperty(nt.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"currentValue",{get:function(){return K(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),nt.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,ke(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},nt.prototype.blur=function(){this.focusChangedProgrammatically=!0,ke(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},nt.prototype.ngOnChanges=function(e){var t=this;Object(h.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(p.take)(1)).subscribe(function(){t.sizeComponent(!1)})},nt.prototype.ngAfterViewInit=function(){var e=this;Object(h.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())},nt.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(nt.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),nt.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},nt.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(te(e,this.track.nativeElement,this.getProps()))},nt.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},nt.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},nt.prototype.registerOnChange=function(e){this.ngChange=e},nt.prototype.registerOnTouched=function(e){this.ngTouched=e},nt.prototype.changeValue=function(e){var t=this;G(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()})},nt.prototype.sizeComponent=function(e){var t,n,i,o,a;Object(h.isDocumentAvailable)()&&(t=this.wrapper.nativeElement,a=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null,e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([a,n,i,o,this.hostElement.nativeElement]),o=this.getProps(),(a=new _e(o,t,a,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(i),a.positionSelection(n),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(nt.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e&&this.sliderSelection&&this.draghandle&&(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}),nt.prototype.setValueChangeInterval=function(i,o){var a=this;this.ngZone.runOutsideAngular(function(){var e=Object(l.fromEvent)(i,"mousedown"),t=Object(l.fromEvent)(i,"mouseup"),n=Object(l.fromEvent)(i,"mouseout"),e=e.pipe(Object(p.filter)(function(e){return 0===e.button&&!a.isDisabled}),Object(p.concatMap)(function(){return Object(l.interval)(150).pipe(Object(p.startWith)(-1),Object(p.takeUntil)(Object(l.merge)(t,n)))})).subscribe(function(){a.isFocused||ke(a.draghandle,"focus"),o()});a.subscriptions.add(e)})},nt.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:Q(this.max,this.min,this.value),vertical:this.vertical}},nt.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandle.nativeElement&&t.handleBlur(),n=!1):i||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){i=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){i=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===h.Keys.Tab}))})},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],nt.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],nt.prototype,"dragHandleTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],nt.prototype,"incrementTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],nt.prototype,"animate",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],nt.prototype,"decrementTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],nt.prototype,"showButtons",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],nt.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],nt.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.ViewChild)("draghandle",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],nt.prototype,"draghandle",void 0),Object(s.__decorate)([Object(c.ViewChild)("decreaseButton",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],nt.prototype,"decreaseButton",void 0),Object(s.__decorate)([Object(c.ViewChild)("increaseButton",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],nt.prototype,"increaseButton",void 0),Be=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Be})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Be})}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService,c.Injector,c.Renderer2,c.NgZone,c.ChangeDetectorRef,c.ElementRef])],nt)),ze=(Re=t,Object(s.__extends)(tt,Re),tt.prototype.positionHandle=function(e){var t,n,i,o,a,r;e.id&&(t=(r=this.props).max,n=r.min,i=r.reverse,o=r.vertical?"bottom":"left",a=this.trackWidth(),r=X(e)?J(t,n,this.props.value)[0]:J(t,n,this.props.value)[1],X(e)?(this.startHandlePosition=Y({min:n,max:t,reverse:i,value:r,trackWidth:a}),this.renderer.setStyle(e,o,this.startHandlePosition+"px")):(this.endHandlePosition=Y({min:n,max:t,reverse:i,value:r,trackWidth:a}),this.renderer.setStyle(e,o,this.endHandlePosition+"px")))},tt.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",n=Math.abs(this.endHandlePosition-this.startHandlePosition),e=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,a,n+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(e)+"px":parseFloat(e)+"px")},tt),He=(Pe=Le,Object(s.__extends)(et,Pe),(Fe=et).prototype.focus=function(){this.focusChangedProgrammatically=!0,ke(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},et.prototype.blur=function(){this.focusChangedProgrammatically=!0,ke("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},et.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),Pe.prototype.ngOnInit.call(this)},et.prototype.ngOnChanges=function(e){var t=this;Object(h.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&se(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(p.take)(1)).subscribe(function(){t.sizeComponent()}))},et.prototype.ngAfterViewInit=function(){var e=this;Object(h.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},et.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},et.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(et.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),et.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},et.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};function o(){return t.changeValue([te(e,t.track.nativeElement,t.getProps()),t.value[1]])}function a(){return t.changeValue([t.value[0],te(e,t.track.nativeElement,t.getProps())])}function r(){return t.changeValue([te(e,t.track.nativeElement,t.getProps()),te(e,t.track.nativeElement,t.getProps())])}var s=e.pageX<this.lastHandlePosition.x,c=e.pageX>this.lastHandlePosition.x,d=e.pageY>this.lastHandlePosition.y,l=X(this.draggedHandle),i=this.vertical,n=!i,s=i&&d||(this.reverse?n&&c:n&&s);(this.value[0]===this.value[1]?s?l?o:r:l?r:a:l?o:a)()},et.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},et.prototype.writeValue=function(e){se(e),this.value=e,this.sizeComponent()},et.prototype.registerOnChange=function(e){this.ngChange=e},et.prototype.registerOnTouched=function(e){this.ngTouched=e},et.prototype.changeValue=function(e){var t,n=this;this.value&&(t=this.value,G(t[0],e[0])&&G(t[1],e[1]))||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.value&&n.valueChange.emit(e),n.sizeComponent()})},et.prototype.sizeComponent=function(){var e,t,n,i,o,a;Object(h.isDocumentAvailable)()&&(e=this.wrapper.nativeElement,a=this.track.nativeElement,t=this.sliderSelection.nativeElement,n=this.draghandleStart.nativeElement,i=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null,this.resetStyles([a,t,n,i,o,this.hostElement.nativeElement]),o=this.getProps(),(a=new ze(o,e,a,this.renderer)).resizeTrack(),this.ticks&&a.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),a.positionHandle(n),a.positionHandle(i),a.positionSelection(n,t),this.fixedTickWidth&&a.resizeWrapper())},Object.defineProperty(et.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),et.prototype.isEmpty=function(){return!1},Object.defineProperty(et.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd&&(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}),et.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:J(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},et.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandleStart.nativeElement&&e.relatedTarget!==t.draghandleEnd.nativeElement&&t.handleBlur(),n=!1):i||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){i=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){i=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===h.Keys.Tab}))})},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Array)],et.prototype,"value",void 0),Object(s.__decorate)([Object(c.ViewChild)("draghandleStart",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],et.prototype,"draghandleStart",void 0),Object(s.__decorate)([Object(c.ViewChild)("draghandleEnd",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],et.prototype,"draghandleEnd",void 0),Fe=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoRangeSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Fe})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Fe})}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService,c.Injector,c.Renderer2,c.NgZone,c.ChangeDetectorRef,c.ElementRef])],et)),Ke=(Te=Je,Object.defineProperty(Je.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"ieClass",{get:function(){return m.browser&&m.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(Je.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),Je.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(p.skip)(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(d.NgControl,null),this.ngZone.onStable.pipe(Object(p.take)(1)).subscribe(function(){return t.initialized=!0})},Je.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},Je.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},Je.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},Je.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},Je.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},Je.prototype.registerOnChange=function(e){this.ngChange=e},Je.prototype.registerOnTouched=function(e){this.ngTouched=e},Je.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==h.Keys.Space&&t!==h.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},Je.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},Je.prototype.isEmpty=function(){return!1},Je.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(Je.prototype,"focused",{set:function(e){var t;this.isFocused!==e&&this.hostElement&&(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}),Je.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(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Je.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Je.prototype,"onLabel",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Je.prototype,"offLabel",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[Boolean])],Je.prototype,"checked",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Je.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Je.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Je.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Je.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],Je.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],Je.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Je.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.ViewChild)("wrapper",{static:!0}),Object(s.__metadata)("design:type",Object)],Je.prototype,"wrapper",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Je.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-ie"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Je.prototype,"ieClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Je.prototype,"ariaDisabled",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Je.prototype,"ariaReadonly",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-switch"),Object(s.__metadata)("design:type",Boolean)],Je.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Je.prototype,"disabledClass",null),Te=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoSwitch",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Te})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Te})}],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(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef,u.LocalizationService,c.Injector,c.ChangeDetectorRef,c.NgZone])],Je)),Ge=(De=Qe,Object.defineProperty(Qe.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),Qe.prototype.writeValue=function(e){this.elementValue=e,this.resize()},Qe.prototype.registerOnChange=function(e){this.ngChange=e},Qe.prototype.registerOnTouched=function(e){this.ngTouched=e},Qe.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},Qe.prototype.ngOnInit=function(){var t=this,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.listeners=[t.renderer.listen(e,"focus",t.handleFocus.bind(t)),t.renderer.listen(e,"blur",t.handleBlur.bind(t)),t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})],Object(h.isDocumentAvailable)()&&t.autoSize&&(t.resizeSubscription=Object(l.fromEvent)(window,"resize").pipe(Object(p.debounceTime)(50)).subscribe(function(){return t.resize()})),t.inputSubscription=Object(l.fromEvent)(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(d.NgControl,null)},Qe.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()},Qe.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(Qe.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),Qe.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},Qe.prototype.resize=function(){var e,t;this.autoSize&&(e=this.element.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px",(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Qe.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(h.hasObservers)(this.onValueChange)||Object(h.hasObservers)(this.valueChange))&&this.zone.run(function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()}),this.resize()},Qe.prototype.handleFocus=function(){var e=this;Object(h.hasObservers)(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},Qe.prototype.handleBlur=function(){var e=this;(Object(h.hasObservers)(this.onBlur)||W(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea"),Object(s.__metadata)("design:type",Boolean)],Qe.prototype,"elementClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-autofill"),Object(s.__metadata)("design:type",Boolean)],Qe.prototype,"autofillClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Qe.prototype,"direction",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Qe.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Qe.prototype,"autoSize",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qe.prototype,"value",void 0),De=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return De}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return De})}],selector:"textarea[kendoTextArea]"}),Object(s.__param)(5,Object(c.Optional)()),Object(s.__param)(5,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef,c.NgZone,c.ChangeDetectorRef,c.Injector,Boolean])],Qe)),We=(Object.defineProperty(Xe.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}),Xe),Ue=(Object.defineProperty(Ye.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),Ye.prototype.ngAfterContentInit=function(){var t=this;if(this.formControl||this.kendoInput){var e=new We(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(e){return function(){t.focused=e,t.updateState()}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),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"))});var n=function(){return t.updateState()};n(),this.subscribe(e,"onValueChange",n),this.id&&e.focusableId?this.id=e.focusableId:this.id?e.focusableId=this.id:e.focusableId?this.id=e.focusableId:(n="_"+Object(h.guid)(),e.focusableId=n,this.id=n)}else if(Object(c.isDevMode)())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},Ye.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions=[]},Ye.prototype.subscribe=function(e,t,n){e[t]instanceof c.EventEmitter&&(n=e[t].subscribe(n),this._subscriptions.push(n))},Ye.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,Se(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=Se(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(s.__decorate)([Object(c.HostBinding)("class.k-textbox-container"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ye.prototype,"hostClasses",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea-wrapper"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ye.prototype,"textareaElementClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-focused"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ye.prototype,"focusedClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-invalid"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ye.prototype,"invalidClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Ye.prototype,"direction",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ye.prototype,"id",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ye.prototype,"floatingLabel",void 0),Object(s.__decorate)([Object(c.ContentChild)(h.KendoInput,{static:!1}),Object(s.__metadata)("design:type",Object)],Ye.prototype,"kendoInput",void 0),Object(s.__decorate)([Object(c.ContentChild)(Ge,{static:!1}),Object(s.__metadata)("design:type",Ge)],Ye.prototype,"textarea",void 0),Object(s.__decorate)([Object(c.ContentChild)(d.NgControl,{static:!1}),Object(s.__metadata)("design:type",d.NgControl)],Ye.prototype,"formControl",void 0),Object(s.__decorate)([Object(c.Component)({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),Object(s.__param)(3,Object(c.Optional)()),Object(s.__param)(3,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[c.ElementRef,c.Renderer2,c.ChangeDetectorRef,Boolean])],Ye)),$e=(Ee=qe,Object.defineProperty(qe.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(qe.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),qe.prototype.ngAfterViewInit=function(){var t=this,e=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(e,"focus",function(){return t.onFocus.emit()}),this.renderer.listen(e,"blur",function(){return t.onBlur.emit()})],this.ngZone.runOutsideAngular(function(){t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})})},qe.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()})},Object(s.__decorate)([Object(c.HostBinding)("class.k-textbox"),Object(s.__metadata)("design:type",Boolean)],qe.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],qe.prototype,"value",null),Ee=Object(s.__decorate)([Object(c.Directive)({selector:"input[kendoTextBox]",providers:[{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Ee})}]}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef,c.NgZone])],qe)),Ze=/[eE][\-+]?([0-9]+)/;function qe(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClass=!0,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.onValueChange=new c.EventEmitter,this.autoFillStart=new c.EventEmitter,this.autoFillEnd=new c.EventEmitter,this.listeners=[]}function Ye(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")}function Xe(e,t){function n(e){return e instanceof l.Observable||e instanceof c.EventEmitter}n((this.component=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)}function Qe(e,t,n,i,o,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new c.EventEmitter,this.autoSize=!1,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.onValueChange=new c.EventEmitter,this.autoFillStart=new c.EventEmitter,this.autoFillEnd=new c.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}function Je(e,t,n,i,o,a){var r=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,this.ngZone=a,this.focusableId="k-"+Object(h.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){r.focused=!0,Object(h.hasObservers)(r.onFocus)&&r.ngZone.run(function(){r.onFocus.emit()})},this.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(Object(h.hasObservers)(r.onBlur)||W(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()})},Object(b.validatePackage)(Ae),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}function et(e,t,n,i,o,a){var r=Pe.call(this,e,t,n,i,o,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=i,r.changeDetector=o,r.hostElement=a,r.startHandleId="k-start-handle-"+Object(h.guid)(),r.endHandleId="k-end-handle-"+Object(h.guid)(),r.focusableId=r.startHandleId,r.handleZIndex=0,r.activeHandle="startHandle",r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t,n,i;r.isDisabled||(r.value=r.value||[r.min,r.min],t=te(e,r.track.nativeElement,r.getProps()),n=void 0,e=(i=n=r.value)[0],i=i[1],t<=e?(n=[t,i],r.activeHandle="startHandle"):e<t&&t<i?t<(e+i)/2?(n=[t,i],r.activeHandle="startHandle"):(n=[e,t],r.activeHandle="endHandle"):i<=t&&(n=[e,t],r.activeHandle="endHandle"),ke("startHandle"===r.activeHandle?r.draghandleStart:r.draghandleEnd,"focus"),r.changeValue(n))},r.onKeyDown=function(e){r.value=r.value||[r.min,r.min];var t,n=r.getProps(),i=n.max,o=n.min,a=r.keyBinding[e.keyCode];!r.isDisabled&&a&&(r.renderer.setStyle(e.target,"zIndex",++r.handleZIndex),t=X(e.target),n=a(Object(s.__assign)({},n,{value:t?r.value[0]:r.value[1]})),t?n>r.value[1]&&(r.value[1]=n):n<r.value[0]&&(r.value[0]=n),n=Q(i,o,n),n=t?[n,r.value[1]]:[r.value[0],n],r.changeValue(n),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(Object(h.hasObservers)(r.onBlur)||W(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}function tt(){return null!==Re&&Re.apply(this,arguments)||this}function nt(e,t,n,i,o,a){var r=Ve.call(this,e,t,n,i,o,a)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=i,r.changeDetector=o,r.hostElement=a,r.focusableId="k-"+Object(h.guid)(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||ne(t)||ne(t.parentNode)||(e=te(e,r.track.nativeElement,r.getProps()),r.changeValue(e)),ke(r.draghandle,"focus")},r.onKeyDown=function(e){var t=r.getProps(),n=t.max,i=t.min,o=r.keyBinding[e.keyCode];!r.isDisabled&&o&&(t=o(t),r.changeValue(Q(n,i,t)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(fe(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(ve(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(Object(h.hasObservers)(r.onBlur)||W(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}function it(e,t,n,i,o,a){var r=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=o,this.hostElement=a,this.title=ee,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 c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new l.Subscription,this.ifEnabled=function(e,t){r.isDisabled||e.call(r,t)},Object(b.validatePackage)(Ae),this.direction=e.rtl?"rtl":"ltr"}function ot(e){this.templateRef=e}function at(e,t){var n=t-String(e).length,t=e;return 0<n&&(n=new Array(1+n).join("0"),t=parseFloat(e+n)),t}var rt;(t=rt=rt||{})[t.Down=-1]="Down",t[t.None=0]="None",t[t.Up=1]="Up";var st,ct,dt,lt,pt,ut=["min","max","step","decimals"],ht={decimals:null,max:null,min:null,step:1},bt=(pt=yt,Object.defineProperty(yt.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(yt.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),yt.prototype.ngOnInit=function(){var t=this;this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"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(d.NgControl,null)},yt.prototype.ngOnChanges=function(t){var n,i;Object(h.anyChanged)(ut,t,!1)&&this.parseOptions(ut.filter(function(e){return t[e]})),this.verifySettings(),Object(h.anyChanged)(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?(i=this.min,function(e){return!K(i)||!K(e.value)||e.value>=i?null:{minError:{minValue:i,value:e.value}}}):Ie,this.maxValidateFn=this.rangeValidation?(n=this.max,function(e){return!K(n)||!K(e.value)||e.value<=n?null:{maxError:{maxValue:n,value:e.value}}}):Ie,this.ngValidatorChange()),Object(h.anyChanged)(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,Object(h.anyChanged)(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},yt.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},yt.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},yt.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},yt.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},yt.prototype.registerOnChange=function(e){this.ngChange=e},yt.prototype.registerOnTouched=function(e){this.ngTouched=e},yt.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},yt.prototype.focus=function(){ke(this.numericInput,"focus")},yt.prototype.blur=function(){ke(this.numericInput,"blur")},yt.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(yt.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(yt.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(yt.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t,n;this.isFocused!==e&&this.numericWrap&&(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(yt.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),yt.prototype.arrowPress=function(e,t){var n;t.preventDefault(),this.isDisabled||(n=t.button&&2===t.button,t=t.which&&3===t.which,n||t)||(m.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},yt.prototype.updateValue=function(e){var t=this;G(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},yt.prototype.replaceNumpadDotValue=function(){var e,t,n,i,o,a=this.inputValue||"";return this.previousSelection&&(t=(e=this.numericInput.nativeElement).selectionStart,n=e.selectionEnd,i=(o=this.previousSelection).start,o=o.end,e.value=a=a.substring(0,i)+this.decimalSeparator+a.substring(o),this.setSelection(t,n)),a},yt.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},n=t.min,"."===(i=t.separator)&&(i="\\"+i),new RegExp("^"+(t.autoCorrect&&null!==n&&0<=n?"":"-?")+(0===t.decimals?"\\d*":"(?:(?:\\d+("+i+"\\d*)?)|(?:"+i+"\\d*))?")+"$"))),this.numericRegex.test(e);var t,n,i},yt.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,50)},t),this.addStep(e)},yt.prototype.addStep=function(e){e=he(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},yt.prototype.setSelection=function(e,t){this.focused&&ke(this.numericInput,"setSelectionRange",e,t)},yt.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(xe(this.max)&&e>this.max&&(t=this.max),xe(this.min)&&e<this.min&&(t=this.min)),t},yt.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,d=this.max,l=xe(d),p=xe(c),u=void 0,h=void 0,t=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};l&&d<e?0<e?h=!0:u=d:p&&e<c&&(0<e?u=c:h=!0),u?(c=this.tryPadValue(e,u))&&we(e)!==we(u)&&(t=c,r=!0):h&&this.inputValue&&n!==o.length&&(t=parseFloat(o.substr(0,n)+o.substr(n+s))),a=this.limitValue(t),r=(r||a!==t)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+s}return{selectionEnd:r?String(a).length:i,selectionStart:n,value:a}},yt.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,t=at(e,i),i=at(e,i+1);return this.isInRange(t)?n=t:this.isInRange(i)&&(n=i),n},yt.prototype.isInRange=function(e){return!xe(e)||(!xe(this.min)||this.min<=e)&&(!xe(this.max)||e<=this.max)},yt.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},yt.prototype.restrictDecimals=function(e,t){var n,i,o=e;return e&&this.hasDecimals&&(n=this.decimals,i=String(e),t||Ze.test(i)?o=ue(e,n):(i=(e=i.split("."))[1])&&i.length>n&&(i=i.substr(0,n),o=parseFloat(e[0]+"."+i))),o},yt.prototype.formatInputValue=function(e){var t=String(e),n=Ze.exec(t);return(t=n?e.toFixed(U(parseInt(n[1],10))):t).replace(".",this.decimalSeparator)},yt.prototype.formatValue=function(e,t){return null!=e&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},yt.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);t=this.formatValue(e,t);this.elementValue=t,this.inputValue=t},yt.prototype.verifySettings=function(){if(Object(c.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.")},yt.prototype.verifyValue=function(e){if(Object(c.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},yt.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),a=!isNaN(o);if(Object(c.isDevMode)()&&!a&&""!==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]=a?o:ht[n]}}},yt.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},yt.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){e=e.split(this.decimalSeparator)[1];return e&&e.length>this.decimals&&e.lastIndexOf("0")===e.length-1}},yt.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},yt.prototype.selectCaret=function(){var n,e=this.numericInput.nativeElement.selectionStart,t=this.elementValue,i=t.substring(0,e);this.setInputValue(),i.length?(e=this.decimalSeparator,n=e+"0123456789-",i=i.split("").reduce(function(e,t){return n.includes(t)?++e:e},0),i=this.adjustSignificantChars(t,i),this.setSelection(i,i)):this.setSelection(0,0)},yt.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){e=n[0].length,n=n[1].length;return e===t?n-1:n}return 0},yt.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yt.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yt.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"autoCorrect",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],yt.prototype,"format",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"max",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"min",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"decimals",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yt.prototype,"placeholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"step",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"spinners",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"rangeValidation",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],yt.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"changeValueOnScroll",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],yt.prototype,"selectOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],yt.prototype,"maxlength",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],yt.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],yt.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],yt.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.ViewChild)("numericInput",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],yt.prototype,"numericInput",void 0),Object(s.__decorate)([Object(c.ViewChild)("numericWrap",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],yt.prototype,"numericWrap",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],yt.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-widget"),Object(c.HostBinding)("class.k-numerictextbox"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],yt.prototype,"widgetClasses",null),pt=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoNumericTextBox",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return pt}),multi:!0},{provide:d.NG_VALIDATORS,useExisting:Object(c.forwardRef)(function(){return pt}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return pt})}],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(s.__metadata)("design:paramtypes",[g.IntlService,c.Renderer2,u.LocalizationService,c.Injector,c.NgZone,c.ChangeDetectorRef,c.ElementRef])],yt)),mt=(lt=u.ComponentMessages,Object(s.__extends)(vt,lt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],vt.prototype,"decrement",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],vt.prototype,"increment",void 0),vt),gt=(ct=mt,Object(s.__extends)(ft,ct),dt=ft,Object.defineProperty(ft.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),dt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:mt,useExisting:Object(c.forwardRef)(function(){return dt})}],selector:"kendo-numerictextbox-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],ft));function ft(e){var t=ct.call(this)||this;return t.service=e,t}function vt(){return null!==lt&<.apply(this,arguments)||this}function yt(e,t,n,i,o,a,r){var s=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=o,this.changeDetector=a,this.hostElement=r,this.focusableId="k-"+Object(h.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 c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.ArrowDirection=rt,this.arrowDirection=rt.None,this.inputValue="",this.minValidateFn=Ie,this.maxValidateFn=Ie,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=Ie,this.ngTouched=Ie,this.ngValidatorChange=Ie,this.increasePress=function(e){s.arrowPress(rt.Up,e)},this.decreasePress=function(e){s.arrowPress(rt.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==rt.None&&(s.arrowDirection=rt.None,s.changeDetector.detectChanges())},this.handlePaste=function(){s.isPasted=!0},this.handleInput=function(){var e=s.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(s.pressedKey===h.Keys.NumpadDecimal&&(i=s.replaceNumpadDotValue()),s.isPasted&&(i=s.formatInputValue(s.intl.parseNumber(i))),!s.isValid(i))return e.value=s.inputValue,void s.setSelection(t-1,n-1);var o,a=s.intl.parseNumber(i),r=s.restrictDecimals(a);s.autoCorrect&&(r=(o=s.limitInputValue(r)).value,t=o.selectionStart,n=o.selectionEnd),a!==r||s.hasTrailingZeros(i)||!s.focused?(s.setInputValue(r),s.setSelection(t,n)):s.inputValue=i,s.isPasted&&(e.value=s.inputValue),s.updateValue(r),s.previousSelection=null,s.isPasted=!1},this.handleDragEnter=function(){s.focused||s.isDisabled||s.setInputValue(s.value,!0)},this.handleMouseDown=function(){s.mouseDown=!0},this.handleFocus=function(){var e;s.focused||(s.focused=!0,s.isDisabled)||(e=s.selectOnFocus||!s.mouseDown,s.ngZone.runOutsideAngular(function(){setTimeout(function(){e?s.selectAll():s.selectCaret()},0)})),s.mouseDown=!1,Object(h.hasObservers)(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.inputValue!==s.elementValue&&s.handleInput(),s.setInputValue(),(Object(h.hasObservers)(s.onBlur)||W(s.control))&&s.ngZone.run(function(){s.ngTouched(),s.onBlur.emit()})},this.handleKeyDown=function(e){var t;s.isDisabled||(e.keyCode===h.Keys.ArrowDown?t=-1:e.keyCode===h.Keys.ArrowUp&&(t=1),t&&s.step&&(e.preventDefault(),s.addStep(t)),t=s.numericInput.nativeElement,s.previousSelection={end:t.selectionEnd,start:t.selectionStart},s.pressedKey=e.keyCode)},this.handleWheel=function(e){var t;s.focused&&!s.isDisabled&&s.changeValueOnScroll&&(e.preventDefault(),t=0,(e=e).wheelDelta?t=0<(t=e.wheelDelta/120)?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t=t,s.addStep(t))},Object(b.validatePackage)(Ae),this.direction=n.rtl?"rtl":"ltr"}(t=st=st||{})[t.Literal=0]="Literal",t[t.Mask=1]="Mask",t[t.Undefined=2]="Undefined";function _t(e){return(e||"").split("")}function Ot(i,o){return new an(function(e){var t=e.next().char,n=i[t];return"\\"===t?(t=e.next().char,new nn(o.literal(t),e)):new nn(n?o.mask(n):o.literal(t),e)})}function jt(e){var n=e.prompt,i=e.promptPlaceholder;return new an(function(e){var t=e.next().char;return new nn(t===n?i:t,e)})}function kt(n){return new an(function(e){var t=e.next().char;return new nn(n?t:"",e)})}function Ct(e){return e.reduce(function(e,t){return n=t,e.chain(function(t){return n.map(function(e){return t.concat([e])})});var n},(t=[],new an(function(e){return new nn(t,e)})));var t}function St(n){return new an(function(e){for(var t=new nn([],e);!e.eof();)t=t.concat(n.run(e));return t})}function wt(e,t,n){if(void 0===n&&(n=!0),-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(K(e)){if("name"===t)return function(t,e){if(t=t.toLowerCase().trim(),K(_[t]))return t;M(t,e)&&(t=M(t,e).toHex());var n=Object.keys(_).find(function(e){return _[e]===t});if(!n&&!e)throw new Error("The provided color "+t+" is not supported for 'format=\"name\"' property.To display "+t+" color, the component 'format' property shoud be set to 'hex' or 'rgba' ");return n}(e,n);n=M(e.trim(),n);return K(n)?"hex"===t?n.toCss():n.toCssRgba():void 0}}function It(e,t){return t=M(e,t=void 0===t?!0:t),K(t)?t.toBytes():{}}function xt(e){var t=de(e.h,0,359.9),n=de(e.s,0,1),i=de(e.v,0,1),e=de(e.a,0,1);return H.fromHSV(t,n,i,e).toCssRgba()}function Et(e){return xt({h:e,s:1,v:1,a:1})}var Dt,Tt,Pt,Ft,Rt,Vt,Bt,At,Mt,Lt,Nt,zt,Ht,Kt,Gt,Wt,Ut,$t,Zt,qt,Yt,Xt,Qt,Jt,en,tn,nn=(wi.prototype.map=function(e){return new wi(e(this.value),this.rest)},wi.prototype.chain=function(e){return e(this.value,this.rest)},wi.prototype.fold=function(e,t){return e(this.value,this.rest)},wi.prototype.concat=function(t){return this.map(function(n,e){return t.chain(function(e,t){return n.concat([e])})})},wi.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},wi),on=(Si.prototype.eof=function(){return this.inputCursor>=this.input.length},Si.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},Si.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},Si.prototype.eat_input=function(){this.inputCursor++},Si.prototype.eat_control=function(){this.controlCursor++},Si.prototype.eat=function(){this.inputCursor++,this.controlCursor++},Si),an=(Ci.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof on?this.parse(e):this.parse(new on(_t(e),_t(t)))},Ci.prototype.map=function(t){var n=this;return new Ci(function(e){return n.parse(e).map(t)})},Ci.prototype.chain=function(n){var t=this;return new Ci(function(e){return t.parse(e).chain(function(e,t){return n(e).run(t)})})},Ci.prototype.isLiteral=function(e){return this.run(e).type===st.Literal},Ci),rn=(ki.prototype.update=function(e){var t=e.mask,n=e.prompt,i=void 0===n?"":n,o=e.promptPlaceholder,n=void 0===o?" ":o,o=e.rules,o=void 0===o?{}:o,e=e.includeLiterals,e=void 0!==e&&e;this.mask=void 0===t?"":t,this.prompt=i,this.promptPlaceholder=n,this.rules=o,this.includeLiterals=e,this.tokenize()},ki.prototype.validationValue=function(e){var t=e=void 0===e?"":e;return Ct(this.validationTokens).run(e).fold(function(e){t=e.join("")}),t},ki.prototype.rawValue=function(e){var t=e=void 0===e?"":e;return this.rawTokens.length&&Ct(this.rawTokens).run(e).fold(function(e){t=e.join("")}),t},ki.prototype.maskRaw=function(e){var t=e=void 0===e?"":e;return this.maskTokens.length&&Ct(this.maskTokens).run(e).fold(function(e){t=e.join("")}),t},ki.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},ki.prototype.maskInRange=function(e,t,n,i){var o="",a=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return Ct(this.maskTokens.slice(n,i)).run(e).fold(function(e){o=r.concat(e).concat(s).join("")}),{selection:a,value:o}},ki.prototype.maskRemoved=function(e,t,n){var i=this,o="",a=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),n=this.maskTokens.length-(e.length-n);return Ct(this.maskTokens.slice(0,n)).run(s,t).fold(function(e){a=i.adjustPosition(e,a),o=e.concat(r).join("")}),{selection:a,value:o}},ki.prototype.adjustPosition=function(e,t){e=e[t];return this.maskTokens[t].isLiteral(e)||e===this.prompt?t:t+1},ki.prototype.maskInserted=function(e,n,t){var i=this,o="",a=t,t=e.slice(0,t);return Ct(this.unmaskTokens).run(t,n).chain(function(e){a=e.join("").length;var t=n.slice(a);return Ct(i.maskTokens).run(e.join("")+t,n)}).fold(function(e){o=e.join("")}),{selection:a,value:o}},Object.defineProperty(ki.prototype,"maskTokenCreator",{get:function(){var n=this.prompt,i=this.promptPlaceholder;return{literal:function(e){return t=e,new an(function(e){return e.peek().char===t&&e.eat(),new nn(t,e,st.Literal)});var t},mask:function(e){return o=(t={prompt:n,promptPlaceholder:i}).prompt,a=t.promptPlaceholder,function(i){return new an(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===t&&t===o)return e.eat(),new nn(o,e,st.Mask);if(i.test(n))return e.eat(),new nn(n,e,st.Mask);if(n===a)return e.eat(),new nn(o,e,st.Mask);e.eat_input()}return e.eat(),new nn(o,e,st.Mask)})}(e);var t,o,a}}},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"unmaskTokenCreator",{get:function(){var t=this;return{literal:function(e){return t=e,new an(function(e){return e.eof()?new nn("",e):(e.peek().char===t&&e.eat(),new nn(t,e))});var t},mask:function(e){return o=t.prompt,function(i){return new an(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===o&&t===o)return e.eat(),new nn(n,e);if(i.test(n))return e.eat(),new nn(n,e);e.eat_input()}return e.eat(),new nn("",e)})}(e);var o}}},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"rawTokenCreator",{get:function(){var t=this.prompt,n=this.promptPlaceholder,i=this.includeLiterals;return{literal:function(e){return kt(i)},mask:function(e){return jt({prompt:t,promptPlaceholder:n})}}},enumerable:!0,configurable:!0}),Object.defineProperty(ki.prototype,"validationTokenCreator",{get:function(){var t=this.prompt;return{literal:function(e){return kt(!1)},mask:function(e){return jt({prompt:t,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),ki.prototype.tokenize=function(){var n=this;St(Ot(this.rules,this.maskTokenCreator)).run(this.mask).fold(function(e,t){n.maskTokens=e}),St(Ot(this.rules,this.unmaskTokenCreator)).run(this.mask).fold(function(e,t){n.unmaskTokens=e}),St(Ot(this.rules,this.rawTokenCreator)).run(this.mask).fold(function(e,t){n.rawTokens=e}),St(Ot(this.rules,this.validationTokenCreator)).run(this.mask).fold(function(e,t){n.validationTokens=e})},Object(s.__decorate)([Object(c.Injectable)()],ki)),sn=Promise.resolve(null),cn=(tn=ji,Object.defineProperty(ji.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ji.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(ji.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),ji.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(d.NgControl,null)},ji.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},ji.prototype.handleDragDrop=function(){return!1},ji.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},ji.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},ji.prototype.pasteHandler=function(e){var t=e.target,e=t.selectionStart,t=t.selectionEnd;t!==e&&(this.isPasted=!0,this.selection=[e,t])},ji.prototype.inputHandler=function(e){var t=e.target.value,n=this.selection,i=n[0],o=n[1];if(!this.mask)return this.updateValue(t),void(this.isPasted=!1);e=this.isPasted?(this.isPasted=!1,n=this.maskedValue.length-o,n=t.length-n,this.service.maskInRange(t.slice(i,n),this.maskedValue,i,o)):this.service.maskInput(t,this.maskedValue,e.target.selectionStart),this.updateInput(e.value,e.selection),this.updateValue(e.value)},ji.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),Object(h.isChanged)("value",e)?(t=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(t):Object(h.anyChanged)(["promptPlaceholder","includeLiterals"],e)?sn.then(function(){n.updateValue(n.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))):this.updateInput(this.value)},ji.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},ji.prototype.registerOnChange=function(e){this.onChange=e},ji.prototype.registerOnTouched=function(e){this.onTouched=e},ji.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},ji.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},ji.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)},ji.prototype.updateInput=function(e,t){this.maskedValue=e=void 0===e?"":e;e=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",e),void 0!==t&&this.setSelection(t,t)},ji.prototype.extractChanges=function(n){return Object.keys(n).filter(function(e){return"rules"!==e}).reduce(function(e,t){return e[t]=n[t].currentValue,e},{})},ji.prototype.updateService=function(e){e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(e)},ji.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&ke(this.input,"setSelectionRange",e,t)},Object.defineProperty(ji.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),ji.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;0<=t&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(ji.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(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}),ji.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=K(e);if(t&&"string"!=typeof e){if(Object(c.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ji.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ji.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ji.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ji.prototype,"title",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],ji.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-widget"),Object(c.HostBinding)("class.k-maskedtextbox"),Object(s.__metadata)("design:type",Boolean)],ji.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],ji.prototype,"hostDisabledClass",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ji.prototype,"mask",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ji.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],ji.prototype,"rules",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ji.prototype,"prompt",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ji.prototype,"promptPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ji.prototype,"includeLiterals",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ji.prototype,"maskOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ji.prototype,"maskValidation",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ji.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],ji.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],ji.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],ji.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],ji.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.ViewChild)("input",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],ji.prototype,"input",void 0),Object(s.__decorate)([Object(c.HostListener)("paste",["$event"]),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Object]),Object(s.__metadata)("design:returntype",void 0)],ji.prototype,"pasteHandler",null),Object(s.__decorate)([Object(c.HostListener)("input",["$event"]),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Object]),Object(s.__metadata)("design:returntype",void 0)],ji.prototype,"inputHandler",null),tn=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoMaskedTextBox",providers:[rn,{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return tn})},{multi:!0,provide:d.NG_VALIDATORS,useExisting:Object(c.forwardRef)(function(){return tn})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return tn})}],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(s.__param)(6,Object(c.Optional)()),Object(s.__param)(6,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[rn,c.Renderer2,c.ElementRef,c.NgZone,c.Injector,c.ChangeDetectorRef,Boolean])],ji)),dn=function(e){this.value=e,this.classes={"k-tick":!0}},ln=(Oi.prototype.ngOnChanges=function(e){this.createTicks()},Oi.prototype.createTicks=function(){for(var e,t,n,i,o,a=q(this.min,this.max,this.step),r=this.largeStep,s={max:this.max,min:this.min,smallStep:this.step},c=[],d=0;d<a;d++)c.push(new dn((e=d,i=o=i=n=void 0,n=(t=s).max,o=s.reverse,t=s.vertical,i=he(s.min,me(e,i=s.smallStep)),t||o?Math.abs(be(i,n)):i))),r&&d%r==0&&(c[d].large=!0,c[d].classes["k-tick-large"]=!0);0<c.length&&(Object.assign(c[0].classes,this.endTickClasses(!0)),Object.assign(c[c.length-1].classes,this.endTickClasses(!1))),this.ticks=c},Oi.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(s.__decorate)([Object(c.HostBinding)("class"),Object(s.__metadata)("design:type",String)],Oi.prototype,"wrapperClasses",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Function)],Oi.prototype,"tickTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Oi.prototype,"vertical",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Oi.prototype,"step",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Oi.prototype,"largeStep",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Oi.prototype,"min",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Oi.prototype,"max",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",c.TemplateRef)],Oi.prototype,"labelTemplate",void 0),Object(s.__decorate)([Object(c.ViewChildren)("tickElement"),Object(s.__metadata)("design:type",c.QueryList)],Oi.prototype,"tickElements",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],Oi)),pn=Object(s.__decorate)([Object(c.NgModule)({declarations:[ln,Me],exports:[Me,ln,h.DraggableModule,h.EventsModule,h.ResizeSensorModule],imports:[f.CommonModule,h.DraggableModule,h.EventsModule,h.ResizeSensorModule]})],_i),un=(en=u.ComponentMessages,Object(s.__extends)(yi,en),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yi.prototype,"decrement",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yi.prototype,"increment",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yi.prototype,"dragHandle",void 0),yi),hn=(Qt=un,Object(s.__extends)(vi,Qt),Jt=vi,Jt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:un,useExisting:Object(c.forwardRef)(function(){return Jt})}],selector:"[kendoSliderLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],vi)),bn=(Yt=un,Object(s.__extends)(fi,Yt),Xt=fi,Object.defineProperty(fi.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Xt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:un,useExisting:Object(c.forwardRef)(function(){return Xt})}],selector:"kendo-slider-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],fi)),mn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Ne,bn,hn],exports:[Ne,bn,Me,hn],imports:[f.CommonModule,pn]})],gi),gn=(qt=u.ComponentMessages,Object(s.__extends)(mi,qt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],mi.prototype,"dragHandleStart",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],mi.prototype,"dragHandleEnd",void 0),mi),fn=($t=gn,Object(s.__extends)(bi,$t),Zt=bi,Zt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:gn,useExisting:Object(c.forwardRef)(function(){return Zt})}],selector:"[kendoSliderLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],bi)),vn=(Wt=gn,Object(s.__extends)(hi,Wt),Ut=hi,Object.defineProperty(hi.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Ut=Object(s.__decorate)([Object(c.Component)({providers:[{provide:gn,useExisting:Object(c.forwardRef)(function(){return Ut})}],selector:"kendo-rangeslider-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],hi)),yn=Object(s.__decorate)([Object(c.NgModule)({declarations:[He,vn,fn],exports:[He,vn,fn,Me],imports:[f.CommonModule,pn]})],ui),_n=(Gt=u.ComponentMessages,Object(s.__extends)(pi,Gt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],pi.prototype,"on",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],pi.prototype,"off",void 0),pi),On=(Ht=_n,Object(s.__extends)(li,Ht),Kt=li,Kt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:_n,useExisting:Object(c.forwardRef)(function(){return Kt})}],selector:"[kendoSwitchLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],li)),jn=(Nt=_n,Object(s.__extends)(di,Nt),zt=di,Object.defineProperty(di.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),zt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:_n,useExisting:Object(c.forwardRef)(function(){return zt})}],selector:"kendo-switch-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],di)),kn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Ke,jn,On],exports:[Ke,jn,On],imports:[f.CommonModule,h.EventsModule,h.ResizeSensorModule]})],ci),Cn=(Mt=mt,Object(s.__extends)(si,Mt),Lt=si,Lt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:mt,useExisting:Object(c.forwardRef)(function(){return Lt})}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],si)),Sn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Cn,bt,gt],exports:[bt,gt],imports:[f.CommonModule,h.EventsModule]})],ri),wn=Object(s.__decorate)([Object(c.NgModule)({declarations:[cn],exports:[cn],imports:[f.CommonModule,h.EventsModule]})],ai),In=Object(s.__decorate)([Object(c.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(s.__param)(0,Object(c.Optional)()),Object(s.__metadata)("design:paramtypes",[c.TemplateRef])],oi),xn=Object(s.__decorate)([Object(c.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(s.__param)(0,Object(c.Optional)()),Object(s.__metadata)("design:paramtypes",[c.TemplateRef])],ii),En=(At=ni,Object.defineProperty(ni.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),ni.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(d.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},ni.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(i?(Ce(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),i=!1):n||t.clearButtonClicked||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){i=e.keyCode===h.Keys.Tab}))})},ni.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},ni.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},ni.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},ni.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},ni.prototype.clearTitle=function(){return this.localizationService.get("clear")},ni.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},ni.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},ni.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},ni.prototype.registerOnChange=function(e){this.ngChange=e},ni.prototype.registerOnTouched=function(e){this.ngTouched=e},ni.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},ni.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},ni.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,e=e.touched;return t&&(n||e)},Object.defineProperty(ni.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(ni.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(ni.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),ni.prototype.setSelection=function(e,t){this.isFocused&&ke(this.input,"setSelectionRange",e,t)},ni.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},ni.prototype.updateValue=function(e){var t=this;G(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()})},Object.defineProperty(ni.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(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}),ni.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ni.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ni.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ni.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ni.prototype,"selectOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],ni.prototype,"showSuccessIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],ni.prototype,"showErrorIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ni.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"successIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"errorIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"clearButtonIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],ni.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ni.prototype,"placeholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ni.prototype,"maxlength",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],ni.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],ni.prototype,"inputFocus",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],ni.prototype,"inputBlur",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],ni.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],ni.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.ViewChild)("input",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],ni.prototype,"input",void 0),Object(s.__decorate)([Object(c.ContentChild)(In,{static:!1}),Object(s.__metadata)("design:type",In)],ni.prototype,"suffixTemplate",void 0),Object(s.__decorate)([Object(c.ContentChild)(xn,{static:!1}),Object(s.__metadata)("design:type",xn)],ni.prototype,"prefixTemplate",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],ni.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-textbox"),Object(s.__metadata)("design:type",Boolean)],ni.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],ni.prototype,"direction",void 0),At=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoTextBox",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textbox"},{provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return At}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return At})}],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(s.__metadata)("design:paramtypes",[u.LocalizationService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.Injector,c.ElementRef])],ni)),Dn=(Bt=u.ComponentMessages,Object(s.__extends)(ti,Bt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ti.prototype,"clear",void 0),ti),Tn=(Rt=Dn,Object(s.__extends)(ei,Rt),Vt=ei,Object.defineProperty(ei.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Vt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:Dn,useExisting:Object(c.forwardRef)(function(){return Vt})}],selector:"kendo-textbox-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],ei)),Pn=(Pt=Dn,Object(s.__extends)(Jn,Pt),Ft=Jn,Ft=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:Dn,useExisting:Object(c.forwardRef)(function(){return Ft})}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Jn)),Fn=(Object(s.__decorate)([Object(c.HostBinding)("class.k-input-separator"),Object(s.__metadata)("design:type",Boolean)],Qn.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],Qn)),Rn=[Fn,Ge],Vn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Rn],exports:[Rn]})],Xn),Bn=Object(s.__decorate)([Object(c.NgModule)({declarations:[$e,Ue,En,In,xn,Tn,Pn],exports:[$e,Ue,En,In,xn,h.EventsModule,Tn,Pn,Rn],imports:[f.CommonModule,h.EventsModule,Vn]})],Yn),An=(Object.defineProperty(qn.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),qn.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},qn.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],qn.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],qn.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],qn.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],qn.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],qn.prototype,"selectOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],qn.prototype,"placeholder",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],qn.prototype,"inputFocus",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],qn.prototype,"inputBlur",void 0),Object(s.__decorate)([Object(c.ViewChild)("input",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],qn.prototype,"input",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],qn.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],qn.prototype,"direction",void 0),qn),Mn={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Ln=(Dt=An,Object(s.__extends)(Zn,Dt),Tt=Zn,Object.defineProperty(Zn.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(Zn.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(Zn.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Zn.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(i?(Ce(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),i=!1):n||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){i=e.keyCode===h.Keys.Tab}))})},Zn.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(d.NgControl,null),Object(h.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(l.fromEvent)(window,"resize").pipe(Object(p.debounceTime)(50)).subscribe(function(){return t.resize()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},Zn.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&&(K(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},Zn.prototype.ngAfterViewChecked=function(){this.resize()},Zn.prototype.writeValue=function(e){this.value=e},Zn.prototype.registerOnChange=function(e){this.ngChange=e},Zn.prototype.registerOnTouched=function(e){this.ngTouched=e},Zn.prototype.updateValue=function(e){var t=this;G(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},Zn.prototype.ngOnDestroy=function(){Dt.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(Zn.prototype,"resizableClass",{get:function(){return Mn[this.resizable]},enumerable:!0,configurable:!0}),Zn.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},Zn.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},Zn.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(Zn.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(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}),Zn.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},Zn.prototype.setSelection=function(e,t){this.isFocused&&ke(this.input,"setSelectionRange",e,t)},Zn.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Zn.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea"),Object(s.__metadata)("design:type",Boolean)],Zn.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-flex-col"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Zn.prototype,"flowCol",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-flex-row"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Zn.prototype,"flowRow",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Zn.prototype,"flow",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Zn.prototype,"rows",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Zn.prototype,"cols",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Zn.prototype,"maxlength",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Zn.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Zn.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Zn.prototype,"resizable",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],Zn.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],Zn.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Zn.prototype,"valueChange",void 0),Tt=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoTextArea",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textarea"},{provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Tt}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Tt})}],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(s.__metadata)("design:paramtypes",[u.LocalizationService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.Injector,c.ElementRef])],Zn)),Nn=(Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea-suffix"),Object(s.__metadata)("design:type",Boolean)],$n.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],$n)),zn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Ln,Nn],exports:[Ln,h.EventsModule,Nn,Rn],imports:[f.CommonModule,h.EventsModule,Vn]})],Un),Hn=(Wn.prototype.preventDefault=function(){this.prevented=!0},Wn.prototype.isDefaultPrevented=function(){return this.prevented},Wn),Kn=(Gn.prototype.preventOpen=function(){this.openPrevented=!0},Gn.prototype.isOpenPrevented=function(){return this.openPrevented},Gn);function Gn(e){this.color=e,this.openPrevented=!1}function Wn(){this.prevented=!1}function Un(){}function $n(){this.hostClass=!0}function Zn(e,t,n,i,o,a){var r=Dt.call(this,e,t,n,i,o,a)||this;return r.localizationService=e,r.ngZone=t,r.changeDetector=n,r.renderer=i,r.injector=o,r.hostElement=a,r.focusableId="k-"+Object(h.guid)(),r.hostClass=!0,r.flow="vertical",r.tabindex=0,r.resizable="vertical",r.onFocus=new c.EventEmitter,r.onBlur=new c.EventEmitter,r.valueChange=new c.EventEmitter,r.handleInput=function(e){e=e.target.value;r.updateValue(e),r.resize()},r.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),Object(h.hasObservers)(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),Object(h.hasObservers)(r.inputFocus)&&(r.focusChangedProgrammatically||r.ngZone.run(function(){r.inputFocus.emit()})),r.ngZone.run(function(){r.isFocused=!0}))},Object(b.validatePackage)(Ae),r.direction=e.rtl?"rtl":"ltr",r}function qn(e,t,n,i,o,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new c.EventEmitter,this.inputBlur=new c.EventEmitter,this.subscriptions=new l.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){r.changeDetector.markForCheck(),(Object(h.hasObservers)(r.inputBlur)||W(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.ngChange=function(e){},this.ngTouched=function(){}}function Yn(){}function Xn(){}function Qn(){this.hostClass=!0}function Jn(e){var t=Pt.call(this)||this;return t.service=e,t}function ei(e){var t=Rt.call(this)||this;return t.service=e,t}function ti(){return null!==Bt&&Bt.apply(this,arguments)||this}function ni(e,t,n,i,o,a){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.focusableId="k-"+Object(h.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 c.EventEmitter,this.inputFocus=new c.EventEmitter,this.inputBlur=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),Object(h.hasObservers)(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),Object(h.hasObservers)(r.inputFocus)&&(!r.focusChangedProgrammatically||r.focusChangedProgrammatically&&r.clearButtonClicked)&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},this.handleInputBlur=function(){r.changeDetector.markForCheck(),(Object(h.hasObservers)(r.inputBlur)||W(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){var t,e=(t=navigator.userAgent,(Object(m.detectDesktopBrowser)(t).safari||Object(m.detectMobileOS)(t)&&"mobilesafari"===Object(m.detectMobileOS)(t).browser)&&/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(e.target.value)?e.data:e.target.value);r.updateValue(e)},this.ngChange=function(e){},this.ngTouched=function(){},Object(b.validatePackage)(Ae),this.direction=e.rtl?"rtl":"ltr"}function ii(e){this.templateRef=e}function oi(e){this.templateRef=e}function ai(){}function ri(){}function si(e){var t=Mt.call(this)||this;return t.service=e,t}function ci(){}function di(e){var t=Nt.call(this)||this;return t.service=e,t}function li(e){var t=Ht.call(this)||this;return t.service=e,t}function pi(){return null!==Gt&&Gt.apply(this,arguments)||this}function ui(){}function hi(e){var t=Wt.call(this)||this;return t.service=e,t}function bi(e){var t=$t.call(this)||this;return t.service=e,t}function mi(){return null!==qt&&qt.apply(this,arguments)||this}function gi(){}function fi(e){var t=Yt.call(this)||this;return t.service=e,t}function vi(e){var t=Qt.call(this)||this;return t.service=e,t}function yi(){return null!==en&&en.apply(this,arguments)||this}function _i(){}function Oi(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}function ji(e,t,n,i,o,a,r){var s=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=a,this.focusableId="k-"+Object(h.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 c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.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(){s.focused=!0,s.maskOnFocus&&s.emptyMask&&(s.updateInput(s.service.maskRaw(s.value)),s.ngZone.runOutsideAngular(function(){setTimeout(function(){s.setSelection(0,0)},0)})),Object(h.hasObservers)(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleClick=function(){var e;s.focused&&!s.focusClick&&(s.focusClick=!0,(e=s.input.nativeElement).selectionStart===e.selectionEnd&&s.setFocusSelection())},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.focusClick=!1,s.maskOnFocus&&s.emptyMask&&s.updateInput(s.maskedValue),(Object(h.hasObservers)(s.onBlur)||W(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},Object(b.validatePackage)(Ae),this.direction=r?"rtl":"ltr",this.updateService()}function ki(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}function Ci(e){this.parse=e}function Si(e,t){void 0===t&&(t=[]),this.input=e=void 0===e?[]:e,this.control=t,this.inputCursor=0,this.controlCursor=0}function wi(e,t,n){void 0===n&&(n=st.Undefined),this.value=e,this.rest=t,this.type=n}function Ii(e,t){var n=de(e.r,0,255),i=de(e.g,0,255),o=de(e.b,0,255),a=de(e.a,0,1),r=de(t.r,0,255),e=de(t.g,0,255),t=de(t.b,0,255);return{r:Math.round((1-a)*r+a*n),g:Math.round((1-a)*e+a*i),b:Math.round((1-a)*t+a*o)}}function xi(e){return.2126*(e=[e.r,e.g,e.b].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}))[0]+.7152*e[1]+.0722*e[2]}var Ei,Di,Ti,Pi,Fi,Ri,Vi,Bi,Ai,Mi,Li,Ni={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}},zi=(Li=u.LocalizationService,Object(s.__extends)(No,Li),Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean])],No)),Hi=(Mi=u.LocalizationService,Object(s.__extends)(Lo,Mi),Lo.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):Mi.prototype.get.call(this,e)},Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__param)(3,Object(c.Optional)()),Object(s.__param)(3,Object(c.Inject)(zi)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean,zi])],Lo)),Ki=(Object.defineProperty(Mo.prototype,"isFocused",{get:function(){if(!Object(h.isDocumentAvailable)()||!K(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Mo.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return K(t.rgba[e])})},enumerable:!0,configurable:!0}),Mo.prototype.ngAfterViewInit=function(){this.initDomEvents()},Mo.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Mo.prototype.ngOnChanges=function(e){K(e.value)&&!this.isFocused&&(this.hex=wt(this.value,"hex"),this.rgba=It(this.value),this.rgba.a=wt(this.value,"rgba")?this.rgba.a:1)},Mo.prototype.handleRgbaValueChange=function(){var e,t,n,i=(i=this.rgba,e=de(i.r,0,255),t=de(i.g,0,255),n=de(i.b,0,255),i=de(i.a,0,1),H.fromBytes(e,t,n,i).toCssRgba());this.rgbaInputValid&&i!==this.value&&(this.value=i,this.rgba=It(this.value),this.hex=wt(i,"hex"),this.valueChange.emit(i))},Mo.prototype.handleHexValueChange=function(e){this.hex=e;e=wt(e,"rgba");K(e)&&e!==this.value&&(this.value=e,this.rgba=It(e),this.valueChange.emit(e))},Mo.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=It(this.value))},Mo.prototype.handleHexInputBlur=function(){this.hex=wt(this.value,"hex")},Mo.prototype.textFor=function(e){return this.localization.get(e)},Mo.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},Mo.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mo.prototype,"formatView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mo.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mo.prototype,"opacity",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mo.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mo.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Mo.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-colorgradient-inputs"),Object(c.HostBinding)("class.k-hstack"),Object(s.__metadata)("design:type",Boolean)],Mo.prototype,"colorInputClass",void 0),Object(s.__decorate)([Object(c.ViewChild)("opacityInput",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],Mo.prototype,"opacityInput",void 0),Object(s.__decorate)([Object(c.ViewChild)("toggleFormatButton",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],Mo.prototype,"toggleFormatButton",void 0),Object(s.__decorate)([Object(c.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(s.__metadata)("design:paramtypes",[u.LocalizationService,c.ElementRef,c.Renderer2])],Mo)),Gi=0,Wi=(Ai=Ao,Object.defineProperty(Ao.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"value",{get:function(){return this._value},set:function(e){this._value=wt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"isFocused",{get:function(){return!(!Object(h.isDocumentAvailable)()||!K(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"alphaSliderValue",{get:function(){if(K(this.hsva)&&K(this.hsva.a))return 100*this.hsva.a},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"contrastToolVisible",{get:function(){return"string"==typeof this.contrastTool&&""!==this.contrastTool},enumerable:!0,configurable:!0}),Ao.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},Ao.prototype.ngOnChanges=function(e){Object(h.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(h.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},Ao.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},Ao.prototype.focus=function(){this.disabled||this.host.nativeElement.focus()},Ao.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},Ao.prototype.handleDragPress=function(e){this.disabled||this.readonly||!K(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},Ao.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},Ao.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(xt(this.hsva)))},Ao.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)})}},Ao.prototype.changePosition=function(e){var t,n,i=this;this.disabled||this.readonly||(this.gradientDragHandle.nativeElement.focus(),t=e.clientX-this.gradientRect.left,n=e.clientY-this.gradientRect.top,this.ngZone.run(function(){return i.moveDragHandle(t,n)}))},Ao.prototype.handleHueSliderChange=function(e){this.handleValueChange(xt(this.hsva)),this.backgroundColor=Et(e),this.setAlphaSliderBackground(this.backgroundColor)},Ao.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(xt(this.hsva))},Ao.prototype.handleInputsValueChange=function(e){e=wt(e,this.format);this.value!==e&&(this.handleValueChange(e),this.updateUI())},Ao.prototype.writeValue=function(e){this.value=e,K(this.gradientWrapper)&&this.updateUI()},Ao.prototype.registerOnChange=function(e){this.notifyNgChanged=e},Ao.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},Ao.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(Ao.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=wt(this.value,this.format);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(Ao.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),Ao.prototype.isEmpty=function(){return!1},Ao.prototype.moveDragHandle=function(e,t){t=de(t,0,this.gradientRect.height),e=de(e,0,this.gradientRect.width);this.setDragHandleElementPosition(t,e),this.hsva.s=e/this.gradientRect.width,this.hsva.v=1-t/this.gradientRect.height,this.updateValues.next(xt(this.hsva)),this.setAlphaSliderBackground(xt(Object(s.__assign)({},this.hsva,{a:1})))},Ao.prototype.updateUI=function(){var e,t;Object(h.isDocumentAvailable)()&&(this.hsva=this.value?function(e,t){t=M(e,t=void 0===t?!0:t);return K(t)?t.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1},e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width,this.setDragHandleElementPosition(e,t),this.backgroundColor=Et(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())},Ao.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},Ao.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},Ao.prototype.setAlphaSliderBackground=function(e){var t;K(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},Ao.prototype.setHostElementAriaLabel=function(){var e=wt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},Ao.prototype.addEventListeners=function(){var a=this;this.ngZone.runOutsideAngular(function(){var e=a.renderer.listen(a.host.nativeElement,"focusout",function(e){var t,n;n=a.host.nativeElement,e=e.relatedTarget,n&&e&&(n===e||n.contains(e))||!((e=a.host)&&e.nativeElement&&(e=e.nativeElement,t="ng-untouched",Boolean((e=e.className,String(e).trim().split(" ").find(function(e){return e===t})))))||a.ngZone.run(function(){return a.notifyNgTouched()})}),t=a.renderer.listen(a.gradientDragHandle.nativeElement,"keydown",function(e){a.onKeyboardAction(e)}),n=a.renderer.listen(a.gradientDragHandle.nativeElement,"keyup",function(){a.renderer.removeClass(a.gradientWrapper.nativeElement,"k-dragging"),a.readonly||a.disabled||a.ngZone.run(function(){return a.handleValueChange(xt(a.hsva))})}),i=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusin",function(){a.renderer.addClass(a.gradientDragHandle.nativeElement,"k-state-focus")}),o=a.renderer.listen(a.gradientDragHandle.nativeElement,"focusout",function(){a.renderer.removeClass(a.gradientDragHandle.nativeElement,"k-state-focus")});a.listeners.push(e,t,n,i,o)})},Ao.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(p.throttleTime)(this.delay)).subscribe(function(e){t.handleValueChange(e)})},Ao.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(s.__decorate)([Object(c.HostBinding)("class.k-colorgradient"),Object(s.__metadata)("design:type",Boolean)],Ao.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ao.prototype,"readonlyAttribute",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ao.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.tabindex"),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[])],Ao.prototype,"hostTabindex",null),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],Ao.prototype,"gradientId",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ao.prototype,"id",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Ao.prototype,"direction",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ao.prototype,"opacity",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ao.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ao.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ao.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Ao.prototype,"delay",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ao.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ao.prototype,"contrastTool",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Ao.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ao.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ao.prototype,"format",void 0),Object(s.__decorate)([Object(c.ViewChild)("gradientDragHandle",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],Ao.prototype,"gradientDragHandle",void 0),Object(s.__decorate)([Object(c.ViewChild)("inputs",{static:!1}),Object(s.__metadata)("design:type",Ki)],Ao.prototype,"inputs",void 0),Object(s.__decorate)([Object(c.ViewChild)("alphaSlider",{static:!1}),Object(s.__metadata)("design:type",Ne)],Ao.prototype,"alphaSlider",void 0),Object(s.__decorate)([Object(c.ViewChild)("gradientWrapper",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],Ao.prototype,"gradientWrapper",void 0),Ai=Object(s.__decorate)([Object(c.Component)({selector:"kendo-colorgradient",providers:[{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Ai})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Ai})},Hi,{provide:u.LocalizationService,useExisting:Hi},{provide:u.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(s.__metadata)("design:paramtypes",[c.ElementRef,c.NgZone,c.Renderer2,c.ChangeDetectorRef,u.LocalizationService])],Ao)),Ui=0,$i=(Bi=Bo,Object.defineProperty(Bo.prototype,"value",{get:function(){return this._value},set:function(e){this._value=wt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"isOpen",{get:function(){return K(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),Bo.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&Ni[t]?Ni[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},Bo.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=wt(this.value,this.format))},Bo.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Bo.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},Bo.prototype.handleActiveColorClick=function(){this.focus();var e=new Kn(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},Bo.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},Bo.prototype.handleWrapperFocus=function(){K(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},Bo.prototype.blur=function(){this.wrapper.nativeElement.blur()},Bo.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},Bo.prototype.reset=function(){K(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},Bo.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=K(e)?e:!this.isOpen)&&this.openPopup())},Bo.prototype.handleValueChange=function(e,t){var n=wt(e,this.format),e=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),e&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},Bo.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),e=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||e||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},Bo.prototype.writeValue=function(e){this.value=e},Bo.prototype.registerOnChange=function(e){this.notifyNgChanged=e},Bo.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},Bo.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Bo.prototype.handleWrapperKeyDown=function(e){e.keyCode!==h.Keys.ArrowDown&&e.keyCode!==h.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},Bo.prototype.handlePopupKeyDown=function(e){if(e.keyCode===h.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===h.Keys.Tab){var t=(this.colorGradient?this.colorGradient.gradientDragHandle: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()}},Bo.prototype.isEmpty=function(){return!1},Bo.prototype.toggleWithEvents=function(e){var t=this,n=this.isOpen===e;this.disabled||this.readonly||n||(n=new Hn,(e?this.open:this.close).emit(n),n.isDefaultPrevented()||this.toggle(e),e&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){t.colorGradient&&t.colorGradient.gradientDragHandle.nativeElement.focus()})}))},Bo.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"},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})})},Bo.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},Object(s.__decorate)([Object(c.HostBinding)("class.k-widget"),Object(c.HostBinding)("class.k-colorpicker"),Object(s.__metadata)("design:type",Boolean)],Bo.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Bo.prototype,"direction",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Bo.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Bo.prototype,"view",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Bo.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Bo.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Bo.prototype,"format",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Bo.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Bo.prototype,"popupSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Bo.prototype,"paletteSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Bo.prototype,"gradientSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Bo.prototype,"icon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],Bo.prototype,"iconClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Bo.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Bo.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Bo.prototype,"open",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Bo.prototype,"close",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],Bo.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],Bo.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Bo.prototype,"activeColorClick",void 0),Object(s.__decorate)([Object(c.ViewChild)("container",{read:c.ViewContainerRef,static:!0}),Object(s.__metadata)("design:type",c.ViewContainerRef)],Bo.prototype,"container",void 0),Object(s.__decorate)([Object(c.ViewChild)("wrapper",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],Bo.prototype,"wrapper",void 0),Object(s.__decorate)([Object(c.ViewChild)("popupTemplate",{static:!0}),Object(s.__metadata)("design:type",c.TemplateRef)],Bo.prototype,"popupTemplate",void 0),Object(s.__decorate)([Object(c.ViewChild)("palette",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],Bo.prototype,"palette",void 0),Object(s.__decorate)([Object(c.ViewChild)("colorGradient",{static:!1}),Object(s.__metadata)("design:type",Wi)],Bo.prototype,"colorGradient",void 0),Bi=Object(s.__decorate)([Object(c.Component)({selector:"kendo-colorpicker",providers:[{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Bi})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Bi})},zi,{provide:u.LocalizationService,useExisting:zi},{provide:u.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(s.__metadata)("design:paramtypes",[v.PopupService,c.ChangeDetectorRef,u.LocalizationService,c.NgZone])],Bo)),Zi=(Vo.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],K(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)}}},Vo.prototype.getCellCoordsFor=function(e){if(K(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}},Vo.prototype.getColorAt=function(e){if(K(e)&&K(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},Vo.prototype.getNextCell=function(e,t,n){if(!(K(e)&&K(e.row)&&K(e.col)))return{row:0,col:0};n=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:n,col:this.clampIndex(e.col+t,this.colorRows[n].length-1)}},Vo.prototype.clampIndex=function(e,t){return e<0?0:t<e?t:e},Object(s.__decorate)([Object(c.Injectable)()],Vo)),qi=(Vi=u.LocalizationService,Object(s.__extends)(Ro,Vi),Ro.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):Vi.prototype.get.call(this,e)},Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__param)(3,Object(c.Optional)()),Object(s.__param)(3,Object(c.Inject)(zi)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean,zi])],Ro)),Yi=0,Xi=(Ri=Fo,Object.defineProperty(Fo.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"value",{get:function(){return this._value},set:function(e){this._value=wt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;"string"==typeof(e=!K(e)?"office":e)&&K(Ni[e])&&(this.columns=this.columns||Ni[e].columns,e=Ni[e].colors);e="string"==typeof e?e.split(","):e;this._palette=e.map(function(e){return wt(e,t.format,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Fo.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Fo.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value))},Fo.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},Fo.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Fo.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())},Fo.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case h.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case h.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case h.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case h.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case h.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},Fo.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},Fo.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=wt(e,this.format,!1),this.cellSelection.emit(e),this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel()),this.selection!==e&&(this.selection=e,this.selectionChange.emit(e)),t&&(this.activeCellId=this.selectedCell.row+"-"+this.selectedCell.col))},Fo.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},Fo.prototype.registerOnChange=function(e){this.notifyNgChanged=e},Fo.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},Fo.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Fo.prototype.isEmpty=function(){return!1},Fo.prototype.reset=function(){this.focusedCell=null,K(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},Fo.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},Fo.prototype.setRows=function(){K(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},Fo.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},Fo.prototype.setHostElementAriaLabel=function(){var e=wt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},Fo.prototype.handleEnter=function(){var e;K(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Fo.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],Fo.prototype,"paletteId",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Fo.prototype,"id",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Fo.prototype,"format",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Fo.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Fo.prototype,"columns",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Fo.prototype,"palette",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Fo.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Fo.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Fo.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],Fo.prototype,"tileSize",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Fo.prototype,"selectionChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Fo.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Fo.prototype,"cellSelection",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.tabindex"),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[])],Fo.prototype,"hostTabindex",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-colorpalette"),Object(s.__metadata)("design:type",Boolean)],Fo.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-disabled"),Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Fo.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Fo.prototype,"readonlyAttribute",null),Object(s.__decorate)([Object(c.HostListener)("keydown",["$event"]),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Object]),Object(s.__metadata)("design:returntype",void 0)],Fo.prototype,"handleKeydown",null),Object(s.__decorate)([Object(c.HostListener)("blur"),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],Fo.prototype,"handleHostBlur",null),Ri=Object(s.__decorate)([Object(c.Component)({selector:"kendo-colorpalette",providers:[{multi:!0,provide:d.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Ri})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Ri})},Zi,qi,{provide:u.LocalizationService,useExisting:qi},{provide:u.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(s.__metadata)("design:paramtypes",[c.ElementRef,Zi,c.ChangeDetectorRef,c.Renderer2,u.LocalizationService])],Fo)),Qi=(Fi=u.ComponentMessages,Object(s.__extends)(Po,Fi),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"colorPaletteNoColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"colorGradientNoColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"colorGradientHandle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"hueSliderHandle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"opacitySliderHandle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"hexInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"redInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"greenInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"blueInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"alphaInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"passContrast",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"failContrast",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Po.prototype,"contrastRatio",void 0),Po),Ji=(Ti=Qi,Object(s.__extends)(To,Ti),Pi=To,Object.defineProperty(To.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Pi=Object(s.__decorate)([Object(c.Component)({providers:[{provide:Qi,useExisting:Object(c.forwardRef)(function(){return Pi})}],selector:"kendo-colorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],To)),eo=(Ei=Qi,Object(s.__extends)(Do,Ei),Di=Do,Di=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:Qi,useExisting:Object(c.forwardRef)(function(){return Di})}],selector:"[kendoColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Do)),to=(Eo.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},Eo.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular(function(){return setTimeout(function(){return e.host.nativeElement.focus()})})},Object(s.__decorate)([Object(c.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,c.NgZone])],Eo)),no=(Object.defineProperty(xo.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(xo.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(xo.prototype,"contrastText",{get:function(){return this.type+": "+this.ratio.toFixed(1)},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],xo.prototype,"type",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],xo.prototype,"ratio",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],xo.prototype,"pass",void 0),Object(s.__decorate)([Object(c.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(s.__metadata)("design:paramtypes",[u.LocalizationService])],xo)),io=(Object.defineProperty(Io.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(Io.prototype,"contrastRatioMessage",{get:function(){return this.localization.get("contrastRatio")},enumerable:!0,configurable:!0}),Object.defineProperty(Io.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=this.aaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(Io.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=this.aaaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(Io.prototype,"contrastRatio",{get:function(){return e=It(this.value),t=It(this.ratio),e=xi(Ii(e,t)),t=xi(Ii(t,{r:0,g:0,b:0,a:1})),(Math.max(e,t)+.05)/(Math.min(e,t)+.05);var e,t},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Io.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Io.prototype,"ratio",void 0),Object(s.__decorate)([Object(c.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(s.__metadata)("design:paramtypes",[u.LocalizationService])],Io)),g=[$i,Xi,Wi,eo,Ji],t=[Ki,to,io,no],oo=Object(s.__decorate)([Object(c.NgModule)({declarations:[g,t],exports:[g],imports:[mn,Sn,f.CommonModule,v.PopupModule,h.DraggableModule]})],wo),ao=(Object(s.__decorate)([Object(c.HostBinding)("class.k-checkbox"),Object(s.__metadata)("design:type",Boolean)],So.prototype,"kendoClass",void 0),Object(s.__decorate)([Object(c.Directive)({selector:"input[kendoCheckBox]"})],So)),ro=Object(s.__decorate)([Object(c.NgModule)({declarations:[ao],exports:[ao],imports:[f.CommonModule]})],Co),so=(Object(s.__decorate)([Object(c.HostBinding)("class.k-radio"),Object(s.__metadata)("design:type",Boolean)],ko.prototype,"kendoClass",void 0),Object(s.__decorate)([Object(c.Directive)({selector:"input[kendoRadioButton]"})],ko)),co=Object(s.__decorate)([Object(c.NgModule)({declarations:[so],exports:[so],imports:[f.CommonModule]})],jo),lo=0,po=(Object.defineProperty(Oo.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(Oo.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(Oo.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-error"),Object(s.__metadata)("design:type",Boolean)],Oo.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Oo.prototype,"align",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.role"),Object(s.__metadata)("design:type",String)],Oo.prototype,"roleAttribute",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-start"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Oo.prototype,"startClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-end"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Oo.prototype,"endClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],Oo.prototype,"idAttribute",null),Object(s.__decorate)([Object(c.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],Oo)),uo=0,ho=(Object.defineProperty(_o.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(_o.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(_o.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],_o.prototype,"align",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-hint"),Object(s.__metadata)("design:type",Boolean)],_o.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-start"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],_o.prototype,"startClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-end"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],_o.prototype,"endClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],_o.prototype,"idAttribute",null),Object(s.__decorate)([Object(c.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],_o)),bo=(Object.defineProperty(yo.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(yo.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),yo.prototype.ngAfterViewInit=function(){this.setDescription()},yo.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},yo.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},yo.prototype.disabledControl=function(){return this.control.disabled},yo.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},yo.prototype.validateFormControl=function(e){if(Object(c.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.")},yo.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)})},yo.prototype.isRadioControl=function(e){return e.valueAccessor instanceof d.RadioControlValueAccessor},yo.prototype.updateDescription=function(){var n=this,e=this.findControlElements();e&&e.forEach(function(e){var t;(0<n.errorChildren.length||0<n.hintChildren.length)&&(t=n.generateDescriptionIds(e),n.renderer.setAttribute(e,"aria-describedby",t))})},yo.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(h.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},yo.prototype.generateDescriptionIds=function(e){var t=new Set;return e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach(function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}),this.hintChildren.forEach(function(e){t.add(e.id)}),this.errorChildren.forEach(function(e){t.add(e.id)}),Array.from(t).join(" ")},yo.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,e=e.pristine;return t||n&&e},yo.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},yo.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(s.__decorate)([Object(c.HostBinding)("class.k-form-field"),Object(s.__metadata)("design:type",Boolean)],yo.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],yo.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-field-error"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],yo.prototype,"errorClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-field-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],yo.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.ContentChildren)(d.NgControl,{descendants:!0}),Object(s.__metadata)("design:type",c.QueryList),Object(s.__metadata)("design:paramtypes",[c.QueryList])],yo.prototype,"formControls",null),Object(s.__decorate)([Object(c.ContentChildren)(d.NgControl,{read:c.ElementRef,descendants:!0}),Object(s.__metadata)("design:type",c.QueryList)],yo.prototype,"controlElementRefs",void 0),Object(s.__decorate)([Object(c.ContentChild)(h.KendoInput,{static:!0}),Object(s.__metadata)("design:type",Object)],yo.prototype,"kendoInput",void 0),Object(s.__decorate)([Object(c.ContentChildren)(po,{descendants:!0}),Object(s.__metadata)("design:type",c.QueryList)],yo.prototype,"errorChildren",void 0),Object(s.__decorate)([Object(c.ContentChildren)(ho,{descendants:!0}),Object(s.__metadata)("design:type",c.QueryList)],yo.prototype,"hintChildren",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yo.prototype,"showHints",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yo.prototype,"orientation",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],yo.prototype,"showErrors",void 0),Object(s.__decorate)([Object(c.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:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,u.LocalizationService,c.ElementRef])],yo)),mo=Object(s.__decorate)([Object(c.NgModule)({declarations:[ho,po,bo],exports:[ho,po,bo],imports:[f.CommonModule]})],vo),go=Object(s.__decorate)([Object(c.NgModule)({exports:[zn,Bn,mn,yn,kn,Sn,wn,oo,ro,co,mo],imports:[f.CommonModule]})],fo);function fo(){}function vo(){}function yo(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 l.Subscription,this.rtl=!1,Object(b.validatePackage)(Ae),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;i.rtl=e,i.direction=i.rtl?"rtl":"ltr"}))}function _o(){this.align="start",this.id="kendo-hint-"+uo++,this.hostClass=!0}function Oo(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+lo++,this.roleAttribute="alert"}function jo(){}function ko(){this.kendoClass=!0}function Co(){}function So(){this.kendoClass=!0}function wo(){}function Io(e){this.localization=e,this.aaRatio=4.5,this.aaaRatio=7}function xo(e){this.localization=e}function Eo(e,t){this.host=e,this.ngZone=t}function Do(e){var t=Ei.call(this)||this;return t.service=e,t}function To(e){var t=Ti.call(this)||this;return t.service=e,t}function Po(){return null!==Fi&&Fi.apply(this,arguments)||this}function Fo(e,t,n,i,o){var a=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.id="k-colorpalette-"+Yi++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.cellSelection=new c.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=o.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}function Ro(e,t,n,i){n=Vi.call(this,e,t,n)||this;return n.colorPickerLocalization=i,n}function Vo(){this.colorRows=[]}function Bo(e,t,n,i){var o=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=i,this.hostClasses=!0,this.focusableId="k-colorpicker-"+Ui++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new c.EventEmitter,this.open=new c.EventEmitter,this.close=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.activeColorClick=new c.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(b.validatePackage)(Ae),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;o.direction=e?"rtl":"ltr"})}function Ao(e,t,n,i,o){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+Gi++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new c.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new l.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=o.changes.subscribe(function(e){e=e.rtl;a.direction=e?"rtl":"ltr"})}function Mo(e,t,n){this.localization=e,this.host=t,this.renderer=n,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new c.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new l.Subscription}function Lo(e,t,n,i){n=Mi.call(this,e,t,n)||this;return n.colorPickerLocalization=i,n}function No(e,t,n){return Li.call(this,e,t,n)||this}},function(e,t,n){"use strict";n.r(t);var o=n(0),h=n(1),l=n(2),i=n(7),b=n(12),u=n(8),a=n(4),m=n(5),r=n(11),g=n(6);function s(e,t){return{type:4,styles:t=void 0===t?null:t,timings:e}}function c(e){return{type:6,styles:e,offset:null}}function d(e,t,n){return{type:1,expr:e,animation:t,options:n=void 0===n?null:n}}function p(){return!1}function f(){return"none"}function v(){return!1}function y(){return!0}function _(){return!1}function O(){return!0}function j(e,t){return t}function k(e,t){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(ae(n,t))return n;n=n.parentElement||n.parentNode}return null}function C(){}function S(e){return null==e}function w(e){return Array.isArray(e)}function I(e){return"boolean"==typeof e}function x(e){return Object(l.isDocumentAvailable)()?e.closest?e.closest("li.k-treeview-item"):k(e,"li.k-treeview-item"):null}function E(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,n=null!==n&&!i;return n=oe.test(t)?!e.disabled&&!i:n}}function D(e){if(Object(l.isDocumentAvailable)()){for(var t=e;t&&!ae(t,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)t=t.parentNode;return t?ae(t,".k-in:not(.k-treeview-load-more-button)"):void 0}}function T(e){return re(k(e,".k-in.k-treeview-load-more-button"))}function P(e,t){return Boolean(function(e){for(;e&&e!==t;)e=e.parentNode;return e}(e))}function F(e){return e.nativeElement.querySelector('li[tabindex="0"]')}function R(e){return e?e.getAttribute("data-treeindex"):""}function V(e){return(e||{}).index}function B(e,t){return!re(e)&&!re(t)||re(e)&&re(t)&&e.item.dataItem===t.item.dataItem}function A(e){return re(e)?e.item.dataItem:e}function M(e){return e&&Array.isArray(e)&&0!==e.length}function L(e,n,t,i,s){var c=t.operator,d=t.ignoreCase,l=t.mode;void 0===s&&(s=0);var p="string"==typeof i?i:i[s];e.forEach(function(e){var o,a,r,t=("string"==typeof c?(o=p,a=c,r=d,function(e,t){return n=de[a],i=r,function(e,t){return i?n(e.toLowerCase(),t.toLowerCase()):n(e,t)}(Object(u.getter)(o)(e),t);var n,i}):c)(e.dataItem,n);e.isMatch=t,e.visible=t,e.containsMatches=!1,t&&se(e.parent),e.children&&0<e.children.length&&("strict"!==l&&t?ce(e.children):L(e.children,n,{operator:c,ignoreCase:d,mode:l},i,s+1))})}function N(e,t){return[e,t].filter(function(e){return re(e)}).join("_")}function z(e,t){if(!re(e)||0===e.children.length)return[];var n=e.children;return(n=re(t)?n.filter(t):n).forEach(function(e){return n=n.concat(z(e,t))}),n}function H(e,t){if(e.length===t.length){var n=new Set(t);return e.every(function(e){return n.has(e)})}}function K(e){return e||{}}function G(e){return(e||{}).children||[]}function W(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;0<=t;--t){var n=e[t];if(n.visible)return n}return null}var U,$,Z,q=n(9),Y=n(99),X=n.n(Y),Q=n(58),J={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1638439762,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"},ee=(Ue.prototype.notify=function(){this.changes.emit()},Ue),te=(We.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},We.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},Object(o.__decorate)([Object(h.Injectable)()],We)),ne=(Ge.prototype.nodeIndex=function(e,t){return""+(t=void 0===t?"":t)+(t?this.INDEX_SEPARATOR:"")+(e=void 0===e?"":e)},Ge.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},Ge.prototype.lastLevelIndex=function(e){e=(e=void 0===e?"":e).split(this.INDEX_SEPARATOR);return e.length?parseInt(e[e.length-1],10):NaN},Ge.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},Object(o.__decorate)([Object(h.Injectable)()],Ge)),ie=(Ke.prototype.notifyLoaded=function(e){this.changes.next(e)},Object(o.__decorate)([Object(h.Injectable)()],Ke)),oe=/^(?:a|input|select|option|textarea|button|object)$/i,ae=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},re=function(e){return null!=e},se=function(e){re(e)&&(e.containsMatches=!0,e.visible=!0,re(e.parent)&&!e.parent.containsMatches&&se(e.parent))},ce=function(e){e.forEach(function(e){e.visible=!0,e.children&&ce(e.children)})},de={contains:function(e,t){return 0<=e.indexOf(t)},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return 0<=e.indexOf(t,e.length-t.length)},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},le=(He.prototype.firstVisibleNode=function(){return(this.nodes||[]).find(function(e){return e.visible})},He.prototype.lastVisibleNode=function(){for(var e=W(this.nodes);re(e)&&0<G(e).length;){var t=G(e),t=W(t);if(!re(t))return e;e=t}return e},He.prototype.closestNode=function(e){var t=K(this.findNode(e)).prev||this.firstVisibleNode();return(t||{}).index===e?this.visibleSibling(t,1):t},He.prototype.firstFocusableNode=function(){return this.nodes.find(function(e){return!e.disabled&&e.visible})},He.prototype.findNode=function(e){return this.find(e,this.nodes)},He.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},He.prototype.findVisibleChild=function(e){e=this.findNode(e);return G(e).find(function(e){return e.visible})},He.prototype.findVisiblePrev=function(e){var t=e.index,n=this.findParent(t),i=this.ib.lastLevelIndex(t),e=this.container(n).slice(0,i).every(function(e){return!e.visible});if(0===i||e)return n;var t=this.findNode(t),o=this.visibleSibling(t,-1);if(o)for(var a=this.container(o);0<a.length&&a.some(function(e){return e.visible});)o=W(a),a=this.container(o);return o},He.prototype.findVisibleNext=function(e){var t=this.container(e),n=t.some(function(e){return e.visible});return 0!==t.length&&n?t.find(function(e){return e.visible}):this.visibleSibling(e,1)},He.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var a=this.ib.level(t),r=this.findParent(t);!r&&1!==a||this.insert({id:e,children:[],index:t,parent:r,disabled:n,loadMoreButton:i,visible:o},r)},He.prototype.unregisterItem=function(e,t){t=this.find(t,this.nodes);t&&t.id===e&&(e=this.container(t.parent)).splice(e.indexOf(t),1)},He.prototype.childLevel=function(e){e=e.filter(function(e){return re(e)});return e&&e.length?this.ib.level(e[0].index):1},He.prototype.container=function(e){return e?e.children:this.nodes},He.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),n=n===this.ib.level(e),t=t.find(function(e){return e&&e.index===i});return t?n?t:this.find(e,t.children):null},He.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},He.prototype.visibleSibling=function(e,t){if(!e)return null;for(var n=this.findParent(e.index),i=this.container(n),o=i.indexOf(e)+t,a=i[o];re(a);){if(a.visible)return a;a=i[o+=t]}return this.visibleSibling(n,t)},He),pe=(Object.defineProperty(ze.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(ze.prototype,"activeIndex",{get:function(){return V(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(ze.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&0<this.activeItem.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(ze.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(ze.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),ze.prototype.activate=function(e){this.navigable&&e&&!this.isActive(V(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},ze.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},ze.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},ze.prototype.activateClosest=function(e){e&&V(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},ze.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},ze.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},ze.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},ze.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},ze.prototype.notifyLoadMore=function(e){re(e)&&this.loadMore.next(e)},ze.prototype.isActive=function(e){return!!e&&this.isFocused&&this.activeIndex===e},ze.prototype.isFocusable=function(e){return V(this.focusableItem)===e},ze.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},ze.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var a=this.model.findNode(t);re(a)&&(this.model.unregisterItem(a.id,a.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,i,o)},ze.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},ze.prototype.move=function(e){var t;!this.navigable||(t=this.actions[e.keyCode])&&(t(),e.preventDefault())},ze.prototype.expand=function(e){var t=e.expand,n=e.intercept,e=V(this.activeItem);e&&!n(e)&&this.notifyExpand(t)},ze.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(V(this.activeItem))),!0)},ze.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(V(this.activeItem))),!0)},ze.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},ze.prototype.notifyMove=function(){this.moves.next(this.navigationState())},ze.prototype.navigationState=function(e){return{expand:e=void 0===e?!1:e,index:this.activeIndex,isFocused:this.isFocused}},ze.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},ze.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},Object(o.__decorate)([Object(h.Injectable)(),Object(o.__metadata)("design:paramtypes",[a.LocalizationService])],ze)),ue=(Ne.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},Object(o.__decorate)([Object(h.Injectable)()],Ne)),he=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewNodeTemplate]"}),Object(o.__param)(0,Object(h.Optional)()),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Le),be=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),Object(o.__param)(0,Object(h.Optional)()),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Me),me=Object(o.__decorate)([Object(h.Injectable)()],Ae),ge=Object(o.__decorate)([Object(h.Injectable)()],Be),fe=(Ve.prototype.isFirstSelected=function(e){return this.firstIndex===e},Ve.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},Ve.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},Object(o.__decorate)([Object(h.Injectable)()],Ve)),ve=/\d+$/,ye=(Re.prototype.reset=function(){this.map.clear()},Re.prototype.registerItem=function(e,t){t={children:[],item:e,parent:this.item(V(t))};this.map.set(e.index,t)},Re.prototype.registerChildren=function(e,t){e=this.item(e);e&&(e.children=t)},Re.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter(function(e){return e.dataItem!==t})))},Re.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},Re.prototype.itemLookup=function(e){e=this.item(e);return e?{children:this.mapChildren(e.children),item:e.item,parent:e.parent}:null},Re.prototype.hasItem=function(e){return this.map.has(e)},Re.prototype.item=function(e){return this.map.get(e)||null},Re.prototype.addToParent=function(e,t){var n;t&&(n=this.item(t.index),t=parseInt(ve.exec(e.index)[0],10),n.children=n.children||[],n.children.splice(t,0,e))},Re.prototype.mapChildren=function(e){var i=this;return(e=void 0===e?[]:e).map(function(e){var t=i.item(e.index),n=t.item,e=t.parent,t=t.children;return{children:i.mapChildren(t),item:n,parent:e}})},Object(o.__decorate)([Object(h.Injectable)()],Re)),_e=[te,ne,ye,ie,ue,pe,fe,ee,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.treeview"},{provide:me,useExisting:Object(h.forwardRef)(function(){return Oe})},{provide:ge,useExisting:Object(h.forwardRef)(function(){return Oe})}],Oe=(Object.defineProperty(Fe.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"nodeTemplateRef",{get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"loadMoreButtonTemplateRef",{get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"hasChildren",{get:function(){return this._hasChildren||p},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"isChecked",{get:function(){return this._isChecked||f},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"isExpanded",{get:function(){return this._isExpanded||y},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"isSelected",{get:function(){return this._isSelected||_},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),Fe.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),Object(l.anyChanged)(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},Fe.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})},Fe.prototype.ngOnInit=function(){var i=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(e){return i.childrenLoaded.emit(e)})),this.subscriptions.add(this.expandService.changes.subscribe(function(e){var t=e.index,n=e.dataItem;return(e.expand?i.expand:i.collapse).emit({index:t,dataItem:n})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(e){return i.checkedChange.emit(i.treeViewLookupService.itemLookup(e))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(e){Object(l.hasObservers)(i.selectionChange)&&i.ngZone.run(function(){i.selectionChange.emit(e)})})),this.element&&this.ngZone.runOutsideAngular(function(){i.attachDomHandlers()})},Fe.prototype.blur=function(){var e;Object(l.isDocumentAvailable)()&&(e=F(this.element),document.activeElement===e&&e.blur())},Fe.prototype.focus=function(e){e=e||V(this.navigationService.focusableItem);this.navigationService.activateIndex(e);e=F(this.element);e&&e.focus()},Fe.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},Fe.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},Fe.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},Fe.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},Fe.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},Fe.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},Fe.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},Fe.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},Fe.prototype.focusHandler=function(e){var t,n=this;ae(e.target,".k-treeview-item")?t=e.target:E(e.target)||(t=x(e.target)),t&&(this.navigationService.activateIndex(R(e.target)),!this.isActive&&Object(l.hasObservers)(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)},Fe.prototype.blurHandler=function(e){var t=this;!this.isActive||!ae(e.target,".k-treeview-item")||e.relatedTarget&&ae(e.relatedTarget,".k-treeview-item")&&P(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,Object(l.hasObservers)(this.onBlur)&&this.ngZone.run(function(){t.onBlur.emit()}))},Fe.prototype.clickHandler=function(t){var n,i=this,e=t.target;"contextmenu"===t.type&&!Object(l.hasObservers)(this.nodeClick)||!("click"!==t.type||Object(l.hasObservers)(this.nodeClick)||Object(l.hasObservers)(this.selectionChange)||T(e))||"dblclick"===t.type&&!Object(l.hasObservers)(this.nodeDblClick)||E(e)||!D(e)&&!T(e)||!P(e,this.element.nativeElement)||(n=R(x(e)))&&!this.navigationService.isDisabled(n)&&this.ngZone.run(function(){var e=i.treeViewLookupService.itemLookup(n);if("click"===t.type){if(i.navigationService.model.findNode(n).loadMoreButton)return void i.navigationService.notifyLoadMore(n);i.navigationService.selectIndex(n)}("dblclick"===t.type?i.nodeDblClick:i.nodeClick).emit({item:e.item,originalEvent:t,type:t.type})})},Fe.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run(function(){t.navigationService.move(e)})},Fe.prototype.verifyLoadMoreService=function(){if(Object(h.isDevMode)()&&!re(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},Fe.prototype.registerLookupItems=function(e,n){var i,o=this;void 0===n&&(n=null),re(e)&&0!==e.length&&(i=V(n),e=e.map(function(e,t){return n=t,t=i,re(e=e)?{dataItem:e,index:N(t,n)}:null;var n}),re(n)&&this.treeViewLookupService.registerChildren(i,e),e.forEach(function(t){o.treeViewLookupService.registerItem(t,n),o.hasChildren(t.dataItem)&&o.children(t.dataItem).subscribe(function(e){return o.registerLookupItems(e,t)})}))},Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-treeview"),Object(o.__metadata)("design:type",Boolean)],Fe.prototype,"classNames",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.role"),Object(o.__metadata)("design:type",String)],Fe.prototype,"role",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],Fe.prototype,"direction",null),Object(o.__decorate)([Object(h.ViewChild)("assetsContainer",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],Fe.prototype,"assetsContainer",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Fe.prototype,"filterInputPlaceholder",void 0),Object(o.__decorate)([Object(h.Input)(),Object(h.HostBinding)("@.disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],Fe.prototype,"animate",null),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"childrenLoaded",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"expand",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"collapse",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"nodeDragStart",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"nodeDrag",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"filterStateChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"nodeDrop",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"nodeDragEnd",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"addItem",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"removeItem",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"checkedChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"selectionChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"filterChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"nodeClick",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fe.prototype,"nodeDblClick",void 0),Object(o.__decorate)([Object(h.ContentChild)(he,{static:!1}),Object(o.__metadata)("design:type",he)],Fe.prototype,"nodeTemplateQuery",void 0),Object(o.__decorate)([Object(h.Input)("nodeTemplate"),Object(o.__metadata)("design:type",he),Object(o.__metadata)("design:paramtypes",[he])],Fe.prototype,"nodeTemplateRef",null),Object(o.__decorate)([Object(h.ContentChild)(be,{static:!1}),Object(o.__metadata)("design:type",be)],Fe.prototype,"loadMoreButtonTemplateQuery",void 0),Object(o.__decorate)([Object(h.Input)("loadMoreButtonTemplate"),Object(o.__metadata)("design:type",be),Object(o.__metadata)("design:paramtypes",[be])],Fe.prototype,"loadMoreButtonTemplateRef",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Fe.prototype,"trackBy",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Fe.prototype,"nodes",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Fe.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Fe.prototype,"hasChildren",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Fe.prototype,"isChecked",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Fe.prototype,"isDisabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Fe.prototype,"isExpanded",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Fe.prototype,"isSelected",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Fe.prototype,"isVisible",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Fe.prototype,"navigable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Fe.prototype,"children",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Fe.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Fe.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Fe.prototype,"filter",void 0),Object(o.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:_e,selector:"kendo-treeview",template:'\n <kendo-textbox\n #filterInput\n *ngIf="filterable"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,h.ChangeDetectorRef,te,pe,ue,fe,ye,h.NgZone,h.Renderer2,ee,a.LocalizationService])],Fe)),je=(Object.defineProperty(Pe.prototype,"moreNodesAvailable",{get:function(){return!(!re(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"pageSize",{get:function(){return re(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"data",{get:function(){if(re(this.pageSize)){var e=0<this.pageSize?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"hasTemplate",{get:function(){return re(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),Pe.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},Pe.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},Pe.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},Pe.prototype.nodeText=function(e){var t=w(this.textField)?this.textField[0]:this.textField;return Object(u.getter)(t)(e)},Pe.prototype.ngOnDestroy=function(){re(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),re(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},Pe.prototype.ngOnInit=function(){var t=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Object(g.filter)(function(e){return e===t.loadMoreButtonIndex})).subscribe(this.loadMoreNodes.bind(this)))},Pe.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},Pe.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(Object(g.catchError)(function(){return n.loadingService.notifyLoaded(t),m.EMPTY}),Object(g.tap)(function(){return n.loadingService.notifyLoaded(t)}))},Object.defineProperty(Pe.prototype,"nextFields",{get:function(){return w(this.textField)?1<this.textField.length?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),Pe.prototype.loadMoreNodes=function(){re(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},Pe.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},Pe.prototype.fetchMoreNodes=function(){var n=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,re(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(Object(g.finalize)(function(){return n.loadingMoreNodes=!1})).subscribe(function(e){var t;Array.isArray(e)&&0<e.length&&(t=n.loadMoreButtonIndex,n.pageSize+=e.length,n.data=n.data.concat(e),n.navigationService.isActive(t)&&(n.changeDetectorRef.detectChanges(),n.reselectItemAt(t)))}))},Pe.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},Pe.prototype.mapToTreeItem=function(e){var n=this;return this.parentIndex?e.map(function(e,t){return{dataItem:e,index:n.nodeIndex(t)}}):[]},Pe.prototype.emitChildrenLoaded=function(e){this.parentIndex&&(e=e.filter(function(e){return e.dataItem}),this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e))},Pe.prototype.subscribeToNodesChange=function(){var t=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(e){t.data=e,t.initialNodesLoaded=!0})},Pe.prototype.reselectItemAt=function(e){re(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},Pe.prototype.registerLoadedNodes=function(e){e=this.mapToTreeItem(e=void 0===e?[]:e);this.loadOnDemand&&this.setNodeChildren(e),this.emitChildrenLoaded(e)},Object(o.__decorate)([Object(h.HostBinding)("class.k-group"),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"kGroupClass",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.role"),Object(o.__metadata)("design:type",String)],Pe.prototype,"role",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"checkboxes",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"expandIcons",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"selectable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"touchActions",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Pe.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"trackBy",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"nodes",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Pe.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Pe.prototype,"parentDataItem",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Pe.prototype,"parentIndex",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",h.TemplateRef)],Pe.prototype,"nodeTemplateRef",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",h.TemplateRef)],Pe.prototype,"loadMoreButtonTemplateRef",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Pe.prototype,"loadMoreService",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"isChecked",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"isDisabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"isExpanded",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"isVisible",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"isSelected",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"children",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Pe.prototype,"hasChildren",void 0),Object(o.__decorate)([Object(h.Component)({animations:[{type:7,name:"toggle",definitions:[d("void => *",[c({height:0}),s("0.1s ease-in",c({height:"*"}))]),d("* => void",[c({height:"*"}),s("0.1s ease-in",c({height:0}))])],options:{}}],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-item k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-mid">\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-in"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-item k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-in k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </div>\n </li>\n '}),Object(o.__metadata)("design:paramtypes",[te,ie,ne,ye,pe,ue,ee,h.ChangeDetectorRef])],Pe)),ke=(Object.defineProperty(Te.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(Te.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!re(this.checkable)||"string"==typeof this.checkable)return e;var t=I(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),Te.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},Te.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},Te.prototype.isItemChecked=function(e,t){return this.checkKey?-1<this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))?"checked":"none":this.isIndexChecked(t)},Te.prototype.isIndexChecked=function(e){var i,t,n=this.checkedKeys.filter((i=e,function(e){return i===e||!!e.split&&e.split("_").reduce(function(e,t){var n=e.key,e=e.result;return i===(n+=t)||e?{result:!0}:{key:n+="_",result:!1}},{key:"",result:!1}).result}));if(t=e,0<n.filter(function(e){return e===t}).length)return"checked";var o=this.options,e=o.mode,o=o.checkParents;return"multiple"===e&&o&&n.length?"indeterminate":"none"},Te.prototype.itemKey=function(e){return re(this.checkKey)?"string"==typeof this.checkKey&&re(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},Te.prototype.check=function(e){var t=this.options,n=t.enabled,t=t.mode,t=this.checkActions[t]||C;n&&t(e)},Te.prototype.checkSingle=function(e){e=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==e?[e]:[],this.notify()},Te.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},Te.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe(function(e){"click"===e.type&&(e=t.treeView.itemLookup(e.item.index),t.check(e))}))},Te.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},Te.prototype.checkNode=function(e){var t,n,i,o,a=this;re(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)&&(t=this.itemKey(e.item),re(t)&&(n=new Set(this.checkedKeys),i=[t],this.options.checkChildren&&(e=z(e,function(e){e=e.item;return a.treeView.isVisible(e.dataItem,e.index)&&!a.treeView.isDisabled(e.dataItem,e.index)}).map(function(e){e=e.item;return a.itemKey(e)}),i.push.apply(i,e)),o=!n.has(t),i.forEach(function(e){o?n.add(e):n.delete(e)}),this.checkedKeys=Array.from(n)))},Te.prototype.checkParents=function(e){var t=this;if(re(e)){for(var n=new Set(this.checkedKeys),i=e;i;){var o=this.itemKey(i.item);i.children.every(function(e){return n.has(t.itemKey(e))})?n.add(o):n.delete(o),i=i.parent}this.checkedKeys=Array.from(n)}},Te.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},Te.prototype.addCheckedItemsChildren=function(e){var t,n,i=this;re(e)&&0!==e.length&&(t=this.checkedKeys.length,n=new Set(this.checkedKeys),e.forEach(function(t){var e=i.itemKey(t.item);n.has(e)&&t.children.forEach(function(e){i.treeView.isDisabled(t.item.dataItem,t.item.index)||i.treeView.isDisabled(e.dataItem,e.index)||n.add(i.itemKey(e))})}),t!==n.size&&(this.checkedKeys=Array.from(n),this.zone.run(function(){return i.notify()})))},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Te.prototype,"isChecked",null),Object(o.__decorate)([Object(h.Input)("checkBy"),Object(o.__metadata)("design:type",Object)],Te.prototype,"checkKey",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Te.prototype,"checkedKeys",null),Object(o.__decorate)([Object(h.Input)("kendoTreeViewCheckable"),Object(o.__metadata)("design:type",Object)],Te.prototype,"checkable",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Te.prototype,"checkedKeysChange",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewCheckable]"}),Object(o.__metadata)("design:paramtypes",[Oe,h.NgZone])],Te)),Ce=(Object.defineProperty(De.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),De.prototype.ngOnChanges=function(e){e=(e=void 0===e?{}:e).disabledKeys;e&&!e.firstChange&&this.cdr.markForCheck()},De.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],De.prototype,"isDisabled",null),Object(o.__decorate)([Object(h.Input)("kendoTreeViewDisable"),Object(o.__metadata)("design:type",Object)],De.prototype,"disableKey",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],De.prototype,"disabledKeys",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewDisable]"}),Object(o.__metadata)("design:paramtypes",[Oe,h.ChangeDetectorRef])],De)),Se={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},we=(Object.defineProperty(Ee.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"filterExpandSettings",{get:function(){var e=I(this.expandOnFilter)?{enabled:this.expandOnFilter}:Object(o.__assign)({},this.expandOnFilter,{enabled:!0});return Object.assign({},Se,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Ee.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=e},enumerable:!0,configurable:!0}),Ee.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Ee.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},Ee.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,i=e.expand,e=this.itemKey({index:t,dataItem:n}),t=this.expandedKeys.indexOf(e),n=!1;-1<t&&!i?(this.expandedKeys.splice(t,1),n=!0):-1===t&&i&&(this.expandedKeys.push(e),n=!0),n&&this.expandedKeysChange.emit(this.expandedKeys)},Ee.prototype.handleAutoExpand=function(e){var n=this,t=e.nodes,i=e.matchCount,o=e.term;if(this.filterExpandSettings.enabled){var a=this.filterExpandSettings,e=a.maxAutoExpandResults,r=a.expandMatches,a=a.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=this.expandedKeys.slice()),this.isFiltered&&!o||-1!==e&&e<i){switch(a){case"initial":H(this.expandedKeys,this.originalExpandedKeys)||(this.expandedKeys=this.originalExpandedKeys,this.expandedKeysChange.emit(this.expandedKeys));break;case"all":this.expandedKeys=t.reduce(function(e,t){return n.getEveryExpandKey(e,t),e},[]),this.expandedKeysChange.emit(this.expandedKeys);break;case"unchanged":break;default:0!==this.expandedKeys.length&&(this.expandedKeys=[],this.expandedKeysChange.emit(this.expandedKeys))}this.isFiltered=!1}else{a=t.reduce(function(e,t){return n.updateExpandedNodes(e,t,r),e},[]);H(this.expandedKeys,a)||(this.expandedKeys=a,this.expandedKeysChange.emit(this.expandedKeys)),this.isFiltered=!0}}},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Ee.prototype,"isExpanded",null),Object(o.__decorate)([Object(h.Input)("expandBy"),Object(o.__metadata)("design:type",Object)],Ee.prototype,"expandKey",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Ee.prototype,"expandOnFilter",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Ee.prototype,"expandedKeysChange",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Ee.prototype,"expandedKeys",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewExpandable]"}),Object(o.__metadata)("design:paramtypes",[ge])],Ee)),Ie=(Object.defineProperty(xe.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(xe.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!re(this.selection)||"string"==typeof this.selection)return e;var t=I(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),xe.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},xe.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},xe.prototype.select=function(e){var t=this.options,n=t.enabled,t=t.mode,t=this.selectActions[t]||C;n&&t(e)},xe.prototype.selectSingle=function(e){e=this.itemKey(e);this.selectedKeys[0]!==e&&(this.selectedKeys=[e],this.notify())},xe.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),e=-1<n;re(t)&&(e?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},xe.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],xe.prototype,"isSelected",null),Object(o.__decorate)([Object(h.Input)("selectBy"),Object(o.__metadata)("design:type",Object)],xe.prototype,"selectKey",void 0),Object(o.__decorate)([Object(h.Input)("kendoTreeViewSelectable"),Object(o.__metadata)("design:type",Object)],xe.prototype,"selection",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],xe.prototype,"selectedKeys",null),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],xe.prototype,"selectedKeysChange",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.aria-multiselectable"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],xe.prototype,"getAriaMultiselectable",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewSelectable]"}),Object(o.__metadata)("design:paramtypes",[Oe])],xe));function xe(e){var n=this;this.treeView=e,this.selectedKeysChange=new h.EventEmitter,this.subscriptions=new m.Subscription,this.selectActions={multiple:function(e){return n.selectMultiple(e)},single:function(e){return n.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,t){return-1<n.selectedKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}function Ee(e){var i=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new h.EventEmitter,this.subscriptions=new m.Subscription,this._expandedKeys=[],this.originalExpandedKeys=[],this.isFiltered=!1,this.updateExpandedNodes=function(t,e,n){(e.containsMatches||e.isMatch&&n&&M(e.children))&&t.push(i.itemKey({dataItem:e.dataItem,index:e.index})),M(e.children)&&e.children.forEach(function(e){i.updateExpandedNodes(t,e,n)})},this.getEveryExpandKey=function(t,e){M(e.children)&&t.push(i.itemKey({dataItem:e.dataItem,index:e.index})),M(e.children)&&e.children.forEach(function(e){i.getEveryExpandKey(t,e)})},this.subscriptions.add(Object(m.merge)(this.component.expand.pipe(Object(g.map)(function(e){return Object(o.__assign)({expand:!0},e)})),this.component.collapse.pipe(Object(g.map)(function(e){return Object(o.__assign)({expand:!1},e)}))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,t){return-1<i.expandedKeys.indexOf(i.itemKey({dataItem:e,index:t}))}}function De(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return-1<n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}function Te(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new h.EventEmitter,this.subscriptions=new m.Subscription,this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe(function(e){return n.check(e)}));var i=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(Object(g.filter)(function(){return n.options.checkChildren&&n.treeView.loadOnDemand}),Object(g.tap)(function(e){return i.push(e)}),Object(g.switchMap)(function(){return n.zone.onStable.pipe(Object(g.take)(1))})).subscribe(function(){return n.addCheckedItemsChildren(i)})),this.treeView.isChecked=this.isItemChecked.bind(this)}function Pe(e,t,n,i,o,a,r,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=a,this.dataChangeNotification=r,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new m.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return Object(m.of)([])},this.hasChildren=function(){return!1}}function Fe(e,t,n,i,o,a,r,s,c,d,l){var p=this;this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=i,this.nodeChildrenService=o,this.selectionService=a,this.treeViewLookupService=r,this.ngZone=s,this.renderer=c,this.dataChangeNotification=d,this.localization=l,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return p.data},this.childrenLoaded=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.expand=new h.EventEmitter,this.collapse=new h.EventEmitter,this.nodeDragStart=new h.EventEmitter,this.nodeDrag=new h.EventEmitter,this.filterStateChange=new h.EventEmitter,this.nodeDrop=new h.EventEmitter,this.nodeDragEnd=new h.EventEmitter,this.addItem=new h.EventEmitter,this.removeItem=new h.EventEmitter,this.checkedChange=new h.EventEmitter,this.selectionChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.nodeClick=new h.EventEmitter,this.nodeDblClick=new h.EventEmitter,this.trackBy=j,this.isDisabled=v,this.isVisible=O,this.navigable=!0,this.children=function(){return Object(m.of)([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new m.BehaviorSubject([]),this._animate=!0,this.subscriptions=new m.Subscription,this.domSubscriptions=[],Object(b.validatePackage)(J)}function Re(){this.map=new Map}function Ve(){this.changes=new m.Subject}function Be(){}function Ae(){}function Me(e){this.templateRef=e}function Le(e){this.templateRef=e}function Ne(){this.changes=new m.Subject}function ze(e){var t=this;this.localization=e,this.expands=new m.Subject,this.moves=new m.Subject,this.checks=new m.Subject,this.selects=new m.Subject,this.loadMore=new m.Subject,this.navigable=!0,this.actions=((e={})[l.Keys.ArrowUp]=function(){return t.activate(t.model.findVisiblePrev(t.focusableItem))},e[l.Keys.ArrowDown]=function(){return t.activate(t.model.findVisibleNext(t.focusableItem))},e[l.Keys.ArrowLeft]=function(){return!t.isLoadMoreButton&&t.expand({expand:t.localization.rtl,intercept:t.localization.rtl?t.moveToFirstVisibleChild:t.moveToParent})},e[l.Keys.ArrowRight]=function(){return!t.isLoadMoreButton&&t.expand({expand:!t.localization.rtl,intercept:t.localization.rtl?t.moveToParent:t.moveToFirstVisibleChild})},e[l.Keys.Home]=function(){return t.activate(t.model.firstVisibleNode())},e[l.Keys.End]=function(){return t.activate(t.model.lastVisibleNode())},e[l.Keys.Enter]=function(){return t.handleEnter()},e[l.Keys.Space]=function(){return t.handleSpace()},e),this.isFocused=!1,this._model=new le,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}function He(){this.ib=new ne,this.nodes=[]}function Ke(){this.changes=new m.Subject}function Ge(){this.INDEX_SEPARATOR="_"}function We(){this.changes=new m.Subject}function Ue(){this.changes=new h.EventEmitter}(St=U=U||{})[St.Add=0]="Add",St[St.InsertTop=1]="InsertTop",St[St.InsertBottom=2]="InsertBottom",St[St.InsertMiddle=3]="InsertMiddle",St[St.Invalid=4]="Invalid",(wt=$=$||{})[wt.Over=0]="Over",wt[wt.Before=1]="Before",wt[wt.After=2]="After",(Y=Z=Z||{})[Y.Up=-1]="Up",Y[Y.Down=1]="Down";var $e,Ze,qe,Ye,_e=(nt.prototype.preventDefault=function(){this.prevented=!0},nt.prototype.isDefaultPrevented=function(){return this.prevented},nt),Xe=(Ye=_e,Object(o.__extends)(tt,Ye),tt.prototype.setValid=function(e){this.isValid=e},tt),Qe=(qe=_e,Object(o.__extends)(et,qe),et),Je=(Ze=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ze||($e=function(){if(!Object(l.isDocumentAvailable)()||!re(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}.apply(void 0,e),Ze=!0),$e});function et(e){var t=qe.call(this)||this;return Object.assign(t,e),t}function tt(e,t){var n=Ye.call(this)||this;return n.isValid=!0,Object.assign(n,e),n.originalEvent=t,n}function nt(){this.prevented=!1}function it(e,t,n,i,o){if(re(e)&&re(t)&&re(i)&&re(o)){var a=k(t,".k-mid");if(re(a)){i=function(e){if(!re(e))return null;var t=".k-in:not(.k-treeview-load-more-button)";return ae(e,t)?e:e.querySelector(t)}(a),a=P(a,x(e));if(re(i)&&i!==e&&!a){i=i.getBoundingClientRect(),t=i.height/(D(t)?4:2),n=n-o.top,o=i.top-o.top;return n<o+t?$.Before:n>=o+i.height-t?$.After:$.Over}}}}function ot(e,t){return re(e)&&re(t)?(t=x(t),t=R(t),t=e.itemLookup(t),re(t)&&re(t.item.dataItem)?t:null):null}function at(e,t,n){re(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)}function rt(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)}function st(e){return Object(l.isDocumentAvailable)()&&re(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target}function ct(e,t){var n=e.split("_"),i=t.split("_");if(n.length<i.length)return e;var o=i.length-1,a=i.slice(0,o).join("_"),r=n.slice(0,o).join("_"),t=i.length-1,o=Number(i[t]),i=Number(n[t]);return a===r&&o<i?(n[t]=String(i-1),n.join("_")):e}function dt(e,t,n){if(re(e)&&Object(l.isDocumentAvailable)())for(var i=e.scrollTop,o=t,a=0;!(i!==e.scrollTop||n===Z.Up&&Math.floor(e.scrollTop)<=0||n===Z.Down&&(r=e,Math.ceil(r.scrollTop)>=r.scrollHeight-r.clientHeight)||!(a<20));)e.scrollTop+=o*n,o+=1,a+=1;var r}function lt(e,t,n){re(e.loadMoreService)&&(t=e.getNodePageSize(t),e.setNodePageSize(n,t))}function pt(e,t){var n;re(e.loadMoreService)&&(n=e.getNodePageSize(t),e.setNodePageSize(t,n+1))}function ut(e,t){var n;re(e.loadMoreService)&&(n=e.getNodePageSize(t),e.setNodePageSize(t,n-1))}function ht(e,i,o,a){return void 0===o&&(o=null),void 0===a&&(a=""),M(e)?e.map(function(e,t){var n=Et.nodeIndex(t.toString(),a),t={dataItem:e,index:n,parent:o,visible:!0};return t.children=ht(Object(u.getter)(i)(e),i,t,n),t}):[]}function bt(t,e,n){return e.filter(function(e){return t(e)===n})}function mt(e,i,o,a,r,s){return void 0===r&&(r=null),void 0===s&&(s=""),M(e)?e.map(function(e,t){var n=Tt.nodeIndex(t.toString(),s),t={dataItem:e,index:n,parent:r,visible:!0};return t.children=mt(bt(Object(u.getter)(o),i||[],Object(u.getter)(a)(e)),i,o,a,t,n),t}):[]}function gt(e,t){return{dataItem:t,index:e}}var ft,vt,yt,_t,Ot=new RegExp("(auto|scroll)"),jt=(tn.prototype.add=function(e){var t,n,i=e.sourceItem,o=e.destinationItem,a=e.dropPosition,r=e.sourceTree,s=e.destinationTree,c=Object.assign({},A(i));a===$.Over?(rt(o,s),t=this.childrenFor(A(o)),n=re(s.loadMoreService)?Math.min(s.loadMoreService.getGroupSize(A(o)),t.length):t.length,t.splice(n,0,c),Object(u.setter)(this.hierarchyBinding.childrenField)(A(o),t),this.movedItemNewIndex=N(o.item.index,n)):(e=this.getParentNodes(o,s),t=a===$.After?1:0,n=e.indexOf(A(o))+t,e.splice(n,0,c),e=o.parent?o.parent.item.index:null,this.movedItemNewIndex=N(e,n));o=a===$.Over?A(o):A(o.parent);pt(s,o),lt(s,A(i),c),r===s||s.loadOnDemand||s.preloadChildNodes(),r!==s&&(s.changeDetectorRef.detectChanges(),s.focus(this.movedItemNewIndex))},tn.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=this.getParentNodes(t,n),e=o.indexOf(A(t));o.splice(e,1),at(t.parent,o,n),ut(n,A(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i&&(i.changeDetectorRef.detectChanges(),t=ct(this.movedItemNewIndex,t.item.index),i.focus(t))},tn.prototype.getParentNodes=function(e,t){return re(e.parent)?this.childrenFor(A(e.parent)):t.nodes},tn.prototype.childrenFor=function(e){return Object(u.getter)(this.hierarchyBinding.childrenField)(e)||[]},tn),kt=(Object.defineProperty(en.prototype,"statusIconClass",{get:function(){switch(this.action){case U.Add:return"k-i-plus";case U.InsertTop:return"k-i-insert-up";case U.InsertBottom:return"k-i-insert-down";case U.InsertMiddle:return"k-i-insert-middle";default:U.Invalid;return"k-i-cancel"}},enumerable:!0,configurable:!0}),en.prototype.detectChanges=function(){this.cdr.detectChanges()},Object(o.__decorate)([Object(h.HostBinding)("class.k-header"),Object(h.HostBinding)("class.k-drag-clue"),Object(o.__metadata)("design:type",Boolean)],en.prototype,"hostClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("style.position"),Object(o.__metadata)("design:type",String)],en.prototype,"posistionStyle",void 0),Object(o.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),Object(o.__metadata)("design:paramtypes",[h.ChangeDetectorRef])],en)),ue=(Object.defineProperty(Jt.prototype,"componentRef",{get:function(){if(!re(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(Jt.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),Jt.prototype.ngOnDestroy=function(){re(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},Jt.prototype.show=function(){this.element.style.display=""},Jt.prototype.hide=function(){this.element.style.display="none"},Jt.prototype.move=function(e,t,n){this.element.style.left=e+(n=void 0===n?0:n)+"px",this.element.style.top=t+n+"px"},Jt),ee=(_t=ue,Object(o.__extends)(Qt,_t),Qt.prototype.initialize=function(e,t){re(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(kt);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},Qt.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),_t.prototype.ngOnDestroy.call(this)},Qt.prototype.move=function(e,t){_t.prototype.move.call(this,e,t,10)},Qt.prototype.animateDragClueToElementPosition=function(e){var t,n=this;re(e)&&re(this.element.animate)?(t=e.getBoundingClientRect(),e=this.element.getBoundingClientRect(),this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(t.left-e.left)+"px, "+(t.top-e.top)+"px)"}],200),this.returnAnimation.onfinish=function(){return n.hide()}):this.hide()},Qt.prototype.cancelReturnAnimation=function(){re(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},Qt.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&B(t,i.sourceItem)&&B(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},Qt.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},Qt.prototype.scrollIntoView=function(e){var t=e.step,n=e.interval;this.cancelScroll();var i,o,a,r=function(e){for(;re(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,n=Ot.test(getComputedStyle(e).overflowY);if(t&&n)return e;e=e.parentNode}return e}(this.element);re(r)&&(a=r.getBoundingClientRect(),i=this.element.getBoundingClientRect(),e=(o=Math.max(a.top,0))+i.height,a=o+Math.min(a.bottom,r.clientHeight),i.top<e?this.scrollInterval=setInterval(function(){return dt(r,t,Z.Up)},n):i.bottom>a&&(this.scrollInterval=setInterval(function(){return dt(r,t,Z.Down)},n)))},Qt.prototype.cancelScroll=function(){re(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},Object(o.__decorate)([Object(h.Injectable)(),Object(o.__metadata)("design:paramtypes",[h.ComponentFactoryResolver])],Qt)),Ct=(Xt.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},Object(o.__decorate)([Object(h.HostBinding)("class.k-drop-hint-container"),Object(o.__metadata)("design:type",Boolean)],Xt.prototype,"hostClass",void 0),Object(o.__decorate)([Object(h.HostBinding)("style.position"),Object(o.__metadata)("design:type",String)],Xt.prototype,"position",void 0),Object(o.__decorate)([Object(h.HostBinding)("style.pointer-events"),Object(o.__metadata)("design:type",String)],Xt.prototype,"pointerEvents",void 0),Object(o.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}),Object(o.__metadata)("design:paramtypes",[h.ChangeDetectorRef])],Xt)),St=(yt=ue,Object(o.__extends)(Yt,yt),Yt.prototype.initialize=function(e,t){re(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(Ct);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},Yt.prototype.updateDropHintData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&B(t,i.sourceItem)&&B(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},Object(o.__decorate)([Object(h.Injectable)(),Object(o.__metadata)("design:paramtypes",[h.ComponentFactoryResolver])],Yt)),wt=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewDragClueTemplate]"}),Object(o.__param)(0,Object(h.Optional)()),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],qt),Y=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewDropHintTemplate]"}),Object(o.__param)(0,Object(h.Optional)()),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Zt),It={enabled:!0,step:1,interval:1},_e=(Object.defineProperty($t.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},It,e)},enumerable:!0,configurable:!0}),$t.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},$t.prototype.ngOnDestroy=function(){this.draggable.destroy()},$t.prototype.handlePress=function(e){e=e.originalEvent;D(e.target)&&(this.draggedItem=k(e.target,".k-in"),this.pendingDragStartEvent=e)},$t.prototype.handleDrag=function(e){var t,n,i,o,a,r=this,s=e.originalEvent,c=e.clientX,d=e.clientY;this.shouldInitiateDragStart({clientX:c,clientY:d})&&this.initiateDragStart(),re(this.draggedItem)&&!re(this.pendingDragStartEvent)&&(t=st(s),Object(l.hasObservers)(this.treeview.nodeDrag)&&this.zone.run(function(){return r.notifyDrag(s,t)}),a=this.getTargetTreeView(t),n=it(this.draggedItem,t,d,a,this.containerOffset),i=k(t,".k-mid"),o=function(e,t){if(!re(e)||!re(t))return U.Invalid;switch(e){case $.Over:return U.Add;case $.Before:return re(x(t).previousElementSibling)?U.InsertMiddle:U.InsertTop;case $.After:return re(x(t).nextElementSibling)?U.InsertMiddle:U.InsertBottom;default:return U.Invalid}}(n,t),e=ot(this.treeview,this.draggedItem),a=ot(a,t),this.updateDropHintState(n,i,o,e,a),this.updateDragClueState(o,c,d,e,a),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings))},$t.prototype.handleRelease=function(e){var t=this,n=e.originalEvent,i=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!re(this.draggedItem)||re(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var e=st(n),o=this.treeview,a=this.getTargetTreeView(e),r=it(this.draggedItem,e,i,this.getTargetTreeView(e),this.containerOffset),s=ot(o,this.draggedItem),c=ot(a,e);re(c)&&re(r)?this.zone.run(function(){return t.notifyDrop({sourceItem:s,destinationItem:c,dropPosition:r,sourceTree:o,destinationTree:a},n)}):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),Object(l.hasObservers)(this.treeview.nodeDragEnd)&&this.zone.run(function(){return t.notifyDragEnd({sourceItem:s,destinationItem:c,originalEvent:n})}),this.dropHintService.hide(),this.draggedItem=null},$t.prototype.updateDropHintState=function(e,t,n,i,o){re(t)&&e!==$.Over&&re(e)?(t=t.getBoundingClientRect(),e=e===$.Before?t.top:t.top+t.height,this.dropHintService.updateDropHintData(n,i,o),this.dropHintService.move(t.left-this.containerOffset.left,e-this.containerOffset.top),this.dropHintService.show()):this.dropHintService.hide()},$t.prototype.updateDragClueState=function(e,t,n,i,o){this.dragClueService.move(t-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(e,i,o),this.dragClueService.show()},$t.prototype.initalizeDraggable=function(){var e=this;this.draggable=new X.a({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})},$t.prototype.notifyDragStart=function(e,t){t=ot(this.treeview,t),e=new Qe({sourceItem:t,originalEvent:e});return this.treeview.nodeDragStart.emit(e),e},$t.prototype.notifyDrag=function(e,t){e={sourceItem:ot(this.treeview,this.draggedItem),destinationItem:ot(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(e)},$t.prototype.notifyDrop=function(e,t){var n=new Xe(e,t);e.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},$t.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},$t.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,n=k(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find(function(e){return re(e)&&e.element.nativeElement===n})},$t.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular(function(){return setTimeout(function(){return e.animate=!0})}))},$t.prototype.shouldInitiateDragStart=function(e){return!!re(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},$t.prototype.initiateDragStart=function(){var e=this;if(Object(l.hasObservers)(this.treeview.nodeDragStart)&&this.zone.run(function(){return e.notifyDragStart(e.pendingDragStartEvent,st(e.pendingDragStartEvent))}).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=function(e){if(!e||!Je())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){e=t.getBoundingClientRect();return{left:e.left-t.scrollLeft,top:e.top-t.scrollTop}}return{left:0,top:0}}(this.draggedItem),this.pendingDragStartEvent=null},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],$t.prototype,"allowCopy",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],$t.prototype,"dropZoneTreeViews",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],$t.prototype,"startDragAfter",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],$t.prototype,"autoScroll",void 0),Object(o.__decorate)([Object(h.ContentChild)(wt,{static:!1}),Object(o.__metadata)("design:type",wt)],$t.prototype,"dragClueTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Y,{static:!1}),Object(o.__metadata)("design:type",Y)],$t.prototype,"dropHintTemplate",void 0),Object(o.__decorate)([Object(h.HostBinding)("style.user-select"),Object(h.HostBinding)("style.-ms-user-select"),Object(h.HostBinding)("style.-moz-user-select"),Object(h.HostBinding)("style.-webkit-user-select"),Object(o.__metadata)("design:type",String)],$t.prototype,"userSelectStyle",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewDragAndDrop]",providers:[ee,St]}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,h.NgZone,Oe,ee,St])],$t)),xt={operator:"contains",ignoreCase:!0,mode:"lenient"},ue=(Object.defineProperty(Ut.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=Object(o.__assign)({},xt,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Ut.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),Ut.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&L(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),re(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},Ut.prototype.updateVisibleNodes=function(e){var t=this;e.forEach(function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)})},Ut.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach(function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)})},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],Ut.prototype,"filterSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],Ut.prototype,"filter",null),Ut),Et=new ne,ee=(vt=ue,Object(o.__extends)(Wt,vt),Object.defineProperty(Wt.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(Wt.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=ht(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(Wt.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),Wt.prototype.ngOnInit=function(){var t=this;re(this.childrenField)&&(this.component.children=function(e){return Object(m.of)(Object(u.getter)(t.childrenField)(e))},this.component.hasChildren=function(e){e=Object(u.getter)(t.childrenField)(e);return Boolean(e&&e.length)},this.component.editService=new jt(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&re(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},Wt.prototype.ngOnChanges=function(e){Object(l.isChanged)("childrenField",e,!1)&&(this.nodes=this.originalData),Object(l.anyChanged)(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&re(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],Wt.prototype,"childrenField",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Wt.prototype,"nodes",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Wt.prototype,"isVisible",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Wt.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewHierarchyBinding]"}),Object(o.__param)(1,Object(h.Optional)()),Object(o.__param)(1,Object(h.Host)()),Object(o.__metadata)("design:paramtypes",[me,_e])],Wt)),St=(Object.defineProperty(Gt.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Gt.prototype.ngOnInit=function(){var t=this,n=this.loadingService.changes.pipe(Object(g.filter)(function(e){return e===t.index}));this.subscription=this.expandService.changes.pipe(Object(g.filter)(function(e){return e.index===t.index}),Object(g.tap)(function(e){!e.expand&&t.loading&&(t.loading=!1)}),Object(g.filter)(function(e){return e.expand}),Object(g.switchMap)(function(e){return Object(m.of)(e).pipe(Object(g.delay)(100),Object(g.takeUntil)(n))})).subscribe(function(){return t.loading=!0}),this.subscription.add(n.subscribe(function(){return t.loading=!1}))},Gt.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(o.__decorate)([Object(h.HostBinding)("class.k-i-loading"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],Gt.prototype,"loading",null),Object(o.__decorate)([Object(h.Input)("kendoTreeViewLoading"),Object(o.__metadata)("design:type",String)],Gt.prototype,"index",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewLoading]"}),Object(o.__metadata)("design:paramtypes",[te,ie,h.ChangeDetectorRef])],Gt)),Dt=(Kt.prototype.add=function(e){var t,n,i,o=e.sourceItem,a=e.destinationItem,r=e.dropPosition,s=e.sourceTree,c=e.destinationTree,e=Object.assign({},A(o));r===$.Over?(rt(a,c),t=Object(u.getter)(this.flatBinding.idField)(A(a)),Object(u.setter)(this.flatBinding.parentIdField)(e,t),n=this.getLastVisibleChildNodeIndex(c,this.flatBinding.originalData,A(a))+1,this.flatBinding.originalData.splice(n,0,e),this.rebindData(),i=this.fetchChildNodes(A(a),c).indexOf(e),this.movedItemNewIndex=N(a.item.index,i)):(t=r===$.After?1:0,n=this.flatBinding.originalData.indexOf(A(a))+t,this.flatBinding.originalData.splice(n,0,e),n=Object(u.getter)(this.flatBinding.parentIdField)(A(a)),Object(u.setter)(this.flatBinding.parentIdField)(e,n),this.rebindData(),n=a.parent?a.parent.item.index:null,i=(a.parent?this.fetchChildNodes(A(a.parent),c):c.nodes).indexOf(e),this.movedItemNewIndex=N(n,i)),s!==c&&this.addChildNodes(e,s);a=r===$.Over?A(a):A(a.parent);pt(c,a),lt(c,A(o),e),s===c||c.loadOnDemand||c.preloadChildNodes(),s!==c&&(c.changeDetectorRef.detectChanges(),c.focus(this.movedItemNewIndex))},Kt.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=A(t),e=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(e,1),n!==i&&this.removeChildNodes(o,n),this.rebindData();o=t.parent?t.parent.children:[];at(t.parent,o,n),ut(n,A(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i&&(i.changeDetectorRef.detectChanges(),t=ct(this.movedItemNewIndex,t.item.index),i.focus(t))},Kt.prototype.addChildNodes=function(e,t){e=this.fetchAllDescendantNodes(e,t);(t=this.flatBinding.originalData).push.apply(t,e)},Kt.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach(function(e){e=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(e,1)})},Kt.prototype.fetchAllDescendantNodes=function(e,t){var n=this,i=this.fetchChildNodes(e,t);return i.forEach(function(e){return i=i.concat(n.fetchAllDescendantNodes(e,t)||[])}),i},Kt.prototype.fetchChildNodes=function(e,t){if(!e)return[];var n=[];return t.children(e).pipe(Object(g.take)(1)).subscribe(function(e){return n=n.concat(e||[])}),n},Kt.prototype.getLastVisibleChildNodeIndex=function(e,t,n){if(!re(e.loadMoreService)||!e.hasChildren(n))return t.length;var i=e.loadMoreService.getGroupSize(n),i=this.fetchChildNodes(n,e).slice(0,i),i=i[i.length-1];return t.indexOf(i)},Kt.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},Kt),Tt=new ne,ie=(ft=ue,Object(o.__extends)(Ht,ft),Object.defineProperty(Ht.prototype,"nodes",{set:function(e){this.originalData=e||[],e=this.parentIdField,S(e)||0===e.trim().length?this.component.nodes=this.originalData.slice(0):(e=Object(u.getter)(this.parentIdField),this.component.nodes=this.originalData.filter(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(S,e)),this.filterData=mt(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData))},enumerable:!0,configurable:!0}),Object.defineProperty(Ht.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),Ht.prototype.ngOnInit=function(){var t,n=this;re(this.parentIdField)&&re(this.idField)&&(t=function(e){return bt(Object(u.getter)(n.parentIdField),n.originalData||[],Object(u.getter)(n.idField)(e))},this.component.hasChildren=function(e){return 0<t(e).length},this.component.children=function(e){return Object(m.of)(t(e))},this.component.editService=new Dt(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&re(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},Ht.prototype.ngOnChanges=function(e){Object(l.isChanged)("parentIdField",e,!1)&&(this.nodes=this.originalData),Object(l.anyChanged)(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&re(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Ht.prototype,"nodes",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ht.prototype,"parentIdField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ht.prototype,"idField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Ht.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],Ht.prototype,"isVisible",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewFlatDataBinding]"}),Object(o.__metadata)("design:paramtypes",[me])],Ht)),Pt=0,ue=(Object.defineProperty(zt.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"treeItem",{get:function(){return gt(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(zt.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?gt(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),zt.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},zt.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;Object(l.anyChanged)(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),Object(l.anyChanged)(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},zt.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,t){return t.unsubscribe(),e},[])},zt.prototype.subscribe=function(){var t=this;this.subscriptions=[this.navigationService.moves.subscribe(function(){t.updateTabIndex(),t.focusItem()}),this.navigationService.expands.pipe(Object(g.filter)(function(e){return e.index===t.index&&!t.isDisabled})).subscribe(function(e){e=e.expand;return t.expand(e)})]},zt.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},zt.prototype.activateItem=function(){var e,t,n;this.isDisabled||(e=this.navigationService,t=this.selectionService,n=this.index,t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n))},zt.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},zt.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},zt.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},zt.prototype.moveLookupItem=function(e){var t=(e=void 0===e?{}:e).dataItem,n=e.index,i=e.parentDataItem,e=e.parentIndex;n&&n.firstChange||!(t||n||i||e)||(n=(n||{}).previousValue||this.index,this.lookupService.replaceItem(n,this.treeItem,this.parentTreeItem))},zt.prototype.moveNavigationItem=function(e){var t=(e=void 0===e?{}:e).currentValue,n=e.firstChange,e=e.previousValue;!n&&re(t)&&re(e)&&(this.navigationService.unregisterItem(this.id,e),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},zt.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},zt.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},zt.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},zt.prototype.setClass=function(e,t){this.renderer[t?"addClass":"removeClass"](this.element.nativeElement,e)},zt.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},zt.prototype.setAttribute=function(e,t){re(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],zt.prototype,"dataItem",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],zt.prototype,"index",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],zt.prototype,"parentDataItem",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],zt.prototype,"parentIndex",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],zt.prototype,"role",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],zt.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],zt.prototype,"checkable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],zt.prototype,"selectable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],zt.prototype,"expandable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],zt.prototype,"isChecked",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],zt.prototype,"isDisabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],zt.prototype,"isVisible",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],zt.prototype,"isExpanded",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],zt.prototype,"isSelected",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewItem]"}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,te,pe,fe,ye,h.Renderer2,ne])],zt)),te=(Nt.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},Nt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Nt.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},Nt.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},Nt.prototype.render=function(e,t){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,t)},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Nt.prototype,"dataItem",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Nt.prototype,"index",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Nt.prototype,"initialSelection",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Nt.prototype,"isSelected",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewItemContent]"}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,pe,fe,h.Renderer2])],Nt)),ye=[(Object.defineProperty(Lt.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(Lt.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),Lt.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},Lt.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},Lt.prototype.handleChange=function(e){e=e.target.checked?"checked":"none";this.checkState=e,this.changeDetector.detectChanges(),this.checkStateChange.emit(e)},Object(o.__decorate)([Object(h.HostBinding)("class.k-checkbox-wrapper"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],Lt.prototype,"classWrapper",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Lt.prototype,"id",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Lt.prototype,"isChecked",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Lt.prototype,"node",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Lt.prototype,"index",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Lt.prototype,"labelText",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Lt.prototype,"tabindex",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Lt.prototype,"checkStateChange",void 0),Object(o.__decorate)([Object(h.Component)({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,h.Renderer2,h.ChangeDetectorRef])],Lt))],pe=Object(o.__decorate)([Object(h.NgModule)({declarations:[ye],exports:[ye]})],Mt),fe=(Object.defineProperty(At.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),At.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},At.prototype.handleAdd=function(e){if(!re(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},At.prototype.handleRemove=function(e){if(!re(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],At.prototype,"editService",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewDragAndDropEditing]"}),Object(o.__metadata)("design:paramtypes",[Oe])],At)),Ft="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",ye=(Object.defineProperty(Bt.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),Bt.prototype.ngOnChanges=function(){this.verifySettings()},Bt.prototype.verifySettings=function(){if(Object(h.isDevMode)()){if(!re(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+Ft+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(re(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+Ft+".");if(re(e)&&!re(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+Ft+".")}},Bt.prototype.getGroupSize=function(e){e=e||this.rootLevelId;return this.pageSizes.has(e)?this.pageSizes.get(e):this.pageSize},Bt.prototype.setGroupSize=function(e,t){e=e||this.rootLevelId;this.pageSizes.set(e,0<t?t:0)},Bt.prototype.getTotalNodesCount=function(e,t){return re(e)&&re(this.totalField)?e[this.totalField]:!re(e)&&re(this.totalRootNodes)?this.totalRootNodes:t},Bt.prototype.getInitalPageSize=function(){return this.pageSize},Object(o.__decorate)([Object(h.Input)("kendoTreeViewLoadMore"),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],Bt.prototype,"loadMoreNodes",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Bt.prototype,"pageSize",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Bt.prototype,"totalRootNodes",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Bt.prototype,"totalField",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoTreeViewLoadMore]"}),Object(o.__metadata)("design:paramtypes",[Oe])],Bt)),St=[Oe,je,ue,te,he,ke,Ce,we,Ie,ee,St,ie,_e,wt,kt,Y,Ct,fe,ye,be],Q=Object(o.__decorate)([Object(h.NgModule)({declarations:[St],exports:[St],imports:[q.CommonModule,pe,Q.InputsModule],entryComponents:[kt,Ct]})],Vt),be=[Oe,he,ke,Ce,we,Ie,ee,ie,_e,wt,Y,fe,ye,be],Q=Object(o.__decorate)([Object(h.NgModule)({exports:[be],imports:[Q]})],Rt);function Rt(){}function Vt(){}function Bt(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=Object(l.guid)(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}function At(e){this.treeview=e,this.subscriptions=new m.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}function Mt(){}function Lt(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+Object(l.guid)(),this.tabindex=0,this.checkStateChange=new h.EventEmitter,this.checkState="none"}function Nt(e,t,n,i){var o=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=_,this.subscriptions=new m.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Object(g.filter)(function(e){return e===o.index})).subscribe(function(e){return o.selectionService.select(e,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))}))}function zt(e,t,n,i,o,a,r){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=o,this.renderer=a,this.ib=r,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=Pt++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}function Ht(e){var t=ft.call(this,e)||this;return t.component=e,t.loadOnDemand=!0,t.originalData=[],t.component.isVisible=function(e){return t.visibleNodes.has(e)},t}function Kt(e){this.flatBinding=e}function Gt(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}function Wt(e,t){var n=vt.call(this,e)||this;n.component=e,n.dragAndDropDirective=t,n.loadOnDemand=!0,n.originalData=[];t=!re(n.dragAndDropDirective);return n.component.isVisible=t?function(e){return n.visibleNodes.has(e)}:O,n}function Ut(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=xt}function $t(e,t,n,i,o){this.element=e,this.zone=t,this.treeview=n,this.dragClueService=i,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}function Zt(e){this.templateRef=e}function qt(e){this.templateRef=e}function Yt(e){var t=yt.call(this)||this;return t.componentFactoryResolver=e,t}function Xt(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}function Qt(e){var t=_t.call(this)||this;return t.componentFactoryResolver=e,t}function Jt(){}function en(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}function tn(e){this.hierarchyBinding=e}n.d(t,"AUTOCOMPLETE_VALUE_ACCESSOR",function(){return Si}),n.d(t,"COMBOBOX_VALUE_ACCESSOR",function(){return Ei}),n.d(t,"TOUCH_ENABLED",function(){return Ci}),n.d(t,"DataService",function(){return bi}),n.d(t,"DisabledItemsService",function(){return mi}),n.d(t,"FilterInputDirective",function(){return ro}),n.d(t,"FilterableComponent",function(){return _i}),n.d(t,"ListItemDirective",function(){return Oi}),n.d(t,"CustomMessagesComponent",function(){return io}),n.d(t,"LocalizedMessagesDirective",function(){return no}),n.d(t,"Messages",function(){return to}),n.d(t,"NavigationService",function(){return fi}),n.d(t,"SearchBarComponent",function(){return jn}),n.d(t,"SelectionService",function(){return xn}),n.d(t,"TagListComponent",function(){return eo}),n.d(t,"NoDataTemplateDirective",function(){return vi}),n.d(t,"TagTemplateDirective",function(){return Vi}),n.d(t,"DROPDOWNLIST_VALUE_ACCESSOR",function(){return Pi}),n.d(t,"BaseCheckDirective",function(){return po}),n.d(t,"CheckAllDirective",function(){return ho}),n.d(t,"CheckDirective",function(){return uo}),n.d(t,"MultiSelectTreeSummaryTagDirective",function(){return mo}),n.d(t,"AutoCompleteComponent",function(){return wi}),n.d(t,"ComboBoxComponent",function(){return Di}),n.d(t,"DropDownListComponent",function(){return Fi}),n.d(t,"MultiSelectComponent",function(){return Mi}),n.d(t,"MultiColumnComboBoxComponent",function(){return Hi}),n.d(t,"ComboBoxColumnComponent",function(){return zi}),n.d(t,"ColumnCellTemplateDirective",function(){return Li}),n.d(t,"ColumnHeaderTemplateDirective",function(){return Ni}),n.d(t,"DropDownTreeComponent",function(){return Wi}),n.d(t,"MultiSelectTreeComponent",function(){return Zi}),n.d(t,"DropDownTreeFlatBindingDirective",function(){return qi}),n.d(t,"DropDownTreeHierarchyBindingDirective",function(){return Yi}),n.d(t,"MultiSelectTreeFlatBindingDirective",function(){return Xi}),n.d(t,"MultiSelectTreeHierarchyBindingDirective",function(){return Qi}),n.d(t,"DropDownTreesExpandDirective",function(){return Ji}),n.d(t,"DropDownTreesModule",function(){return go}),n.d(t,"NodeTemplateDirective",function(){return Ki}),n.d(t,"ItemTemplateDirective",function(){return kn}),n.d(t,"GroupTemplateDirective",function(){return wn}),n.d(t,"FixedGroupTemplateDirective",function(){return In}),n.d(t,"CustomItemTemplateDirective",function(){return Ri}),n.d(t,"HeaderTemplateDirective",function(){return Cn}),n.d(t,"FooterTemplateDirective",function(){return Sn}),n.d(t,"ValueTemplateDirective",function(){return Ti}),n.d(t,"TemplateContextDirective",function(){return lo}),n.d(t,"GroupTagTemplateDirective",function(){return Bi}),n.d(t,"SelectableDirective",function(){return co}),n.d(t,"SummaryTagDirective",function(){return fo}),n.d(t,"FilterDirective",function(){return ao}),n.d(t,"DropDownsModule",function(){return jo}),n.d(t,"MultiSelectModule",function(){return Oo}),n.d(t,"SharedModule",function(){return bo}),n.d(t,"AutoCompleteModule",function(){return vo}),n.d(t,"ComboBoxModule",function(){return yo}),n.d(t,"DropDownListModule",function(){return _o}),n.d(t,"SharedDirectivesModule",function(){return so}),n.d(t,"ListComponent",function(){return ji}),n.d(t,"PreventableEvent",function(){return yi}),n.d(t,"RemoveTagEvent",function(){return Ai}),n.d(t,"PopupComponent",function(){return r.PopupComponent});function nn(){for(var e,t="",n=0;n<32;n++)e=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(t+="-"),t+=(12===n?4:16===n?3&e|8:e).toString(16);return t}function on(e){return Array.isArray(e)}function an(e){return On(e)&&"object"==typeof e}function rn(e){return"string"==typeof e&&0===e.length}function sn(e){return on(e)&&e.every(an)}function cn(e,t,n){var i=t.map(function(e){return On(e)&&On(dn(e,n))?dn(e,n):e});return e.reduce(function(e,t){t=On(t)&&On(dn(t,n))?dn(t,n):t,t=i.indexOf(t);return-1!==t&&e.push(t),e},[])}function dn(e,t){return On(e)?On(t)&&an(e)?Object(u.getter)(t)(e):e:null}function ln(e,t,n){return!!On(e)&&(e=String(e),0===(e=n?e.toLowerCase():e).indexOf(t))}function pn(t,e){return!!On(t)&&e.every(function(e){return t.hasOwnProperty(e)})}function un(e){return e.className.includes("ng-untouched")}function hn(e){}function bn(e,t){return void 0===t&&(t=0),e=Number(e),isNaN(e)?t:e}function mn(e,t,n){return e.nativeElement.contains(t)||n&&n.popupElement.contains(t)}function gn(e){return(e||"").split("_").length-1}function fn(e,t){if(!On(e)||0===e.children.length)return[];var n=e.children;return(n=On(t)?n.filter(function(e){return t(e.item)}):n).forEach(function(e){return n=n.concat(fn(e,t))}),n}function vn(e,t){var n=e.dataItem,i=e.index,e=e.level,t=Array.isArray(t)?t:[t],i=On(e)?e:gn(i),t=t[Math.min(i,t.length-1)];return Object(u.getter)(t)(n)}var yn,_n={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1639043976,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"},On=function(e){return null!=e},jn=(Object.defineProperty(Vn.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(Vn.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(Vn.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),Vn.prototype.ngOnInit=function(){var t=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return t.direction=e?"rtl":"ltr"})},Vn.prototype.ngOnChanges=function(e){var t,n,i;this.input&&(e.userInput||e.suggestedText)&&(i=!e.userInput||!e.userInput.previousValue||this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"",t=this.input.nativeElement.selectionStart,n=i.length===t,this.writeInputValue(this.suggestedText?(e=this.userInput,i=this.suggestedText,e.concat(i.substr(i.toLowerCase().indexOf(e.toLowerCase())+e.length))):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):n?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(t,t),this._previousValue=this.userInput)},Vn.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},Vn.prototype.writeInputValue=function(e){Object(l.isDocumentAvailable)()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},Vn.prototype.setInputSelection=function(e,t){if(Object(l.isDocumentAvailable)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},Vn.prototype.handleInput=function(e){e=e.target.value;e!==this.userInput&&(this._previousValue=e,this.valueChange.emit(e))},Vn.prototype.handleFocus=function(e){this.onFocus.emit(e)},Vn.prototype.handleBlur=function(e){this.onBlur.emit(e)},Vn.prototype.handleKeydown=function(e){var t=e.keyCode;-1<[l.Keys.ArrowUp,l.Keys.ArrowDown,l.Keys.ArrowLeft,l.Keys.ArrowRight,l.Keys.Enter,l.Keys.Escape,l.Keys.Delete,l.Keys.Backspace,l.Keys.Home,l.Keys.End].indexOf(t)&&this.onNavigate.emit(e)},Vn.prototype.focus=function(){Object(l.isDocumentAvailable)()&&this.input.nativeElement.focus()},Vn.prototype.blur=function(){Object(l.isDocumentAvailable)()&&this.input.nativeElement.blur()},Vn.prototype.setInputSize=function(){function e(e){return e?e.length:0}var t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),i=Math.max(n,i,1);this.renderer.setAttribute(t,"size",i.toString())},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"id",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"listId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"tagListId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"activeDescendant",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"noDataLabel",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Vn.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Vn.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Vn.prototype,"tabIndex",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Vn.prototype,"popupOpen",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"role",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],Vn.prototype,"userInput",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Vn.prototype,"suggestedText",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Vn.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Vn.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Vn.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Vn.prototype,"onClick",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Vn.prototype,"onNavigate",void 0),Object(o.__decorate)([Object(h.ViewChild)("input",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],Vn.prototype,"input",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-searchbar"),Object(o.__metadata)("design:type",Boolean)],Vn.prototype,"searchBarClass",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],Vn.prototype,"placeholder",null),Object(o.__decorate)([Object(h.Component)({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [id]="id"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [class]="\'k-input\'"\n (input)="handleInput($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="popupOpen"\n [attr.aria-owns]="listId"\n [attr.aria-describedby]="tagListId"\n [attr.aria-activedescendant]="activeDescendant"\n [attr.aria-label]="noDataLabel"\n />\n '}),Object(o.__metadata)("design:paramtypes",[a.LocalizationService,h.Renderer2])],Vn)),kn=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Rn),Cn=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Fn),Sn=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Pn),wn=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Tn),In=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Dn),xn=(En.prototype.getTotal=function(){return this.total},En.prototype.isSelected=function(t){return On(this.selectedIndices.find(function(e){return e===t}))},En.prototype.isFocused=function(e){return e===this.focused},En.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},En.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:On(e)}))},En.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},En.prototype.unselect=function(e){var t;this.isSelected(e)&&(t=this.selectedIndices.indexOf(e),this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e}))},En.prototype.change=function(e){var t=On(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},En.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(En.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(En.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),Object(o.__decorate)([Object(h.Injectable)()],En));function En(){this.onSelect=new h.EventEmitter,this.onChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.total=0,this.selectedIndices=[]}function Dn(e){this.templateRef=e}function Tn(e){this.templateRef=e}function Pn(e){this.templateRef=e}function Fn(e){this.templateRef=e}function Rn(e){this.templateRef=e}function Vn(e,t){this.localization=e,this.valueChange=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onClick=new h.EventEmitter,this.onNavigate=new h.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=t}(t=yn=yn||{})[t.Undefined=0]="Undefined",t[t.Open=1]="Open",t[t.Close=2]="Close",t[t.Enter=3]="Enter",t[t.Tab=4]="Tab",t[t.Esc=5]="Esc",t[t.Delete=6]="Delete",t[t.Backspace=7]="Backspace",t[t.Home=8]="Home",t[t.End=9]="End",t[t.Up=10]="Up",t[t.Down=11]="Down",t[t.Left=12]="Left",t[t.Right=13]="Right";function Bn(e,t){return t=Object.assign({},ki,t),!0===e?t:e?Object(o.__assign)({pageSize:ki.pageSize},e):null}function An(){var e;return isNaN(Un)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),Un=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),Un}function Mn(){return!1}function Ln(){return Object(m.of)([])}function Nn(){return!1}function zn(){return!0}function Hn(){return!1}function Kn(){return Object(m.of)([])}function Gn(){return!1}function Wn(){return!0}var Un,$n,Zn,qn,Yn,Xn,Qn,Jn,ei,ti,ni,ii,oi,ai,ri,si,ci,di,li,pi,ui,hi,bi=(Object.defineProperty(fa.prototype,"data",{get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))},enumerable:!0,configurable:!0}),Object.defineProperty(fa.prototype,"itemsCount",{get:function(){return On(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(e){return!e.header}):this.data).length:0},enumerable:!0,configurable:!0}),fa.prototype.isGrouped=function(e){return On(e)&&0!==e.length&&On(e[0])&&pn(e[0],["aggregates","field","items","value"])},fa.prototype.getGroupIndices=function(e){for(var t=[],n=0;n<=e.length-1;n++)t[n]=(t[n-1]||0)+e[n].items.length;return t},fa.prototype.filter=function(e){var t=[];if(this.isGrouped(this.data))for(var n=0;n<=this.groupIndices.length-1;n++){var i=this.data[n].items.filter(e);i&&(t=t.concat(i))}else t=this.data.filter(e);return t},fa.prototype.indexOf=function(t,e){var n=function(e){return e===t};return this.grouped&&(n=function(e){return e.value===t}),this.findIndex(n,e=void 0===e?0:e)},fa.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n,i=-1;return i=this.grouped?(n=this._flatData.filter(function(e){return!e.header&&e.offsetIndex>=t}))[i=n.findIndex(e)]?n[i].offsetIndex:-1:-1!==(e=(n=this.data.slice(t)).findIndex(e))?e+t:-1},fa.prototype.closestGroup=function(e){for(var t=e;0<=t;t--)if(this._flatData[t].header)return this._flatData[t]},fa.prototype.find=function(e){e=this.findIndex(e);return this.itemAt(e)},fa.prototype.flatIndex=function(t){if(0===this.itemsCount)return-1;if(!this.grouped)return t;var e=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t});return e?e.index:-1},fa.prototype.itemAt=function(t){var e,n;return 0===this.itemsCount||(this.grouped?(n=this._flatData.find(function(e){return!e.header&&e.offsetIndex===t}))&&(e=n.value):e=this.data[t]),e},fa.prototype.groupAt=function(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(e){return e.header&&e.index===t})},fa.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},fa.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?dn(e,t):void 0}},fa.prototype.flatten=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=0);var o=[];On(t=void 0===t?void 0:t)&&o.push({header:!0,index:i+n,offsetIndex:i,value:t});for(var a=0;a<e.length;a++){var r=[];e[a].items?(r=this.flatten(e[a].items,e[a].value,n,a),n+=e[a].items.length):r.push({header:!1,index:i+n+a+1,offsetIndex:n+a,value:e[a]}),o=o.concat(r)}return o},Object(o.__decorate)([Object(h.Injectable)()],fa)),mi=(ga.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);return On(t)?this.itemDisabled({dataItem:t,index:e}):On(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},ga.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);return-1!==t?this.itemDisabled({dataItem:e,index:t}):On(this.defaultItem)?this.itemDisabled({dataItem:this.defaultItem,index:-1}):void 0}},Object(o.__decorate)([Object(h.Injectable)(),Object(o.__metadata)("design:paramtypes",[bi])],ga)),gi=function(e,t){this.index=e,this.originalEvent=t},fi=(ma.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,o=yn.Undefined;i&&n===l.Keys.ArrowDown?o=yn.Open:i&&n===l.Keys.ArrowUp?o=yn.Close:n===l.Keys.Enter?o=yn.Enter:n===l.Keys.Escape?o=yn.Esc:n===l.Keys.Tab?o=yn.Tab:n===l.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=yn.Up):n===l.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=yn.Left):n===l.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=yn.Down):n===l.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=yn.Right):n===l.Keys.Home?(t=this.isDisabled(0)?e.current:0,o=yn.Home):n===l.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,o=yn.End):n===l.Keys.Delete?o=yn.Delete:n===l.Keys.Backspace&&(o=yn.Backspace);e=new gi(t,e.originalEvent);return o!==yn.Undefined&&this[yn[o].toLowerCase()].emit(e),o},ma.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,o=e.step,a=On(t)?this.clampIndex(t+o,n,i):n,e=this.firstFocusableIndex(a,n,i,o);return On(e)?e:this.selectionService.isSelected(t)&&n<=t?t:this.firstFocusableIndex(a,n,i,-1*o)},ma.prototype.clampIndex=function(e,t,n){return!On(e)||e<t?t:n<e?n:e},ma.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},ma.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},Object(o.__decorate)([Object(h.Injectable)(),Object(o.__metadata)("design:paramtypes",[mi,xn])],ma)),vi=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],ba),yi=(ha.prototype.preventDefault=function(){this.prevented=!0},ha.prototype.isDefaultPrevented=function(){return this.prevented},ha),_i=function(){},Oi=Object(o.__decorate)([Object(h.Directive)({selector:'"li[role=option], li[role=group]"'}),Object(o.__metadata)("design:paramtypes",[h.ElementRef])],ua),ji=(Object.defineProperty(pa.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"pageSize",{get:function(){return this.virtual.pageSize||Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(pa.prototype,"overflowY",{get:function(){if(On(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),pa.prototype.ngOnChanges=function(e){Object(l.isChanged)("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),Object(l.isChanged)("virtual",e,!1)&&this.setOverflow()},pa.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular(function(){e.scrollSubscription=Object(m.fromEvent)(e.content.nativeElement,"scroll").pipe(Object(g.auditTime)(100),Object(g.tap)(e.prefetchData.bind(e)),Object(g.tap)(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()},pa.prototype.ngAfterViewChecked=function(){var e;this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused,this.scrollToItem(e)),this.dataService.grouped&&this.findCurrentGroup()},pa.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},pa.prototype.onCheckedChange=function(e,t){e=e.target.checked;e&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!e&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},pa.prototype.isChecked=function(e){e=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(e)},pa.prototype.firstVisibleItem=function(){var t=this,e=this.content.nativeElement,n=e.getBoundingClientRect(),e=Array.prototype.slice.call(e.querySelectorAll(".k-state-disabled"));e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","auto")});var o=document.elementFromPoint(n.left+1,n.top+1);return e.forEach(function(e){return t.renderer.setStyle(e,"pointer-events","none")}),function(){for(var e,t,n,i=o;null!==i&&1===i.nodeType;){if(t="li",n=void 0,!!(n=(e=i).matches||e.msMatchesSelector||e.webkitMatchesSelector)&&n.call(e,t))return i;i=i.parentElement||i.parentNode}return null}()},pa.prototype.findCurrentGroup=function(){var e,t;this.dataService.grouped?((e=this.firstVisibleItem())?(t=void 0,"group"===e.getAttribute("role")?(t=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(t).value):(t=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(t)))):this.currentGroup=void 0,this.cdr.detectChanges()):this.currentGroup=void 0},pa.prototype.prefetchData=function(){var e,t,n,i,o;this.virtual&&(e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),o=this.content.nativeElement.scrollTop,t=Math.trunc(o/this.virtual.itemHeight),n=o>this.lastScrollTop,i=t+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,o=this.pageSize-(this.lastLoaded-this.startFrom),o=this.lastLoaded-this.pageSize+e>=t-o,n&&i&&this.changePage(t),!n&&o&&this.changePage(t-this.pageSize+e+1))},pa.prototype.changePage=function(t){var n=this;this.zone.run(function(){var e=n.pageSize+t;e>n.virtual.total&&(t--,e=n.virtual.total),t<0&&(t=0),n.startFrom=t,n.lastLoaded=e,n.pageChange.emit({skip:t,take:n.pageSize})})},pa.prototype.index=function(e,t){return 0<e?this.dataService.groupIndices[e-1]+t:t},pa.prototype.getText=function(e){return dn(e,this.textField)},pa.prototype.getValue=function(e){return dn(e,this.valueField)},pa.prototype.isDisabled=function(e){return On(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},pa.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0),this.virtual&&-1<t?this.scrollToIndex(t):(e=this.items.toArray(),On(e[t])&&-1!==t&&this.scroll(e[t].element))},pa.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,i=e*this.virtual.itemHeight,o=this.virtual.itemHeight,e=t.clientHeight,o=i+o;i<n?n=i:n+e<o&&(n=o-e),t.scrollTop=n},pa.prototype.scroll=function(e){var t,n,i,o;e&&(i=e.nativeElement,t=this.content.nativeElement,n=i.offsetTop,o=i.offsetHeight,e=t.scrollTop,i=t.clientHeight,o=n+o,n<e?e=n:e+i<o&&(e=o-i),t.scrollTop=e)},pa.prototype.hasScrollbar=function(){return!!(On(this.items)&&this.items.length&&On(this.list)&&On(this.content))&&(On(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},pa.prototype.setOverflow=function(){var e;this.virtual&&(e=this.hasVirtualScrollbar()?"scroll":"hidden",this.renderer.setStyle(this.content.nativeElement,"overflow-y",e))},pa.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&e<t},pa.prototype.positionItems=function(){var n=this;this.items.forEach(function(e,t){t=(t+n.startFrom)*n.virtual.itemHeight;n.renderer.setStyle(e.element.nativeElement,"transform","translateY("+t+"px")})},pa.prototype.firstGroupHeaderInTargetedPage=function(e){return!On(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],pa.prototype,"selected",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],pa.prototype,"focused",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],pa.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],pa.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],pa.prototype,"height",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",kn)],pa.prototype,"template",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",wn)],pa.prototype,"groupTemplate",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",In)],pa.prototype,"fixedGroupTemplate",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],pa.prototype,"show",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],pa.prototype,"id",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],pa.prototype,"optionPrefix",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],pa.prototype,"multipleSelection",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],pa.prototype,"virtual",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],pa.prototype,"listClass",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],pa.prototype,"checkboxes",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],pa.prototype,"data",null),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],pa.prototype,"onClick",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],pa.prototype,"pageChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],pa.prototype,"listResize",void 0),Object(o.__decorate)([Object(h.ViewChildren)(Oi),Object(o.__metadata)("design:type",h.QueryList)],pa.prototype,"items",void 0),Object(o.__decorate)([Object(h.ViewChild)("content",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],pa.prototype,"content",void 0),Object(o.__decorate)([Object(h.ViewChild)("list",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],pa.prototype,"list",void 0),Object(o.__decorate)([Object(h.ViewChild)("virtualContainer",{static:!1}),Object(o.__metadata)("design:type",h.ElementRef)],pa.prototype,"virtualContainer",void 0),Object(o.__decorate)([Object(h.Component)({selector:"kendo-list",template:'\n <div *ngIf="dataService.grouped"\n class=\'k-outer-group-header k-first\'\n [ngClass]="{\'k-virtual-item\': virtual}"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n >\n <ng-template *ngIf="fixedGroupTemplate"\n [templateContext]="{\n templateRef: fixedGroupTemplate.templateRef,\n $implicit: currentGroup\n }">\n </ng-template>\n <ng-template [ngIf]="!fixedGroupTemplate"><strong>{{ currentGroup }}</strong> </ng-template>\n </div>\n <div #content\n [ngClass]="{ \'k-virtual-content\': virtual, \'k-list-scroller\': !virtual }"\n [style.overscrollBehavior]="\'none\'"\n [style.maxHeight.px]="height"\n unselectable="on">\n <ul #list\n role="listbox"\n [class]="listClass"\n [ngClass]="{ \'k-virtual-list\': virtual }"\n [attr.id]="id"\n [attr.aria-hidden]="!show">\n <ng-template *ngIf="!dataService.grouped && show" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n role="option"\n kendoDropDownsSelectable\n [checkboxes]="checkboxes"\n [height]="virtual?.itemHeight"\n [index]="itemIndex + startFrom"\n [multipleSelection]="multipleSelection"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(itemIndex) }">\n <label *ngIf="checkboxes.enabled"\n class="k-checkbox-label">\n <input type="checkbox"\n class="k-checkbox"\n (change)="onCheckedChange($event, itemIndex)"\n [checked]="isChecked(itemIndex)"\n />\n </label>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem) }}</ng-template>\n </li>\n </ng-template>\n <ng-template *ngIf="dataService.grouped" ngFor let-dataItem let-itemIndex="index" [ngForOf]="data">\n <li\n *ngIf="dataItem.header && dataItem.index > 0"\n role="group"\n class=\'k-outer-group-header\'\n [ngClass]="{ \'k-virtual-item\': virtual }"\n [ngStyle]="{\n \'height.px\': virtual?.itemHeight,\n \'minHeight.px\' : virtual?.itemHeight,\n \'boxSizing\' : virtual ? \'border-box\' : \'inherit\'}"\n [attr.group-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1">\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate"><strong> {{ dataItem.value }}</strong> </ng-template>\n </li>\n <li\n *ngIf="!dataItem.header"\n role="option"\n kendoDropDownsSelectable\n [height]="virtual?.itemHeight"\n [index]="dataItem.offsetIndex"\n [multipleSelection]="multipleSelection"\n [attr.absolute-index]="dataItem.index"\n [attr.id]="optionPrefix + \'-\' + getValue(dataItem.value)"\n [attr.tabIndex]="-1"\n class="k-item"\n [ngClass]="{ \'k-virtual-item\': virtual, \'k-state-disabled\': isDisabled(dataItem.offsetIndex) }">\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: dataItem.value\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ getText(dataItem.value) }}</ng-template>\n </li>\n </ng-template>\n <kendo-resize-sensor\n *ngIf="!virtual"\n (resize)="listResize.emit()"\n >\n </kendo-resize-sensor>\n </ul>\n <div *ngIf="virtual" #virtualContainer class="k-height-container" role="presentation">\n <div [style.height.px]="scrollHeight">\n <kendo-resize-sensor (resize)="listResize.emit()"></kendo-resize-sensor>\n </div>\n </div>\n </div>\n '}),Object(o.__metadata)("design:paramtypes",[bi,h.ElementRef,xn,mi,h.ChangeDetectorRef,h.NgZone,h.Renderer2])],pa)),ki={pageSize:50,itemHeight:28},Ci=new h.InjectionToken("dropdowns-touch-enabled"),Si={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return wi})},wi=(hi=la,Object.defineProperty(la.prototype,"width",{get:function(){var e=0;Object(l.isDocumentAvailable)()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"height",{get:function(){var e=this.popupSettings.height;return On(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"suggestion",{get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(la.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(la.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),la.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=On(t)?t:!n._open;n._toggle(e)})},Object.defineProperty(la.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),la.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(la.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!On(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+dn(e,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&0<this.dataService.itemsCount&&(this.suggestedText=dn(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"value",{get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Bn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(la.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),la.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages()},la.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},la.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},la.prototype.reset=function(){this.value=""},la.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},la.prototype.writeValue=function(e){this.value=e},la.prototype.registerOnChange=function(e){this.onChangeCallback=e},la.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},la.prototype.setDisabledState=function(e){this.disabled=e},la.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;On(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},la.prototype.focus=function(){this.disabled||this.searchbar.focus()},la.prototype.blur=function(){this.disabled||this.searchbar.blur()},la.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},la.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},la.prototype.verifySettings=function(e){if(Object(h.isDevMode)()&&On(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")},la.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=dn(this.dataService.itemAt(t),this.valueField)))},la.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},la.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;this.disabled||this.readonly||isNaN(t)||(t=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==yn.Undefined&&t!==yn.Backspace&&t!==yn.Delete&&t!==yn.Home&&t!==yn.End&&t!==yn.Left&&t!==yn.Right&&(t===yn.Enter&&this.isOpen||t!==yn.Enter)&&e.preventDefault()},la.prototype.handleEnter=function(e){var t,n=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),t=0<=n?dn(this.dataService.itemAt(n),this.valueField):(t=this.suggest&&this.suggestedText&&this.data.length&&dn(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase(),this.isOpen&&t?this.suggestedText:this.searchbar.value),this.change(t)},la.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},la.prototype.searchBarChange=function(e){var t=On(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(0<e.length),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},la.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(l.hasObservers)(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})},la.prototype.handleBlur=function(){var e=this,t=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0;var n=(t=-1!==t?(n=this.dataService.itemAt(t),dn(n,this.valueField)||""):this.searchbar.value)===this.searchbar.value,t=t.toLowerCase()===this.searchbar.value.toLowerCase();!n&&t&&this.selectionService.resetSelection([]),this.isFocused=!1;var i=this.value!==this.text;Object(l.hasObservers)(this.onBlur)||Object(l.hasObservers)(this.close)||un(this.wrapper)||i?this._zone.run(function(){i&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},la.prototype.pageChange=function(e){this.virtual.skip=e.skip},la.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},la.prototype.subscribeEvents=function(){var n=this;Object(l.isDocumentAvailable)()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(e){var t=n.value!==e;n.value=e,n.text=e,t&&n.emitChange(e)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=Object(m.merge)(this.navigationService.up,this.navigationService.down).subscribe(function(e){return n.navigate(e.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return n.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},la.prototype.subscribeTouchEvents=function(){var t=this;Object(l.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!mn(t.hostElement,e,t.popupRef)&&t._zone.run(function(){return t.blur()})})})},la.prototype.unsubscribeEvents=function(){Object(l.isDocumentAvailable)()&&(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},la.prototype.handleItemChange=function(e){var e=e.indices.length?e.indices[0]:void 0;this.selectionService.resetSelection([-1]),On(e)&&(e=dn(this.dataService.itemAt(e),this.valueField),this.change(e))},la.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&0<=t)&&(this.suggestedText=dn(this.dataService.itemAt(t),this.valueField))},la.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"}});var n=this.popupRef.popupElement,i=this.width,t=i.min,i=i.max;n.addEventListener("mousedown",this.popupMouseDownHandler),n.style.minWidth=t,n.style.width=i,n.style.height=this.height,n.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},la.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},la.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},la.prototype.triggerPopupEvents=function(e){var t=new yi;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},la.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},la.prototype.findIndexPredicate=function(t){var n=this;return this.dataService.grouped?function(e){e=dn(e.value,n.valueField);return(e=On(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=dn(e,n.valueField);return(e=On(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},la.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular(function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout(function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()})})},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"highlightFirst",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],la.prototype,"focusableId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],la.prototype,"data",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],la.prototype,"value",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],la.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],la.prototype,"placeholder",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],la.prototype,"popupSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],la.prototype,"listHeight",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"loading",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"clearButton",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"suggest",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],la.prototype,"itemDisabled",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],la.prototype,"tabindex",void 0),Object(o.__decorate)([Object(h.Input)("tabIndex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],la.prototype,"tabIndex",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],la.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],la.prototype,"virtual",null),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"filterChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"open",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"opened",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"close",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"closed",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],la.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.ContentChild)(kn,{static:!1}),Object(o.__metadata)("design:type",kn)],la.prototype,"template",void 0),Object(o.__decorate)([Object(h.ContentChild)(Cn,{static:!1}),Object(o.__metadata)("design:type",Cn)],la.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Sn,{static:!1}),Object(o.__metadata)("design:type",Sn)],la.prototype,"footerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(vi,{static:!1}),Object(o.__metadata)("design:type",vi)],la.prototype,"noDataTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(wn,{static:!1}),Object(o.__metadata)("design:type",wn)],la.prototype,"groupTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(In,{static:!1}),Object(o.__metadata)("design:type",In)],la.prototype,"fixedGroupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],la.prototype,"container",void 0),Object(o.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",h.TemplateRef)],la.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)(jn,{static:!0}),Object(o.__metadata)("design:type",jn)],la.prototype,"searchbar",void 0),Object(o.__decorate)([Object(h.ViewChild)("optionsList",{static:!1}),Object(o.__metadata)("design:type",ji)],la.prototype,"optionsList",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-autocomplete"),Object(o.__metadata)("design:type",Boolean)],la.prototype,"widgetClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],la.prototype,"isDisabled",null),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[])],la.prototype,"dir",null),hi=Object(o.__decorate)([Object(h.Component)({exportAs:"kendoAutoComplete",providers:[Si,bi,xn,fi,mi,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:_i,useExisting:Object(h.forwardRef)(function(){return hi})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return hi})}],selector:"kendo-autocomplete",template:'\n <ng-container kendoAutoCompleteLocalizedMessages\n i18n-noDataText="kendo.autocomplete.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.autocomplete.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && (clearButton && text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (click)="clearValue($event)"\n (mousedown)="$event.preventDefault()"\n >\n</span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(o.__param)(10,Object(h.Optional)()),Object(o.__param)(10,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[a.LocalizationService,bi,r.PopupService,xn,fi,mi,h.NgZone,h.ChangeDetectorRef,h.Renderer2,h.ElementRef,Boolean])],la)),Ii="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",xi="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",Ei={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return Di})},Di=(ui=da,Object.defineProperty(da.prototype,"text",{get:function(){return this._text},set:function(e){this._text=On(e)?e.toString():""},enumerable:!0,configurable:!0}),da.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},Object.defineProperty(da.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!On(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?dn(e,this.valueField):"")},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(da.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(da.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering&&(e=0<this.text.length&&0<this.dataService.itemsCount?this.firstFocusableIndex(0):-1,this.selectionService.focused=e),this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=dn(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"valuePrimitive",{get:function(){return On(this._valuePrimitive)?this._valuePrimitive:!On(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Bn(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"popupWidth",{get:function(){var e=0;Object(l.isDocumentAvailable)()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(da.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return On(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),da.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()},da.prototype.createValueStream=function(){var i=this,e=this.valueSubject.pipe(Object(g.filter)(function(e){var t=dn(i.value,i.valueField),n=dn(e,i.valueField),e=dn(e,i.textField);return!(!On(i.value)&&!On(n)||(On(e)&&(e=e.toString()),t===n&&i.text===e&&(i.clearFilter(),1)))}),Object(g.map)(function(e){var t=dn(e,i.valueField);return{dataItem:e,text:dn(e,i.textField),value:i.valuePrimitive?t:e}})),t=Object(g.partition)(function(){return i.allowCustom})(this.customValueSubject.pipe(Object(g.throttleTime)(300))),n=t[0].pipe(Object(g.tap)(function(){i.loading=!0,i.disabled=!0,i.cdr.detectChanges()}),Object(g.filter)(function(){var e=i.text!==dn(i.value,i.valueField);return i.loading=e,(i.disabled=e)||i.clearFilter(),e}),this.valueNormalizer,Object(g.map)(function(e){return{custom:!0,dataItem:e,text:i.text,value:e}})),o=t[1].pipe(Object(g.map)(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),t=this.clearValueSubject.pipe(Object(g.map)(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();t=Object(m.merge)(e,n,o,t);this.valueSubscription=t.pipe(Object(g.catchError)(function(){var e=void 0!==dn(i.dataItem,i.valueField);return i.dataItem=void 0,i.value=void 0,i.text=void 0,i.loading=!1,i.disabled=!1,e&&i.selectionChange.emit(void 0),i.emitValueChange(),i.createValueStream(),Object(m.of)(null)})).subscribe(function(e){var t=dn(i.dataItem,i.valueField)!==dn(e.dataItem,i.valueField);i.dataItem=e.dataItem,i.value=e.value,i.text=e.text,i.loading=!1,i.disabled=!1,i.clearFilter(),e.custom&&(i.selectionService.focused=-1),t&&(e=e.custom?void 0:i.dataItem,i.selectionChange.emit(e)),i.emitValueChange()})},da.prototype.attachStreams=function(){var n=this;Object(l.isDocumentAvailable)()&&(this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;n.direction=e?"rtl":"ltr",n.setMessages()})),this.subs.add(Object(m.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Object(g.filter)(function(e){return On(e.index)})).subscribe(function(e){return n.navigate(e.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return n.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(Object(g.tap)(function(e){n.isOpen&&e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(Object(m.merge)(this.selectionService.onChange,this.selectionService.onSelect.pipe(Object(g.filter)(function(e){return!n.isOpen}))).pipe(Object(g.tap)(function(e){n._filtering=!1,n.togglePopup(!1)}),Object(g.map)(function(e){return n.dataService.itemAt(e.indices[0])})).subscribe(function(e){n.change(e)})),this.subs.add(this.selectionService.onSelect.pipe(Object(g.filter)(function(e){return n.isOpen}),Object(g.tap)(function(e){return n._filtering=!1}),Object(g.map)(function(e){return n.dataService.itemAt(e.indices[0])})).subscribe(function(e){var t=dn(e,n.valueField)!==dn(n.dataItem,n.valueField);n.updateState({dataItem:e}),t&&n.selectionChange.emit(e)})))},da.prototype.ngOnDestroy=function(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),On(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},da.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(l.isChanged)("valueNormalizer",e)&&this.createValueStream(),Object(l.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},da.prototype.ngAfterContentChecked=function(){this.verifySettings()},da.prototype.focusItemAt=function(e){var t=0<=e&&e<this.data.length;On(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},da.prototype.focus=function(){this.disabled||this.searchbar.focus()},da.prototype.blur=function(){this.disabled||this.searchbar.blur()},da.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=On(t)?t:!n._open;n._toggle(e),n.cdr.markForCheck()})},Object.defineProperty(da.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),da.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},da.prototype.isEmpty=function(){var e=!On(this.text)||rn(this.text),t=!On(this.value)||rn(this.value);return e&&t},da.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},da.prototype.writeValue=function(e){this.value=null===e?void 0:e},da.prototype.registerOnChange=function(e){this.onChangeCallback=e},da.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},da.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(da.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),da.prototype.onResize=function(){var e,t,n;this.isOpen&&(e=this.popupRef.popupElement,t=(n=this.popupWidth).min,n=n.max,e.style.minWidth=t,e.style.width=n)},da.prototype.verifySettings=function(){if(Object(h.isDevMode)()){if(!0===this.valuePrimitive&&On(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!1===this.valuePrimitive&&On(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!On(this.valueField)!=!On(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data");if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error("Expected virtual.itemHeight of type number.")}},da.prototype.setState=function(){var e,t;this._filtering||(e=this.value,t=this.valueField,t=this.findDataItem({valueField:t,value:e}),On(t.index)&&-1!==t.index?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):On(e)&&this.allowCustom?(this.updateState({dataItem:e}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1)))},da.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=dn(t,this.textField),e&&(this._previousDataItem=t)},da.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},da.prototype.resetSelection=function(e){var t=!On(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},da.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},da.prototype.findIndexPredicate=function(t){var n=this;return this.dataService.grouped?function(e){e=dn(e.value,n.textField);return(e=On(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}:function(e){e=dn(e,n.textField);return(e=On(e)?e.toString().toLowerCase():"").startsWith(t.toLowerCase())}},da.prototype.findDataItem=function(e){var t=this,n=e.valueField,i=e.value,o={dataItem:null,index:-1},e=this.dataService.findIndex(function(e){e=t.dataService.grouped?e.value:e;return dn(e,n)===dn(i,n)});return o.dataItem=this.dataService.itemAt(e),o.index=e,o},da.prototype.search=function(e,t){void 0===t&&(t=0),t=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(t)?t+1<this.dataService.itemsCount?this.search(e,t+1):this.selectionService.focus(-1):(this.selectionService.focus(t),this.suggest&&(this.suggestedText=dn(this.dataService.itemAt(t),this.textField)))},da.prototype.getSuggestion=function(){var e=!!this.selectionService.selected.length,t=this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text;if(!e&&t&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0},da.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=dn(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},da.prototype.handleNavigate=function(e){var t=On(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;this.disabled||this.readonly||e.keyCode===l.Keys.Home||e.keyCode===l.Keys.End||(t||(e.keyCode===l.Keys.ArrowDown?i=-1:e.keyCode===l.Keys.ArrowUp&&(i=1)),(n=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e}))!==yn.Undefined&&n!==yn.Left&&n!==yn.Right&&n!==yn.Backspace&&n!==yn.Delete&&(n===yn.Enter&&this.isOpen||n!==yn.Enter)&&e.preventDefault())},da.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=On(t)&&-1!==t,i=dn(this._previousDataItem,this.textField)||"",o=dn(this.dataService.itemAt(t),this.textField),i=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&i&&(e===o||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):i&&this.change(e,!0))},da.prototype.handleBlur=function(){var e=this;this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;var t=dn(this.dataItem,this.valueField)!==dn(this.value,this.valueField),n=this.searchbar.value,i=n!==(dn(this.dataItem,this.textField)||""),o=t||i;o||Object(l.hasObservers)(this.onBlur)||Object(l.hasObservers)(this.close)||un(this.hostElement.nativeElement)?this.zone.run(function(){o&&(On(e.focusedItemText)&&e.focusedItemText.toLowerCase()===n.toLowerCase()||t?e.selectionService.change(e.selectionService.focused):e.change(n,!0)),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)},da.prototype.handleEscape=function(){this.togglePopup(!1),0<this.selectionService.selected.length||(this.suggestedText=null,this.selectionService.focused=-1)},da.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},da.prototype.searchBarChange=function(e){var t=this.text?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)},da.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(l.hasObservers)(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})},da.prototype.pageChange=function(e){this.virtual.skip=e.skip},da.prototype.change=function(e,t){((t=void 0===t?!1:t)?this.customValueSubject:this.valueSubject).next(e)},da.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},da.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(da.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),da.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(da.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!On(e)||-1===e)return null;e=dn(this.dataService.itemAt(e),this.textField);return On(e)?e.toString():""},enumerable:!0,configurable:!0}),da.prototype.restoreItemFocus=function(){On(this.selectionService.focused)&&-1<this.selectionService.focused||!this.text||!this.dataService.itemsCount||(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},da.prototype.useSuggestion=function(){if(!this.suggest||!On(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),e=dn(e,this.textField);return!!On(e)&&this.searchbar.value.toLowerCase()===e.toLowerCase()},da.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},da.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:t,vertical:"bottom"},popupAlign:{horizontal:t,vertical:"top"}});var n=this.popupRef.popupElement,i=this.popupWidth,t=i.min,i=i.max;n.addEventListener("mousedown",this.popupMouseDownHandler),n.style.minWidth=t,n.style.width=i,n.style.height=this.popupHeight,n.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},da.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},da.prototype.triggerPopupEvents=function(e){var t=new yi;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},da.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},da.prototype.setMessages=function(){var e=this;this.zone.runOutsideAngular(function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout(function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()})})},da.prototype.subscribeTouchEvents=function(){var t=this;Object(l.isDocumentAvailable)()&&this.touchEnabled&&this.zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target,e=mn(t.hostElement,e,t.popupRef);t.isFocused&&!e?t.zone.run(function(){return t.blur()}):t.isOpen&&!e&&t.zone.run(function(){return t.togglePopup(!1)})})})},da.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=u.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],da.prototype,"focusableId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"allowCustom",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],da.prototype,"data",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],da.prototype,"value",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],da.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],da.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],da.prototype,"valuePrimitive",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],da.prototype,"valueNormalizer",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],da.prototype,"placeholder",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],da.prototype,"popupSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],da.prototype,"listHeight",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],da.prototype,"iconClass",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"loading",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"suggest",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"clearButton",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],da.prototype,"itemDisabled",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],da.prototype,"tabindex",void 0),Object(o.__decorate)([Object(h.Input)("tabIndex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],da.prototype,"tabIndex",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],da.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],da.prototype,"virtual",null),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"selectionChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"filterChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"open",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"opened",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"close",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"closed",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],da.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.ContentChild)(kn,{static:!1}),Object(o.__metadata)("design:type",kn)],da.prototype,"template",void 0),Object(o.__decorate)([Object(h.ContentChild)(Cn,{static:!1}),Object(o.__metadata)("design:type",Cn)],da.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Sn,{static:!1}),Object(o.__metadata)("design:type",Sn)],da.prototype,"footerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(vi,{static:!1}),Object(o.__metadata)("design:type",vi)],da.prototype,"noDataTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(wn,{static:!1}),Object(o.__metadata)("design:type",wn)],da.prototype,"groupTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(In,{static:!1}),Object(o.__metadata)("design:type",In)],da.prototype,"fixedGroupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],da.prototype,"container",void 0),Object(o.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",h.TemplateRef)],da.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)(jn,{static:!0}),Object(o.__metadata)("design:type",jn)],da.prototype,"searchbar",void 0),Object(o.__decorate)([Object(h.ViewChild)("optionsList",{static:!1}),Object(o.__metadata)("design:type",ji)],da.prototype,"optionsList",void 0),Object(o.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],da.prototype,"wrapper",void 0),Object(o.__decorate)([Object(h.ViewChild)("select",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],da.prototype,"select",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-combobox"),Object(o.__metadata)("design:type",Boolean)],da.prototype,"widgetClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-combobox-clearable"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],da.prototype,"clearable",null),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[])],da.prototype,"dir",null),ui=Object(o.__decorate)([Object(h.Component)({exportAs:"kendoComboBox",providers:[Ei,bi,xn,fi,mi,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.combobox"},{provide:_i,useExisting:Object(h.forwardRef)(function(){return ui})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return ui})}],selector:"kendo-combobox",template:'\n <ng-container kendoComboBoxLocalizedMessages\n i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n class="k-dropdown-wrap"\n [ngClass]="{\'k-state-disabled\': disabled }"\n >\n <kendo-searchbar #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span class="k-icon" [ngClass]="buttonClasses">\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(o.__param)(10,Object(h.Optional)()),Object(o.__param)(10,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[a.LocalizationService,r.PopupService,xn,fi,mi,bi,h.NgZone,h.ChangeDetectorRef,h.Renderer2,h.ElementRef,Boolean])],da)),Ti=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],ca),Pi={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return Fi})},Fi=(pi=sa,Object.defineProperty(sa.prototype,"width",{get:function(){var e=Object(l.isDocumentAvailable)()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"height",{get:function(){var e=this.popupSettings.height;return On(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"ariaActivedescendant",{get:function(){if(On(this.dataItem))return this.optionPrefix+"-"+dn(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(sa.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(sa.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"value",{get:function(){return this._value},set:function(e){On(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Bn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"valuePrimitive",{get:function(){return On(this._valuePrimitive)?this._valuePrimitive:!On(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),sa.prototype.blurComponent=function(){this.wrapperBlurred.emit()},sa.prototype.blurFilterInput=function(){this.filterBlurred.emit()},sa.prototype.focusComponent=function(){var e=this;this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,Object(l.hasObservers)(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},sa.prototype.keydown=function(e){var t,n=On(this.defaultItem)?-1:0,i=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,o=0;this.disabled||this.readonly||(t=e.keyCode===l.Keys.Home||e.keyCode===l.Keys.End,this.filterable&&this.isFocused&&this.isOpen&&t||(n=On(this.selectionService.selected[0]),t=On(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused),n&&!t||(e.keyCode===l.Keys.ArrowDown||e.keyCode===l.Keys.ArrowRight?o=-1:e.keyCode!==l.Keys.ArrowUp&&e.keyCode!==l.Keys.ArrowLeft||(o=1)),e=(o=this.navigationService.process({current:i+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:i=e}))===yn.Left||o===yn.Right,o===yn.Undefined||o===yn.Tab||o===yn.Backspace||o===yn.Delete||e&&this.filterable||o===yn.Enter||i.preventDefault()))},sa.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},sa.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},sa.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},Object.defineProperty(sa.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),sa.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.assignAriaDescribedBy()},sa.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},sa.prototype.onFilterFocus=function(){this.filterFocused.emit()},sa.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},sa.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(l.isChanged)("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Object(l.anyChanged)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},sa.prototype.ngAfterContentChecked=function(){this.verifySettings()},sa.prototype.focusItemAt=function(e){var t=(On(this.defaultItem)?-1:0)<=e&&e<this.data.length;On(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},sa.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},sa.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},sa.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=On(t)?t:!n._open;n._toggle(e)})},sa.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},sa.prototype.triggerPopupEvents=function(e){var t=new yi;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},sa.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||(!e&&this.filterable&&this.isFocused&&this.focus(),this._toggle(e))},Object.defineProperty(sa.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),sa.prototype.reset=function(){this.value=void 0},sa.prototype.writeValue=function(e){this.value=null===e?void 0:e},sa.prototype.registerOnChange=function(e){this.onChangeCallback=e},sa.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},sa.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(sa.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(sa.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),sa.prototype.getText=function(){return this.text},sa.prototype.getDefaultItemText=function(){return dn(this.defaultItem,this.textField)},sa.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var n=this.popupRef.popupElement,i=this.width,t=i.min,i=i.max;n.addEventListener("mousedown",this.popupMouseDownHandler),n.style.minWidth=t,n.style.width=i,n.style.height=this.height,n.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})},sa.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},sa.prototype.updateState=function(e){var t=e.dataItem,e=e.confirm,e=void 0!==e&&e;this.dataItem=t,this.text=dn(t,this.textField),e&&(this._previousDataItem=t)},sa.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},sa.prototype.resetSelection=function(e){var t=!On(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},sa.prototype.onSelectionChange=function(e){e=e.dataItem;this.updateState({dataItem:e}),this.selectionChange.emit(e),this.assignAriaDescribedBy()},sa.prototype.subscribeEvents=function(){var o=this;Object(l.isDocumentAvailable)()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(Object(g.filter)(function(e){return o.isOpen}),Object(g.map)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(Object(m.merge)(this.selectionService.onSelect.pipe(Object(g.filter)(function(e){return!o.isOpen})),this.selectionService.onChange).pipe(Object(g.map)(this.itemFromEvent.bind(this)),Object(g.tap)(function(e){return o.togglePopup(!1)})).subscribe(function(e){var t=e.dataItem,n=e.value;e.newSelection&&o.onSelectionChange({dataItem:t});var i=!On(t)&&o._previousDataItem,e=n!==dn(o.value,o.valueField);i?(o.updateState({dataItem:o._previousDataItem}),o.resetSelection()):e&&(o.value=o.valuePrimitive?n:t,o._previousDataItem=t,o.emitChange(o.value)),o.clearFilter()})),this.navigationSubscription=Object(m.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(Object(g.skipWhile)(function(){return o.filterable})),this.navigationService.right.pipe(Object(g.skipWhile)(function(){return o.filterable})),this.navigationService.home,this.navigationService.end).pipe(Object(g.filter)(function(e){return!isNaN(e.index)})).subscribe(function(e){return o.selectionService.select(e.index)}),this.openSubscription=this.navigationService.open.subscribe(function(){return o.togglePopup(!0)}),this.closeSubscription=this.navigationService.close.subscribe(function(){o.togglePopup(!1),o.focus()}),this.enterSubscription=this.navigationService.enter.pipe(Object(g.tap)(function(e){return e.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(Object(g.concatMap)(function(){return Object(m.interval)(10).pipe(Object(g.take)(1),Object(g.takeUntil)(o.wrapperFocused))})).subscribe(function(){o.wrapperBlurred.emit()}),this._zone.runOutsideAngular(function(){o.componentBlurredSubscription=Object(m.merge)(o.wrapperBlurred.pipe(Object(g.concatMap)(function(){return Object(m.interval)(10).pipe(Object(g.take)(1),Object(g.takeUntil)(o.filterFocused))})),o.navigationService.tab).pipe(Object(g.tap)(function(e){return e instanceof gi&&o.focus()}),Object(g.filter)(function(){return o.isFocused})).subscribe(function(){return o.componentBlur()})}))},sa.prototype.subscribeTouchEvents=function(){var t=this;Object(l.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!mn(t.hostElement,e,t.popupRef)&&t._zone.run(function(){t.filterFocused&&t.togglePopup(!1),t.blur()})})})},sa.prototype.unsubscribeEvents=function(){Object(l.isDocumentAvailable)()&&(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())},sa.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t),n=On(n)?n:this.currentOrDefault(t),i=dn(n,this.valueField);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},sa.prototype.currentOrDefault=function(e){return On(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},sa.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},sa.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},sa.prototype.handleEscape=function(){On(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},sa.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},sa.prototype.verifySettings=function(){if(Object(h.isDevMode)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error("defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem");if(!0===this.valuePrimitive&&On(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!1===this.valuePrimitive&&On(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!On(this.valueField)!=!On(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data")}},sa.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=On(this.selectionService.selected[0])&&dn(this.value,this.valueField)!==dn(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||Object(l.hasObservers)(this.close)||Object(l.hasObservers)(this.onBlur)||Object(l.hasObservers)(this.filterChange)||un(this.hostElement.nativeElement)?this._zone.run(function(){t&&e.selectionService.change(e.selectionService.selected[0]),e.togglePopup(!1),e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):this.togglePopup(!1)},sa.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},sa.prototype.onKeyPress=function(e){var t;0!==e.which&&e.keyCode!==l.Keys.Enter&&(t=String.fromCharCode(e.charCode||e.keyCode)," "===(t=this.ignoreCase?t.toLowerCase():t)&&e.preventDefault(),this.word+=t,this.last=t,this.search())},sa.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(function(){e.word=""},this.delay),this.selectNext())},sa.prototype.selectNext=function(){var e,t,n=this,i=this.dataService.filter(function(e){return On(e)&&!e.header&&!n.disabledItemsService.isItemDisabled(e)}).map(function(e){return n.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:n.dataService.indexOf(e)}}),o=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(this.word,this.last),a=i.length,r=!isNaN(this.selectionService.selected[0]),s=r?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(t={item:this.defaultItem,itemIndex:-1},a+=1,s+=1),r=s+=o&&r?1:0,s=i,i=(s=t?[t].concat(s):s).slice(r).concat(s.slice(0,r)),e=0;e<a;e++){var c=dn(i[e].item,this.textField),d=Boolean(o&&ln(c,this.last,this.ignoreCase)),c=Boolean(ln(c,this.word,this.ignoreCase));if(d||c){e=i[e].itemIndex;break}}e!==a&&this.navigate(e)},sa.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},sa.prototype.navigate=function(e){this.selectionService.select(e)},sa.prototype.findDataItem=function(e){function t(e){return dn(e,n)}var n=e.valueField,i=e.value,o={dataItem:null,index:-1},e=this.dataService.grouped?function(e){return t(e.value)===t(i)}:function(e){return t(e)===t(i)},e=this.dataService.findIndex(e);return o.dataItem=this.dataService.itemAt(e),o.index=e,o},sa.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var o=dn(this.defaultItem,t),a=dn(e,t);if(!On(e)||a===o)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}t=this.findDataItem({valueField:t,value:e}),n=!(i&&n);t.dataItem?(this.updateState({dataItem:t.dataItem,confirm:!0}),this.resetSelection(t.index)):(On(e)&&n?this.updateState({dataItem:e}):this._previousDataItem?this.updateState({dataItem:this._previousDataItem}):this.clearState(),this.resetSelection())},sa.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},sa.prototype.pageChange=function(e){this.virtual.skip=e.skip},sa.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular(function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout(function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()})})},sa.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=nn();e=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],sa.prototype,"focusableId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],sa.prototype,"iconClass",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],sa.prototype,"loading",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],sa.prototype,"data",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],sa.prototype,"value",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],sa.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],sa.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],sa.prototype,"popupSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],sa.prototype,"listHeight",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],sa.prototype,"defaultItem",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],sa.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],sa.prototype,"itemDisabled",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],sa.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],sa.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],sa.prototype,"virtual",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],sa.prototype,"ignoreCase",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],sa.prototype,"delay",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],sa.prototype,"valuePrimitive",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],sa.prototype,"tabindex",void 0),Object(o.__decorate)([Object(h.Input)("tabIndex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],sa.prototype,"tabIndex",null),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"filterChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"selectionChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"open",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"opened",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"close",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"closed",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],sa.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.ContentChild)(kn,{static:!1}),Object(o.__metadata)("design:type",kn)],sa.prototype,"itemTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(wn,{static:!1}),Object(o.__metadata)("design:type",wn)],sa.prototype,"groupTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(In,{static:!1}),Object(o.__metadata)("design:type",In)],sa.prototype,"fixedGroupTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Ti,{static:!1}),Object(o.__metadata)("design:type",Ti)],sa.prototype,"valueTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Cn,{static:!1}),Object(o.__metadata)("design:type",Cn)],sa.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Sn,{static:!1}),Object(o.__metadata)("design:type",Sn)],sa.prototype,"footerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(vi,{static:!1}),Object(o.__metadata)("design:type",vi)],sa.prototype,"noDataTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],sa.prototype,"container",void 0),Object(o.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",h.TemplateRef)],sa.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],sa.prototype,"wrapper",void 0),Object(o.__decorate)([Object(h.ViewChild)("optionsList",{static:!1}),Object(o.__metadata)("design:type",ji)],sa.prototype,"optionsList",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-dropdown"),Object(o.__metadata)("design:type",Boolean)],sa.prototype,"widgetClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],sa.prototype,"dir",null),pi=Object(o.__decorate)([Object(h.Component)({exportAs:"kendoDropDownList",providers:[Pi,bi,xn,fi,mi,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:_i,useExisting:Object(h.forwardRef)(function(){return pi})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return pi})}],selector:"kendo-dropdownlist",template:'\n <ng-container kendoDropDownListLocalizedMessages\n i18n-noDataText="kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n >\n </ng-container>\n <span #wrapper unselectable="on"\n role="listbox"\n [id]="focusableId"\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.dir]="direction"\n [attr.readonly]="readonly"\n [attr.tabindex]="widgetTabIndex"\n [attr.aria-disabled]="disabled"\n [attr.aria-readonly]="readonly"\n aria-haspopup="listbox"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n (keydown)="keydown($event)"\n (keypress)="keypress($event)"\n (click)="click($event)"\n [kendoEventsOutsideAngular]="{\n focus: focusComponent,\n blur: blurComponent\n }"\n [scope]="this"\n >\n <span class="k-input" unselectable="on" [id]="valueLabelId">\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate">{{ getText() }}</ng-template>\n </span>\n <span class="k-select" unselectable="on">\n <span\n class="k-icon"\n unselectable="on"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n <ng-template #popupTemplate>\n \x3c!--filterable--\x3e\n\n <ng-template [ngIf]="filterable">\n <span class="k-list-filter" (click)="$event.stopImmediatePropagation()">\n <input\n [attr.aria-owns]="ariaOwns"\n [attr.aria-activedescendant]="ariaActivedescendant"\n [attr.aria-label]="noDataLabel"\n tabindex="-1"\n [filterInput]="isFocused && !touchEnabled"\n [dir]="direction"\n [(ngModel)]="filterText"\n class="k-textbox"\n (keydown)="keydown($event)"\n (input)="handleFilter($event)"\n (focus)="onFilterFocus()"\n (blur)="blurFilterInput()" />\n <span class="k-icon k-i-search" unselectable="on"></span>\n </span>\n </ng-template>\n \x3c!--default item--\x3e\n <ng-template [ngIf]="defaultItem && !itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n {{ getDefaultItemText() }}\n </div>\n </ng-template>\n <ng-template [ngIf]="defaultItem && itemTemplate">\n <div class="k-list-optionlabel" [ngClass]="{ \'k-state-disabled\': isDisabledDefaultItem }" kendoDropDownsSelectable [index]="-1">\n <ng-template\n [templateContext]="{\n templateRef: itemTemplate.templateRef,\n $implicit: defaultItem\n }">\n </ng-template>\n </div>\n </ng-template>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="itemTemplate"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n >\n </kendo-list>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n </span>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(o.__param)(10,Object(h.Optional)()),Object(o.__param)(10,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[a.LocalizationService,r.PopupService,xn,fi,mi,bi,h.NgZone,h.Renderer2,h.ElementRef,h.ChangeDetectorRef,Boolean])],sa)),Ri=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectCustomItemTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],ra),Vi=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],aa),Bi=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],oa),Ai=(li=yi,Object(o.__extends)(ia,li),ia),t={multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return Mi})},Mi=((di=na).prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;On(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},na.prototype.focus=function(){this.disabled||this.searchbar.focus()},na.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(l.hasObservers)(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},na.prototype.blur=function(){this.disabled||this.searchbar.blur()},na.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,Object(l.hasObservers)(this.onBlur)||Object(l.hasObservers)(this.filterChange)||Object(l.hasObservers)(this.close)||un(this.hostElement.nativeElement)?this._zone.run(function(){e.closePopup(),e.isOpen&&e.allowCustom||e.clearFilter(),e.onBlur.emit(),e.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))},na.prototype.wrapperMousedown=function(e){var t=this.searchbar.input.nativeElement;0===e.button&&(this.isFocused&&this.isOpen&&e.target===t||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()))},na.prototype.onMouseDown=function(e){e.preventDefault()},na.prototype.onResize=function(){var e,t,n;this._open&&(e=this.popupRef.popupElement,t=(n=this.width).min,n=n.max,e.style.minWidth=t,e.style.width=n)},Object.defineProperty(na.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(na.prototype,"data",{get:function(){var e=this.virtual;if(e){var t=e.skip||0,n=t+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(t,n)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"itemDisabled",{set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received "+JSON.stringify(e)+".");this.disabledItemsService.itemDisabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=an(e=e)?Object.assign({},{enabled:!0,checkOnClick:!0},e):{enabled:Boolean(e),checkOnClick:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=Bn(e)},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"valuePrimitive",{get:function(){return On(this._valuePrimitive)?this._valuePrimitive:!On(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"width",{get:function(){var e=0;Object(l.isDocumentAvailable)()&&(e=this.wrapper.nativeElement.offsetWidth);var t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"height",{get:function(){var e=this.popupSettings.height;return On(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(On(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!On(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+dn(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(na.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),na.prototype.verifySettings=function(){if(Object(h.isDevMode)()&&0!==this.value.length){if(!on(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!0===this.valuePrimitive&&sn(this.value))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!1===this.valuePrimitive&&!sn(this.value))throw new Error("Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!On(this.valueField)!=!On(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data")}},na.prototype.change=function(e){var t,n,i=this;!On(e.added)&&!On(e.removed)||-1!==e.added&&-1!==e.removed?(On(e.added)&&(t=this.dataService.itemAt(e.added),t=this.valuePrimitive&&On(t)&&On(t[this.valueField])?t[this.valueField]:t,this.value=this.value.concat([t])),On(e.removed)&&(n=this.dataService.itemAt(e.removed),this.value=this.value.filter(function(e){return dn(e,i.valueField)!==dn(n,i.valueField)}),this.selectionService.focused=e.removed,this.cdr.detectChanges()),this.emitValueChange()):this.addCustomValue(this.text)},na.prototype.setState=function(e){var n=this,t=this.dataService.data;this.dataService.grouped&&(t=t.filter(function(e){return!e.header}).map(function(e){return e.value}));var i,o,a,r,s,c=cn(this.value,t,this.valueField);this.selectionService.resetSelection(c),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(0<this.dataService.itemsCount?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(sn(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=(i=e,o=t,c=this.valueField,a=c,t=on(t=i)&&t.filter(function(e){return an(e)&&On(dn(e,a))})||[],s=c,void 0===(r=o)&&(r=[]),(i.map(function(t){return r.find(function(e){return dn(e,s)===t})}).filter(function(e){return void 0!==e})||[]).concat(t))),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map(function(t){var e=n.selectedDataItems.find(function(e){return dn(e,n.valueField)===dn(t,n.valueField)});return On(e)?e:n.resolveDataItemFromTags(t)}).filter(function(e){return On(e)})),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},na.prototype.handleFilter=function(e){(this.text=e)&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},na.prototype.pageChange=function(e){this.virtual.skip=e.skip},na.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},na.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==l.Keys.ArrowDown&&e.keyCode!==l.Keys.ArrowUp,n=this.text&&e.keyCode===l.Keys.Enter||e.keyCode===l.Keys.Escape;!this.text&&e.keyCode===l.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||t&&!n||(t=e,n=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,(t=this.navigationService.process({current:n,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:t}))!==yn.Undefined&&(t===yn.Enter&&this.isOpen||t!==yn.Enter)&&e.preventDefault())},na.prototype.handleRemoveTag=function(e){var t=e.tag,e=new Ai(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))},na.prototype.clearAll=function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var i=this.selectionService.selected;this.value=this.value.filter(function(e,t){return n.disabledItemsService.isIndexDisabled(i[t])}),this.emitValueChange()},na.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},na.prototype.ngAfterContentChecked=function(){this.verifySettings()},na.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},na.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.setMessages()}),this.setMessages(),this.setState(this.value),this.initialized=!0},na.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(l.isChanged)("valueNormalizer",e)&&this.createCustomValueStream(),Object(l.anyChanged)(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},na.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},na.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)},na.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=On(t)?t:!n._open;n._toggle(e),n.cdr.markForCheck()})},Object.defineProperty(na.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),na.prototype.reset=function(){this.text="",this.value=[]},na.prototype.writeValue=function(e){this.value=e||[]},na.prototype.registerOnChange=function(e){this.onChangeCallback=e},na.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},na.prototype.setDisabledState=function(e){this.disabled=e},na.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(na.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),na.prototype.subscribeEvents=function(){var e,t,n,i=this;Object(l.isDocumentAvailable)()&&(e=function(){return i.isOpen},t=function(){return!i.isOpen},n=function(){return!i.isOpen&&void 0!==i.focusedTagIndex},[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Object(g.filter)(e)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Object(g.filter)(e)).subscribe(function(e){return i.handleUp(e.index)}),this.navigationService.home.pipe(Object(g.filter)(function(){return t})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(g.filter)(function(){return t})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(g.filter)(n)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(g.filter)(n)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.down.subscribe(function(e){return i.handleDownKey(e.index)})].forEach(function(e){return i.observableSubscriptions.add(e)}))},na.prototype.subscribeTouchEvents=function(){var t=this;Object(l.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;!t.isFocused&&!t.isOpen||mn(t.hostElement,e,t.popupRef)||t._zone.run(function(){t.blur(),t.isOpen&&t.togglePopup(!1)})})})},na.prototype.unsubscribeEvents=function(){Object(l.isDocumentAvailable)()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},na.prototype.removeGroupTag=function(e){var n=this,i=this.dataService.data;this.dataService.grouped&&(i=i.filter(function(e){return!e.header}).map(function(e){return e.value}));var o=new Set(e.map(function(e){return dn(e,n.valueField)}));this.value=this.value.filter(function(e){var t=cn([e],i,n.valueField)[0],t=n.disabledItemsService.isIndexDisabled(t);return!o.has(dn(e,n.valueField))||t}),this.emitValueChange()},na.prototype.removeSingleTag=function(t){var n=this,e=this.dataService.data;this.dataService.grouped&&(e=e.filter(function(e){return!e.header}).map(function(e){return e.value}));e=cn([t],e,this.valueField)[0];this.disabledItemsService.isIndexDisabled(e)||(isNaN(e)?(this.value=this.value.filter(function(e){return dn(e,n.valueField)!==dn(t,n.valueField)}),this.emitValueChange()):(this.selectionService.unselect(e),this.selectionService.focused=e,this.togglePopup(!1)))},na.prototype.disabledItemsMapper=function(){var i=this,o=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(e,t,n){return i.disabledItemsService.isIndexDisabled(o[n])&&e.push(n),e},[]))},na.prototype.createCustomValueStream=function(){var o=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(Object(g.tap)(function(){o.loading=!0,o.disabled=!0,o.cdr.detectChanges()}),this.valueNormalizer,Object(g.catchError)(function(){return o.loading=!1,o.disabled=!1,o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.searchbar.focus()}),o.createCustomValueStream(),Object(m.of)(null)})).subscribe(function(e){var t,n,i;o.loading=!1,o.disabled=!1,On(e)&&(t=o.valuePrimitive?dn(e,o.valueField):e,i=-1===(n=o.dataService.indexOf(t)),-1===o.value.indexOf(t)?(o.tags=o.tagMapper(o.selectedDataItems.concat([e])),i?o.value=o.value.concat([t]):o.selectionService.add(n)):!i&&o.selectionService.isSelected(n)?(o.selectionService.unselect(n),o.selectionService.focused=n):o.value=o.value.filter(function(e){return dn(e,o.valueField)!==t}),o.emitValueChange()),o.autoClose&&o.togglePopup(!1),!o.autoClose&&o.filterable||o.clearFilter(),o.nextTick(function(){o.searchbar.focus()})})},na.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},na.prototype.handleEnter=function(e){var t=this.selectionService,n=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==n?(t.isSelected(n)?(t.unselect(n),t.focused=n):t.add(n),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)},na.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},na.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},na.prototype.handleHome=function(){this.focusedTagIndex=0},na.prototype.handleUp=function(e){this.selectionService.focused=e},na.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},na.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},na.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},na.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},na.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},na.prototype.findIndex=function(t,e){var n,i=this;void 0===e&&(e=0),t=t.toLowerCase();e=this.dataService.findIndex(function(e){return n=i.dataService.grouped?dn(e.value,i.textField):dn(e,i.textField),n=On(n)?n.toString().toLowerCase():"",t&&n.startsWith(t)},e);return this.disabledItemsService.isIndexDisabled(e)?e+1>this.dataService.itemsCount?-1:this.findIndex(t,e+1):e},na.prototype.searchTextAndFocus=function(e){e=this.findIndex(e);this.selectionService.focused=e},na.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},na.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},na.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||this._toggle(e)},na.prototype.triggerPopupEvents=function(e){var t=new yi;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},na.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},na.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},na.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:t,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var n=this.popupRef.popupElement,i=this.width,t=i.min,i=i.max;n.addEventListener("mousedown",this.popupMouseDownHandler),n.style.minWidth=t,n.style.width=i,n.style.height=this.height,n.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.togglePopup(!1)})},na.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},na.prototype.resolveDataItemFromTags=function(t){var n=this;if(this.tags&&this.tags.length&&On(t))return this.tags.reduce(function(e,t){t=on(t)?t:[t];return e.push.apply(e,t),e},[]).find(function(e){return dn(e,n.valueField)===dn(t,n.valueField)})},na.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var n=e+1;return n<t?this.firstFocusableIndex(n):void 0}return e},na.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular(function(){setTimeout(function(){return t._zone.run(e)})})},na.prototype.setMessages=function(){var e=this;this._zone.runOutsideAngular(function(){clearTimeout(e.messagesTimeout),e.messagesTimeout=setTimeout(function(){e.noDataText=e.localization.get("noDataText"),e.cdr.detectChanges()})})},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],na.prototype,"focusableId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"autoClose",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"loading",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],na.prototype,"data",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],na.prototype,"value",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],na.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],na.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],na.prototype,"tabindex",void 0),Object(o.__decorate)([Object(h.Input)("tabIndex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],na.prototype,"tabIndex",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],na.prototype,"placeholder",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Function])],na.prototype,"itemDisabled",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],na.prototype,"checkboxes",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],na.prototype,"virtual",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],na.prototype,"popupSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],na.prototype,"listHeight",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],na.prototype,"valuePrimitive",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"clearButton",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],na.prototype,"tagMapper",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],na.prototype,"allowCustom",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],na.prototype,"valueNormalizer",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"filterChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"open",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"opened",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"close",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"closed",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],na.prototype,"removeTag",void 0),Object(o.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],na.prototype,"container",void 0),Object(o.__decorate)([Object(h.ViewChild)(jn,{static:!0}),Object(o.__metadata)("design:type",jn)],na.prototype,"searchbar",void 0),Object(o.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",h.TemplateRef)],na.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],na.prototype,"wrapper",void 0),Object(o.__decorate)([Object(h.ViewChild)("optionsList",{static:!1}),Object(o.__metadata)("design:type",ji)],na.prototype,"optionsList",void 0),Object(o.__decorate)([Object(h.ContentChild)(kn,{static:!1}),Object(o.__metadata)("design:type",kn)],na.prototype,"template",void 0),Object(o.__decorate)([Object(h.ContentChild)(Ri,{static:!1}),Object(o.__metadata)("design:type",Ri)],na.prototype,"customItemTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(wn,{static:!1}),Object(o.__metadata)("design:type",wn)],na.prototype,"groupTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(In,{static:!1}),Object(o.__metadata)("design:type",In)],na.prototype,"fixedGroupTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Cn,{static:!1}),Object(o.__metadata)("design:type",Cn)],na.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Sn,{static:!1}),Object(o.__metadata)("design:type",Sn)],na.prototype,"footerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Vi,{static:!1}),Object(o.__metadata)("design:type",Vi)],na.prototype,"tagTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Bi,{static:!1}),Object(o.__metadata)("design:type",Bi)],na.prototype,"groupTagTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(vi,{static:!1}),Object(o.__metadata)("design:type",vi)],na.prototype,"noDataTemplate",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-multiselect"),Object(o.__metadata)("design:type",Boolean)],na.prototype,"widgetClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],na.prototype,"dir",null),Object(o.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],na.prototype,"disabledClass",null),di=Object(o.__decorate)([Object(h.Component)({exportAs:"kendoMultiSelect",providers:[t,bi,xn,fi,mi,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:_i,useExisting:Object(h.forwardRef)(function(){return di})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return di})}],selector:"kendo-multiselect",template:'\n <ng-container kendoMultiSelectLocalizedMessages\n i18n-noDataText="kendo.multiselect.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.combobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <div class="k-multiselect-wrap k-floatwrap"\n #wrapper\n (mousedown)="wrapperMousedown($event)"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [textField]="textField"\n [valueField]="valueField"\n [focused]="focusedTagIndex"\n [disabled]="disabled"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [tagPrefix]="tagPrefix"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <kendo-searchbar\n #searchbar\n [id]="focusableId"\n [role]="\'listbox\'"\n [tagListId]="tagListId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="handleFilter($event)"\n (onBlur)="onSearchBarBlur()"\n (onFocus)="onSearchBarFocus()"\n >\n </kendo-searchbar>\n <span\n *ngIf="!loading && !readonly && clearButton && (tags?.length || text?.length)"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n [attr.title]="clearTitle"\n role="button"\n tabindex="-1"\n (mousedown)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n \x3c!--header template--\x3e\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n \x3c!--custom item template--\x3e\n <div class="k-list" *ngIf="allowCustom && text">\n <div class="k-item k-custom-item" kendoDropDownsSelectable [multipleSelection]="true" [index]="-1">\n <ng-template *ngIf="customItemTemplate;else default_custom_item_template"\n [templateContext]="{\n templateRef: customItemTemplate.templateRef,\n $implicit: text\n }">\n </ng-template>\n <ng-template #default_custom_item_template>{{ text }}</ng-template>\n <span class="k-icon k-i-plus" style="float: right"></span>\n </div>\n </div>\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [height]="listHeight"\n [template]="template"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [show]="isOpen"\n [multipleSelection]="true"\n [virtual]="virtual"\n (pageChange)="pageChange($event)"\n [checkboxes]="checkboxes"\n >\n </kendo-list>\n \x3c!--no data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate ? noDataTemplate.templateRef : undefined\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n \x3c!--footer template--\x3e\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="isOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(o.__param)(11,Object(h.Optional)()),Object(o.__param)(11,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[a.LocalizationService,r.PopupService,bi,xn,fi,mi,h.ChangeDetectorRef,h.KeyValueDiffers,h.Renderer2,h.ElementRef,h.NgZone,Boolean])],na)),Li=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],ta),Ni=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],ea),zi=(Object(o.__decorate)([Object(h.ContentChild)(Li,{static:!1}),Object(o.__metadata)("design:type",Li)],Jo.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Ni,{static:!1}),Object(o.__metadata)("design:type",Ni)],Jo.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Jo.prototype,"field",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Jo.prototype,"title",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Jo.prototype,"width",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Jo.prototype,"hidden",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Jo.prototype,"style",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Jo.prototype,"headerStyle",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Jo.prototype,"class",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Jo.prototype,"headerClass",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Jo.prototype,"media",void 0),Object(o.__decorate)([Object(h.Component)({selector:"kendo-combobox-column",template:""})],Jo)),Hi=(si=Di,Object(o.__extends)(Qo,si),ci=Qo,Object.defineProperty(Qo.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",e=this.popupSettings.width||function(e){if(!On(t=e)||0===t.length||!t.toArray().every(function(e){return!isNaN(e.width)&&0<e.width}))return null;var t=An()+2;return e.reduce(function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e},t)}(this.columns)||e;return{min:t,max:isNaN(e)?e:e+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(Qo.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Qo.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},Qo.prototype.ngOnDestroy=function(){si.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},Qo.prototype.textFrom=dn,Qo.prototype.updateHeaderPadding=function(e){var t;On(e)&&(t=this.localization.rtl?"padding-left":"padding-right",this.optionsList.hasScrollbar()&&0<An()?this.renderer.setStyle(e,t,An()+"px"):this.renderer.removeStyle(e,t))},Qo.prototype.verifySettings=function(){if(Object(h.isDevMode)()){if(On(this.data)&&0<this.data.length&&this.data.some(function(e){return!an(e)}))throw new Error("Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/");if(!On(this.valueField)||!On(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration");si.prototype.verifySettings.call(this)}},Qo.prototype.addWindowResizeListener=function(){var e=this;Object(l.isDocumentAvailable)()&&this.zone.runOutsideAngular(function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))})},Qo.prototype.updateColumnsMediaState=function(){var n=this;On(this.columns)&&Object(l.isDocumentAvailable)()&&this.columns.forEach(function(e){var t=!e.media||window.matchMedia(e.media).matches;e.matchesMedia!==t&&(e.matchesMedia=t,n.isOpen&&n.zone.run(function(){return n.popupRef.popupElement.style.width=n.popupWidth.max}))})},Object(o.__decorate)([Object(h.HostBinding)("class.k-dropdowngrid"),Object(o.__metadata)("design:type",Boolean)],Qo.prototype,"hostClasses",void 0),Object(o.__decorate)([Object(h.ContentChildren)(zi),Object(o.__metadata)("design:type",h.QueryList)],Qo.prototype,"columns",void 0),Object(o.__decorate)([Object(h.ViewChild)("header",{static:!1}),Object(o.__metadata)("design:type",h.ElementRef),Object(o.__metadata)("design:paramtypes",[h.ElementRef])],Qo.prototype,"header",null),ci=Object(o.__decorate)([Object(h.Component)({providers:[xn,bi,fi,mi,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return ci})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return ci})},{provide:_i,useExisting:Object(h.forwardRef)(function(){return ci})}],selector:"kendo-multicolumncombobox",template:'\n <ng-container\n kendoMultiColumnComboBoxLocalizedMessages\n\n i18n-noDataText="kendo.multicolumncombobox.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multicolumncombobox.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n unselectable="on"\n class="k-dropdown-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-searchbar\n #searchbar\n [role]="\'combobox\'"\n [id]="focusableId"\n [listId]="listBoxId"\n [activeDescendant]="activeDescendant"\n [noDataLabel]="noDataLabel"\n [userInput]="text"\n [suggestedText]="getSuggestion()"\n [disabled]="disabled"\n [readonly]="readonly"\n [tabIndex]="tabIndex"\n [popupOpen]="isOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n >\n </kendo-searchbar>\n\n <span\n *ngIf="clearButton && !loading && !disabled && !readonly && text?.length"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="clearTitle"\n (click)="clearValue($event)"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n </span>\n\n <span\n #select\n aria-hidden="true"\n unselectable="on"\n class="k-select"\n [kendoEventsOutsideAngular]="{\n mousedown: preventEventDefault\n }"\n >\n <span\n class="k-icon"\n [ngClass]="buttonClasses"\n >\n </span>\n </span>\n </span>\n\n <ng-template #popupTemplate>\n \x3c!--user-defined header template --\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }"\n >\n </ng-template>\n\n \x3c!--grid header--\x3e\n <div\n #header\n class="k-grid-header"\n >\n <div class="k-grid-header-wrap">\n <table role="presentation">\n <colgroup>\n <ng-container *ngFor="let column of columns">\n <col\n *ngIf="!column.hidden && column.matchesMedia"\n [style.width.px]="column.width"\n />\n </ng-container>\n </colgroup>\n <tbody>\n <tr>\n <ng-container *ngFor="let column of columns">\n <th\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-header"\n [ngStyle]="column.headerStyle"\n [ngClass]="column.headerClass"\n >\n <ng-container *ngIf="!column.headerTemplate">\n {{ column.title || column.field }}\n </ng-container>\n <ng-template\n *ngIf="column.headerTemplate"\n [templateContext]="{\n templateRef: column.headerTemplate?.templateRef,\n $implicit: column,\n column: column\n }"\n >\n </ng-template>\n </th>\n </ng-container>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n\n \x3c!-- item template --\x3e\n <ng-template #rowTemplate let-dataItem>\n <ng-container *ngFor="let column of columns">\n <span\n *ngIf="!column.hidden && column.matchesMedia"\n class="k-cell"\n [ngClass]="column.class"\n [style.width.px]="column.width"\n [ngStyle]="column.style"\n >\n <ng-container *ngIf="!column.cellTemplate">\n {{ textFrom(dataItem, column.field) }}\n </ng-container>\n <ng-template\n *ngIf="column.cellTemplate"\n [templateContext]="{\n templateRef: column.cellTemplate?.templateRef,\n $implicit: dataItem,\n dataItem: dataItem,\n column: column\n }"\n >\n </ng-template>\n </span>\n </ng-container>\n </ng-template>\n\n \x3c!--list--\x3e\n <kendo-list\n #optionsList\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="textField"\n [valueField]="valueField"\n [template]="{ templateRef: rowTemplate }"\n [groupTemplate]="groupTemplate"\n [fixedGroupTemplate]="fixedGroupTemplate"\n [height]="listHeight"\n [show]="isOpen"\n [virtual]="virtual"\n [listClass]="\'k-reset k-grid-list\'"\n (pageChange)="pageChange($event)"\n (listResize)="updateHeaderPadding(header)"\n >\n </kendo-list>\n\n \x3c!--no-data template--\x3e\n <div\n class="k-nodata"\n *ngIf="data.length === 0"\n >\n <ng-template\n [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }"\n >\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ noDataText }}</div>\n </ng-template>\n </div>\n\n \x3c!--user-defined footer template--\x3e\n <ng-container *ngIf="footerTemplate">\n <div class="k-footer">\n <ng-template\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }"\n >\n </ng-template>\n </div>\n </ng-container>\n </ng-template>\n\n <kendo-resize-sensor\n *ngIf="isOpen"\n (resize)="onResize()"\n >\n </kendo-resize-sensor>\n\n \x3c!-- when the popupSettings.appendTo value is set to \'component\', this container is used --\x3e\n <ng-container #container></ng-container>\n '}),Object(o.__param)(10,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[a.LocalizationService,r.PopupService,xn,fi,mi,bi,h.NgZone,h.ChangeDetectorRef,h.Renderer2,h.ElementRef,Boolean])],Qo)),Ki=Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),Object(o.__metadata)("design:paramtypes",[h.TemplateRef])],Xo),Gi={animate:!0},Wi=(ri=Yo,Object.defineProperty(Yo.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"treeview",{get:function(){return this._treeview},set:function(e){e&&((this.isFocused&&!this.filterable||this.touchEnabled)&&e.focus(),e.animate=!0,this._treeview=e)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},Gi,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"dataItem",{get:function(){return this._dataItem||this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"height",{get:function(){var e=this.popupSettings.height;return On(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"isOpen",{get:function(){return On(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(Yo.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Yo.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}))},Yo.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},Yo.prototype.ngOnChanges=function(e){Object(l.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},Yo.prototype.ngAfterContentChecked=function(){this.verifySettings()},Yo.prototype.isEmpty=function(){return!this.text&&!this.placeholder},Yo.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup())},Yo.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(l.hasObservers)(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}))},Yo.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,Object(l.hasObservers)(this.onBlur)||un(this.hostElement.nativeElement)?this._zone.run(function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()}):this.togglePopup(!1))},Yo.prototype.handleKeydown=function(e){this.disabled||this.readonly||this.navigationService.process({originalEvent:e})},Yo.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},Yo.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),!On(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e))},Yo.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},Yo.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},Yo.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},Yo.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=On(t)?t:!On(n.popupRef);n.destroyPopup(),e&&n.createPopup()})},Object.defineProperty(Yo.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Yo.prototype.onSelectionChange=function(e){var t=e.dataItem,e=e.index;this.valueDepth=e.split("_").length-1;e=this.getField(this.valueField,t),e=this.valuePrimitive?Object(u.getter)(e)(t):t;e!==this.value&&(this.value=e,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},Yo.prototype.messageFor=function(e){return this.localization.get(e)},Yo.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()},Object.defineProperty(Yo.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Yo.prototype.preventEventDefault=function(e){e.preventDefault()},Yo.prototype.writeValue=function(e){!On(e)&&On(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},Yo.prototype.registerOnChange=function(e){this.onChangeCallback=e},Yo.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},Yo.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},Yo.prototype.handleFilterInputChange=function(e){var n=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!n.isVisible(e,String(t))})},Object.defineProperty(Yo.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),Yo.prototype.verifySettings=function(){if(Object(h.isDevMode)()){if(!0===this.valuePrimitive&&On(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values");if(!0===this.valuePrimitive&&On(this.value)&&"object"!=typeof this.dataItem)throw new Error("Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem");if(!1===this.valuePrimitive&&On(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values");if(!On(this.valueField)||!On(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding");if((on(this.valueField)||on(this.textField))&&On(this.value)&&!On(this.valueDepth))throw new Error("Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth")}},Yo.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},Yo.prototype.getText=function(e,t){if(On(t)&&On(e)){e=this.getField(e,t);return Object(u.getter)(e)(t)}return null},Yo.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:On(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find(function(e){return e in t})},Yo.prototype.triggerPopupEvents=function(e){var t=new yi;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},Yo.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});var n=this.popupRef.popupElement,i=this.width,t=i.min,i=i.max;n.style.minWidth=t,n.style.width=i,n.style.height=this.height,n.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},Yo.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Object(l.hasObservers)(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},Yo.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},Yo.prototype.setState=function(){var e;On(this.value)&&On(this.dataItem)&&On(this.valueField)?(this.text=this.getText(this.textField,this.dataItem),e=this.getField(this.valueField,this.dataItem),this.selectBy=e,this.selectedKeys=[Object(u.getter)(e)(this.dataItem)]):this.clearState(),this.cdr.markForCheck()},Yo.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},Yo.prototype.subscribeEvents=function(){var t=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return t.togglePopup(!0)}),this.navigationService.close.subscribe(function(){t.togglePopup(!1),t.focus()}),this.navigationService.enter.pipe(Object(g.tap)(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return t.togglePopup(!0)}),this.navigationService.esc.subscribe(function(){return t.handleEscape()}),this.navigationService.tab.subscribe(function(){return t.focus()}),this.navigationService.down.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.treeview.isActive||t.treeview.focus())}),this.navigationService.up.subscribe(function(e){t.treeview&&(e.originalEvent.preventDefault(),t.filterable&&"0"===t.treeview.navigationService.activeIndex&&t.filterInput.nativeElement.focus())}))},Yo.prototype.subscribeTouchEvents=function(){var t=this;Object(l.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular(function(){return t.touchstartDisposeHandler=t.renderer.listen(document,"touchstart",function(e){e=e.target;t.isFocused&&!mn(t.hostElement,e,t.popupRef)&&t._zone.run(function(){t.isOpen&&t.treeview.blur(),t.blur()})})})},Yo.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},Yo.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",e=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",e)},Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-dropdowntree"),Object(h.HostBinding)("class.k-dropdowntree-clearable"),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"hostClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",String)],Yo.prototype,"direction",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-dropdowntree-clearable"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],Yo.prototype,"clearable",null),Object(o.__decorate)([Object(h.ContentChild)(vi,{static:!1}),Object(o.__metadata)("design:type",vi)],Yo.prototype,"noDataTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Cn,{static:!1}),Object(o.__metadata)("design:type",Cn)],Yo.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Sn,{static:!1}),Object(o.__metadata)("design:type",Sn)],Yo.prototype,"footerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Ki,{static:!1}),Object(o.__metadata)("design:type",Ki)],Yo.prototype,"nodeTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Ti,{static:!1}),Object(o.__metadata)("design:type",Ti)],Yo.prototype,"valueTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",h.TemplateRef)],Yo.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],Yo.prototype,"wrapper",void 0),Object(o.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],Yo.prototype,"container",void 0),Object(o.__decorate)([Object(h.ViewChild)("treeview",{static:!1}),Object(o.__metadata)("design:type",Oe),Object(o.__metadata)("design:paramtypes",[Oe])],Yo.prototype,"treeview",null),Object(o.__decorate)([Object(h.ViewChild)("filterInput",{static:!1}),Object(o.__metadata)("design:type",h.ElementRef)],Yo.prototype,"filterInput",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"open",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"opened",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"close",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"closed",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"nodeExpand",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"nodeCollapse",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Yo.prototype,"filterChange",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"loading",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"clearButton",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Yo.prototype,"data",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],Yo.prototype,"value",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Yo.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Yo.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Yo.prototype,"valueDepth",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Yo.prototype,"hasChildren",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Yo.prototype,"fetchChildren",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Yo.prototype,"placeholder",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],Yo.prototype,"popupSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],Yo.prototype,"dataItem",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Yo.prototype,"listHeight",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"valuePrimitive",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],Yo.prototype,"tabindex",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Yo.prototype,"itemDisabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Yo.prototype,"isNodeExpanded",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],Yo.prototype,"isNodeVisible",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Yo.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Yo.prototype,"filter",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Yo.prototype,"focusableId",void 0),ri=Object(o.__decorate)([Object(h.Component)({exportAs:"kendoDropDownTree",providers:[bi,xn,fi,mi,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return ri})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return ri})},{provide:me,useExisting:Object(h.forwardRef)(function(){return ri})},{provide:ge,useExisting:Object(h.forwardRef)(function(){return ri})}],selector:"kendo-dropdowntree",template:'\n <ng-container kendoDropDownTreeLocalizedMessages\n i18n-noDataText="kendo.dropdowntree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.dropdowntree.clearTitle|The title of the clear button"\n clearTitle="clear"\n >\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-dropdown-wrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n [attr.id]="focusableId"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.tabindex]="tabindex"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n [attr.id]="valueLabelId"\n class="k-input"\n >\n <ng-template *ngIf="valueTemplate"\n [templateContext]="{\n templateRef: valueTemplate.templateRef,\n $implicit: dataItem\n }">\n </ng-template>\n <ng-template [ngIf]="!valueTemplate"> {{ text || placeholder }} </ng-template>\n </span>\n <span\n *ngIf="!loading && !readonly && clearButton && text?.length && !disabled"\n class="k-icon k-clear-value k-i-close"\n [style.visibility]="clearButtonVisiblity"\n aria-hidden="true"\n [attr.title]="messageFor(\'clearTitle\')"\n (click)="clearValue($event)"\n >\n </span>\n <span class="k-select" aria-hidden="true">\n <span\n class="k-icon k-i-arrow-60-down"\n [ngClass]="buttonClasses"\n ></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown.arrowdown)="handleKeydown($event)"\n (keydown.alt.arrowup)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <kendo-treeview\n #treeview\n *ngIf="data.length !== 0 && !allNodesHidden"\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n [(selectedKeys)]="selectedKeys"\n [selectBy]="selectBy"\n [textField]="textField"\n kendoTreeViewSelectable\n [children]="children"\n [hasChildren]="hasChildren"\n [loadOnDemand]="loadOnDemand"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (focusout)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n (selectionChange)="onSelectionChange($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n ',changeDetection:h.ChangeDetectionStrategy.OnPush}),Object(o.__param)(7,Object(h.Optional)()),Object(o.__param)(7,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[r.PopupService,fi,h.Renderer2,h.ElementRef,h.NgZone,h.ChangeDetectorRef,a.LocalizationService,Boolean])],Yo)),Ui={animate:!0},$i={checkChildren:!0,checkOnClick:!0},Zi=(ai=qo,Object.defineProperty(qo.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;(this._treeview=e)&&((this.isFocused&&!this.filterable&&!this.checkAll||this.touchEnabled)&&e.focus(),Promise.resolve(null).then(function(){return t.treeview.animate=!0}))},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=bn(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},Ui,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},$i,e)},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"dataItems",{get:function(){var n=this;return this._dataItems||this.value.map(function(e,t){return{dataItem:e,index:null,level:n.valueDepth[t]||0}})},set:function(e){var n=this;this._dataItems=(e||[]).map(function(e,t){return pn(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:n.valueDepth[t]||0}}),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"focusedTagId",{get:function(){if(!On(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+vn({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isOpen",{get:function(){return On(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"width",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||e;return{min:isNaN(e)?e:e+"px",max:isNaN(t)?t:t+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"height",{get:function(){var e=this.popupSettings.height;return On(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(qo.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(qo.prototype,"popupContainerClasses",{get:function(){var e=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(qo.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),qo.prototype.ngOnInit=function(){var t=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.markForCheck()}))},qo.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},qo.prototype.ngOnChanges=function(e){var n=this;Object(l.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),Object(l.anyChanged)(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map(function(e,t){return Object(o.__assign)({},e,{level:n.valueDepth[t]||0})}):this.dataItems=this.value)},qo.prototype.ngAfterContentChecked=function(){this.verifySettings()},qo.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||On(this.value)&&0!==this.value.length)},qo.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},qo.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},qo.prototype.focusItemAt=function(e){var t;this.treeview&&(t=this.treeview.itemLookup(e),!On(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e))},qo.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},qo.prototype.toggle=function(t){var n=this;Promise.resolve(null).then(function(){var e=On(t)?t:!On(n.popupRef);n.destroyPopup(),e&&n.createPopup()})},qo.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(l.hasObservers)(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))},qo.prototype.handleBlur=function(e){var t=this,e=e&&e.relatedTarget;this.hostElement.nativeElement.contains(e)||this.isOpen&&this.popupRef.popupElement.contains(e)||(this.isFocused=!1,this.togglePopup(!1),(Object(l.hasObservers)(this.onBlur)||un(this.hostElement.nativeElement))&&this._zone.run(function(){t.onBlur.emit(),t.onTouchedCallback()}))},qo.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},qo.prototype.handleKeydown=function(e){this.isWrapperActive&&e.keyCode===l.Keys.Backspace&&0<this.tags.length?this.handleBackspace():this.disabled||this.readonly||this.navigationService.process({originalEvent:e=e})===yn.Open&&e.preventDefault()},qo.prototype.handleNodeClick=function(e){this.isFocused||(e=e.originalEvent.target.parentElement.parentElement,this.lastNodeOnFocus=e,this.focus())},qo.prototype.togglePopup=function(e){var t=this,n=this.disabled||this.readonly,i=this.isOpen===e;this._zone.run(function(){t.focusedTagIndex=void 0}),n||i||(this.triggerPopupEvents(e)?this.removeTreeViewFromTabOrder():e?this.createPopup():this.destroyPopup())},qo.prototype.messageFor=function(e){return this.localization.get(e)},qo.prototype.handleCheckedItemsChange=function(e){this.valueDepth=e.map(function(e){return e.level}),this.lastAction=e.length>this.dataItems.length?"check":"uncheck",this.dataItems=e.slice(),this.updateValue(this.dataItems)},qo.prototype.handleRemoveTag=function(e){var n=this,t=e.tag,i=e.index;this.disabled||this.readonly||(e=new Ai(t),this.removeTag.emit(e),e.isDefaultPrevented()||(t instanceof Array?(this.dataItems=this.dataItems.filter(function(e,t){return t<n.showAfter||n.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t<n.showAfter||n.disabledIndices.has(t)})):(this.dataItems=this.dataItems.filter(function(e,t){return t!==i||n.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return t!==i||n.disabledIndices.has(t)})),this.updateValue(this.dataItems),this.isFocused||this.focus()))},qo.prototype.handleTagMapperChange=function(e){this.showAfter=bn(e),this.setTags()},qo.prototype.clearAll=function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter(function(e,t){return n.disabledIndices.has(t)}),this.dataItems=this.dataItems.filter(function(e,t){return n.disabledIndices.has(t)}),this.valueDepth=this.valueDepth.filter(function(e,t){return n.disabledIndices.has(t)}),this.emitValueChange(this.value)},qo.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},qo.prototype.registerOnChange=function(e){this.onChangeCallback=e},qo.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},qo.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},qo.prototype.handleFilterInputChange=function(e){var n=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every(function(e,t){return!n.isVisible(e,String(t))})},qo.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},qo.prototype.verifySettings=function(){if(Object(h.isDevMode)()){if(!On(this.valueField)||!On(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding");if(!on(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection");if(0<this.value.length){if(this.valuePrimitive&&this.value.some(an))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values");var e=this.dataItems.every(function(e){return an(e.dataItem)});if(this.valuePrimitive&&!on(this.dataItems))throw new Error(Ii);if(this.valuePrimitive&&!e)throw new Error(Ii);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error("Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems");if(!this.valuePrimitive&&!sn(this.value))throw new Error("Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values");if((on(this.valueField)||on(this.textField))&&!on(this.valueDepth))throw new Error(xi);if((on(this.valueField)||on(this.textField))&&0===this.valueDepth.length)throw new Error(xi);if((on(this.valueField)||on(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error("Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth")}}},qo.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},qo.prototype.triggerPopupEvents=function(e){var t=new yi;return(e?this.open:this.close).emit(t),t.isDefaultPrevented()},qo.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:t,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:t,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});var n=this.popupRef.popupElement,i=this.width,t=i.min,i=i.max;n.style.minWidth=t,n.style.width=i,n.style.height=this.height,this.renderer.setAttribute(n,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()})},qo.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"),""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Object(l.hasObservers)(this.filterChange)&&this._zone.run(function(){e.filterChange.emit("")})))},qo.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe(function(){return e.togglePopup(!0)}),this.navigationService.enter.pipe(Object(g.tap)(function(e){return e.originalEvent.preventDefault()})).subscribe(function(){return e.togglePopup(!0)}),Object(m.merge)(this.navigationService.close,this.navigationService.esc).subscribe(function(){e.focus(),e.togglePopup(!1)}),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe(Object(g.filter)(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleRightKey:this.handleLeftKey).bind(this)),this.navigationService.right.pipe(Object(g.filter)(function(){return!e.isTreeViewActive})).subscribe(("rtl"===this.direction?this.handleLeftKey:this.handleRightKey).bind(this)),this.navigationService.home.pipe(Object(g.filter)(function(){return!e.isOpen})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(g.filter)(function(){return!e.isOpen})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(g.filter)(function(){return e.isTagFocused})).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(g.filter)(function(){return e.isTagFocused})).subscribe(this.handleDelete.bind(this)))},qo.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},qo.prototype.handleUpKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)&&(e="0"===this.treeview.navigationService.activeIndex,this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&e?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||e)&&(this.filterable?this.filterInput.nativeElement:this).focus())},qo.prototype.handleDownKey=function(e){this.treeview&&(e.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.nativeElement.focus():this.treeview.isActive||this.treeview.focus(),this.focusedTagIndex=void 0)},qo.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},qo.prototype.handleLeftKey=function(e){e.originalEvent.preventDefault(),void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},qo.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},qo.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},qo.prototype.handleBackspace=function(){var e,t;void 0!==this.focusedTagIndex?this.handleDelete():(e=this.tags[this.tags.length-1],t=this.tags.length-1,this.handleRemoveTag({tag:e,index:t}))},qo.prototype.handleDelete=function(){var e=this.tags[this.focusedTagIndex],t=this.focusedTagIndex;this.handleRemoveTag({tag:e,index:t}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},qo.prototype.unsubscribeEvents=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()})},qo.prototype.removeTreeViewFromTabOrder=function(){var t=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach(function(e){"0"===e.getAttribute("tabindex")&&(t.lastNodeOnFocus=e,t.lastNodeOnFocus.setAttribute("tabindex","-1"))})},qo.prototype.setState=function(){On(this.dataItems)&&On(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},qo.prototype.setTags=function(){var e=this.dataItems.map(function(e){return e.dataItem});this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},qo.prototype.updateValue=function(e){var t=this,e=this.valuePrimitive?e.map(function(e){return vn(e,t.valueField)}):e.map(function(e){return e.dataItem});this.value=e,this.emitValueChange(this.value)},qo.prototype.disabledItemsMapper=function(){var i=this;return new Set(this.dataItems.reduce(function(e,t,n){return i.itemDisabled(t.dataItem,t.index)&&e.push(n),e},[]))},Object(o.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-dropdowntree"),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"hostClasses",void 0),Object(o.__decorate)([Object(h.HostBinding)("attr.dir"),Object(o.__metadata)("design:type",String)],qo.prototype,"direction",void 0),Object(o.__decorate)([Object(h.ContentChild)(Cn,{static:!1}),Object(o.__metadata)("design:type",Cn)],qo.prototype,"headerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Sn,{static:!1}),Object(o.__metadata)("design:type",Sn)],qo.prototype,"footerTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Ki,{static:!1}),Object(o.__metadata)("design:type",Ki)],qo.prototype,"nodeTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(vi,{static:!1}),Object(o.__metadata)("design:type",vi)],qo.prototype,"noDataTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Vi,{static:!1}),Object(o.__metadata)("design:type",Vi)],qo.prototype,"tagTemplate",void 0),Object(o.__decorate)([Object(h.ContentChild)(Bi,{static:!1}),Object(o.__metadata)("design:type",Bi)],qo.prototype,"groupTagTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",h.TemplateRef)],qo.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",h.ElementRef)],qo.prototype,"wrapper",void 0),Object(o.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",h.ViewContainerRef)],qo.prototype,"container",void 0),Object(o.__decorate)([Object(h.ViewChild)("treeview",{static:!1}),Object(o.__metadata)("design:type",Oe),Object(o.__metadata)("design:paramtypes",[Oe])],qo.prototype,"treeview",null),Object(o.__decorate)([Object(h.ViewChild)("filterInput",{static:!1}),Object(o.__metadata)("design:type",h.ElementRef)],qo.prototype,"filterInput",void 0),Object(o.__decorate)([Object(h.ViewChild)("checkAllInput",{static:!1}),Object(o.__metadata)("design:type",h.ElementRef)],qo.prototype,"checkAllInput",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],qo.prototype,"tabindex",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],qo.prototype,"popupSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],qo.prototype,"checkableSettings",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],qo.prototype,"data",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],qo.prototype,"value",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],qo.prototype,"dataItems",null),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],qo.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],qo.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],qo.prototype,"valueDepth",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"loading",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],qo.prototype,"placeholder",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],qo.prototype,"listHeight",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"readonly",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"valuePrimitive",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"loadOnDemand",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],qo.prototype,"focusableId",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"clearButton",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],qo.prototype,"checkAll",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],qo.prototype,"hasChildren",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],qo.prototype,"fetchChildren",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],qo.prototype,"isNodeExpanded",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],qo.prototype,"isNodeVisible",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Function)],qo.prototype,"itemDisabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],qo.prototype,"tagMapper",void 0),Object(o.__decorate)([Object(h.Output)("focus"),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"onFocus",void 0),Object(o.__decorate)([Object(h.Output)("blur"),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"onBlur",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"open",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"opened",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"close",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"closed",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"nodeExpand",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"nodeCollapse",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"valueChange",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"removeTag",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],qo.prototype,"filterChange",void 0),ai=Object(o.__decorate)([Object(h.Component)({exportAs:"kendoMultiSelectTree",providers:[a.LocalizationService,fi,bi,mi,xn,{provide:a.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:i.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return ai})},{provide:me,useExisting:Object(h.forwardRef)(function(){return ai})},{provide:ge,useExisting:Object(h.forwardRef)(function(){return ai})},{provide:l.KendoInput,useExisting:Object(h.forwardRef)(function(){return ai})}],selector:"kendo-multiselecttree",template:'\n <ng-container kendoMultiSelectTreeLocalizedMessages\n i18n-noDataText="kendo.multiselecttree.noDataText|The text displayed in the popup when there are no items"\n noDataText="NO DATA FOUND"\n\n i18n-clearTitle="kendo.multiselecttree.clearTitle|The title of the clear button"\n clearTitle="clear"\n\n i18n-checkAllText="kendo.multiselecttree.checkAllText|The text displayed for the check-all checkbox"\n checkAllText="Check all"\n >\n </ng-container>\n <div #wrapper\n [ngClass]="{\n \'k-multiselect-wrap\': true,\n \'k-floatwrap\': true,\n \'k-state-disabled\': this.disabled\n }"\n role="listbox"\n aria-haspopup="tree"\n [attr.aria-describedby]="tagListId"\n [attr.aria-readonly]="readonly"\n [attr.aria-activedescendant]="focusedTagId"\n [attr.tabindex]="tabindex"\n [attr.id]="focusableId"\n [attr.dir]="direction"\n (click)="handleClick()"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n >\n <kendo-taglist\n [id]="tagListId"\n [tags]="tags"\n [focused]="focusedTagIndex"\n [textField]="textField"\n [valueField]="valueField"\n [valueDepth]="valueDepth"\n [disabled]="disabled"\n [tagPrefix]="tagPrefix"\n [template]="tagTemplate"\n [groupTemplate]="groupTagTemplate"\n [disabledIndices]="disabledIndices"\n (removeTag)="handleRemoveTag($event)"\n >\n </kendo-taglist>\n <span *ngIf="!tags || !tags.length"\n class="k-input k-readonly"\n >\n {{ placeholder }}\n </span>\n <span\n *ngIf="!disabled && !loading && !readonly && clearButton && tags?.length"\n class="k-icon k-clear-value k-i-close"\n [attr.title]="messageFor(\'clearTitle\')"\n role="button"\n tabindex="-1"\n (click)="clearAll($event)"\n >\n </span>\n <span\n *ngIf="loading"\n class="k-icon k-i-loading"\n >\n </span>\n </div>\n <ng-template #popupTemplate>\n <span\n *ngIf="filterable"\n class="k-list-filter"\n >\n <input\n #filterInput\n (input)="handleFilterInputChange($event.target.value)"\n [filterInput]="filterable && !touchEnabled"\n (keydown)="handleKeydown($event)"\n [(ngModel)]="filter"\n class="k-textbox"\n role="textbox"\n aria-haspopup="true"\n aria-expanded="false"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-zoom"></span>\n </span>\n \x3c!--header template--\x3e\n <ng-template\n *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate?.templateRef\n }">\n </ng-template>\n <div *ngIf="checkAll" class="k-check-all">\n <input\n #checkAllInput\n [checkAll]="!filterable && !touchEnabled"\n type="checkbox"\n class="k-checkbox"\n role="checkbox"\n tabindex="0"\n aria-disabled="false"\n aria-readonly="false"\n [treeview]="treeview"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [lastAction]="lastAction"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n (keydown)="handleKeydown($event)"\n [kendoEventsOutsideAngular]="{\n blur: handleBlur\n }"\n [scope]="this"\n >\n <span\n class="k-checkbox-label"\n (click)="toggleCheckAll()"\n (mousedown)="$event.preventDefault()"\n >\n {{ messageFor(\'checkAllText\') }}\n </span>\n </div>\n <kendo-treeview\n #treeview\n [nodes]="data"\n [style.maxHeight.px]="listHeight"\n [animate]="false"\n kendoMultiSelectTreeCheckable\n [checkable]="checkableSettings"\n [checkedItems]="checkedItems"\n [valueField]="valueField"\n [textField]="textField"\n [children]="children"\n [hasChildren]="hasChildren"\n [isExpanded]="isNodeExpanded"\n [isDisabled]="itemDisabled"\n [nodeTemplate]="nodeTemplate"\n [loadOnDemand]="loadOnDemand"\n [filter]="filter"\n [isVisible]="isNodeVisible"\n (keydown)="handleKeydown($event)"\n (nodeClick)="handleNodeClick($event)"\n (expand)="nodeExpand.emit($event)"\n (collapse)="nodeCollapse.emit($event)"\n (checkedItemsChange)="handleCheckedItemsChange($event)"\n [kendoEventsOutsideAngular]="{\n focusout: handleBlur\n }"\n [scope]="this"\n >\n </kendo-treeview>\n \x3c!--footer template--\x3e\n <ng-template\n *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate?.templateRef\n }">\n </ng-template>\n \x3c!--no-data template--\x3e\n <div class="k-nodata" *ngIf="data?.length === 0 || allNodesHidden">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>{{ messageFor(\'noDataText\') }}</div>\n </ng-template>\n </div>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(o.__param)(7,Object(h.Optional)()),Object(o.__param)(7,Object(h.Inject)(Ci)),Object(o.__metadata)("design:paramtypes",[r.PopupService,h.Renderer2,h.ElementRef,fi,h.NgZone,a.LocalizationService,h.ChangeDetectorRef,Boolean])],qo)),qi=(oi=ie,Object(o.__extends)(Zo,oi),Object(o.__decorate)([Object(h.Input)("kendoDropDownTreeFlatBinding"),Object(o.__metadata)("design:type",Array)],Zo.prototype,"nodes",void 0),Object(o.__decorate)([Object(h.Input)("valueField"),Object(o.__metadata)("design:type",String)],Zo.prototype,"idField",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownTreeFlatBinding]"}),Object(o.__metadata)("design:paramtypes",[me])],Zo)),Yi=(ii=ee,Object(o.__extends)($o,ii),Object.defineProperty($o.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),Object(o.__decorate)([Object(h.Input)("kendoDropDownTreeHierarchyBinding"),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],$o.prototype,"data",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownTreeHierarchyBinding]"}),Object(o.__metadata)("design:paramtypes",[me])],$o)),Xi=(ni=ie,Object(o.__extends)(Uo,ni),Object(o.__decorate)([Object(h.Input)("kendoMultiSelectTreeFlatBinding"),Object(o.__metadata)("design:type",Array)],Uo.prototype,"nodes",void 0),Object(o.__decorate)([Object(h.Input)("valueField"),Object(o.__metadata)("design:type",String)],Uo.prototype,"idField",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectTreeFlatBinding]"}),Object(o.__metadata)("design:paramtypes",[me])],Uo)),Qi=(ti=ee,Object(o.__extends)(Wo,ti),Object.defineProperty(Wo.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),Object(o.__decorate)([Object(h.Input)("kendoMultiSelectTreeHierarchyBinding"),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Wo.prototype,"data",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),Object(o.__metadata)("design:paramtypes",[me])],Wo)),Ji=(ei=we,Object(o.__extends)(Go,ei),Object(o.__decorate)([Object(h.Input)("isNodeExpanded"),Object(o.__metadata)("design:type",Function)],Go.prototype,"isExpanded",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),Object(o.__metadata)("design:paramtypes",[ge])],Go)),eo=(Ko.prototype.tagProp=function(e,t,n){n=t&&this.getPropField(e,t,n);return dn(e,n)},Ko.prototype.isTagDisabled=function(e,n){var i=this;return this.isGroupTag(e)?e.every(function(e,t){return i.disabledIndices.has(t+n)}):this.disabledIndices.has(n)},Ko.prototype.deleteTag=function(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:n})},Ko.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},Ko.prototype.isGroupTag=function(e){return e instanceof Array},Ko.prototype.tagAriaHidden=function(e){return On(this.focused)&&this.focused!==e},Ko.prototype.getPropField=function(t,e,n){var i=e.length-1;if("string"==typeof e)return e;if(this.valueDepth){n=this.valueDepth[n];return i<n?e[i]:e[n]}return e.find(function(e){return e in t})},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],Ko.prototype,"tags",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Ko.prototype,"textField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ko.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],Ko.prototype,"valueDepth",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Ko.prototype,"focused",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Vi)],Ko.prototype,"template",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Bi)],Ko.prototype,"groupTemplate",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Ko.prototype,"disabled",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ko.prototype,"tagPrefix",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ko.prototype,"id",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Set)],Ko.prototype,"disabledIndices",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Ko.prototype,"removeTag",void 0),Object(o.__decorate)([Object(h.Component)({selector:"kendo-taglist",template:'\n <ul [attr.id]="id" class="k-reset">\n <li\n *ngFor="let tag of tags; let index = index;"\n role="option"\n [attr.id]="itemId(tag, index)"\n [attr.aria-hidden]="tagAriaHidden(index)"\n aria-selected="true"\n [attr.aria-setsize]="tags?.length"\n class="k-button"\n [ngClass]="{\n \'k-state-focused\': index === focused,\n \'k-state-disabled\': isTagDisabled(tag, index)\n }"\n >\n <ng-template *ngIf="isGroupTag(tag); then groupTag else singleTag"></ng-template>\n <ng-template #groupTag>\n <span>\n <ng-template *ngIf="groupTemplate"\n [templateContext]="{\n templateRef: groupTemplate.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!groupTemplate">{{ tag.length }} {{ tag.length === 1 ? \'item\' : \'items\' }} selected</ng-template>\n </span>\n </ng-template>\n <ng-template #singleTag>\n <span>\n <ng-template *ngIf="template"\n [templateContext]="{\n templateRef: template.templateRef,\n $implicit: tag\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{ tagProp(tag, textField, index) }}</ng-template>\n </span>\n </ng-template>\n\n <span aria-label="delete" [attr.aria-hidden]="index !== focused" class="k-select">\n <span class="k-icon k-i-close" (mousedown)="deleteTag($event, tag, index)">\n </span>\n </span>\n </li>\n </ul>\n '})],Ko)),to=(Jn=a.ComponentMessages,Object(o.__extends)(Ho,Jn),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ho.prototype,"noDataText",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ho.prototype,"clearTitle",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Ho.prototype,"checkAllText",void 0),Ho),no=(Xn=to,Object(o.__extends)(zo,Xn),Qn=zo,Qn=Object(o.__decorate)([Object(h.Directive)({providers:[{provide:to,useExisting:Object(h.forwardRef)(function(){return Qn})}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),Object(o.__metadata)("design:paramtypes",[a.LocalizationService])],zo)),io=(qn=to,Object(o.__extends)(No,qn),Yn=No,Object.defineProperty(No.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Yn=Object(o.__decorate)([Object(h.Component)({providers:[{provide:to,useExisting:Object(h.forwardRef)(function(){return Yn})}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),Object(o.__metadata)("design:paramtypes",[a.LocalizationService])],No)),oo={caseSensitive:!1,operator:"startsWith"},ao=(Object.defineProperty(Lo.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Lo.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},Lo.prototype.ngOnDestroy=function(){On(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},Lo.prototype.handleFilterChange=function(t){var n=this;this.component.data=this.data.filter(function(e){return n.matchesAnyField(e,t)})},Lo.prototype.matchesAnyField=function(t,e){var n=this,i=this.normalizeValue(e),e=this.filterSettings.fields;return 0===e.length?this.checkItem(t,i):e.some(function(e){return n.checkItem(dn(t,e),i)})},Lo.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},Lo.prototype.normalizeValue=function(e){e=On(e)?e.toString():"";return this.filterSettings.caseSensitive?e:e.toLowerCase()},Lo.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?on(e)&&0<e.length?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(Lo.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=On(e)&&"object"==typeof e?e.fields:[];return Object.assign({},oo,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array),Object(o.__metadata)("design:paramtypes",[Array])],Lo.prototype,"data",null),Object(o.__decorate)([Object(h.Input)("kendoDropDownFilter"),Object(o.__metadata)("design:type",Object)],Lo.prototype,"rawSettings",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Lo.prototype,"filterable",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownFilter]"}),Object(o.__metadata)("design:paramtypes",[_i])],Lo)),ro=(Mo.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},Mo.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},Object(o.__decorate)([Object(h.Input)("filterInput"),Object(o.__metadata)("design:type",Boolean)],Mo.prototype,"focused",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[filterInput]"}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,h.NgZone])],Mo)),a=[Cn,Sn,kn,wn,In,vi,Ti,Vi,Bi,no,io,ao,ro],so=Object(o.__decorate)([Object(h.NgModule)({declarations:[a],exports:[a]})],Ao),co=(Object.defineProperty(Bo.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Bo.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),Bo.prototype.onClick=function(e){e.stopPropagation(),this.checkboxes.enabled&&!this.checkboxes.checkOnClick||(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))},Object(o.__decorate)([Object(h.HostBinding)("attr.index"),Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Bo.prototype,"index",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Bo.prototype,"checkboxes",void 0),Object(o.__decorate)([Object(h.HostBinding)("style.height.px"),Object(h.HostBinding)("style.minHeight.px"),Object(h.Input)(),Object(o.__metadata)("design:type",Number)],Bo.prototype,"height",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Boolean)],Bo.prototype,"multipleSelection",void 0),Object(o.__decorate)([Object(h.HostBinding)("class.k-state-focused"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],Bo.prototype,"focusedClassName",null),Object(o.__decorate)([Object(h.HostBinding)("class.k-state-selected"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],Bo.prototype,"selectedClassName",null),Object(o.__decorate)([Object(h.HostListener)("click",["$event"]),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Object]),Object(o.__metadata)("design:returntype",void 0)],Bo.prototype,"onClick",null),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoDropDownsSelectable]"}),Object(o.__metadata)("design:paramtypes",[xn])],Bo)),lo=(Object.defineProperty(Vo.prototype,"templateContext",{set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))},enumerable:!0,configurable:!0}),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],Vo.prototype,"templateContext",null),Object(o.__decorate)([Object(h.Directive)({selector:"[templateContext]"}),Object(o.__metadata)("design:paramtypes",[h.ViewContainerRef])],Vo)),po=(Ro.prototype.addItem=function(e){var t;this.isItemChecked(e)||(t=gn(e.index),t=Object(o.__assign)({},e,{level:t}),this.checkedItems.push(t),this.checkedKeys.add(vn(t,this.valueField)))},Ro.prototype.removeItem=function(e){var t,n,i=this;this.isItemChecked(e)&&(t=gn(e.index),n=Object(o.__assign)({},e,{level:t}),this.checkedItems=this.checkedItems.filter(function(e){return vn(e,i.valueField)!==vn(n,i.valueField)}),this.checkedKeys.delete(vn(n,this.valueField)))},Ro.prototype.isItemChecked=function(e){return this.checkedKeys.has(vn(e,this.valueField))},Ro.prototype.updateItems=function(){var t=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(function(e){return vn(e,t.valueField)}))},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Ro.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],Ro.prototype,"checkedItems",void 0),Ro),uo=(Zn=po,Object(o.__extends)(Fo,Zn),Fo.prototype.ngOnChanges=function(e){On(e.checkable)&&this.toggleCheckOnClick(),On(e.checkedItems)&&this.updateItems()},Fo.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},Fo.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},Fo.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},Fo.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(Object(g.filter)(function(e){return"click"===e.type})).subscribe(function(e){e=t.treeView.itemLookup(e.item.index);t.handleCheckedChange(e)}))},Fo.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},Fo.prototype.checkNode=function(e){var t,n,i,o=this;this.treeView.isDisabled(e.item.dataItem,e.item.index)||(t=e.item,n=[t],this.checkable.checkChildren&&fn(e,function(e){return o.treeView.isVisible(e.dataItem,e.index)&&!o.treeView.isDisabled(e.dataItem,e.index)}).forEach(function(e){return n.push(e.item)}),i=!this.isItemChecked(t),n.forEach(function(e){i?o.addItem(e):o.removeItem(e)}))},Fo.prototype.checkParents=function(e){for(var t=this,n=e;n;)n.children.every(function(e){return t.isItemChecked(e)})?this.addItem(n.item):this.removeItem(n.item),n=n.parent},Fo.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var n=0,i=t[n];On(i);){if(this.isItemChecked(i.item)||this.isItemIndeterminate(i))return!0;i=t[n+=1]}return!1},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Fo.prototype,"checkable",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Fo.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],Fo.prototype,"checkedItems",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Fo.prototype,"checkedItemsChange",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectTreeCheckable]"}),Object(o.__metadata)("design:paramtypes",[Oe])],Fo)),ho=($n=po,Object(o.__extends)(Po,$n),Po.prototype.handleChange=function(e){var n=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map(function(e,t){t=String(t),t=n.treeview.itemLookup(t);n.checkNode(t)}),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(Po.prototype,"isIndeterminate",{get:function(){var n=this,e=this.treeview.nodes.some(function(e,t){t=String(t),t=n.treeview.itemLookup(t);return n.someChecked(t)});return!this.isChecked&&e},enumerable:!0,configurable:!0}),Object.defineProperty(Po.prototype,"isChecked",{get:function(){var n=this;return this.treeview.nodes.every(function(e,t){t=String(t),t=n.treeview.itemLookup(t);return n.allChecked(t)})},enumerable:!0,configurable:!0}),Po.prototype.ngOnChanges=function(e){On(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},Po.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})},Po.prototype.nextTick=function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})},Po.prototype.checkNode=function(e){var t,n=this;this.treeview.isDisabled(e.item.dataItem,e.item.index)||((t=[]).push(e.item),fn(e,function(e){return n.treeview.isVisible(e.dataItem,e.index)&&!n.treeview.isDisabled(e.dataItem,e.index)}).forEach(function(e){return t.push(e.item)}),t.forEach(function(e){n.currentIndeterminateState?"check"===n.lastAction?n.addItem(e):n.removeItem(e):n.currentCheckedState?n.addItem(e):n.removeItem(e)}))},Po.prototype.allChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.every(function(e){return e.children.length?t.isItemChecked(e.item)&&t.allChecked(e):t.isItemChecked(e.item)})&&this.isItemChecked(e.item)},Po.prototype.someChecked=function(e){var t=this,n=e&&e.children;if(Array.isArray(n))return n.some(function(e){return e.children.length?t.isItemChecked(e.item)||t.someChecked(e):t.isItemChecked(e.item)})||this.isItemChecked(e.item)},Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",String)],Po.prototype,"lastAction",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Oe)],Po.prototype,"treeview",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Array)],Po.prototype,"checkedItems",void 0),Object(o.__decorate)([Object(h.Input)(),Object(o.__metadata)("design:type",Object)],Po.prototype,"valueField",void 0),Object(o.__decorate)([Object(h.Input)("checkAll"),Object(o.__metadata)("design:type",Boolean)],Po.prototype,"focused",void 0),Object(o.__decorate)([Object(h.Output)(),Object(o.__metadata)("design:type",h.EventEmitter)],Po.prototype,"checkedItemsChange",void 0),Object(o.__decorate)([Object(h.HostListener)("change",["$event.target"]),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Object]),Object(o.__metadata)("design:returntype",void 0)],Po.prototype,"handleChange",null),Object(o.__decorate)([Object(h.Directive)({selector:"[checkAll]"}),Object(o.__metadata)("design:paramtypes",[h.ElementRef,h.NgZone,h.ChangeDetectorRef,h.Renderer2])],Po)),a=[ji,Oi,co,jn,lo,eo,uo,ho],bo=Object(o.__decorate)([Object(h.NgModule)({declarations:[a],exports:[a,q.CommonModule,i.FormsModule,r.PopupModule,l.ResizeSensorModule,so,l.EventsModule],imports:[q.CommonModule,i.FormsModule,r.PopupModule,l.ResizeSensorModule,so,l.EventsModule]})],To),mo=(Do.prototype.ngOnChanges=function(e){On(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},Do.prototype.createTagMapper=function(){var t=bn(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(e){return e.length>t?e.slice(0,t).concat([e.slice(t)]):e}},Object(o.__decorate)([Object(h.Input)("kendoMultiSelectTreeSummaryTag"),Object(o.__metadata)("design:type",Object)],Do.prototype,"showAfter",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectTreeSummaryTag]"}),Object(o.__metadata)("design:paramtypes",[Zi])],Do)),i=[Wi,Zi,qi,Yi,Xi,Qi,Ji,Ki,mo],go=Object(o.__decorate)([Object(h.NgModule)({declarations:[i],exports:[i,so],imports:[bo,Q]})],Eo),fo=(xo.prototype.ngOnChanges=function(e){On(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},xo.prototype.createTagMapper=function(){var n=bn(this.showAfter);this.multiSelectComponent.tagMapper=function(e){if(e.length>n){var t=void 0;return(t=e.slice(0,n)).push(e.slice(n,e.length)),t}return e}},Object(o.__decorate)([Object(h.Input)("kendoMultiSelectSummaryTag"),Object(o.__metadata)("design:type",Object)],xo.prototype,"showAfter",void 0),Object(o.__decorate)([Object(h.Directive)({selector:"[kendoMultiSelectSummaryTag]"}),Object(o.__metadata)("design:paramtypes",[Mi])],xo)),i=[wi],vo=Object(o.__decorate)([Object(h.NgModule)({declarations:[i],exports:[i,so],imports:[bo]})],Io),Q=[Di,Hi,zi,Ni,Li],i=u.touchEnabled,yo=Object(o.__decorate)([Object(h.NgModule)({declarations:[Q],exports:[Q,so],imports:[bo],providers:[{provide:Ci,useValue:i}]})],wo),Q=[Fi],_o=Object(o.__decorate)([Object(h.NgModule)({declarations:[Q],exports:[Q,so],imports:[bo]})],So),i=[Mi,fo,Ri],Q=u.touchEnabled,Oo=Object(o.__decorate)([Object(h.NgModule)({declarations:[i],exports:[i,so],imports:[bo],providers:[{provide:Ci,useValue:Q}]})],Co),jo=Object(o.__decorate)([Object(h.NgModule)({exports:[vo,yo,_o,Oo,go]})],ko);function ko(){}function Co(){}function So(){}function wo(){}function Io(){}function xo(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}function Eo(){}function Do(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}function To(){}function Po(e,t,n,i){var o=$n.call(this)||this;return o.element=e,o.zone=t,o.cdr=n,o.renderer=i,o.checkedItemsChange=new h.EventEmitter,o.checkedKeys=new Set,o}function Fo(e){var t=Zn.call(this)||this;return t.treeView=e,t.checkedItemsChange=new h.EventEmitter,t.checkedKeys=new Set,t.subscriptions=new m.Subscription,t.subscriptions.add(t.treeView.checkedChange.subscribe(t.handleCheckedChange.bind(t))),t.treeView.isChecked=t.getCheckedState.bind(t),t}function Ro(){}function Vo(e){this.viewContainerRef=e}function Bo(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}function Ao(){}function Mo(e,t){this.element=e,this.zone=t}function Lo(e){this.component=e,this.filterable=!0,this._data=[]}function No(e){var t=qn.call(this)||this;return t.service=e,t}function zo(e){var t=Xn.call(this)||this;return t.service=e,t}function Ho(){return null!==Jn&&Jn.apply(this,arguments)||this}function Ko(){this.disabledIndices=new Set,this.removeTag=new h.EventEmitter}function Go(e){return ei.call(this,e)||this}function Wo(e){var t=ti.call(this,e)||this;return t.multiSelectTree=e,t}function Uo(e){return ni.call(this,e)||this}function $o(e){var t=ii.call(this,e)||this;return t.dropDownTree=e,t}function Zo(e){return oi.call(this,e)||this}function qo(e,t,n,i,o,a,r,s){this.popupService=e,this.renderer=t,this.hostElement=n,this.navigationService=i,this._zone=o,this.localization=a,this.cdr=r,this.touchEnabled=s,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId="k-"+Object(l.guid)(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=Hn,this.fetchChildren=Kn,this.isNodeVisible=Wn,this.itemDisabled=Gn,this.tagMapper=function(e){return e||[]},this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.nodeExpand=new h.EventEmitter,this.nodeCollapse=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.removeTag=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.filterStateChange=new h.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=Object(l.guid)(),this.tagPrefix="tag-"+Object(l.guid)(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=Ui,this._checkableSettings=$i,this._isFocused=!1,this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=hn,this.onChangeCallback=hn,this.direction=a.rtl?"rtl":"ltr",this.subscribeEvents()}function Yo(e,t,n,i,o,a,r,s){this.popupService=e,this.navigationService=t,this.renderer=n,this.hostElement=i,this._zone=o,this.cdr=a,this.localization=r,this.touchEnabled=s,this.hostClasses=!0,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.nodeExpand=new h.EventEmitter,this.nodeCollapse=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.clearButton=!0,this.hasChildren=Mn,this.fetchChildren=Ln,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=Nn,this.isNodeVisible=zn,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+Object(l.guid)(),this.selectedKeys=[],this.filterStateChange=new h.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+Object(l.guid)(),this._popupSettings=Gi,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=hn,this.onChangeCallback=hn,this.direction=r.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}function Xo(e){this.templateRef=e}function Qo(e,t,n,i,o,a,r,s,c,d,l){l=si.call(this,e,t,n,i,o,a,r,s,c,d,l)||this;return l.hostClasses=!0,l.removeWindowResizeListener=hn,l.defaultVirtualItemHeight=36,l.defaultVirtualPageSize=30,l}function Jo(){this.hidden=!1,this.matchesMedia=!0}function ea(e){this.templateRef=e}function ta(e){this.templateRef=e}function na(e,t,n,i,o,a,r,s,c,d,l,p){var u=this;this.localization=e,this.popupService=t,this.dataService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=a,this.cdr=r,this.differs=s,this.renderer=c,this.hostElement=d,this._zone=l,this.touchEnabled=p,this.listBoxId=nn(),this.tagListId=nn(),this.tagPrefix="tag-"+nn(),this.optionPrefix="option-"+nn(),this.focusedTagIndex=void 0,this.focusableId="k-"+nn(),this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=function(e){return e||[]},this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(g.map)(function(t){function e(e){return"string"==typeof e&&t.toLowerCase()===e.toLowerCase()}var n=u.value.find(e);return n||u.dataService.find(e)||t}))},this.filterChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.removeTag=new h.EventEmitter,this.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new m.Subject,this.observableSubscriptions=new m.Subscription,Object(b.validatePackage)(_n),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}function ia(e){var t=li.call(this)||this;return t.dataItem=e,t}function oa(e){this.templateRef=e}function aa(e){this.templateRef=e}function ra(e){this.templateRef=e}function sa(e,t,n,i,o,a,r,s,c,d,l){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=o,this.dataService=a,this._zone=r,this.renderer=s,this.hostElement=c,this.cdr=d,this.touchEnabled=l,this.focusableId="k-"+nn(),this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.selectionChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=nn(),this.optionPrefix=nn(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new h.EventEmitter,this.filterBlurred=new h.EventEmitter,this.wrapperFocused=new h.EventEmitter,this.wrapperBlurred=new h.EventEmitter,this.selectionSubscription=new m.Subscription,this._open=!1,this._popupSettings={animate:!0},Object(b.validatePackage)(_n),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}function ca(e){this.templateRef=e}function da(e,t,n,i,o,a,r,s,c,d,l){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=o,this.dataService=a,this.zone=r,this.cdr=s,this.renderer=c,this.hostElement=d,this.touchEnabled=l,this.selected=[],this.focusableId="k-"+nn(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(g.map)(function(e){return e}))},this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new h.EventEmitter,this.selectionChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=nn(),this.optionPrefix=nn(),this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=function(e){return e.preventDefault()},this.customValueSubject=new m.Subject,this.valueSubject=new m.Subject,this.clearValueSubject=new m.Subject,this.subs=new m.Subscription,Object(b.validatePackage)(_n),this.direction=e.rtl?"rtl":"ltr",this.data=[]}function la(e,t,n,i,o,a,r,s,c,d,l){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=o,this.disabledItemsService=a,this._zone=r,this.cdr=s,this.renderer=c,this.hostElement=d,this.touchEnabled=l,this.highlightFirst=!0,this.focusableId="k-"+nn(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.open=new h.EventEmitter,this.opened=new h.EventEmitter,this.close=new h.EventEmitter,this.closed=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.widgetClasses=!0,this.listBoxId=nn(),this.optionPrefix=nn(),this.onChangeCallback=hn,this.onTouchedCallback=hn,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new m.Subject,this._isFocused=!1,Object(b.validatePackage)(_n),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}function pa(e,t,n,i,o,a,r){var s=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=o,this.zone=a,this.renderer=r,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},this.onClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.listResize=new h.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=Object(m.merge)(this.selectionService.onSelect.pipe(Object(g.map)(function(e){return e.indices[0]})),this.selectionService.onFocus).pipe(Object(g.switchMap)(function(e){return s.zone.onStable.pipe(Object(g.take)(1),Object(g.map)(function(){return e}))})).subscribe(this.scrollToItem.bind(this))}function ua(e){this.element=e}function ha(){this.prevented=!1}function ba(e){this.templateRef=e}function ma(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.enter=new h.EventEmitter,this.tab=new h.EventEmitter,this.esc=new h.EventEmitter,this.up=new h.EventEmitter,this.right=new h.EventEmitter,this.down=new h.EventEmitter,this.left=new h.EventEmitter,this.delete=new h.EventEmitter,this.backspace=new h.EventEmitter,this.home=new h.EventEmitter,this.end=new h.EventEmitter}function ga(e){this.dataService=e,this.itemDisabled=null}function fa(){this.grouped=!1,this.groupIndices=[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(14),r=n(31),n=n(18),r=(Object.defineProperty(s.prototype,"formGroup",{get:function(){return this.editService.taskFormGroup},enumerable:!0,configurable:!0}),s.prototype.getText=function(e){return this.localizationService.get(e)},i.__decorate([o.Component({selector:"kendo-gantt-task-fields",template:'\n <form class="k-form" [formGroup]="formGroup">\n <kendo-formfield *ngIf="formGroup.contains(mapper.taskFields.title)">\n <kendo-label [for]="mapper.taskFields.title" [text]="getText(\'titleFieldInputLabel\')"></kendo-label>\n <input 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 '}),i.__metadata("design:paramtypes",[a.MappingService,n.EditService,r.GanttLocalizationService])],s));function s(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n}t.TaskFieldsComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(7),r=n(14),s=n(31),c=n(19),n=n(18),s=(Object.defineProperty(d.prototype,"taskId",{get:function(){return this.editService.dataItem.id},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dependencyIdField",{get:function(){return"predecessor"===this.dependencyType?"fromId":"toId"},enumerable:!0,configurable:!0}),d.prototype.ngOnInit=function(){var n,i=this;0===this.formGroups.controls.length&&(n=this.mapper.dependencyFields,this.dependencies.forEach(function(e){var t=new a.FormGroup(((t={})[n.id]=new a.FormControl(i.mapper.extractFromDependency(e,"id")),t[n.fromId]=new a.FormControl(i.mapper.extractFromDependency(e,"fromId"),a.Validators.required),t[n.toId]=new a.FormControl(i.mapper.extractFromDependency(e,"toId"),a.Validators.required),t[n.type]=new a.FormControl(i.mapper.extractFromDependency(e,"type"),a.Validators.required),t));i.formGroups.push(t)})),this.formGroups.valueChanges.subscribe(function(e){i.formGroups.controls.forEach(function(e){e.dirty&&i.editService.updateDependencies(e.value)}),i.dependenciesChange.emit(e)})},d.prototype.getFormControl=function(n,e){return this.formGroups.controls.find(function(e,t){return t===n}).get(this.mapper.dependencyFields[e])},d.prototype.getText=function(e){return this.localizationService.get(e)},d.prototype.getDependencyTypes=function(){return Object.keys(c.DependencyType).filter(function(e){return"number"==typeof c.DependencyType[e]}).map(function(e){return{type:e,id:c.DependencyType[e]}})},d.prototype.addHandler=function(){var e=this.mapper.dependencyFields,t=new a.FormGroup(((t={})[e.id]=new a.FormControl,t[e.fromId]=new a.FormControl("toId"===this.dependencyIdField?this.taskId:null,a.Validators.required),t[e.toId]=new a.FormControl("fromId"===this.dependencyIdField?this.taskId:null,a.Validators.required),t[e.type]=new a.FormControl(null,a.Validators.required),t));this.formGroups.push(t)},d.prototype.removeHandler=function(){var e=this.selectedKeys[0],t=this.formGroups.at(e).value;this.editService.deleteDependency(t),this.formGroups.removeAt(e)},i.__decorate([o.Input(),i.__metadata("design:type",Array)],d.prototype,"tasks",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],d.prototype,"dependencies",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],d.prototype,"dependencyType",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],d.prototype,"dependenciesChange",void 0),i.__decorate([o.Component({selector:"kendo-gantt-dependencies-table",template:'\n <kendo-grid\n [data]="dependencies"\n [selectable]="{ mode: \'single\' }"\n [(selectedKeys)]="selectedKeys"\n kendoGridSelectBy\n [height]="295"\n >\n <ng-template kendoGridToolbarTemplate>\n <button kendoButton (click)="addHandler()">\n {{ getText(\'taskEditingDependenciesAddButtonText\') }}\n </button>\n <button kendoButton (click)="removeHandler()" [disabled]="selectedKeys.length === 0">\n {{ getText(\'taskEditingDependenciesRemoveButtonText\') }}\n </button>\n </ng-template>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridNameColumnTitle\')" [field]="dependencyIdField">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="tasks"\n textField="title"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridTypeColumnTitle\')" field="type">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="dependencyTypes"\n textField="type"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n </kendo-grid>\n '}),i.__metadata("design:paramtypes",[r.MappingService,n.EditService,s.GanttLocalizationService])],d));function d(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n,this.dependenciesChange=new o.EventEmitter,this.selectedKeys=[],this.formGroups=new a.FormArray([]),this.dependencyTypes=this.getDependencyTypes()}t.DependenciesTableComponent=s},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),n=n(18),o=(r.prototype.getText=function(e){return this.localizationService.get(e)},r.prototype.handleOpen=function(e){this.editService.getSelectedItem()||e.preventDefault()},r.prototype.handleMouseClick=function(){var e=this;this.editService.getSelectedItem()||this.ngZone.run(function(){e.editService.addEvent.next({selectedItem:null,actionType:"addTask"})})},r.prototype.handleItemClick=function(e){this.editService.addEvent.next({actionType:e.type,selectedItem:null})},i.__decorate([o.Input(),i.__metadata("design:type",Array)],r.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],r.prototype,"icon",void 0),i.__decorate([o.Component({selector:"kendo-gantt-add-task",template:'\n <kendo-dropdownbutton\n [data]="data"\n [icon]="icon"\n [kendoEventsOutsideAngular]="{ click: handleMouseClick }"\n [scope]="this"\n (itemClick)="handleItemClick($event)"\n (open)="handleOpen($event)">\n {{ getText(\'addTaskText\') }}\n </kendo-dropdownbutton>\n '}),i.__metadata("design:paramtypes",[a.LocalizationService,n.EditService,o.NgZone])],r));function r(e,t,n){this.localizationService=e,this.editService=t,this.ngZone=n,this.data=[{text:this.getText("addChildText"),type:"addChild"},{text:this.getText("addAboveText"),type:"addAbove"},{text:this.getText("addBelowText"),type:"addBelow"}],this.icon="plus"}t.GanttAddTaskComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(4),n=n(39),s=(i=n.Messages,a.__extends(c,i),o=c,o=a.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"[kendoGanttLocalizedMessages]"}),a.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(4),n=n(39),s=(i=n.Messages,a.__extends(c,i),o=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=a.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return o})}],selector:"kendo-gantt-messages",template:""}),a.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=i.call(this)||this;return t.service=e,t}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(14),s=n(19),n=n(18),a=(c.prototype.ngOnInit=function(){var t=this;this.editService.loadTasks(this.data).subscribe(function(e){t.loadedTasks=e})},Object.defineProperty(c.prototype,"predecessors",{get:function(){return this.editService.predecessors},set:function(e){this.editService.predecessors=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"successors",{get:function(){return this.editService.successors},set:function(e){this.editService.successors=e},enumerable:!0,configurable:!0}),c.prototype.getText=function(e){return this.localizationService.get(e)},c.prototype.getDependencyType=function(e){return s.DependencyType[e]},c.prototype.handleEditingResult=function(e){this.editService.triggerEditEvent(e)},c.prototype.handleTaskDelete=function(){this.editService.taskDelete.next(this.editService.dataItem)},i.__decorate([o.Input(),i.__metadata("design:type",Array)],c.prototype,"data",void 0),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\n <kendo-tabstrip [keepTabContent]="true">\n <kendo-tabstrip-tab [title]="getText(\'taskEditingGeneralTabTitle\')" [selected]="true">\n <ng-template kendoTabContent>\n <kendo-gantt-task-fields></kendo-gantt-task-fields>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingPredecessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="predecessors"\n dependencyType="predecessor"\n >\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingSuccessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="successors"\n dependencyType="successor">\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n </kendo-tabstrip>\n\n <kendo-dialog-actions layout="normal">\n <button\n kendoButton\n [kendoEventsOutsideAngular]="{\n click: handleTaskDelete\n }"\n [scope]="this"\n >\n {{ getText(\'deleteButtonText\') }}\n </button>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleEditingResult(\'save\')">{{ getText(\'saveButtonText\') }}</button>\n <button kendoButton (click)="handleEditingResult(\'cancel\')">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[r.MappingService,n.EditService,o.ChangeDetectorRef,a.LocalizationService])],c));function c(e,t,n,i){this.mapper=e,this.editService=t,this.cdr=n,this.localizationService=i}t.EditDialogComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(16),c=n(22),n=n(15),s=(i=c.ViewBase,a.__extends(d,i),o=d,o=a.__decorate([r.Component({selector:"kendo-gantt-timeline-month-view",template:"",providers:[{provide:c.ViewBase,useExisting:r.forwardRef(function(){return o})}]}),a.__metadata("design:paramtypes",[n.OptionChangesService,s.DependencyDomService])],d));function d(e,t){t=i.call(this,e,t)||this;return t.type="month",t}t.TimelineMonthViewComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(16),c=n(22),n=n(15),s=(i=c.ViewBase,a.__extends(d,i),o=d,o=a.__decorate([r.Component({selector:"kendo-gantt-timeline-week-view",template:"",providers:[{provide:c.ViewBase,useExisting:r.forwardRef(function(){return o})}]}),a.__metadata("design:paramtypes",[n.OptionChangesService,s.DependencyDomService])],d));function d(e,t){t=i.call(this,e,t)||this;return t.type="week",t}t.TimelineWeekViewComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(16),c=n(22),n=n(15),s=(i=c.ViewBase,a.__extends(d,i),o=d,o=a.__decorate([r.Component({selector:"kendo-gantt-timeline-day-view",template:"",providers:[{provide:c.ViewBase,useExisting:r.forwardRef(function(){return o})}]}),a.__metadata("design:paramtypes",[n.OptionChangesService,s.DependencyDomService])],d));function d(e,t){t=i.call(this,e,t)||this;return t.type="day",t}t.TimelineDayViewComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=n(2),l=n(40),p=n(13);t.scrollElement=function(e,t,n,i){if(p.isPresent(e)&&d.isDocumentAvailable())for(var o=e[i],a=t,r=0;!(o!==e[i]||n===l.ScrollDirection.Backwards&&Math.floor(e[i])<=0||n===l.ScrollDirection.Forward&&(s=e,c=void 0,c=i===l.ScrollAxis.Horizontal?s.scrollWidth-s.clientWidth:s.scrollHeight-s.clientHeight,Math.ceil(s[i])>=c)||!(r<20));)e[i]+=a*n,a+=1,r+=1;var s,c},t.getViewportBoundaries=function(e){var t=e.getBoundingClientRect(),n=Math.max(t.top,0),i=Math.max(t.left,0);return{top:n,bottom:n+Math.min(t.bottom,e.clientHeight),left:i,right:i+Math.min(t.right,e.clientWidth)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(13),s=n(40),c=n(32),d=n(70),o=(l.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},l.prototype.scrollHorizontallyTo=function(n){var i=this;this.zone.runOutsideAngular(function(){var e=i.timelineScrollableContainer.nativeElement,t=d.getViewportBoundaries(e);n<t.left+i.scrollSettings.threshold?i.horizontalScrollInterval=setInterval(function(){return d.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Horizontal)},i.scrollSettings.interval):n>t.right-i.scrollSettings.threshold&&(i.horizontalScrollInterval=setInterval(function(){return d.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Horizontal)},i.scrollSettings.interval))})},l.prototype.scrollVerticallyTo=function(n){var i=this;this.zone.runOutsideAngular(function(){var e=i.timelineScrollableContainer.nativeElement,t=d.getViewportBoundaries(e);n<t.top+i.scrollSettings.threshold?i.verticalScrollInterval=setInterval(function(){return d.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Vertical)},i.scrollSettings.interval):n>t.bottom-i.scrollSettings.threshold&&(i.verticalScrollInterval=setInterval(function(){return d.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Vertical)},i.scrollSettings.interval))})},l.prototype.cancelScroll=function(){r.isPresent(this.verticalScrollInterval)&&(clearInterval(this.verticalScrollInterval),this.verticalScrollInterval=null),r.isPresent(this.horizontalScrollInterval)&&(clearInterval(this.horizontalScrollInterval),this.horizontalScrollInterval=null)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],l.prototype,"scrollSettings",void 0),i.__decorate([o.Directive({selector:"[kendoGanttTimelineScrollable]"}),i.__metadata("design:paramtypes",[o.ElementRef,c.TimelineScrollService,o.NgZone])],l));function l(e,t,n){this.timelineScrollableContainer=e,this.scrollService=t,this.zone=n,this.subscriptions=new a.Subscription,this.subscriptions.add(this.scrollService.horizontalScroll.subscribe(this.scrollHorizontallyTo.bind(this))),this.subscriptions.add(this.scrollService.verticalScroll.subscribe(this.scrollVerticallyTo.bind(this))),this.subscriptions.add(this.scrollService.scrollCancel.subscribe(this.cancelScroll.bind(this)))}t.TimelineScrollableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),s=n(6),a=n(14),c=n(16),d=n(13),l=n(43),p=n(2),c=(u.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},u.prototype.ngOnChanges=function(e){d.isPresent(e.dependency)&&this.updatePoints(this.dependencyDomService.dependencyDomArgs)},u.prototype.updatePoints=function(e){var t=e.timelineRow,n=e.contentContainer,i=e.tasks;d.isPresent(t)&&d.isPresent(n)&&d.isPresent(i)&&0!==i.size&&i.has(this.mapper.extractFromDependency(this.dependency,"fromId"))&&i.has(this.mapper.extractFromDependency(this.dependency,"toId"))?(e=l.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"fromId")),n),n=l.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"toId")),n),t=p.isDocumentAvailable()?t.getBoundingClientRect().height:0,t=l.dependencyCoordinates(e,n,t,this.dependency.type,10,4),this.drawPoints(t)):this.clearPoints()},u.prototype.clearPoints=function(){this.renderer.setAttribute(this.polyline.nativeElement,"points","")},u.prototype.drawPoints=function(e){d.isPresent(e)&&0!==e.length?(e=e.map(function(e){return e.left+","+e.top}).join(" "),this.renderer.setAttribute(this.polyline.nativeElement,"points",e)):this.clearPoints()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],u.prototype,"dependency",void 0),i.__decorate([o.Directive({selector:"[kendoGanttDependency]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,a.MappingService,c.DependencyDomService])],u));function u(e,t,n,i,o){var a=this;this.polyline=e,this.zone=t,this.renderer=n,this.mapper=i,this.dependencyDomService=o,this.subscriptions=new r.Subscription,this.subscriptions.add(o.taskChanges.pipe(s.switchMap(function(e){return a.zone.onStable.pipe(s.take(1),s.map(function(){return e}))})).subscribe(function(e){return a.updatePoints(e)}))}t.GanttDependencyDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(4),n=(a.prototype.onClick=function(e){e!==this.activeView&&this.activeViewChange.emit(e)},a.prototype.getViewTypeText=function(e){return this.localizationService.get(e+"ViewText")},i.__decorate([o.HostBinding("class.k-gantt-views-wrapper"),i.__metadata("design:type",Boolean)],a.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],a.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"activeView",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],a.prototype,"activeViewChange",void 0),i.__decorate([o.Component({selector:"kendo-gantt-view-selector",template:'\n <select\n class="k-dropdown k-views-dropdown"\n aria-label="View Selector"\n [value]="activeView"\n (change)="activeViewChange.emit($event.target.value)">\n <option *ngFor="let view of views" [value]="view">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class="k-gantt-views" selection="single">\n <button *ngFor="let view of views"\n kendoButton\n type="button"\n [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '}),i.__metadata("design:paramtypes",[n.LocalizationService])],a));function a(e){this.localizationService=e,this.hostClass=!0,this.activeView="week",this.activeViewChange=new o.EventEmitter}t.ViewSelectorComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(20),n=(Object.defineProperty(a.prototype,"position",{get:function(){return this._position},set:function(e){this.context.position=this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolbarTemplateRef",{get:function(){return this.gantt.toolbarTemplate?this.gantt.toolbarTemplate.templateRef:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(a.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}),a.prototype.handleViewChange=function(e){this.gantt.changeActiveView(e)},i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],a.prototype,"role",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],a.prototype,"showAddTask",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],a.prototype,"showViewSelector",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],a.prototype,"position",null),i.__decorate([o.Component({selector:"kendo-gantt-toolbar",template:'\n <ng-container *ngIf="!renderTemplate">\n <kendo-gantt-add-task *ngIf="showAddTask"></kendo-gantt-add-task>\n <span class="k-spacer k-toolbar-spacer"></span>\n <kendo-gantt-view-selector\n *ngIf="showViewSelector"\n [views]="gantt.viewTypes"\n [activeView]="gantt.activeView"\n (activeViewChange)="handleViewChange($event)"></kendo-gantt-view-selector>\n </ng-container>\n <ng-template\n *ngIf="renderTemplate"\n [ngTemplateOutlet]="toolbarTemplateRef"\n [ngTemplateOutletContext]="context"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[n.GanttComponent])],a));function a(e){this.gantt=e,this.context={},this.role="toolbar"}t.ToolbarComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,o=n(0),a=n(1),r=n(14),c=n(23),d=n(21),l=n(16),p=n(15),u=n(24),n=n(26),c=(s=n.GanttTaskBase,o.__extends(h,s),i=h,o.__decorate([a.HostBinding("class.k-milestone-wrap"),o.__metadata("design:type",Boolean)],h.prototype,"milestoneWrapperClass",void 0),i=o.__decorate([a.Component({selector:"kendo-gantt-milestone-task",providers:[{provide:n.GanttTaskBase,useExisting:a.forwardRef(function(){return i})}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),o.__param(0,a.Inject(d.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[Boolean,r.MappingService,u.TimelineViewService,l.DependencyDomService,p.OptionChangesService,a.ChangeDetectorRef,c.NavigationService])],h));function h(e,t,n,i,o,a,r){r=s.call(this,t,n,i,o,a,r)||this;return r.touchEnabled=e,r.milestoneWrapperClass=!0,r}t.GanttMilestoneTaskComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,o=n(0),a=n(1),r=n(14),c=n(23),d=n(21),l=n(16),p=n(15),u=n(24),h=n(26),b=n(13),c=(s=h.GanttTaskBase,o.__extends(m,s),i=m,Object.defineProperty(m.prototype,"ariaExpanded",{get:function(){var e=!b.isPresent(this.isExpanded)||this.isExpanded(this.dataItem);return String(e)},enumerable:!0,configurable:!0}),o.__decorate([a.HostBinding("class.k-summary-wrap"),o.__metadata("design:type",Boolean)],m.prototype,"summaryWrapperClass",void 0),o.__decorate([a.Input(),o.__metadata("design:type",a.TemplateRef)],m.prototype,"template",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Function)],m.prototype,"isExpanded",void 0),i=o.__decorate([a.Component({selector:"kendo-gantt-summary-task",providers:[{provide:h.GanttTaskBase,useExisting:a.forwardRef(function(){return i})}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-level]="level + 1"\n >\n <div *ngIf="!template; else summaryTemplate"\n class="k-task-summary-progress"\n [style.width.px]="taskWidth">\n <div\n class="k-task-summary-complete"\n [style.width.px]="completionOverlayWidth"\n >\n </div>\n </div>\n <ng-template\n #summaryTemplate\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),o.__param(0,a.Inject(d.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[Boolean,r.MappingService,u.TimelineViewService,l.DependencyDomService,p.OptionChangesService,a.ChangeDetectorRef,c.NavigationService])],m));function m(e,t,n,i,o,a,r){r=s.call(this,t,n,i,o,a,r)||this;return r.touchEnabled=e,r.summaryWrapperClass=!0,r}t.GanttSummaryTaskComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,i,o=n(0),a=n(1),r=n(14),s=n(23),d=n(18),l=n(21),p=n(16),u=n(15),h=n(24),n=n(26),s=(c=n.GanttTaskBase,o.__extends(b,c),(i=b).prototype.onTaskDelete=function(){this.editService.dataItem=this.dataItem,this.editService.taskDelete.next(this.dataItem)},o.__decorate([a.Input(),o.__metadata("design:type",a.TemplateRef)],b.prototype,"taskContentTemplate",void 0),o.__decorate([a.Input(),o.__metadata("design:type",a.TemplateRef)],b.prototype,"taskTemplate",void 0),i=o.__decorate([a.Component({selector:"kendo-gantt-task",providers:[{provide:n.GanttTaskBase,useExisting:a.forwardRef(function(){return i})}],template:'\n <div\n #task\n class="k-task k-task-single"\n role="treeitem"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\n aria-hidden="true"\n >\n </div>\n <div class="k-task-content">\n <div class="k-task-template">\n <ng-container *ngIf="!taskContentTemplate; else taskContent">\n {{ mapper.extractFromTask(dataItem, \'title\') }}\n </ng-container>\n <ng-template\n #taskContent\n [ngTemplateOutlet]="taskContentTemplate"\n [ngTemplateOutletContext]="{ $implicit: dataItem }"\n >\n </ng-template>\n </div>\n <span\n class="k-task-actions"\n aria-hidden="true"\n >\n <span\n class="k-link k-task-delete"\n [kendoEventsOutsideAngular]="{\n click: onTaskDelete\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-close"></span>\n </span>\n </span>\n </div>\n </ng-container>\n <ng-template\n *ngIf="taskTemplate"\n [ngTemplateOutlet]="taskTemplate"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),o.__param(1,a.Inject(l.TOUCH_ENABLED)),o.__metadata("design:paramtypes",[d.EditService,Boolean,r.MappingService,h.TimelineViewService,p.DependencyDomService,u.OptionChangesService,a.ChangeDetectorRef,s.NavigationService])],b));function b(e,t,n,i,o,a,r,s){s=c.call(this,n,i,o,a,r,s)||this;return s.editService=e,s.touchEnabled=t,s}t.GanttTaskComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(i.__decorate([n.Input(),i.__metadata("design:type",Array)],o.prototype,"groupSlots",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],o.prototype,"slots",void 0),i.__decorate([n.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 '})],o));function o(){}t.GanttHeaderTableBodyComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(3),r=n(16),s=n(14),c=n(13),s=(Object.defineProperty(d.prototype,"timelineRow",{set:function(e){c.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),d.prototype.isMileStone=function(e){return!e.hasChildren&&a.isEqual(this.mapper.extractFromTask(e.data,"start"),this.mapper.extractFromTask(e.data,"end"))},i.__decorate([o.ViewChild("timelineRow",{static:!1}),i.__metadata("design:type",o.ElementRef),i.__metadata("design:paramtypes",[o.ElementRef])],d.prototype,"timelineRow",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],d.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],d.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"taskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],d.prototype,"taskClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],d.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],d.prototype,"isTaskSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"renderDependencyDragClues",void 0),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.data"\n [level]="item.level"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [isExpanded]="isExpanded"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,s.MappingService])],d));function d(e,t){this.dependencyDomService=e,this.mapper=t}t.GanttTasksTableBodyComponent=s},function(e,t,n){"use strict";n.r(t),n.d(t,"CalendarCommonModule",function(){return Ui}),n.d(t,"CALENDAR_RANGE_VALIDATORS",function(){return Rt}),n.d(t,"CALENDAR_VALUE_ACCESSOR",function(){return Ft}),n.d(t,"KENDO_INPUT_PROVIDER",function(){return Vt}),n.d(t,"KForOf",function(){return zn}),n.d(t,"KForOfContext",function(){return Nn}),n.d(t,"HeaderComponent",function(){return Gi}),n.d(t,"HorizontalViewListComponent",function(){return In}),n.d(t,"CalendarMessages",function(){return Qi}),n.d(t,"MultiViewCalendarCustomMessagesComponent",function(){return Yi}),n.d(t,"Messages",function(){return Zi}),n.d(t,"RANGE_CALENDAR_RANGE_VALIDATORS",function(){return Dn}),n.d(t,"RANGE_CALENDAR_VALUE_ACCESSOR",function(){return En}),n.d(t,"NavigationComponent",function(){return gt}),n.d(t,"BusViewService",function(){return Pe}),n.d(t,"CenturyViewService",function(){return se}),n.d(t,"DecadeViewService",function(){return le}),n.d(t,"DisabledDatesService",function(){return _t}),n.d(t,"CalendarDOMService",function(){return $e}),n.d(t,"MonthViewService",function(){return he}),n.d(t,"NavigationService",function(){return yt}),n.d(t,"ScrollSyncService",function(){return jt}),n.d(t,"SelectionService",function(){return Ot}),n.d(t,"WeekNamesService",function(){return wn}),n.d(t,"YearViewService",function(){return ge}),n.d(t,"TemplatesModule",function(){return $i}),n.d(t,"CellTemplateDirective",function(){return kt}),n.d(t,"CenturyCellTemplateDirective",function(){return It}),n.d(t,"DecadeCellTemplateDirective",function(){return wt}),n.d(t,"HeaderTitleTemplateDirective",function(){return Et}),n.d(t,"MonthCellTemplateDirective",function(){return Ct}),n.d(t,"NavigationItemTemplateDirective",function(){return Dt}),n.d(t,"WeekNumberCellTemplateDirective",function(){return xt}),n.d(t,"YearCellTemplateDirective",function(){return St}),n.d(t,"ViewListComponent",function(){return ft}),n.d(t,"ViewComponent",function(){return Wi}),n.d(t,"PickerService",function(){return Tt}),n.d(t,"DateInputMessages",function(){return ao}),n.d(t,"DatePickerMessages",function(){return lo}),n.d(t,"DateRangeInput",function(){return Bn}),n.d(t,"DateRangePopupTemplateDirective",function(){return Pn}),n.d(t,"DateTimePickerCustomMessagesComponent",function(){return La}),n.d(t,"LocalizedMessagesDirective",function(){return Na}),n.d(t,"Messages$1",function(){return Ma}),n.d(t,"TimePickerMessages",function(){return Pa}),n.d(t,"TimePickerCustomMessagesComponent",function(){return Ra}),n.d(t,"TimeSelectorCustomMessagesComponent",function(){return Ba}),n.d(t,"DayPeriodService",function(){return Vo}),n.d(t,"TimePickerDOMService",function(){return vo}),n.d(t,"HoursService",function(){return jo}),n.d(t,"MillisecondsService",function(){return Ro}),n.d(t,"MinutesService",function(){return wo}),n.d(t,"SecondsService",function(){return Do}),n.d(t,"TimeListComponent",function(){return Mo}),n.d(t,"TimeSelectorComponent",function(){return Ta}),n.d(t,"TOUCH_ENABLED",function(){return fn}),n.d(t,"ScrollerService",function(){return Xe}),n.d(t,"DEFAULT_SCROLLER_FACTORY",function(){return it}),n.d(t,"SCROLLER_FACTORY_TOKEN",function(){return Qe}),n.d(t,"VirtualizationComponent",function(){return mt}),n.d(t,"VirtualizationModule",function(){return no}),n.d(t,"CalendarComponent",function(){return Bt}),n.d(t,"DateInputComponent",function(){return mn}),n.d(t,"DatePickerComponent",function(){return vn}),n.d(t,"TimePickerComponent",function(){return kn}),n.d(t,"DateTimePickerComponent",function(){return Sn}),n.d(t,"MultiViewCalendarComponent",function(){return Tn}),n.d(t,"DateRangeComponent",function(){return Vn}),n.d(t,"DateRangePopupComponent",function(){return Rn}),n.d(t,"DateRangeEndInputDirective",function(){return An}),n.d(t,"DateRangeStartInputDirective",function(){return Mn}),n.d(t,"DateRangeSelectionDirective",function(){return Ln}),n.d(t,"CalendarModule",function(){return io}),n.d(t,"CalendarsModule",function(){return oo}),n.d(t,"DateInputModule",function(){return co}),n.d(t,"DatePickerModule",function(){return bo}),n.d(t,"DateInputsModule",function(){return Ha}),n.d(t,"TimePickerModule",function(){return Aa}),n.d(t,"DateTimePickerModule",function(){return za}),n.d(t,"MultiViewCalendarModule",function(){return Xi}),n.d(t,"DateRangeModule",function(){return go}),n.d(t,"DateRangeService",function(){return Fn}),n.d(t,"CalendarCustomMessagesComponent",function(){return eo}),n.d(t,"DateInputCustomMessagesComponent",function(){return so}),n.d(t,"DatePickerCustomMessagesComponent",function(){return uo}),n.d(t,"PreventableEvent",function(){return gn}),n.d(t,"CalendarLocalizedMessagesDirective",function(){return Ji}),n.d(t,"MultiViewCalendarLocalizedMessagesDirective",function(){return qi}),n.d(t,"DateInputLocalizedMessagesDirective",function(){return ro}),n.d(t,"DatePickerLocalizedMessagesDirective",function(){return po}),n.d(t,"TimePickerLocalizedMessagesDirective",function(){return Fa}),n.d(t,"TimeSelectorLocalizedMessagesDirective",function(){return Va});var c,i=n(0),h=n(1),o=n(7),a=n(4),_=n(3),b=n(2),m=n(12),r=n(10),l=n(5),d=n(6),s=n(11),p=n(9),u=n(8),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"};(On=c=c||{})[On.Left=0]="Left",On[On.Right=1]="Right",On[On.Up=2]="Up",On[On.Down=3]="Down",On[On.PrevView=4]="PrevView",On[On.NextView=5]="NextView",On[On.FirstInView=6]="FirstInView",On[On.LastInView=7]="LastInView",On[On.LowerView=8]="LowerView",On[On.UpperView=9]="UpperView";function f(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function v(e){return e.preventDefault()}function y(e){return e.relatedTarget||document.activeElement}function O(e){return null!=e}function j(e){return null!=e}function k(n){return function(e,t){e=Object(_.cloneDate)(e);return e[n](t),e}}function C(e,t,n){return{candidateValue:J(Z,e),maxValue:Object(_.addDays)(J(Z,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:J(Z,t)}}function S(e,t,n){void 0===n&&(n=1);for(var i=[],o=e;o<t;o+=n)i.push(o);return i}function w(e,t,n){return!e||!(t&&e<t||n&&n<e)}function I(e,t,n){return!(e&&t&&n)||(e=C(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function x(e,t){return!j(e)||!j(t)||e<=t}function E(e,t,n){return e&&(t&&e<t?Object(_.cloneDate)(t):n&&n<e?Object(_.cloneDate)(n):e)}function D(){return new Date}function T(){return Object(_.getDate)(new Date)}function P(e){}function F(){return"undefined"!=typeof window}function R(e,t){return e.slice(t).concat(e.slice(0,t))}function V(o){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(o);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}}function B(e,t){return void 0!==e[t]}function A(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function M(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function L(e,t){var t=(n=t||$).start,n=n.end;return!(!t||!n)&&t<e&&e<n}function N(e,t){return e||t}function z(e){return{start:e,end:e}}function H(e,t){var n=(i=e||$).start,e=i.end,t=(i=t||$).start,i=i.end;return Object(_.isEqual)(n,t)&&Object(_.isEqual)(e,i)}function K(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return Object(_.isEqual)(e,n[t])})}function G(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function W(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}var U,$={start:null,end:null},Z=new Date(1980,0,1),q=new Date(1900,0,1),Y=new Date(2099,11,31),X=new Date(1980,0,1),Q=new Date(1980,0,1,23,59,59),J=function(e,t){e=Object(_.cloneDate)(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},ee=k("setFullYear"),te=k("setHours"),ne=k("setMinutes"),ie=k("setSeconds"),oe=k("setMilliseconds"),ae=[[]],re=((to={})[c.Left]=function(e){return Object(_.addDecades)(e,-1)},to[c.Up]=function(e){return Object(_.addDecades)(e,-5)},to[c.Right]=function(e){return Object(_.addDecades)(e,1)},to[c.Down]=function(e){return Object(_.addDecades)(e,5)},to[c.PrevView]=function(e){return Object(_.addCenturies)(e,-1)},to[c.NextView]=function(e){return Object(_.addCenturies)(e,1)},to[c.FirstInView]=function(e){return Object(_.firstDecadeOfCentury)(e)},to[c.LastInView]=function(e){return Object(_.lastDecadeOfCentury)(e)},to),se=(_e.prototype.addToDate=function(e,t){return Object(_.addCenturies)(e,t)},_e.prototype.datesList=function(t,e){return S(0,e).map(function(e){return Object(_.addCenturies)(t,e)})},_e.prototype.data=function(e){var a=this,r=e.cellUID,s=e.focusedDate,c=e.isActiveView,d=e.max,l=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?$:t,e=e.viewDate;if(!e)return ae;var n=S(0,4),h=Object(_.firstDecadeOfCentury)(e),b=Object(_.lastDecadeOfCentury)(e),m=T();return S(0,3).map(function(e){var o=Object(_.addDecades)(h,4*e);return n.map(function(e){var t=a.normalize(Object(_.addDecades)(o,e),l,d),n=t.getFullYear()>b.getFullYear();if(!a.isInRange(t,l,d)||n)return null;var i=a.isEqual(t,u.start),e=a.isEqual(t,u.end),n=!i&&!e&&L(t,u);return{formattedValue:a.value(t),id:""+r+t.getTime(),isFocused:a.isEqual(t,s),isSelected:c&&p.some(function(e){return a.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&a.isEqual(t,b),isRangeSplitStart:n&&a.isEqual(t,h),isToday:a.isEqual(t,m),title:a.cellTitle(t),value:t}})})},_e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(_.firstYearOfDecade)(e).getFullYear()===Object(_.firstYearOfDecade)(t).getFullYear()},_e.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},_e.prototype.isInRange=function(e,t,n){e=Object(_.firstYearOfDecade)(e).getFullYear(),t=!t||Object(_.firstYearOfDecade)(t).getFullYear()<=e,n=!n||e<=Object(_.firstYearOfDecade)(n).getFullYear();return t&&n},_e.prototype.beginningOfPeriod=function(e){if(!e)return e;e=Object(_.firstYearOfDecade)(Object(_.firstDecadeOfCentury)(e));return Object(_.createDate)(e.getFullYear(),0,1)},_e.prototype.lastDayOfPeriod=function(e){e=Object(_.lastDecadeOfCentury)(e),e=Object(_.lastYearOfDecade)(e),e=Object(_.lastMonthOfYear)(e);return Object(_.lastDayOfMonth)(e)},_e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},_e.prototype.move=function(e,t){t=re[t];return t?t(e):e},_e.prototype.cellTitle=function(e){return Object(_.firstYearOfDecade)(e).getFullYear().toString()},_e.prototype.navigationTitle=function(e){return e?Object(_.firstDecadeOfCentury)(e).getFullYear().toString():""},_e.prototype.title=function(e){return e?Object(_.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(_.lastDecadeOfCentury)(e).getFullYear():""},_e.prototype.rowLength=function(){return 4},_e.prototype.skip=function(e,t){return Object(_.durationInCenturies)(t,e)},_e.prototype.total=function(e,t){return Object(_.durationInCenturies)(e,t)+1},_e.prototype.value=function(e){return e?Object(_.firstYearOfDecade)(e).getFullYear().toString():""},_e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addCenturies)(e,-1*t)}return e},_e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},Object(i.__decorate)([Object(h.Injectable)()],_e)),ce=[[]],de=((ho={})[c.Left]=function(e){return Object(_.addYears)(e,-1)},ho[c.Up]=function(e){return Object(_.addYears)(e,-5)},ho[c.Right]=function(e){return Object(_.addYears)(e,1)},ho[c.Down]=function(e){return Object(_.addYears)(e,5)},ho[c.PrevView]=function(e){return Object(_.addDecades)(e,-1)},ho[c.NextView]=function(e){return Object(_.addDecades)(e,1)},ho[c.FirstInView]=function(e){return Object(_.firstYearOfDecade)(e)},ho[c.LastInView]=function(e){return Object(_.lastYearOfDecade)(e)},ho),le=(ye.prototype.addToDate=function(e,t){return Object(_.addDecades)(e,t)},ye.prototype.datesList=function(t,e){return S(0,e).map(function(e){return Object(_.addDecades)(t,e)})},ye.prototype.data=function(e){var a=this,r=e.cellUID,s=e.focusedDate,c=e.isActiveView,d=e.max,l=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?$:t,e=e.viewDate;if(!e)return ce;var n=S(0,4),h=Object(_.firstYearOfDecade)(e),b=Object(_.lastYearOfDecade)(e),m=T();return S(0,3).map(function(e){var o=Object(_.addYears)(h,4*e);return n.map(function(e){var t=a.normalize(Object(_.addYears)(o,e),l,d),n=t.getFullYear()>b.getFullYear();if(!a.isInRange(t,l,d)||n)return null;var i=a.isEqual(t,u.start),e=a.isEqual(t,u.end),n=!i&&!e&&L(t,u);return{formattedValue:a.value(t),id:""+r+t.getTime(),isFocused:a.isEqual(t,s),isSelected:c&&p.some(function(e){return a.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&a.isEqual(t,b),isRangeSplitStart:n&&a.isEqual(t,h),isToday:a.isEqual(t,m),title:a.cellTitle(t),value:t}})})},ye.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},ye.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},ye.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,n=!n||e<=n.getFullYear();return t&&n},ye.prototype.beginningOfPeriod=function(e){if(!e)return e;e=Object(_.firstYearOfDecade)(e);return Object(_.createDate)(e.getFullYear(),0,1)},ye.prototype.lastDayOfPeriod=function(e){e=Object(_.lastYearOfDecade)(e),e=Object(_.lastMonthOfYear)(e);return Object(_.lastDayOfMonth)(e)},ye.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},ye.prototype.move=function(e,t){t=de[t];return t?t(e):e},ye.prototype.cellTitle=function(e){return e.getFullYear().toString()},ye.prototype.navigationTitle=function(e){return e?Object(_.firstYearOfDecade)(e).getFullYear().toString():""},ye.prototype.title=function(e){return e?Object(_.firstYearOfDecade)(e).getFullYear()+" - "+Object(_.lastYearOfDecade)(e).getFullYear():""},ye.prototype.rowLength=function(){return 4},ye.prototype.skip=function(e,t){return Object(_.durationInDecades)(t,e)},ye.prototype.total=function(e,t){return Object(_.durationInDecades)(e,t)+1},ye.prototype.value=function(e){return e?e.getFullYear().toString():""},ye.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addDecades)(e,-1*t)}return e},ye.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},Object(i.__decorate)([Object(h.Injectable)()],ye)),pe=[[]],ue=((mo={})[c.Left]=function(e){return Object(_.addDays)(e,-1)},mo[c.Up]=function(e){return Object(_.addWeeks)(e,-1)},mo[c.Right]=function(e){return Object(_.addDays)(e,1)},mo[c.Down]=function(e){return Object(_.addWeeks)(e,1)},mo[c.PrevView]=function(e){return Object(_.addMonths)(e,-1)},mo[c.NextView]=function(e){return Object(_.addMonths)(e,1)},mo[c.FirstInView]=function(e){return Object(_.firstDayOfMonth)(e)},mo[c.LastInView]=function(e){return Object(_.lastDayOfMonth)(e)},mo),he=(ve.prototype.addToDate=function(e,t){return Object(_.addMonths)(e,t)},ve.prototype.datesList=function(t,e){return S(0,e).map(function(e){return Object(_.addMonths)(t,e)})},ve.prototype.data=function(e){var r=this,s=e.cellUID,c=e.focusedDate,d=e.isActiveView,l=e.max,p=e.min,u=e.selectedDates,t=e.selectionRange,h=void 0===t?$:t,t=e.viewDate,e=e.isDateDisabled,b=void 0===e?function(){return!1}:e;if(!t)return pe;var m=Object(_.firstDayOfMonth)(t),g=Object(_.getDate)(m),f=Object(_.lastDayOfMonth)(t),v=Object(_.getDate)(f),n=Object(_.dayOfWeek)(m,this._intlService.firstDay(),-1),i=S(0,7),y=T();return S(0,6).map(function(e){var a=Object(_.addDays)(n,7*e);return i.map(function(e){var t=r.normalize(Object(_.addDays)(a,e),p,l),n=Object(_.getDate)(t),i=n<g||v<n;if(t<p||l<t)return null;var o=r.isEqual(t,h.start),e=r.isEqual(t,h.end),n=!o&&!e&&L(t,h);return{formattedValue:r.value(t),id:""+s+t.getTime(),isFocused:r.isEqual(t,c),isSelected:d&&u.some(function(e){return r.isEqual(t,e)}),isWeekend:r.isWeekend(t),isRangeStart:o,isRangeMid:n,isRangeEnd:e,isRangeSplitStart:n&&r.isEqual(t,m),isRangeSplitEnd:n&&r.isEqual(t,f),isToday:r.isEqual(t,y),title:r.cellTitle(t),value:t,isDisabled:b(t),isOtherMonth:i}})})},ve.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(_.getDate)(e).getTime()===Object(_.getDate)(t).getTime()},ve.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(Object(_.addMonths)(t[t.length-1],1));return n<=e&&e<t},ve.prototype.isInRange=function(e,t,n){e=Object(_.getDate)(e),t=!t||Object(_.getDate)(t)<=e,n=!n||e<=Object(_.getDate)(n);return t&&n},ve.prototype.beginningOfPeriod=function(e){return e&&Object(_.createDate)(e.getFullYear(),e.getMonth(),1)},ve.prototype.lastDayOfPeriod=function(e){return Object(_.lastDayOfMonth)(e)},ve.prototype.isRangeStart=function(e){return!e.getMonth()},ve.prototype.move=function(e,t){t=ue[t];return t?t(e):e},ve.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},ve.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},ve.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},ve.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},ve.prototype.skip=function(e,t){return Object(_.durationInMonths)(t,e)},ve.prototype.total=function(e,t){return Object(_.durationInMonths)(e,t)+1},ve.prototype.value=function(e){return e?e.getDate().toString():""},ve.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addMonths)(e,-1*t)}return e},ve.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},ve.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},ve.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},ve.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],ve)),be=[[]],me=((yn={})[c.Left]=function(e){return Object(_.addMonths)(e,-1)},yn[c.Up]=function(e){return Object(_.addMonths)(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},yn[c.Right]=function(e){return Object(_.addMonths)(e,1)},yn[c.Down]=function(e){return Object(_.addMonths)(e,(e=e.getMonth())<7?5:e<10?7:2)},yn[c.PrevView]=function(e){return Object(_.addYears)(e,-1)},yn[c.NextView]=function(e){return Object(_.addYears)(e,1)},yn[c.FirstInView]=function(e){return Object(_.firstMonthOfYear)(e)},yn[c.LastInView]=function(e){return Object(_.lastMonthOfYear)(e)},yn),ge=(fe.prototype.addToDate=function(e,t){return Object(_.addYears)(e,t)},fe.prototype.datesList=function(t,e){return S(0,e).map(function(e){return Object(_.addYears)(t,e)})},fe.prototype.data=function(e){var a=this,r=e.cellUID,s=e.focusedDate,c=e.isActiveView,d=e.max,l=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?$:t,e=e.viewDate;if(!e)return be;var h=this.abbrMonthNames(),b=Object(_.firstMonthOfYear)(e),m=Object(_.lastMonthOfYear)(e),g=b.getFullYear(),n=S(0,4),f=T();return S(0,3).map(function(e){var o=Object(_.addMonths)(b,4*e);return n.map(function(e){var t=a.normalize(Object(_.addMonths)(o,e),l,d),n=g<t.getFullYear();if(!a.isInRange(t,l,d)||n)return null;var i=a.isEqual(t,u.start),e=a.isEqual(t,u.end),n=!i&&!e&&L(t,u);return{formattedValue:h[t.getMonth()],id:""+r+t.getTime(),isFocused:a.isEqual(t,s),isSelected:c&&p.some(function(e){return a.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&a.isEqual(t,m),isRangeSplitStart:n&&a.isEqual(t,b),isToday:a.isEqual(t,f),title:a.cellTitle(t),value:t}})})},fe.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},fe.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},fe.prototype.isInRange=function(e,t,n){e=Object(_.createDate)(e.getFullYear(),e.getMonth(),1),t=!t||Object(_.createDate)(t.getFullYear(),t.getMonth(),1)<=e,n=!n||e<=Object(_.createDate)(n.getFullYear(),n.getMonth(),1);return t&&n},fe.prototype.beginningOfPeriod=function(e){return e&&Object(_.createDate)(e.getFullYear(),0,1)},fe.prototype.lastDayOfPeriod=function(e){e=Object(_.lastMonthOfYear)(e);return Object(_.lastDayOfMonth)(e)},fe.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},fe.prototype.move=function(e,t){t=me[t];return t?t(e):e},fe.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},fe.prototype.navigationTitle=function(e){return this.title(e)},fe.prototype.title=function(e){return e?e.getFullYear().toString():""},fe.prototype.rowLength=function(){return 4},fe.prototype.skip=function(e,t){return Object(_.durationInYears)(t,e)},fe.prototype.total=function(e,t){return Object(_.durationInYears)(e,t)+1},fe.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},fe.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addYears)(e,-1*t)}return e},fe.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},fe.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],fe));function fe(e){this._intlService=e,this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addMonths)(i,1);return n}}function ve(e){this._intlService=e,this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addDays)(i,1);return n}}function ye(){this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addYears)(i,1);return n}}function _e(){this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addDecades)(i,1);return n}}(_n=U=U||{})[_n.month=0]="month",_n[_n.year=1]="year",_n[_n.decade=2]="decade",_n[_n.century=3]="century";function Oe(e,t){return new Array(e).fill("1").map(t)}function je(e,o,a){var r,s=e.cells,c=e.rows;return function(){return b.isDocumentAvailable?(r||(n=c,i=void 0===s?1:s,e=ze([Le([Me([Ae("1","k-calendar-th")],"k-calendar-tr")].concat(Oe(n,function(){return Me(Oe(i,function(e){return Be('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),t=o,n=a,r=Fe([Fe('\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?ze([Ne([Me([Ae("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,He([e,e])],t,{left:"-10000px",position:"absolute"})),r):null;var e,t,n,i}}function ke(e){return e.querySelector(".k-scrollable")}function Ce(e){return ke(e).classList.add("k-scrollable-horizontal"),e}function Se(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function we(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function Ie(e){return e.querySelector("tbody")}function xe(e){return Math.max(e,0)}var Ee,De,Te=((t={})[U.month]=he,t[U.year]=ge,t[U.decade]=le,t[U.century]=se,t),Pe=(nt.prototype.configure=function(e,t){this.bottom=e,this.top=t},nt.prototype.service=function(e){e=Te[e];return e?this.injector.get(e):null},nt.prototype.moveDown=function(e){this.move(e,-1)},nt.prototype.moveUp=function(e){this.move(e,1)},nt.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},nt.prototype.canMoveDown=function(e){return this.bottom<e},nt.prototype.canMoveUp=function(e){return e<this.top},nt.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},nt.prototype.move=function(e,t){t=this.clamp(void 0!==(t=U[U[e+t]])?t:e);t!==e&&this.viewChanged.emit({view:t})},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[h.Injector])],nt)),Fe=V("div"),Re=V("ul"),Ve=V("li"),Be=V("td"),Ae=V("th"),Me=V("tr"),Le=V("tbody"),Ne=V("thead"),ze=V("table"),He=function(e){return Fe(e,"k-flex k-content k-calendar-content k-scrollable")},Ke=function(){return b.isDocumentAvailable?De=De||Fe([He([Re([Ve("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},Ge=je({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),We=je({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Ue=je({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),$e=(tt.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},tt.prototype.calculateHeights=function(e){var n=this;Object(b.isDocumentAvailable)()&&(this.hostContainer=e,this.batch(Ge(),function(e){var t=Ie(e);n.calendarHeight=Se(e),n.monthViewHeight=Se(t),n.headerHeight=Se(t.children[0]),n.scrollableContentHeight=Se(ke(e))}),this.batch(Ce(Ge()),function(e){var t=Ie(e);n.calendarWidth=we(e),n.monthViewWidth=we(t),n.scrollableContentWidth=we(ke(e))}),this.batch(We(),function(e){n.yearViewHeight=Se(Ie(e)),n.scrollableYearContentHeight=Se(ke(e))}),this.batch(Ce(We()),function(e){n.yearViewWidth=we(Ie(e))}),this.batch(Ue(),function(e){n.decadeViewHeight=Se(Ie(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(Ce(Ue()),function(e){n.decadeViewWidth=we(Ie(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(Ke(),function(e){n.navigationItemHeight=Se(e.querySelector("li"))}))},tt.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},tt.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},tt.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case U.month:return this["month"+n];case U.year:return this["year"+n];case U.decade:return this["decade"+n];case U.century:return this["century"+n];default:return 1}},tt.prototype.batch=function(e,t){if(O(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},Object(i.__decorate)([Object(h.Injectable)()],tt)),Ze=(et.prototype.height=function(e){return this.heights[e]},et.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},et.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},et.prototype.index=function(i){if(!(i<0)){var e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0);return void 0===e?this.total-1:e}},et.prototype.offset=function(e){return this.offsets[e]},et.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},et.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,n.slice(0,e+1).concat(n.slice(e+1).map(function(e){return e+i})))},et),qe=function(e){this.offset=e},Ye=function(e){this.skip=e},Xe=(Je.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 l.ReplaySubject(2),o=this.rowsForHeight(o),t=xe(t-o);return c.next(new qe(this.rowOffset(t))),o&&c.next(new Ye(t)),this.subscription=new l.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return c.next(e)}),c},Je.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},Je.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,o=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?o:e;this.lastScroll!==i&&(o=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(xe(i-this.topOffset)),n=this.rowHeightService.index(xe(i+n-this.bottomOffset)),!o&&n>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new qe(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Ye(this.firstLoaded))),o&&e<=this.firstLoaded&&(o=Math.floor(.3*this.take),this.firstLoaded=xe(e-o),t.next(new qe(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Ye(this.firstLoaded))))},Je.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},Je.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},Je.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},Je),Qe=new h.InjectionToken("dateinputs-scroll-service-factory");function Je(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}function et(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,o=0;o<e;o++)this.offsets.push(i),i+=t,this.heights.push(t)}function tt(){}function nt(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=U.month,this.top=U.century}function it(e){return new Xe(e)}(n=Ee=Ee||{})[n.Backward=0]="Backward",n[n.Forward=1]="Forward";function ot(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function at(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function rt(){return!1}function st(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function ct(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function dt(e){return e?e.virtualization:null}function lt(){return function(e,t){return!O(e.value)&&t?{incompleteDate:!0}:null}}var pt,ut=((On={})[Ee.Forward]=function(t){return function(e){return e+t}},On[Ee.Backward]=function(t){return function(e){return e-t}},On),ht=((to={})[Ee.Forward]=function(t){return function(e){return Math.min(e,t)}},to[Ee.Backward]=function(t){return function(e){return Math.max(e,t)}},to),bt=((ho={})[Ee.Forward]=function(t){return function(e){return e<t}},ho[Ee.Backward]=function(t){return function(e){return t<e}},ho),mt=(Object.defineProperty(Qt.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Qt.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},Qt.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},Qt.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(Object(d.map)(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},Qt.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},Qt.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},Qt.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},Qt.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},Qt.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},Qt.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},Qt.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},Qt.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},Qt.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},Qt.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},Qt.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n,i,o,a=this.rowHeightService.offset(e),r=this.getContainerScrollDirection(a),e=this.scrollRange(a,r),s=e.start,a=e.end;s!==a&&(e=this.scrollStep(s,a),n=ut[r](e),i=ht[r](a),o=bt[r](n(a)),this.zone.runOutsideAngular(function(){t.animationSubscription=Object(l.combineLatest)(Object(l.of)(s),Object(l.interval)(0,l.animationFrameScheduler)).pipe(Object(d.map)(function(e){return e[0]}),Object(d.scan)(n),Object(d.takeWhile)(o),Object(d.map)(i)).subscribe(function(e){return t.scrollTo(e)})}))},Qt.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i=this.containerMaxScroll(),o=t===Ee.Backward?1:-1,t=(t=this.maxScrollDifference,Math.min(Math.abs(e-n),t)),e=Math.min(e,i);return{start:Math.min(Math.max(e+o*t,0),i),end:e}},Qt.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},Qt.prototype.scroll$=function(){return Object(b.isDocumentAvailable)()?Object(l.fromEvent)(this.container.nativeElement,"scroll"):l.EMPTY},Qt.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof Ye?t.pageChange:t.scrollChange).emit(e)})},Qt.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Ze(this.total,e,0)},Qt.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},Qt.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},Qt.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?Ee.Backward:Ee.Forward},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qt.prototype,"direction",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"itemHeight",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"itemWidth",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"topOffset",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"bottomOffset",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"maxScrollDifference",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"scrollOffsetSize",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"scrollDuration",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"skip",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"take",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"total",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qt.prototype,"activeIndexChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qt.prototype,"pageChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qt.prototype,"scrollChange",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-flex"),Object(h.HostBinding)("class.k-content"),Object(h.HostBinding)("class.k-calendar-content"),Object(h.HostBinding)("class.k-scrollable"),Object(i.__metadata)("design:type",Boolean)],Qt.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-scrollable-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Qt.prototype,"horizontalClass",null),Object(i.__decorate)([Object(h.Component)({providers:[{provide:Qe,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(i.__param)(0,Object(h.Inject)(Qe)),Object(i.__metadata)("design:paramtypes",[Object,h.ElementRef,h.Renderer2,h.NgZone])],Qt)),gt=(Object.defineProperty(Xt.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Xt.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))},Xt.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=U[this.activeView],t=E(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)))},Xt.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Xt.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Xt.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Xt.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Xt.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},Xt.prototype.handleDateChange=function(e){var e=ot(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(Object(_.cloneDate)(e)))},Xt.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Xt.prototype.intlChange=function(){this.activeView===U.month&&this.cdr.markForCheck()},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Xt.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Xt.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Xt.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Xt.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Xt.prototype,"templateRef",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Xt.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Xt.prototype,"pageChange",void 0),Object(i.__decorate)([Object(h.ViewChild)(mt,{static:!1}),Object(i.__metadata)("design:type",mt)],Xt.prototype,"virtualization",void 0),Object(i.__decorate)([Object(h.ViewChild)("list",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],Xt.prototype,"list",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-navigation"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Xt.prototype,"getComponentClass",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(i.__metadata)("design:paramtypes",[Pe,$e,r.IntlService,h.ChangeDetectorRef,h.Renderer2])],Xt)),ft=(Object.defineProperty(Yt.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentMonthClass",{get:function(){return this.activeView===U.month},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentYearClass",{get:function(){return this.activeView===U.year},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===U.decade},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===U.century},enumerable:!0,configurable:!0}),Yt.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))},Yt.prototype.ngOnChanges=function(e){var t,n,i,o,a;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=B(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,i=B(e,"activeView"),t=this.focusedDate,a=E(this.service.viewDate(t,this.max,this.minViewsToRender),this.min,this.max),o=this.service.total(this.min,this.max),n=this.total&&this.total!==o||!this.service.isInArray(t,this.dates),this.skip=this.service.skip(a,this.min),this.total=o,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),n&&(this.dates=this.service.datesList(a,this.getTake(this.skip))),o=this.activeDate,a=t,o&&a&&o.getFullYear()===a.getFullYear()&&o.getMonth()===a.getMonth()||(this.activeDate=Object(_.cloneDate)(t)),i=B(e,"focusedDate")||i,(n||i||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(t,this.min)))},Yt.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Yt.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Yt.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},Yt.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Yt.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},Yt.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},Yt.prototype.isMonthView=function(){return this.activeView===U.month},Yt.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},Yt.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},Yt.prototype.getScrollableHeight=function(){return this.activeView===U.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},Yt.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Yt.prototype.getWeekNames=function(){var e=R(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},Yt.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Yt.prototype,"cellTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Yt.prototype,"weekNumberTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Yt.prototype,"headerTitleTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Yt.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Yt.prototype,"cellUID",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Yt.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Yt.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Yt.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Yt.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Array)],Yt.prototype,"selectedDates",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],Yt.prototype,"weekNumber",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"cellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"weekNumberCellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"activeDateChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"todayButtonClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"pageChange",void 0),Object(i.__decorate)([Object(h.ViewChild)(mt,{static:!1}),Object(i.__metadata)("design:type",mt)],Yt.prototype,"virtualization",void 0),Object(i.__decorate)([Object(h.ViewChild)("list",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],Yt.prototype,"list",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-vstack"),Object(h.HostBinding)("class.k-calendar-view"),Object(i.__metadata)("design:type",Boolean)],Yt.prototype,"getComponentClass",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-monthview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentMonthClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-yearview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentYearClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-decadeview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentDecadeClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-centuryview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentCenturyClass",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table 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(i.__metadata)("design:paramtypes",[Pe,h.ChangeDetectorRef,r.IntlService,$e,h.Renderer2])],Yt)),vt={33:c.PrevView,34:c.NextView,35:c.LastInView,36:c.FirstInView,37:c.Left,38:c.Up,39:c.Right,40:c.Down,"meta+38":c.UpperView,"meta+40":c.LowerView},yt=(qt.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return vt[e]},qt.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===c.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===c.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[Pe])],qt)),_t=(Zt.prototype.initialize=function(t){var n,i,e;"function"==typeof t?this.isDateDisabled=function(e){return t(Object(_.getDate)(e))}:(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return"number"==typeof e})?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return e instanceof Date})?(i=new Set(t.map(function(e){return Object(_.getDate)(e).getTime()})),this.isDateDisabled=function(e){return i.has(Object(_.getDate)(e).getTime())}):(this.isDateDisabled=rt,this.notifyInvalidInput(t)))),this.notifyServiceChange()},Zt.prototype.notifyInvalidInput=function(e){if(O(e)&&Object(h.isDevMode)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},Zt.prototype.notifyServiceChange=function(){this.changes.next()},Object(i.__decorate)([Object(h.Injectable)()],Zt)),Ot=($t.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,o=e.activeViewEnum,a=e.rangePivot,e=e.selectedDates.slice();return a="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!Object(_.isEqual)(e,t)}):e.push(t),t):n.shiftKey?(n=(i=[a||t,t].filter(O).sort(function(e,t){return e.getTime()-t.getTime()}))[0],i=i[1],e=this.bus.service(o).dateRange(n,i),t>e[0]?e[0]:M(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:a}},$t.prototype.isDateSelected=function(e,t){return e.some(function(e){return Object(_.isEqual)(e,t)})},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[Pe])],$t)),jt=(Ut.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=e,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=e,function(e){return e*t})},Ut.prototype.sync=function(e,i){var o=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;o.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,o.scrollSiblingOf(e.target))}),o.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,o.scrollSiblingOf(e.target))})}))},Ut.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},Ut.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},Ut.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},Ut.prototype.destroy=function(){this.unsubscribe()},Ut.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[$e,h.NgZone])],Ut)),kt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Wt),Ct=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarMonthCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Gt),St=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarYearCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Kt),wt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarDecadeCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Ht),It=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarCenturyCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],zt),xt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarWeekNumberCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Nt),Et=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarHeaderTitleTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Lt),Dt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarNavigationItemTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Mt),Tt=function(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter},Pt="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Ft={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return Bt})},Rt={multi:!0,provide:o.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return Bt})},Vt={provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return Bt})},Bt=(Object.defineProperty(At.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!Object(_.isEqual)(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||T(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(q)},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Y)},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(O).map(function(e){return Object(_.cloneDate)(e)}):Object(_.cloneDate)(e);var t=[].concat(e).filter(O).map(function(e){return Object(_.cloneDate)(e)});K(t,this.selectedDates)||(e=M(t),this.rangePivot=Object(_.cloneDate)(e),this.focusedDate=Object(_.cloneDate)(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.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(At.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"activeViewEnum",{get:function(){var e=U[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"bottomViewEnum",{get:function(){return U[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"topViewEnum",{get:function(){return U[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(At.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),At.prototype.ngOnInit=function(){var t=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(U[e])}),this.control=this.injector.get(o.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},At.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),A(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=E(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.onValidatorChange())},At.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},At.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(dt(this.navigationView),dt(this.monthView)))},At.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},At.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},At.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},At.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},At.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},At.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(Object(_.cloneDate)(e).setDate(1)):this.focusedDate,this.focusedDate=E(e,this.min,this.max),this.detectChanges())},At.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Object(l.from)(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},At.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},At.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||!K(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(_.cloneDate)(e)}),t.value=t.parseSelectionToValue(o),t.onControlChange(t.parseSelectionToValue(o)),t.valueChange.emit(t.parseSelectionToValue(o)),t.cdr.markForCheck()}):this.emitSameDate())},At.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},At.prototype.registerOnChange=function(e){this.onControlChange=e},At.prototype.registerOnTouched=function(e){this.onControlTouched=e},At.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},At.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},At.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},At.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case U.month:return this.monthCellTemplate||this.cellTemplate;case U.year:return this.yearCellTemplate;case U.decade:return this.decadeCellTemplate;case U.century:return this.centuryCellTemplate;default:return null}},At.prototype.emitNavigate=function(e){var t=U[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},At.prototype.emitEvent=function(e,t){Object(b.hasObservers)(e)&&this.ngZone.run(function(){e.emit(t)})},At.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},At.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},At.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},At.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:M(e)})})},At.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},At.prototype.verifyChanges=function(){if(Object(h.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},At.prototype.verifyValue=function(e){if(Object(h.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Pt+" 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 "+Pt+" for possible resolution.")}},At.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",v),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},At.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},At.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},At.prototype.handleBlur=function(e){var t=this;this.isActive=!1,!this.pickerService&&f(this.control)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges())},At.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},At.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Object(_.cloneDate)(this.focusedDate),this.detectChanges()),this.focus())},At.prototype.handleKeydown=function(e){var t=-1!==[b.Keys.ArrowUp,b.Keys.ArrowRight,b.Keys.ArrowDown,b.Keys.ArrowLeft].indexOf(e.keyCode);O(this.pickerService)&&t&&e.altKey||(t=E(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),Object(_.isEqual)(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===b.Keys.Enter&&this.performSelection(this.focusedDate,e))},At.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},At.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},At.prototype.setAriaActivedescendant=function(){var e;O(this.element)&&(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e))},At.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(_.cloneDate)(M(e)):e.map(function(e){return Object(_.cloneDate)(e)})},At.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],At.prototype,"id",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],At.prototype,"focusedDate",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],At.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],At.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],At.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],At.prototype,"selection",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],At.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],At.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],At.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],At.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],At.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],At.prototype,"navigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],At.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],At.prototype,"bottomView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],At.prototype,"topView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],At.prototype,"type",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],At.prototype,"animateNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(h.HostBinding)("class.k-week-number"),Object(i.__metadata)("design:type",Boolean)],At.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],At.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],At.prototype,"navigate",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],At.prototype,"activeViewDateChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],At.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!0}),Object(i.__metadata)("design:type",kt)],At.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("cellTemplate"),Object(i.__metadata)("design:type",kt),Object(i.__metadata)("design:paramtypes",[kt])],At.prototype,"cellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!0}),Object(i.__metadata)("design:type",Ct)],At.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("monthCellTemplate"),Object(i.__metadata)("design:type",Ct),Object(i.__metadata)("design:paramtypes",[Ct])],At.prototype,"monthCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!0}),Object(i.__metadata)("design:type",St)],At.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("yearCellTemplate"),Object(i.__metadata)("design:type",St),Object(i.__metadata)("design:paramtypes",[St])],At.prototype,"yearCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!0}),Object(i.__metadata)("design:type",wt)],At.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("decadeCellTemplate"),Object(i.__metadata)("design:type",wt),Object(i.__metadata)("design:paramtypes",[wt])],At.prototype,"decadeCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(It,{static:!0}),Object(i.__metadata)("design:type",It)],At.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("centuryCellTemplate"),Object(i.__metadata)("design:type",It),Object(i.__metadata)("design:paramtypes",[It])],At.prototype,"centuryCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(xt,{static:!0}),Object(i.__metadata)("design:type",xt)],At.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.Input)("weekNumberTemplate"),Object(i.__metadata)("design:type",xt),Object(i.__metadata)("design:paramtypes",[xt])],At.prototype,"weekNumberTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!0}),Object(i.__metadata)("design:type",Et)],At.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.Input)("headerTitleTemplate"),Object(i.__metadata)("design:type",Et),Object(i.__metadata)("design:paramtypes",[Et])],At.prototype,"headerTitleTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Dt,{static:!0}),Object(i.__metadata)("design:type",Dt)],At.prototype,"navigationItemTemplate",void 0),Object(i.__decorate)([Object(h.Input)("navigationItemTemplate"),Object(i.__metadata)("design:type",Dt),Object(i.__metadata)("design:paramtypes",[Dt])],At.prototype,"navigationItemTemplateRef",null),Object(i.__decorate)([Object(h.ViewChild)(gt,{static:!1}),Object(i.__metadata)("design:type",gt)],At.prototype,"navigationView",void 0),Object(i.__decorate)([Object(h.ViewChild)(ft,{static:!1}),Object(i.__metadata)("design:type",ft)],At.prototype,"monthView",void 0),Object(i.__decorate)([Object(h.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],At.prototype,"widgetId",null),Object(i.__decorate)([Object(h.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],At.prototype,"widgetRole",null),Object(i.__decorate)([Object(h.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],At.prototype,"calendarTabIndex",null),Object(i.__decorate)([Object(h.HostBinding)("attr.aria-disabled"),Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],At.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[Pe,Ft,Rt,Vt,a.LocalizationService,_t,{provide:a.L10N_PREFIX,useValue:"kendo.calendar"},yt,jt,Ot],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(i.__param)(12,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[Pe,$e,h.ElementRef,yt,h.Renderer2,h.ChangeDetectorRef,h.NgZone,h.Injector,jt,_t,a.LocalizationService,Ot,Tt])],At));function At(e,t,n,i,o,a,r,s,c,d,l,p,u){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=o,this.cdr=a,this.ngZone=r,this.injector=s,this.scrollSyncService=c,this.disabledDatesService=d,this.localization=l,this.selectionService=p,this.pickerService=u,this.id=Object(b.guid)(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=U[U.month],this.bottomView=U[U.month],this.topView=U[U.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=Object(b.guid)(),this.selectedDates=[],this._min=new Date(q),this._max=new Date(Y),this._focusedDate=T(),this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,Object(m.validatePackage)(g),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}function Mt(e){this.templateRef=e}function Lt(e){this.templateRef=e}function Nt(e){this.templateRef=e}function zt(e){this.templateRef=e}function Ht(e){this.templateRef=e}function Kt(e){this.templateRef=e}function Gt(e){this.templateRef=e}function Wt(e){this.templateRef=e}function Ut(e,t){this.dom=e,this.zone=t}function $t(e){this.bus=e}function Zt(){this.changes=new l.Subject,this.isDateDisabled=rt}function qt(e){this.bus=e}function Yt(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(q),this.max=new Date(Y),this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.todayButtonClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}function Xt(e,t,n,i,o){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=o,this.min=new Date(q),this.max=new Date(Y),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}function Qt(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.scrollChange=new h.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new l.Subject,this.scroller=e(this.dispatcher)}(mo=pt=pt||{})[mo.Up=0]="Up",mo[mo.Down=1]="Down",mo[mo.None=2]="None";function Jt(e){return e.replace(/^0*/,"")}function en(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}function tn(){return null}function nn(e){return e&&e.isActive||!1}var on,an,rn,sn,cn,dn,ln=/year|month|<day>/,pn=/hour|minute|second|millisecond/,un=/d|M|H|h|m|s/,hn=function(){this.symbols=""},bn=(ri.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},ri.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},ri.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return Object(_.cloneDate)(this.value)},ri.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},ri.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}},ri.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},ri.prototype.modifyPart=function(e,t){var n=Object(_.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(_.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},ri.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="",c="",d="",l=0;l<i.length;l++)a[l]===e?(c+=this.getExisting(e)?i[l]:"0",r=!0):r?d+=i[l]:s+=i[l];var p=c.length-3,u=null,h=this.matchMonth(t),b=this.matchDayPeriod(t,e),m="0"===t,g=(this.leadingZero||{})[e]||0;for(m?0!==parseInt(n?t:c+t,10)||this.isAbbrMonth(o.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero(),l=Math.max(0,p);l<=c.length;l++){var f=n?t:c.substring(l)+t;"S"===e&&n&&(f=Array(a.match(/S+(\1)/)[0].length).join("0")+f);var v=parseInt(f,10);if((u=this.intl.parseDate(s+f+d,this.format))||isNaN(v)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(y=v-1)&&y<12&&((u=Object(_.cloneDate)(this.value)).setMonth(y),u.getMonth()!==y&&(u=Object(_.lastDayOfMonth)(Object(_.addMonths)(u,-1)))),"y"===e&&(u=Object(_.createDate)(parseInt(f,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&&u.getDate()!==this.value.getDate()&&(u=Object(_.lastDayOfMonth)(Object(_.addMonths)(u,-1))))),u){var v=this.partPattern(o.partMap,e).pattern,y=this.intl.parseDate(""+s+this.peek(f,v)+d,this.format),v=this.patternLength(v)||v.length,v=g+(Jt(f)||t).length>=v,v=null===y||v;return this.shouldNormalizeCentury()&&(u=this.normalizeCentury(u)),this.value=u,this.setExisting(e,!0),{value:this.value,switchToNext:v}}}return h&&(u=this.intl.parseDate(s+h+d,this.format))?(this.value=u,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):b&&(u=this.intl.parseDate(s+b+d,this.format))?(this.value=u,{value:this.value,switchToNext:!0}):(m&&this.setExisting(e,!1),{value:null,switchToNext:!1})},ri.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},ri.prototype.setLeadingZero=function(e){this.leadingZero=e},ri.prototype.normalizeCentury=function(e){if(!O(e))return e;var t=!O(n=e)||isNaN(n.getTime())?0:Number(n.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t);return ee(e,n+t)},ri.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},ri.prototype.isAbbrMonth=function(e,t){t=this.partPattern(e,t);return"month"===t.type&&t.names},ri.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},ri.prototype.peek=function(e,t){e=Jt(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},ri.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},ri.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},ri.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},ri.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},ri.prototype.patternLength=function(e){return"y"===e[0]?4:un.test(e)?2:0},ri.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;0<r;)i.push(this.symbols[n[a].pattern[0]]||"_"),o.push(n[a]),r--;t=new hn;return t.symbols=i.join(""),t.partMap=o,t},ri.prototype.merge=function(e,t){for(var n="",i="",o=t.symbols,a=o.length-1;0<=a;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];0<=a&&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]},ri.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},ri.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},ri),mn=(dn=ai,Object.defineProperty(ai.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!w(e,this.min,this.max)||(this._value=Object(_.cloneDate)(e),this.valueUpdate.emit(Object(_.cloneDate)(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrap&&!O(this.pickerService)&&(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(ai.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(ai.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),ai.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},ai.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},ai.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?st(this.min):P,this.maxValidator=this.rangeValidation?ct(this.max):P,this.incompleteValidator=this.incompleteDateValidation?lt():P,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&Object(_.isEqual)(this.value,this.kendoDate.getDateObject());!e.format&&t&&!e.placeholder||(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},ai.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},ai.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},ai.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ai.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(o.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},ai.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ai.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Object(_.cloneDate)(e),this.updateElementValue(this.isActive)},ai.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Object(_.cloneDate)(e),this.notify())},ai.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(Object(_.cloneDate)(e.value)),e.valueChange.emit(Object(_.cloneDate)(e.value))})},ai.prototype.registerOnChange=function(e){this.onControlChange=e},ai.prototype.registerOnTouched=function(e){this.onControlTouched=e},ai.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},ai.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},ai.prototype.handleButtonClick=function(e){this.arrowDirection=pt.None,this.modifyDateSegmentValue(e)},ai.prototype.modifyDateSegmentValue=function(e){var t=this.caret(),n=this.currentFormat[t[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;"S"!==n||this.steps.millisecond||(t=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0}(this.inputFormat),i=Math.pow(10,3-t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},ai.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var o=i;0<=o&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[i];)o+=e;return o<i&&(o+1!==t[0]||i+1!==t[1])?(this.caret(o+1,i+1),this.resetSegmentValue=!0):i<o&&(i!==t[0]||o!==t[1])&&(this.caret(i,o),this.resetSegmentValue=!0)},ai.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)},ai.prototype.handleClick=function(){var e,t;this.hasMousedown=!1,this.isActive&&(e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=O(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!e&&t?0:this.caret()[0],this.selectNearestSegment(t))},ai.prototype.handleDragAndDrop=function(e){e.preventDefault()},ai.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},ai.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,Object(b.hasObservers)(this.onFocus)?this.ngZone.run(function(){t.emitFocus(e)}):this.emitFocus(e)},ai.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Object(b.hasObservers)(this.onBlur)||f(this.ngControl)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):this.emitBlur(e)},ai.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,e=new bn(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},ai.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){return e[t.pattern[0]]=t.type,e},{})},ai.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),o=!this.isActive&&O(this.placeholder)&&!this.kendoDate.hasValue(),n=this.inputElement;this.currentFormat=i[1],this.currentValue=o?"":i[0],this.renderer.setProperty(n,"value",this.currentValue),n.placeholder!==this.placeholder&&this.renderer.setProperty(n,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},ai.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(b.isDocumentAvailable)()&&document.activeElement!==o&&o.focus(),o.setSelectionRange(e,t)),i=[o.selectionStart,o.selectionEnd])}catch(e){i=[]}return i}},ai.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},ai.prototype.verifyRange=function(){if(Object(h.isDevMode)()&&!x(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")},ai.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},ai.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=E(e,this.min,this.max);this.autoCorrect&&!Object(_.isEqual)(e,t)&&(this.kendoDate=this.getKendoDate(t))},ai.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){var n=e.date,e=e.time;return{date:n||ln.test(t.type),time:e||pn.test(t.type)}},{date:!1,time:!1})},ai.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},ai.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value,t=+(e=O(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},ai.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)))},ai.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},ai.prototype.handlePaste=function(){this.paste=!0},ai.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==b.Keys.Tab)if(e.keyCode!==b.Keys.Backspace){switch(e.keyCode){case b.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case b.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case b.Keys.ArrowRight:this.switchDateSegment(1);break;case b.Keys.ArrowLeft:this.switchDateSegment(-1);break;case b.Keys.Home:this.selectNearestSegment(0);break;case b.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()},ai.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),n=n.substring(0,i),s=[];if(r===n&&0<i)return s.push([t[i-1],n[i-1]]),s;if(0===r.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){var c="";1===n.length&&s.push([t[0],n[0]]);for(var d=n.length;d<r.length;d++)t[d]!==c&&"_"!==t[d]&&(c=t[d],s.push([c,""]));return s}if(0!==n.indexOf(r)&&"_"!==t[i-1])return" "===n[n.length-1]||n[n.length-1]===a&&"_"===t[o]?[[t[i-1],"_"]]:[[t[i-1],n[i-1]]];for(var l=t[0],d=Math.max(0,r.length-1);d<t.length;d++)if("_"!==t[d]){l=t[d];break}return[[l,n[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(J(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}},ai.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},ai.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},ai.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(O(this.ngControl)&&!O(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):O(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ai.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ai.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ai.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ai.prototype,"role",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"ariaReadOnly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ai.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ai.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ai.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ai.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ai.prototype,"steps",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ai.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ai.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ai.prototype,"twoDigitYearMax",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ai.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"spinners",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"isPopupOpen",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ai.prototype,"hasPopup",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ai.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ai.prototype,"valueUpdate",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ai.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ai.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.ViewChild)("dateInput",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],ai.prototype,"dateInput",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrap",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],ai.prototype,"wrap",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-dateinput"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],ai.prototype,"wrapperClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],ai.prototype,"disabledClass",null),dn=Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return dn}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return dn}),multi:!0},{provide:a.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return dn})},a.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(i.__param)(7,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[h.ChangeDetectorRef,r.IntlService,h.Renderer2,h.ElementRef,h.NgZone,h.Injector,a.LocalizationService,Tt])],ai)),gn=(oi.prototype.preventDefault=function(){this.prevented=!0},oi.prototype.isDefaultPrevented=function(){return this.prevented},oi),fn=new h.InjectionToken("dateinputs-touch-enabled"),vn=(cn=ii,Object.defineProperty(ii.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(_.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&Object(b.hasObservers)(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),ii.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},ii.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(o.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},ii.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.disabledDatesValidateFn=this.disabledDatesValidation?en(this.disabledDatesService.isDateDisabled):P,this.incompleteValidator=this.incompleteDateValidation?lt():P,this.onValidatorChange())},ii.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(ii.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),ii.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(_.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},ii.prototype.registerOnChange=function(e){this.onControlChange=e},ii.prototype.registerOnTouched=function(e){this.onControlTouched=e},ii.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ii.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},ii.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ii.prototype.focus=function(){this.input.focus()},ii.prototype.blur=function(){(this.calendar||this.input).blur()},ii.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},ii.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},ii.prototype.handleMousedown=function(e){e.preventDefault()},ii.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(Object(_.cloneDate)(e)),this.valueChange.emit(Object(_.cloneDate)(e))},ii.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(ii.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(ii.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(ii.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),ii.prototype.mergeTime=function(e){return this.value&&e?J(e,this.value):e},ii.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e===b.Keys.Escape&&(this.show=!1),t&&(e!==b.Keys.ArrowDown||this.show||(this.show=!0),e===b.Keys.ArrowUp&&(this.show=!1)),e===b.Keys.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)},ii.prototype.togglePopup=function(e){var t=new gn;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},ii.prototype._toggle=function(e){var t=this;e!==this._show&&((this._show=e)?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},ii.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},ii.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())},ii.prototype.verifySettings=function(){if(Object(h.isDevMode)()&&!x(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")},ii.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},ii.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),F()&&(this.windowBlurSubscription=Object(l.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},ii.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(b.hasObservers)(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},ii.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},ii.prototype.handleBlur=function(e){var t=this,e=e&&y(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(Object(b.hasObservers)(this.onBlur)||this.show&&Object(b.hasObservers)(this.close)||f(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},ii.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},ii.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},ii.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",h.ViewContainerRef)],ii.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",h.TemplateRef)],ii.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrapper",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],ii.prototype,"wrapper",void 0),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!1}),Object(i.__metadata)("design:type",kt)],ii.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("cellTemplate"),Object(i.__metadata)("design:type",kt),Object(i.__metadata)("design:paramtypes",[kt])],ii.prototype,"cellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!1}),Object(i.__metadata)("design:type",Ct)],ii.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("monthCellTemplate"),Object(i.__metadata)("design:type",Ct),Object(i.__metadata)("design:paramtypes",[Ct])],ii.prototype,"monthCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!1}),Object(i.__metadata)("design:type",St)],ii.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("yearCellTemplate"),Object(i.__metadata)("design:type",St),Object(i.__metadata)("design:paramtypes",[St])],ii.prototype,"yearCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!1}),Object(i.__metadata)("design:type",wt)],ii.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("decadeCellTemplate"),Object(i.__metadata)("design:type",wt),Object(i.__metadata)("design:paramtypes",[wt])],ii.prototype,"decadeCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(It,{static:!1}),Object(i.__metadata)("design:type",It)],ii.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("centuryCellTemplate"),Object(i.__metadata)("design:type",It),Object(i.__metadata)("design:paramtypes",[It])],ii.prototype,"centuryCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(xt,{static:!1}),Object(i.__metadata)("design:type",xt)],ii.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.Input)("weekNumberTemplate"),Object(i.__metadata)("design:type",xt),Object(i.__metadata)("design:paramtypes",[xt])],ii.prototype,"weekNumberTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!1}),Object(i.__metadata)("design:type",Et)],ii.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.Input)("headerTitleTemplate"),Object(i.__metadata)("design:type",Et),Object(i.__metadata)("design:paramtypes",[Et])],ii.prototype,"headerTitleTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Dt,{static:!1}),Object(i.__metadata)("design:type",Dt)],ii.prototype,"navigationItemTemplate",void 0),Object(i.__decorate)([Object(h.Input)("navigationItemTemplate"),Object(i.__metadata)("design:type",Dt),Object(i.__metadata)("design:paramtypes",[Dt])],ii.prototype,"navigationItemTemplateRef",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"bottomView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"topView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"calendarType",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"animateCalendarNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"readOnlyInput",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ii.prototype,"popupSettings",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"navigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ii.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ii.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ii.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ii.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ii.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ii.prototype,"twoDigitYearMax",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ii.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ii.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ii.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ii.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"disabledDatesValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"close",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-datepicker"),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],ii.prototype,"disabledClass",null),cn=Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return cn}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return cn}),multi:!0},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return cn})},a.LocalizationService,Tt,_t,{provide:a.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(i.__param)(9,Object(h.Optional)()),Object(i.__param)(9,Object(h.Inject)(fn)),Object(i.__metadata)("design:paramtypes",[h.NgZone,a.LocalizationService,h.ChangeDetectorRef,s.PopupService,h.ElementRef,h.Renderer2,h.Injector,Tt,_t,Boolean])],ii)),yn="dayperiod",_n="hour",t="millisecond",n="minute",On="second",jn=new RegExp("hour|minute|second|"+t+"|"+yn+"|literal"),kn=(sn=ni,Object.defineProperty(ni.prototype,"min",{get:function(){return this._min},set:function(e){this._min=Object(_.cloneDate)(e||X)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"max",{get:function(){return this._max},set:function(e){this._max=Object(_.cloneDate)(e||Q)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(_.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&Object(b.hasObservers)(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),ni.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},ni.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(o.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},ni.prototype.ngOnChanges=function(e){var n,i;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(n=this.min,i=this.max,function(e){if(!n||!i||!e.value)return null;var t={timeRangeError:{maxValue:i,minValue:n,value:e.value}};return I(e.value,n,i)?null:t}):P,this.incompleteValidator=this.incompleteDateValidation?lt():P,this.onValidatorChange()),e.format&&this.verifyFormat()},ni.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()},ni.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e!==b.Keys.Escape?t&&(e===b.Keys.ArrowUp&&(this.show=!1),e!==b.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},ni.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(_.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},ni.prototype.registerOnChange=function(e){this.onControlChange=e},ni.prototype.registerOnTouched=function(e){this.onControlTouched=e},ni.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ni.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},ni.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ni.prototype.focus=function(){this.input.focus()},ni.prototype.blur=function(){(this.timeSelector||this.input).blur()},ni.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(ni.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),ni.prototype.handleChange=function(e){var t=this;if(Object(_.isEqual)(this.value,e))return this.focusInput(),void(this.show=!1);this.value=Object(_.cloneDate)(e),this.zone.run(function(){t.focusInput(),t.show=!1,t.onControlChange(Object(_.cloneDate)(e)),t.valueChange.emit(Object(_.cloneDate)(e))})},ni.prototype.handleReject=function(){this.show=!1},ni.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},ni.prototype.handleMousedown=function(e){e.preventDefault()},ni.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(ni.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),ni.prototype.normalizeTime=function(e){return J(Z,e)},ni.prototype.mergeTime=function(e){return this.value&&e?J(this.value,e):e},ni.prototype.togglePopup=function(e){var t=new gn;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},ni.prototype._toggle=function(e){var t=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},ni.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},ni.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())},ni.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},ni.prototype.verifyFormat=function(){if(Object(h.isDevMode)()&&this.intl.splitDateFormat(this.format).some(function(e){return!jn.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")},ni.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),F()&&(this.windowBlurSubscription=Object(l.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},ni.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},ni.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(b.hasObservers)(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},ni.prototype.handleBlur=function(e){var t=this,e=e&&y(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(Object(b.hasObservers)(this.onBlur)||this.show&&Object(b.hasObservers)(this.close)||f(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},ni.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},ni.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!1}),Object(i.__metadata)("design:type",h.ViewContainerRef)],ni.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!1}),Object(i.__metadata)("design:type",h.TemplateRef)],ni.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrapper",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],ni.prototype,"wrapper",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"readOnlyInput",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ni.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ni.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ni.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"cancelButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"nowButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ni.prototype,"steps",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ni.prototype,"popupSettings",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ni.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ni.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ni.prototype,"value",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"close",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-timepicker"),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],ni.prototype,"disabledClass",null),sn=Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return sn}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return sn}),multi:!0},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return sn})},a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.timepicker"},Tt],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-clock"></span>\n </span>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n </span>\n <ng-container #container></ng-container>\n '}),Object(i.__param)(9,Object(h.Optional)()),Object(i.__param)(9,Object(h.Inject)(fn)),Object(i.__metadata)("design:paramtypes",[h.NgZone,a.LocalizationService,h.ChangeDetectorRef,s.PopupService,h.ElementRef,h.Renderer2,h.Injector,Tt,r.IntlService,Boolean])],ni)),Cn=new RegExp("hour|minute|second|"+yn+"|literal"),Sn=(rn=ti,Object.defineProperty(ti.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(_.cloneDate)(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"min",{get:function(){return this._min},set:function(e){O(e)&&(this._min=Object(_.cloneDate)(e),this.calendarMin=Object(_.getDate)(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"max",{get:function(){return this._max},set:function(e){O(e)&&(this._max=Object(_.cloneDate)(e),this.calendarMax=W(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"isOpen",{get:function(){return O(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.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(ti.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return O(this.calendar)||O(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(O(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),ti.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(Object(d.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))),F()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return Object(l.fromEvent)(window,"blur").subscribe(e.handleCancel.bind(e))}))},ti.prototype.ngOnChanges=function(e){(O(e.min)||O(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.disabledDatesValidateFn=this.disabledDatesValidation?en(this.disabledDatesService.isDateDisabled):P,this.incompleteValidator=this.incompleteDateValidation?lt():P,this.onValidatorChange())},ti.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},ti.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},ti.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},ti.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((O(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},ti.prototype.writeValue=function(e){this.value=e},ti.prototype.registerOnChange=function(e){this.onControlChange=e},ti.prototype.registerOnTouched=function(e){this.onControlTouched=e},ti.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ti.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},ti.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ti.prototype.isEmpty=function(){return!O(this.value)&&this.input.isEmpty()},ti.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||Object(b.hasObservers)(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},ti.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(b.hasObservers)(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},ti.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.host.nativeElement.classList.contains("ng-untouched")||Object(b.hasObservers)(this.onBlur)||this.isOpen&&Object(b.hasObservers)(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},ti.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(Object(_.isEqual)(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},ti.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},ti.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=G(this.calendar.value,this.timeSelector.current),t=!Object(_.isEqual)(this.value,e)||Object(b.hasObservers)(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},ti.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=Object(b.hasObservers)(this.close),this.run(e,function(){return t.togglePopup(!1)}))},ti.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},ti.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},ti.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&b.Keys.ArrowUp:case b.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&b.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&b.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&b.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&O(this.calendarValue)&&b.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},ti.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=O(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==b.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},ti.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===b.Keys.Tab&&e&&this.input.focus()},ti.prototype.preventMouseDown=function(e){e.preventDefault()},ti.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&O(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},ti.prototype.verifyMinMaxRange=function(){if(Object(h.isDevMode)()&&!x(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")},ti.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},ti.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},ti.prototype.timeFormatPartFilter=function(e,t,n){t=1<=t&&n[t-1];return t&&"literal"===e.type?Cn.test(t.type):Cn.test(e.type)},ti.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new gn,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus()))},ti.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},ti.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()})},ti.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},ti.prototype.handleValueChange=function(e){Object(_.isEqual)(this.value,e)||(this.value=Object(_.cloneDate)(e),this.onControlChange(Object(_.cloneDate)(e)),this.valueChange.emit(Object(_.cloneDate)(e)))},ti.prototype.focusTargetInComponent=function(e){if(!O(e))return!1;var t=e.relatedTarget||document.activeElement,e=O(this.popupRef)&&this.popupRef.popupElement.contains(t),t=this.wrapper.nativeElement.contains(t);return e||t},ti.prototype.setTimeSelectorMinMax=function(e){var t=O(e)&&Object(_.isEqual)(Object(_.getDate)(e),Object(_.getDate)(this.min));this.timeSelectorMin=Object(_.cloneDate)(t?this.min:X);e=O(e)&&Object(_.isEqual)(Object(_.getDate)(e),Object(_.getDate)(this.max));this.timeSelectorMax=Object(_.cloneDate)(e?this.max:Q)},ti.prototype.setCalendarValue=function(e){var t=O(e)&&w(e,this.calendarMin,this.calendarMax);this.calendarValue=t?Object(_.getDate)(e):null},ti.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},ti.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},ti.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-datetimepicker"),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],ti.prototype,"wrapper",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ti.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ti.prototype,"format",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ti.prototype,"twoDigitYearMax",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ti.prototype,"tabindex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ti.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ti.prototype,"popupSettings",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"readOnlyInput",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"cancelButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ti.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ti.prototype,"steps",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ti.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"calendarType",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"animateCalendarNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ti.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ti.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"disabledDatesValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"close",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],ti.prototype,"defaultTab",null),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!1}),Object(i.__metadata)("design:type",kt)],ti.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!1}),Object(i.__metadata)("design:type",Ct)],ti.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!1}),Object(i.__metadata)("design:type",St)],ti.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!1}),Object(i.__metadata)("design:type",wt)],ti.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(It,{static:!1}),Object(i.__metadata)("design:type",It)],ti.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(xt,{static:!1}),Object(i.__metadata)("design:type",xt)],ti.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!1}),Object(i.__metadata)("design:type",Et)],ti.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",h.ViewContainerRef)],ti.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("popupTemplate",{read:h.TemplateRef,static:!0}),Object(i.__metadata)("design:type",h.TemplateRef)],ti.prototype,"popupTemplate",void 0),rn=Object(i.__decorate)([Object(h.Component)({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[Tt,a.LocalizationService,_t,{provide:a.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return rn}),multi:!0},{provide:o.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return rn}),multi:!0},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return rn})}],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(i.__param)(6,Object(h.Inject)(fn)),Object(i.__metadata)("design:paramtypes",[s.PopupService,r.IntlService,h.ChangeDetectorRef,Tt,h.NgZone,h.ElementRef,Boolean,a.LocalizationService,_t,h.Renderer2])],ti)),wn=(ei.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=R(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],ei)),In=(Object.defineProperty(Jn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===U.month},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentYearClass",{get:function(){return this.activeView===U.year},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===U.decade},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===U.century},enumerable:!0,configurable:!0}),Jn.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=B(e,"activeView"),e=0<this.views&&B(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=Object(_.cloneDate)(this.dates[0]),this.activeDateChange.emit(this.activeDate)))},Jn.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},Jn.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},Jn.prototype.initService=function(){this.service=this.bus.service(this.activeView)},Jn.prototype.isMonthView=function(){return this.activeView===U.month},Jn.prototype.getCaptionTitle=function(e){return this.service.title(e)},Jn.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},Jn.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),o=parseFloat(getComputedStyle(n).width),a=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",o+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.NextView?this.nextAnimationDate=Object(_.cloneDate)(this.dates[0]):this.prevAnimationDate=Object(_.cloneDate)(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",a+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",o+"px")});var r=i.getBoundingClientRect(),s=parseFloat(getComputedStyle(n).columnGap),i=e===c.NextView?"translateX(0)":"translateX(-"+(r.width+s)+"px)",s=e===c.NextView?"translateX(-"+(r.width+s)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:i},{transform:s}],{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()})},Jn.prototype.navigate=function(e){this.animateNavigation&&Object(b.isDocumentAvailable)()&&O(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),e=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(e)&&(this.dates=e),this.activeDate=Object(_.cloneDate)(this.dates[0]),this.focusedDate=Object(_.cloneDate)(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Object(_.cloneDate)(t)},Jn.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},Jn.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},Jn.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},Jn.prototype.clampDate=function(e){return E(e,this.min,this.max)},Jn.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},Jn.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},Jn.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},Jn.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Jn.prototype,"cellTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Jn.prototype,"weekNumberTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jn.prototype,"activeRangeEnd",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Jn.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jn.prototype,"cellUID",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Jn.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Jn.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Jn.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],Jn.prototype,"selectionRange",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Array)],Jn.prototype,"selectedDates",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Jn.prototype,"views",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"showViewHeader",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"animateNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],Jn.prototype,"weekNumber",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"cellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"weekNumberCellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"cellEnter",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"cellLeave",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"activeDateChange",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-view"),Object(h.HostBinding)("class.k-hstack"),Object(h.HostBinding)("class.k-align-items-start"),Object(h.HostBinding)("class.k-justify-content-center"),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"getComponentClass",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-monthview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentMonthClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-yearview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentYearClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-decadeview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentDecadeClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-centuryview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentCenturyClass",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.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(i.__metadata)("design:paramtypes",[Pe,r.IntlService,wn,h.ChangeDetectorRef,h.ElementRef,h.Renderer2])],Jn)),xn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",En={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return Tn})},Dn={multi:!0,provide:o.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return Tn})},Tn=(Object.defineProperty(Qn.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||T()},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(q)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Y)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(O).map(function(e){return Object(_.cloneDate)(e)}):Object(_.cloneDate)(e);var t=[].concat(e).filter(O).map(function(e){return Object(_.cloneDate)(e)});K(t,this.selectedDates)||(e=M(t),this.rangePivot=Object(_.cloneDate)(e),this.focusedDate=Object(_.cloneDate)(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"activeViewEnum",{get:function(){var e=U[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"bottomViewEnum",{get:function(){return U[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"topViewEnum",{get:function(){return U[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),Qn.prototype.handleBlur=function(){this.onControlTouched(),this.isActive=!1,this.isHovered=!1},Qn.prototype.handleFocus=function(){this.isActive=!0},Qn.prototype.handleMouseEnter=function(){this.isHovered=!0},Qn.prototype.handleMouseLeave=function(){this.isHovered=!1},Qn.prototype.handleMousedown=function(e){e.preventDefault()},Qn.prototype.handleClick=function(){this.isActive||this.focus()},Qn.prototype.keydown=function(e){e.keyCode===b.Keys.Enter&&this.performSelection(this.focusedDate,e);var t=E(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(_.isEqual)(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate))},Qn.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=U[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},Qn.prototype.ngOnChanges=function(e){var t,n;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),A(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=E(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(n=this.disabledDatesService.isDateDisabled,O(n)?function(e){if(!(O(e)&&O(e.start)&&O(e.end))||e.start>e.end)return null;e=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],o=e;o<=t;)n(o)&&i.push(o),o=Object(_.addDays)(o,1);return i}(e.start,e.end,n);return e.length?{disabledDatesInRange:e}:null}:tn):P,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},Qn.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Qn.prototype.ngAfterViewInit=function(){this.updateButtonState()},Qn.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Qn.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Qn.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;e=!n&&K(i,this.selectedDates);this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return Object(_.cloneDate)(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},Qn.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)},Qn.prototype.setActiveDate=function(e){this.activeDate=Object(_.cloneDate)(e),this.cdr.detectChanges()},Qn.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},Qn.prototype.registerOnChange=function(e){this.onControlChange=e},Qn.prototype.registerOnTouched=function(e){this.onControlTouched=e},Qn.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},Qn.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},Qn.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},Qn.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case U.month:return this.monthCellTemplate||this.cellTemplate;case U.year:return this.yearCellTemplate;case U.decade:return this.decadeCellTemplate;case U.century:return this.centuryCellTemplate;default:return null}},Qn.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},Qn.prototype.emitNavigate=function(e){var t=U[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},Qn.prototype.emitCellEvent=function(e,t){Object(b.hasObservers)(e)&&this.zone.run(function(){e.emit(t)})},Qn.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},Qn.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:M(e)})})},Qn.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},Qn.prototype.verifyChanges=function(){if(Object(h.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},Qn.prototype.verifyValue=function(e){if(Object(h.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+xn+" 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 "+xn+" for possible resolution.")}},Qn.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()})},Qn.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(_.cloneDate)(M(e)):e.map(function(e){return Object(_.cloneDate)(e)})},Qn.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"id",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Qn.prototype,"focusedDate",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Qn.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Qn.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"disabledDatesRangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"selection",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Qn.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qn.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],Qn.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Qn.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"bottomView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"topView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"showViewHeader",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"animateNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"activeRangeEnd",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Qn.prototype,"selectionRange",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qn.prototype,"views",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"navigate",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"cellEnter",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"cellLeave",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!0}),Object(i.__metadata)("design:type",kt)],Qn.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("cellTemplate"),Object(i.__metadata)("design:type",kt),Object(i.__metadata)("design:paramtypes",[kt])],Qn.prototype,"cellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!0}),Object(i.__metadata)("design:type",Ct)],Qn.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("monthCellTemplate"),Object(i.__metadata)("design:type",Ct),Object(i.__metadata)("design:paramtypes",[Ct])],Qn.prototype,"monthCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!0}),Object(i.__metadata)("design:type",St)],Qn.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("yearCellTemplate"),Object(i.__metadata)("design:type",St),Object(i.__metadata)("design:paramtypes",[St])],Qn.prototype,"yearCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!0}),Object(i.__metadata)("design:type",wt)],Qn.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("decadeCellTemplate"),Object(i.__metadata)("design:type",wt),Object(i.__metadata)("design:paramtypes",[wt])],Qn.prototype,"decadeCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(It,{static:!0}),Object(i.__metadata)("design:type",It)],Qn.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("centuryCellTemplate"),Object(i.__metadata)("design:type",It),Object(i.__metadata)("design:paramtypes",[It])],Qn.prototype,"centuryCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(xt,{static:!0}),Object(i.__metadata)("design:type",xt)],Qn.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.Input)("weekNumberTemplate"),Object(i.__metadata)("design:type",xt),Object(i.__metadata)("design:paramtypes",[xt])],Qn.prototype,"weekNumberTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!0}),Object(i.__metadata)("design:type",Et)],Qn.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.Input)("headerTitleTemplate"),Object(i.__metadata)("design:type",Et),Object(i.__metadata)("design:paramtypes",[Et])],Qn.prototype,"headerTitleTemplateRef",null),Object(i.__decorate)([Object(h.ViewChild)(In,{static:!1}),Object(i.__metadata)("design:type",In)],Qn.prototype,"viewList",void 0),Object(i.__decorate)([Object(h.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"widgetId",null),Object(i.__decorate)([Object(h.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"widgetRole",null),Object(i.__decorate)([Object(h.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"calendarTabIndex",null),Object(i.__decorate)([Object(h.HostBinding)("attr.aria-disabled"),Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(h.HostBinding)("attr.aria-activedescendant"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"ariaActivedescendant",null),Object(i.__decorate)([Object(h.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleBlur",null),Object(i.__decorate)([Object(h.HostListener)("focus"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleFocus",null),Object(i.__decorate)([Object(h.HostListener)("mouseenter"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleMouseEnter",null),Object(i.__decorate)([Object(h.HostListener)("mouseleave"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleMouseLeave",null),Object(i.__decorate)([Object(h.HostListener)("mousedown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleMousedown",null),Object(i.__decorate)([Object(h.HostListener)("click"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleClick",null),Object(i.__decorate)([Object(h.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"keydown",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[Pe,En,Dn,a.LocalizationService,_t,{provide:a.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},yt,Ot],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(i.__metadata)("design:paramtypes",[Pe,h.ElementRef,yt,h.Renderer2,h.ChangeDetectorRef,h.NgZone,_t,Ot])],Qn)),Pn=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangePopupTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Xn),Fn=(Object.defineProperty(Yn.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),Yn.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},Yn.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},Yn.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},Yn.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},Yn.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=nn(e),n=nn(this.startInput$.value),i=nn(this.endInput$.value);return t||n||i||e&&e.hasActiveContent()||!1},Yn.prototype.registerStartInput=function(e){this.startInput$.next(e)},Yn.prototype.registerEndInput=function(e){this.endInput$.next(e)},Yn.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},Yn.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},Yn.prototype.setFocusedDate=function(e){Object(_.isEqual)(this.focusedDate$.value,e)||this.focusedDate$.next(e)},Yn.prototype.setRange=function(e){this.range$.next(e=void 0===e?$:e)},Object(i.__decorate)([Object(h.Injectable)()],Yn)),Rn=(Object.defineProperty(qn.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new gn,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!0,configurable:!0}),qn.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},qn.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),F()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=Object(l.fromEvent)(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},qn.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()},qn.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(l.merge)(e.contentCalendar.changes,e.viewCalendar.changes).pipe(Object(d.filter)(function(e){return e&&e.first}),Object(d.map)(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){return e.focus()})})}))},qn.prototype.focus=function(){this.calendar&&this.calendar.focus()},qn.prototype.hasActiveContent=function(){return!(!Object(b.isDocumentAvailable)()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},qn.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},qn.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},qn.prototype.handleWindowBlur=function(){var e=this;this.show&&(Object(b.hasObservers)(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},qn.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},qn.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===b.Keys.Escape||n&&e===b.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},qn.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=Object(l.fromEvent)(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=Object(l.fromEvent)(e,"focus").subscribe(function(){return t.onFocus.emit()}))},qn.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];O(this.popupSubscriptions)||(this.popupSubscriptions=new l.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(qn.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),qn.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return Object(l.fromEvent)(t,"keydown").subscribe(n.handleKeydown.bind(n))}),Object(l.fromEvent)(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},qn.prototype.destroyPopup=function(){O(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),O(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!1}),Object(i.__metadata)("design:type",h.ViewContainerRef)],qn.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("defaultTemplate",{static:!1}),Object(i.__metadata)("design:type",h.TemplateRef)],qn.prototype,"defaultTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Pn,{static:!1}),Object(i.__metadata)("design:type",Pn)],qn.prototype,"contentTemplate",void 0),Object(i.__decorate)([Object(h.ViewChildren)(Tn),Object(i.__metadata)("design:type",h.QueryList)],qn.prototype,"viewCalendar",void 0),Object(i.__decorate)([Object(h.ContentChildren)(Tn),Object(i.__metadata)("design:type",h.QueryList)],qn.prototype,"contentCalendar",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],qn.prototype,"animate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.ElementRef)],qn.prototype,"anchor",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],qn.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],qn.prototype,"appendTo",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],qn.prototype,"collision",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],qn.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],qn.prototype,"margin",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],qn.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],qn.prototype,"close",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],qn.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],qn.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],qn.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.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(i.__param)(4,Object(h.Optional)()),Object(i.__param)(4,Object(h.Inject)(a.RTL)),Object(i.__metadata)("design:paramtypes",[s.PopupService,Fn,h.ChangeDetectorRef,h.NgZone,Boolean])],qn)),Vn=(Object.defineProperty(Zn.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!0,configurable:!0}),Zn.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},Zn.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(i.__decorate)([Object(h.ContentChildren)(Rn),Object(i.__metadata)("design:type",h.QueryList)],Zn.prototype,"contentPopup",void 0),Object(i.__decorate)([Object(h.Component)({providers:[Fn],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),Object(i.__metadata)("design:paramtypes",[])],Zn)),Bn=(Object.defineProperty($n.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return O(e)&&O(e.calendar)},enumerable:!0,configurable:!0}),$n.prototype.init=function(){var t=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(Object(d.filter)(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),Object(l.fromEvent)(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),Object(l.fromEvent)(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},$n.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},$n.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()},$n.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new l.Subscription},$n.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},$n.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()}))})})},$n.prototype.updateRange=function(e,t){t=this.getRange(e,t);t&&(this.focusActiveDate(),this.dateRangeService.setRange(t))},$n.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===b.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===b.Keys.ArrowDown&&this.dateRangeService.activatePopup()},$n.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(Object(_.cloneDate)(this.input.value))},$n.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t.querySelector(".k-dateinput-wrap"),"k-state-focused")},$n),An=(an=Bn,Object(i.__extends)(Un,an),Un.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),an.prototype.init.call(this)},Un.prototype.ngOnDestroy=function(){an.prototype.destroy.call(this)},Un.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!w(e,i,n))return null;n=(this.rangeService.selectionRange||$).start;return this.autoCorrectOn===t&&O(e)&&e<n?z(e):{start:n,end:Object(_.cloneDate)(e)}},Un.prototype.updateInputValue=function(e){var t=(e||$).end,n=this.dateInput,e=n.min,n=n.max;!Object(_.isEqual)(this.dateInput.value,t)&&w(t,e,n)&&(this.dateInput.writeValue(Object(_.cloneDate)(t)),this.dateInput.notify())},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Un.prototype,"autoCorrectOn",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Un.prototype,"navigateCalendarOnFocus",void 0),Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangeEndInput]"}),Object(i.__metadata)("design:paramtypes",[Fn,mn,h.ElementRef,h.Renderer2,h.NgZone])],Un)),Mn=(on=Bn,Object(i.__extends)(Wn,on),Wn.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),on.prototype.init.call(this)},Wn.prototype.ngOnDestroy=function(){on.prototype.destroy.call(this)},Wn.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!w(e,i,n))return null;n=(this.rangeService.selectionRange||$).end;return this.autoCorrectOn===t&&n&&n<e?z(e):{start:Object(_.cloneDate)(e),end:n}},Wn.prototype.updateInputValue=function(e){var t=(e||$).start,n=this.dateInput,e=n.min,n=n.max;!Object(_.isEqual)(this.dateInput.value,t)&&w(t,e,n)&&(this.dateInput.writeValue(Object(_.cloneDate)(t)),this.dateInput.notify())},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Wn.prototype,"autoCorrectOn",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Wn.prototype,"navigateCalendarOnFocus",void 0),Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangeStartInput]"}),Object(i.__metadata)("design:paramtypes",[Fn,mn,h.ElementRef,h.Renderer2,h.NgZone])],Wn)),Ln=(Object.defineProperty(Gn.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),H(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.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(Gn.prototype,"calendarRange",{get:function(){return this.selectionRange||$},enumerable:!0,configurable:!0}),Gn.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=N(e.min,n.min),n.max=N(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){Object(_.isEqual)(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),Object(l.fromEvent)(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},Gn.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},Gn.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},Gn.prototype.isEqualCalendarRange=function(e){return H(this.calendar.selectionRange,e)},Gn.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(z(t))},Gn.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",e=n?z(e):this.updateRange(e);H(t.selectionRange,e)||(this.acceptAndEmit(e),t.setActiveRangeEnd(i),t.setRange(e))},Gn.prototype.handleHover=function(e){var t,n,i;this.hasCompleteRange()||(t=(i=this.calendarRange).start,n=i.end,i=this.calendar.activeRangeEnd,(t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e)))},Gn.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||$,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},Gn.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},Gn.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},Gn.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},Gn.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},Gn.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Gn.prototype,"autoCorrectOn",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Gn.prototype,"selectionRange",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],Gn.prototype,"activeRangeEnd",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Gn.prototype,"activeRangeEndChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Gn.prototype,"selectionRangeChange",void 0),Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangeSelection]"}),Object(i.__param)(4,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[Tn,h.ChangeDetectorRef,h.ElementRef,h.Renderer2,Fn])],Gn)),Nn=(Object.defineProperty(Kn.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(Kn.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),Kn),zn=(Object.defineProperty(Hn.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),Hn.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+(t.name||typeof t)+"'.")}}},Hn.prototype.ngDoCheck=function(){var e;!this._differ||(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},Hn.prototype._applyChanges=function(e){if(Object(b.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 Nn(null,this.kForOf,-1,-1),o);for(o=this._viewContainer.length;n<o;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(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],Hn.prototype,"kForOf",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Function)],Hn.prototype,"kForTrackBy",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Hn.prototype,"kForTemplate",null),Object(i.__decorate)([Object(h.Directive)({selector:"[kFor][kForOf]"}),Object(i.__metadata)("design:paramtypes",[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers])],Hn));function Hn(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}function Kn(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}function Gn(e,t,n,i,o){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=o,this.autoCorrectOn="change",this.activeRangeEndChange=new h.EventEmitter,this.selectionRangeChange=new h.EventEmitter,this.calendarSubscriptions=new l.Subscription,this.dateRangeService=this.dateRangeService||new Fn,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}function Wn(e,t,n,i,o){o=on.call(this,"start",e,t,n,i,o)||this;return o.rangeService=e,o.dateInput=t,o.navigateCalendarOnFocus=!1,o}function Un(e,t,n,i,o){o=an.call(this,"end",e,t,n,i,o)||this;return o.rangeService=e,o.dateInput=t,o.navigateCalendarOnFocus=!1,o}function $n(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 l.Subscription,this.subscriptions=new l.Subscription}function Zn(){this.showDefault=!1,Object(m.validatePackage)(g)}function qn(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 h.EventEmitter,this.close=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.cancel=new h.EventEmitter,this.popupUID=Object(b.guid)(),this.calendarSubscriptions=new l.Subscription,this.popupSubscriptions=new l.Subscription,this.resolvedPromise=Promise.resolve()}function Yn(){this.activeRangeEnd$=new l.BehaviorSubject(null),this.focusedDate$=new l.BehaviorSubject(null),this.endInput$=new l.BehaviorSubject(null),this.startInput$=new l.BehaviorSubject(null),this.dateRangePopup$=new l.BehaviorSubject(null),this.range$=new l.BehaviorSubject($)}function Xn(e){this.templateRef=e}function Qn(e,t,n,i,o,a,r,s){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=o,this.zone=a,this.disabledDatesService=r,this.selectionService=s,this.id=Object(b.guid)(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=U[U.month],this.bottomView=U[U.month],this.topView=U[U.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.cellUID=Object(b.guid)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=c.PrevView,this.nextView=c.NextView,this.selectedDates=[],this._min=new Date(q),this._max=new Date(Y),this._focusedDate=T(),this.resolvedPromise=Promise.resolve(),this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.disabledDatesRangeValidateFn=P,this.subscriptions=new l.Subscription,this.setClasses(t.nativeElement)}function Jn(e,t,n,i,o,a){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=o,this.renderer=a,this.activeView=U.month,this.isActive=!0,this.min=new Date(q),this.max=new Date(Y),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}function ei(e){this.intl=e}function ti(e,t,n,i,o,a,r,s,c,d){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=o,this.host=a,this.touchEnabled=r,this.localization=s,this.disabledDatesService=c,this.renderer=d,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+Object(b.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=Object(_.cloneDate)(X),this.timeSelectorMax=Object(_.cloneDate)(Q),this.calendarValue=null,this.calendarMin=Object(_.cloneDate)(q),this.calendarMax=W(Y),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=G(q,X),this._max=G(Y,Q),this._isActive=!1,this.onControlTouched=P,this.onControlChange=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.disabledDatesValidateFn=P,this.incompleteValidator=P,this.subscriptions=new l.Subscription,Object(m.validatePackage)(g)}function ni(e,t,n,i,o,a,r,s,c,d){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=o,this.renderer=a,this.injector=r,this.pickerService=s,this.intl=c,this.touchEnabled=d,this.focusableId="k-"+Object(b.guid)(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(b.guid)(),this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=P,this.incompleteValidator=P,this._min=Object(_.cloneDate)(X),this._max=Object(_.cloneDate)(Q),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],Object(m.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)))}function ii(e,t,n,i,o,a,r,s,c,d){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=o,this.renderer=a,this.injector=r,this.pickerService=s,this.disabledDatesService=c,this.touchEnabled=d,this.focusableId="k-"+Object(b.guid)(),this.activeView=U[U.month],this.bottomView=U[U.month],this.topView=U[U.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=Object(_.cloneDate)(q),this.max=Object(_.cloneDate)(Y),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(b.guid)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.disabledDatesValidateFn=P,this.incompleteValidator=P,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],Object(m.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)))}function oi(){this.prevented=!1}function ai(e,t,n,i,o,a,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=o,this.injector=a,this.localization=r,this.pickerService=s,this.focusableId="k-"+Object(b.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new h.EventEmitter,this.valueUpdate=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.arrow=pt,this.arrowDirection=pt.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=P,this.maxValidator=P,this.incompleteValidator=P,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}function ri(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(_.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(m.validatePackage)(g),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=Object(_.cloneDate)(i);else{this.value=Object(_.getDate)(new Date);for(var a=this.dateFormatString(this.value,this.format).symbols,r=0;r<a.length;r++)this.setExisting(a[r],!1)}}function si(e,t){return yo(24+e-t)}function ci(n){return function(e,t){return t&&Object(_.getDate)(e).getTime()!==Object(_.getDate)(t).getTime()?te(e,n):e}}function di(e,t){return ko(60+e-t)}function li(n){return function(e,t){return t&&e.getHours()!==t.getHours()?ne(e,n):e}}function pi(e,t){return Io(60+e-t)}function ui(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:ie(e,n)}}function hi(e,t){return To(1e3+e-t)}function bi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:oe(e,n)}}function mi(e,t){return(e=Object(_.cloneDate)(e)).setHours(t),e}function gi(e){return null!==e&&e<12}function fi(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function vi(e,t){return fi(e,t)&&e.getSeconds()===t.getSeconds()}function yi(e){return function(t,n){return t.setHours.apply(t,e.map(function(e){return e(t,n)})),t}}function _i(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}var Oi,ji,ki,Ci,Si,wi,Ii,xi,Ei,Di,Ti,Pi,Fi,Ri,Vi,Bi,Ai,Mi,Li,Ni,zi,Hi,Ki,Gi=(ga.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)))},ga.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=U[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},ga.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},ga.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(E(T(),this.min,this.max)))},ga.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},ga.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},ga.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},ga.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)},ga.prototype.setTodayAvailability=function(){var e=T(),t=w(e,Object(_.getDate)(this.min),Object(_.getDate)(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ga.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ga.prototype,"currentDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ga.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ga.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ga.prototype,"rangeLength",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],ga.prototype,"templateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ga.prototype,"isPrevDisabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ga.prototype,"isNextDisabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ga.prototype,"showNavigationButtons",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ga.prototype,"todayButtonClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ga.prototype,"prevButtonClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ga.prototype,"nextButtonClick",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-header"),Object(h.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],ga.prototype,"getComponentClass",void 0),Object(i.__decorate)([Object(h.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(i.__metadata)("design:paramtypes",[Pe,h.ChangeDetectorRef,a.LocalizationService,r.IntlService,_t])],ga)),Wi=(Object.defineProperty(ma.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===U.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),ma.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},ma.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))},ma.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},ma.prototype.isHorizontal=function(){return"horizontal"===this.direction},ma.prototype.isMonthView=function(){return this.activeView===U.month},ma.prototype.shouldRenderCellContent=function(e){return O(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},ma.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},ma.prototype.getWeekNumber=function(e){return this.weekNumber?Object(_.weekInYear)(e,this.intl.firstDay()):null},ma.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;e=Object(_.weekInYear)(t.value,this.intl.firstDay()).toString();return{formattedValue:e,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:e,value:Object(_.cloneDate)(t.value)}},ma.prototype.getStyles=function(e){var n,t=e.isRangeEnd,i=e.isRangeStart,o="end"===this.activeRangeEnd&&t,a="start"===this.activeRangeEnd&&i;return n={"k-range-end":!e.isOtherMonth&&t,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-state-active":a||o,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||i||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},ma.prototype.tableCellIndex=function(e,t){return e+":"+t},ma.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},ma.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},ma.prototype.updateData=function(){var e=M(this.selectedDates)||T(),e=J(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},ma.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},ma.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},ma.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)))},ma.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(n=i.getAttribute("data-cell-index"),(t=this.cellByIndex(n)).isDisabled||(i=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:t.value,modifiers:{ctrlKey:i,metaKey:n,shiftKey:e}})))},ma.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},ma.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);t?(e=t.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},ma.prototype.closestCell=function(e){return ot(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},ma.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},ma.prototype.cellByIndex=function(e){var t=e.split(":"),e=t[0],t=t[1];return this.data[e][t]},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ma.prototype,"direction",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ma.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ma.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ma.prototype,"cellUID",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ma.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ma.prototype,"viewDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ma.prototype,"activeRangeEnd",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ma.prototype,"selectionRange",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ma.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ma.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Array)],ma.prototype,"selectedDates",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],ma.prototype,"weekNumber",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ma.prototype,"viewIndex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],ma.prototype,"templateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],ma.prototype,"weekNumberTemplateRef",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ma.prototype,"cellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ma.prototype,"weekNumberCellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ma.prototype,"cellEnter",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ma.prototype,"cellLeave",void 0),Object(i.__decorate)([Object(h.Component)({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}),Object(i.__metadata)("design:paramtypes",[Pe,r.IntlService,h.ChangeDetectorRef,h.ElementRef,h.NgZone,h.Renderer2,_t])],ma)),Ui=Object(i.__decorate)([Object(h.NgModule)({declarations:[zn,Gi,Wi],exports:[zn,Gi,Wi],imports:[p.CommonModule,b.EventsModule]})],ba),$i=Object(i.__decorate)([Object(h.NgModule)({declarations:[kt,Ct,St,wt,It,xt,Et,Dt],exports:[kt,Ct,St,wt,It,xt,Et,Dt]})],ha),Zi=(Ki=a.ComponentMessages,Object(i.__extends)(ua,Ki),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ua.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ua.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ua.prototype,"nextButtonTitle",void 0),ua),qi=(zi=Zi,Object(i.__extends)(pa,zi),Hi=pa,Hi=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Zi,useExisting:Object(h.forwardRef)(function(){return Hi})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],pa)),Yi=(Li=Zi,Object(i.__extends)(la,Li),Ni=la,Object.defineProperty(la.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Ni=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Zi,useExisting:Object(h.forwardRef)(function(){return Ni})}],selector:"kendo-multiviewcalendar-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],la)),Xi=Object(i.__decorate)([Object(h.NgModule)({declarations:[In,qi,Yi,Tn],exports:[In,qi,Yi,Tn,Ui,$i],imports:[p.CommonModule,Ui,r.IntlModule,$i,s.PopupModule],providers:[yt,se,le,he,ge,wn]})],da),Qi=(Mi=a.ComponentMessages,Object(i.__extends)(ca,Mi),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ca.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ca.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ca.prototype,"nextButtonTitle",void 0),ca),Ji=(Bi=Qi,Object(i.__extends)(sa,Bi),Ai=sa,Ai=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Qi,useExisting:Object(h.forwardRef)(function(){return Ai})}],selector:"[kendoCalendarLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],sa)),eo=(Ri=Qi,Object(i.__extends)(ra,Ri),Vi=ra,Object.defineProperty(ra.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Vi=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Qi,useExisting:Object(h.forwardRef)(function(){return Vi})}],selector:"kendo-calendar-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],ra)),to=[mt],no=Object(i.__decorate)([Object(h.NgModule)({declarations:[to],exports:[to],imports:[p.CommonModule]})],aa),io=Object(i.__decorate)([Object(h.NgModule)({declarations:[Bt,gt,eo,Ji,ft],exports:[Bt,gt,eo,Ji,ft,Ui,$i],imports:[p.CommonModule,Ui,Xi,r.IntlModule,$i,no,b.EventsModule,b.ResizeSensorModule],providers:[$e,se,le,he,ge,wn]})],oa),oo=Object(i.__decorate)([Object(h.NgModule)({exports:[io,Xi],imports:[io,Xi]})],ia),ao=(Fi=a.ComponentMessages,Object(i.__extends)(na,Fi),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],na.prototype,"decrement",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],na.prototype,"increment",void 0),na),ro=(Ti=ao,Object(i.__extends)(ta,Ti),Pi=ta,Pi=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:ao,useExisting:Object(h.forwardRef)(function(){return Pi})}],selector:"[kendoDateInputLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],ta)),so=(Ei=ao,Object(i.__extends)(ea,Ei),Di=ea,Object.defineProperty(ea.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Di=Object(i.__decorate)([Object(h.Component)({providers:[{provide:ao,useExisting:Object(h.forwardRef)(function(){return Di})}],selector:"kendo-dateinput-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],ea)),co=Object(i.__decorate)([Object(h.NgModule)({declarations:[mn,so,ro],exports:[mn,so,ro],imports:[p.CommonModule,r.IntlModule,b.EventsModule]})],Jo),lo=(xi=a.ComponentMessages,Object(i.__extends)(Qo,xi),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qo.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qo.prototype,"toggle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qo.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qo.prototype,"nextButtonTitle",void 0),Qo),po=(wi=lo,Object(i.__extends)(Xo,wi),Ii=Xo,Ii=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:lo,useExisting:Object(h.forwardRef)(function(){return Ii})}],selector:"[kendoDatePickerLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Xo)),uo=(Ci=lo,Object(i.__extends)(Yo,Ci),Si=Yo,Object.defineProperty(Yo.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Si=Object(i.__decorate)([Object(h.Component)({providers:[{provide:lo,useExisting:Object(h.forwardRef)(function(){return Si})}],selector:"kendo-datepicker-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Yo)),ho=u.touchEnabled,bo=Object(i.__decorate)([Object(h.NgModule)({declarations:[vn,uo,po],exports:[vn,uo,po,$i],imports:[p.CommonModule,co,io,r.IntlModule,s.PopupModule,$i,b.EventsModule],providers:[{provide:fn,useValue:ho}]})],qo),mo=[Vn,Rn,Pn,Ln,Mn,An],to=[Xi,co,s.PopupModule,b.EventsModule],go=Object(i.__decorate)([Object(h.NgModule)({declarations:[mo],exports:[mo],imports:[p.CommonModule,to]})],Zo),ho=V("div"),mo=V("ul"),to=V("li"),fo=Object(b.isDocumentAvailable)()?ho([ho([ho([mo([to("<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,vo=($o.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},$o.prototype.calculateHeights=function(e){var t;Object(b.isDocumentAvailable)()&&(e=(t=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(fo),this.timeListHeight=e.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=e.querySelector("li").getBoundingClientRect().height,t.removeChild(e))},$o.prototype.isActive=function(e){return!(!Object(b.isDocumentAvailable)()||!e)&&(e.nativeElement||e)===document.activeElement},Object(i.__decorate)([Object(h.Injectable)()],$o)),yo=function(e){return e%24},_o=ci(0),Oo=ci(23),jo=(Uo.prototype.apply=function(e,t){return te(e,t.getHours())},Uo.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,n=e.min,o=void 0===n?this.min:n,n=e.max,n=void 0===n?this.max:n,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=i,this.insertUndividedMax=a,this.toListItem=function(e){e=te(Z,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=o,this.max=n,this.step=e},Uo.prototype.data=function(e){var t,n,i=this,o=(t=this.range(e)[0],n=this.step,function(e){return yo(t+e*n)}),a=S(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Uo.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Uo.prototype.limitRange=function(e,t,n){return this.boundRange?[_o(e,n),Oo(t,n)]:[e,t]},Uo.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},Uo.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Uo.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},Uo.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},Uo.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},Uo.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(si(t,e)/this.step)+1},Uo.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Uo.prototype.isLastMissing=function(e){return this.isMissing(te(this.max,this.lastHour(e)))},Uo.prototype.divideByStep=function(e){return si(e.getHours(),this.min.getHours())/this.step},Uo.prototype.lastHour=function(e){return this.range(e)[1]},Uo.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getHours(),t.getHours()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Uo)),ko=function(e){return e%60},Co=li(0),So=li(59),wo=(Wo.prototype.apply=function(e,t){return ne(e,t.getMinutes())},Wo.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,o=e.min,n=void 0===o?this.min:o,o=e.max,o=void 0===o?this.max:o,a=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=ne(Z,e);return{text:t.intl.formatDate(e,a.pattern),value:e}},this.min=n,this.max=o,this.step=e},Wo.prototype.data=function(e){var t,n,i=this,o=(t=this.range(e)[0],n=this.step,function(e){return ko(t+e*n)}),a=S(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Wo.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Wo.prototype.limitRange=function(e,t,n){return[Co(e,n),So(t,n)]},Wo.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},Wo.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Wo.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},Wo.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Wo.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},Wo.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(di(t,e)/this.step)+1},Wo.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Wo.prototype.isLastMissing=function(e){return this.isMissing(ne(this.max,this.lastMinute(e)))},Wo.prototype.divideByStep=function(e){return di(e.getMinutes(),this.min.getMinutes())/this.step},Wo.prototype.lastMinute=function(e){return this.range(e)[1]},Wo.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMinutes(),t.getMinutes()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Wo)),Io=function(e){return e%60},xo=ui(0),Eo=ui(59),Do=(Go.prototype.apply=function(e,t){return ie(e,t.getSeconds())},Go.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,o=e.min,n=void 0===o?this.min:o,o=e.max,o=void 0===o?this.max:o,a=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=ie(Z,e);return{text:t.intl.formatDate(e,a.pattern),value:e}},this.min=n,this.max=o,this.step=e},Go.prototype.data=function(e){var t,n,i=this,o=(t=this.range(e)[0],n=this.step,function(e){return Io(t+e*n)}),a=S(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Go.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Go.prototype.limitRange=function(e,t,n){return[xo(e,n),Eo(t,n)]},Go.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},Go.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Go.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},Go.prototype.divideByStep=function(e){return pi(e.getSeconds(),this.min.getSeconds())/this.step},Go.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},Go.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},Go.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(pi(t,e)/this.step)+1},Go.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Go.prototype.isLastMissing=function(e){return this.isMissing(ie(this.max,this.lastSecond(e)))},Go.prototype.lastSecond=function(e){return this.range(e)[1]},Go.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getSeconds(),t.getSeconds()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Go)),To=function(e){return e%1e3},Po=bi(0),Fo=bi(999),Ro=(Ko.prototype.apply=function(e,t){return oe(e,t.getMilliseconds())},Ko.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,o=e.min,n=void 0===o?this.min:o,o=e.max,o=void 0===o?this.max:o,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=oe(Z,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=n,this.max=o,this.step=e},Ko.prototype.data=function(e){var t,n,i=this,o=(t=this.range(e)[0],n=this.step,function(e){return To(t+e*n)}),a=S(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Ko.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Ko.prototype.limitRange=function(e,t,n){return[Po(e,n),Fo(t,n)]},Ko.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},Ko.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ko.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},Ko.prototype.divideByStep=function(e){return hi(e.getMilliseconds(),this.min.getMilliseconds())/this.step},Ko.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},Ko.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},Ko.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(hi(t,e)/this.step)+1},Ko.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ko.prototype.isLastMissing=function(e){return this.isMissing(oe(this.max,this.lastMillisecond(e)))},Ko.prototype.lastMillisecond=function(e){return this.range(e)[1]},Ko.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMilliseconds(),t.getMilliseconds()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Ko)),Vo=(Ho.prototype.apply=function(e,t){var n=e.getHours(),i=gi(n),o=gi(t.getHours());if(i&&o||!i&&!o)return e;t=this.normalizedRange(),i=t[0],t=t[1],t=void 0===t?24:t;return mi(e,Math.min(Math.max(i,n+(o?-12:12)),t||24))},Ho.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,t=e.max,t=void 0===t?this.max:t,e=e.part,e=void 0===e?this.part:e;this.min=n,this.max=t,this.part=e},Ho.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n=[],i=this.normalizedRange(),o=i[0],i=i[1],t=this.intl.dateFormatNames(t);return gi(o)&&n.push({text:t.am,value:mi(this.min,o)}),null!==i&&(!i||11<i)&&n.push({text:t.pm,value:mi(this.min,Math.max(12,i))}),this.min.getHours()!==o?n.reverse():n},Ho.prototype.isRangeChanged=function(e,t){return!1},Ho.prototype.limitRange=function(e,t,n){return[e,t]},Ho.prototype.total=function(){var e=this.normalizedRange(),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},Ho.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},Ho.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?function(e,t,n){return!t&&!n||t<=e||e<=n}:function(e,t,n){return!t&&!n||t<=e&&e<=n})(e.getHours(),this.min.getHours(),this.max.getHours())},Ho.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Ho)),Bo={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]}},Ao=((to={})[yn]=Vo,to.hour=jo,to[n]=wo,to[On]=Do,to[t]=Ro,to),Mo=(Object.defineProperty(zo.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),zo.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Ao[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],i=i[1];(this.service.isRangeChanged(o,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:o,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},zo.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()})},zo.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},zo.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},zo.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},zo.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))},zo.prototype.handleItemClick=function(e){var e=ot(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},zo.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},zo.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},zo.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);if(t===n&&e<2)return i;t=n<t;return t&&e>=this.bottomThreshold||!t&&e>this.topThreshold?this.virtualization.itemOffset(n+1):i},zo.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},zo.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},zo.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},e=Object.assign({},t,e);return e.boundRange="hour"!==e.part.type,e},zo.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},zo.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;if(!t||!e)return!1;t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)];return t&&e&&t.text!==e.text},zo.prototype.handleKeyDown=function(e){var t=(Bo[e.keyCode]||function(){return null})(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},zo.prototype.bindEvents=function(){var t=this;this.scrollSubscription=this.virtualization.scroll$().pipe(Object(d.debounceTime)(100),Object(d.map)(function(e){return e.target.scrollTop}),Object(d.map)(function(e){return t.itemOffset(e)}),Object(d.map)(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])});var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],zo.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],zo.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],zo.prototype,"part",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],zo.prototype,"step",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],zo.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],zo.prototype,"value",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],zo.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.ViewChild)(mt,{static:!0}),Object(i.__metadata)("design:type",mt)],zo.prototype,"virtualization",void 0),Object(i.__decorate)([Object(h.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],zo.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-time-list"),Object(i.__metadata)("design:type",Boolean)],zo.prototype,"componentClass",void 0),Object(i.__decorate)([Object(h.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(i.__metadata)("design:paramtypes",[h.ElementRef,h.Injector,vo,h.Renderer2,h.NgZone])],zo)),n=[{type:_n,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:n,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return fi(e,t)?t.getMinutes():0}},{type:On,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return vi(e,t)?t.getSeconds():0}},{type:t,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return vi(n=e,e=t)&&n.getMilliseconds()===e.getMilliseconds()?t.getMilliseconds():0;var n}}],Lo=function(e){return ki.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t},No=(ji=ki=n,function(n){return ji.map(function(e){var i,o,a,t=n[e.type];return t?(i=e.getter,o=e.minGetter,a=t,function(e,t){var n=i(e),e=o(e,t),t=n-e;if(t<0)return e;t%=a;return n-t+(a/2<t?a:0)}):e.getter})});function zo(e,t,n,i,o){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=o,this.min=Object(_.cloneDate)(Z),this.max=Object(_.cloneDate)(Q),this.step=1,this.disabled=!1,this.valueChange=new h.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}function Ho(e){this.intl=e}function Ko(e){this.intl=e,this.insertUndividedMax=!1}function Go(e){this.intl=e,this.insertUndividedMax=!1}function Wo(e){this.intl=e,this.insertUndividedMax=!1}function Uo(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}function $o(){}function Zo(){}function qo(){}function Yo(e){var t=Ci.call(this)||this;return t.service=e,t}function Xo(e){var t=wi.call(this)||this;return t.service=e,t}function Qo(){return null!==xi&&xi.apply(this,arguments)||this}function Jo(){}function ea(e){var t=Ei.call(this)||this;return t.service=e,t}function ta(e){var t=Ti.call(this)||this;return t.service=e,t}function na(){return null!==Fi&&Fi.apply(this,arguments)||this}function ia(){}function oa(){}function aa(){}function ra(e){var t=Ri.call(this)||this;return t.service=e,t}function sa(e){var t=Bi.call(this)||this;return t.service=e,t}function ca(){return null!==Mi&&Mi.apply(this,arguments)||this}function da(){}function la(e){var t=Li.call(this)||this;return t.service=e,t}function pa(e){var t=zi.call(this)||this;return t.service=e,t}function ua(){return null!==Ki&&Ki.apply(this,arguments)||this}function ha(){}function ba(){}function ma(e,t,n,i,o,a,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=o,this.renderer=a,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.colSpan=0,this.subscriptions=new l.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)))}function ga(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(q),this.max=new Date(Y),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new h.EventEmitter,this.prevButtonClick=new h.EventEmitter,this.nextButtonClick=new h.EventEmitter,this.getComponentClass=!0,this.subscriptions=new l.Subscription}(On=Oi=Oi||{})[On.Left=0]="Left",On[On.Right=1]="Right";var fa,va,ya,_a,Oa,ja,ka,Ca,Sa,wa,Ia,xa,Ea,Da,Ta=(Object.defineProperty(er.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"current",{get:function(){return this._current},set:function(e){this._current=function(e,t,n){if(!e||!t||!n)return e;var i=C(e,t,n),o=i.candidateValue,a=i.minValue,i=i.maxValue;return o<a?J(e,t):i<o?J(e,n):e}(this.snapTime(Object(_.cloneDate)(e||Z),this.min),this.min,this.max),h.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")}),0<=e)&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-state-focused"))},enumerable:!0,configurable:!0}),er.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()},er.prototype.ngOnChanges=function(e){this.init()},er.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},er.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},er.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},er.prototype.handleAccept=function(){this.handleChange(this.mergeValue(Object(_.cloneDate)(this.value||Object(_.getDate)(D())),this.current))},er.prototype.handleNow=function(){this.current=D(),this.handleChange(this.current),this.cdr.markForCheck()},er.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},er.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},er.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},er.prototype.handleBlur=function(e){var t=y(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},er.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},er.prototype.partStep=function(e){return this.steps[e.type]||1},er.prototype.init=function(e){var i;e&&!B(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=yi(Lo(this.dateFormatParts))),e&&!B(e,"steps")||(this.snapTime=(i=No(this.steps),function(e,t){var n=Object(_.cloneDate)(e);return n.setHours.apply(n,i.map(function(e){return e(n,t)})),n})),e&&!B(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&I(D(),this.min,this.max)},er.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(_i,[]).map(function(e){return t===Oi.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},er.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(Object(_.cloneDate)(e))},er.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},er.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},er.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=yi(Lo(this.dateFormatParts)),this.cdr.markForCheck()},er.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)))})},er.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,e=-1!==[b.Keys.ArrowLeft,b.Keys.ArrowRight].indexOf(t);O(this.pickerService)&&e&&n||(t!==b.Keys.Enter||this.hasActiveButton()?t!==b.Keys.ArrowLeft&&t!==b.Keys.ArrowRight||this.focusList(t===b.Keys.ArrowLeft?Oi.Left:Oi.Right):this.handleAccept())},er.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},er.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},er.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},Object(i.__decorate)([Object(h.ViewChild)("accept",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],er.prototype,"accept",void 0),Object(i.__decorate)([Object(h.ViewChild)("cancel",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],er.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.ViewChild)("now",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],er.prototype,"now",void 0),Object(i.__decorate)([Object(h.ViewChildren)(Mo),Object(i.__metadata)("design:type",h.QueryList)],er.prototype,"timeLists",void 0),Object(i.__decorate)([Object(h.ViewChildren)("listWrapper"),Object(i.__metadata)("design:type",h.QueryList)],er.prototype,"timeListWrappers",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-timeselector"),Object(i.__metadata)("design:type",Boolean)],er.prototype,"componentClass",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],er.prototype,"disabledClass",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],er.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],er.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],er.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"cancelButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"setButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"nowButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],er.prototype,"steps",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],er.prototype,"value",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],er.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],er.prototype,"valueReject",void 0),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[a.LocalizationService,{provide:a.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(i.__param)(7,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[a.LocalizationService,h.ChangeDetectorRef,h.ElementRef,r.IntlService,vo,h.NgZone,h.Renderer2,Tt])],er)),Pa=(Da=a.ComponentMessages,Object(i.__extends)(Ja,Da),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"accept",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"acceptLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"cancelLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"now",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"nowLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Ja.prototype,"toggle",void 0),Ja),Fa=(xa=Pa,Object(i.__extends)(Qa,xa),Ea=Qa,Ea=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Pa,useExisting:Object(h.forwardRef)(function(){return Ea})}],selector:"[kendoTimePickerLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Qa)),Ra=(wa=Pa,Object(i.__extends)(Xa,wa),Ia=Xa,Object.defineProperty(Xa.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Ia=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Pa,useExisting:Object(h.forwardRef)(function(){return Ia})}],selector:"kendo-timepicker-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Xa)),Va=(Ca=Pa,Object(i.__extends)(Ya,Ca),Sa=Ya,Sa=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Pa,useExisting:Object(h.forwardRef)(function(){return Sa})}],selector:"[kendoTimeSelectorLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Ya)),Ba=(ja=Pa,Object(i.__extends)(qa,ja),ka=qa,Object.defineProperty(qa.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),ka=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Pa,useExisting:Object(h.forwardRef)(function(){return ka})}],selector:"kendo-timeselector-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],qa)),t=[Fa,Mo,Ra,kn,Va,Ba,Ta],n=[co,r.IntlModule,s.PopupModule,no,b.EventsModule],On=u.touchEnabled,On=[vo,jo,wo,Do,Ro,Vo,{provide:fn,useValue:On}],Aa=Object(i.__decorate)([Object(h.NgModule)({declarations:[t],exports:[t],imports:[p.CommonModule].concat(n),providers:On})],Za),Ma=(Oa=a.ComponentMessages,Object(i.__extends)($a,Oa),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"toggle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"dateTab",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"dateTabLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"timeTab",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"timeTabLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"accept",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"acceptLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"cancelLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"now",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"nowLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],$a.prototype,"nextButtonTitle",void 0),$a),La=(ya=Ma,Object(i.__extends)(Ua,ya),_a=Ua,Object.defineProperty(Ua.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),_a=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Ma,useExisting:Object(h.forwardRef)(function(){return _a})}],selector:"kendo-datetimepicker-messages",template:""}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Ua)),Na=(fa=Ma,Object(i.__extends)(Wa,fa),va=Wa,va=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Ma,useExisting:Object(h.forwardRef)(function(){return va})}],selector:"[kendoDateTimePickerLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[a.LocalizationService])],Wa)),a=[Sn,La,Na],u=u.touchEnabled,za=Object(i.__decorate)([Object(h.NgModule)({declarations:a.slice(),exports:a.concat([$i]),imports:[p.CommonModule,r.IntlModule,co,io,Aa,s.PopupModule,b.EventsModule,$i],providers:[{provide:fn,useValue:u}]})],Ga),u=[oo,co,bo,Aa,go,za],Ha=Object(i.__decorate)([Object(h.NgModule)({exports:u,imports:u})],Ka);function Ka(){}function Ga(){}function Wa(e){var t=fa.call(this)||this;return t.service=e,t}function Ua(e){var t=ya.call(this)||this;return t.service=e,t}function $a(){return null!==Oa&&Oa.apply(this,arguments)||this}function Za(){}function qa(e){var t=ja.call(this)||this;return t.service=e,t}function Ya(e){var t=Ca.call(this)||this;return t.service=e,t}function Xa(e){var t=wa.call(this)||this;return t.service=e,t}function Qa(e){var t=xa.call(this)||this;return t.service=e,t}function Ja(){return null!==Da&&Da.apply(this,arguments)||this}function er(e,t,n,i,o,a,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=o,this.zone=a,this.renderer=r,this.pickerService=s,this.componentClass=!0,this.format="t",this.min=Object(_.cloneDate)(X),this.max=Object(_.cloneDate)(Q),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new h.EventEmitter,this.valueReject=new h.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}},function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizedMessagesDirective",function(){return v}),n.d(t,"Messages",function(){return f}),n.d(t,"SharedDirectivesModule",function(){return _}),n.d(t,"LabelDirective",function(){return g}),n.d(t,"LabelModule",function(){return w}),n.d(t,"FloatingLabelModule",function(){return C}),n.d(t,"FloatingLabelComponent",function(){return k}),n.d(t,"LabelComponent",function(){return S}),n.d(t,"CustomMessagesComponent",function(){return y});function i(e){return"[object Function]"===Object.prototype.toString.call(e)}var o,a,r,s,c,d=n(0),l=n(1),p=n(2),u=n(4),h=n(9),t=n(7),b=n(12),m=n(5),g=(Object.defineProperty(B.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!Object(p.isDocumentAvailable)())return null;var e=this.getFocusableComponent()||{};return e instanceof HTMLElement&&!e.hasAttribute("id")&&this.renderer.setAttribute(e,"id","k-"+Object(p.guid)()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),B.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular(function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)})},B.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},B.prototype.setAriaLabelledby=function(){var e,t,n;!Object(p.isDocumentAvailable)()||(n=this.getFocusableComponent())&&n.focusableId&&((e=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}(this.label.nativeElement).querySelector("#"+n.focusableId))&&(n=(t=this.label.nativeElement).id||"k-"+Object(p.guid)(),t.getAttribute("id")||this.renderer.setAttribute(t,"id",n),this.renderer.setAttribute(e,"aria-labelledby",n)))},B.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",Object)],B.prototype,"for",void 0),Object(d.__decorate)([Object(l.HostBinding)("attr.for"),Object(d.__metadata)("design:type",String),Object(d.__metadata)("design:paramtypes",[])],B.prototype,"labelFor",null),Object(d.__decorate)([Object(l.HostBinding)("class.k-label"),Object(d.__metadata)("design:type",Boolean)],B.prototype,"labelClass",void 0),Object(d.__decorate)([Object(l.Directive)({selector:"label[for]"}),Object(d.__metadata)("design:paramtypes",[l.ElementRef,l.Renderer2,l.NgZone])],B)),f=(c=u.ComponentMessages,Object(d.__extends)(V,c),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",String)],V.prototype,"optional",void 0),V),v=(r=f,Object(d.__extends)(R,r),s=R,s=Object(d.__decorate)([Object(l.Directive)({providers:[{provide:f,useExisting:Object(l.forwardRef)(function(){return s})}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),Object(d.__metadata)("design:paramtypes",[u.LocalizationService])],R)),y=(o=f,Object(d.__extends)(F,o),a=F,Object.defineProperty(F.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=Object(d.__decorate)([Object(l.Component)({providers:[{provide:f,useExisting:Object(l.forwardRef)(function(){return a})}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),Object(d.__metadata)("design:paramtypes",[u.LocalizationService])],F)),n=[v,y],_=Object(d.__decorate)([Object(l.NgModule)({declarations:[n],exports:[n]})],P),O={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"},j=(Object.defineProperty(T.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}),T),k=(Object.defineProperty(D.prototype,"labelPosition",{get:function(){return!this.empty||this.focused?"Out":"In"},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),D.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new j(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},D.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},D.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},D.prototype.textFor=function(e){return this.localization.get(e)},D.prototype.subscribe=function(e,t,n){e[t]instanceof l.EventEmitter&&(n=e[t].subscribe(n),this.subscription?this.subscription.add(n):this.subscription=n)},D.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,i(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=i(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()},D.prototype.setAriaLabelledby=function(e){var e=e.focusableId||e.id;e&&(e=this.elementRef.nativeElement.querySelector("#"+e),this.renderer.setAttribute(e,"aria-labelledby",this.labelId))},D.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;this.id&&t?this.id=t:this.id?e.focusableId=this.id:t?this.id=t:(t="k-"+Object(p.guid)(),e.focusableId=t,this.id=t)},D.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"))})},D.prototype.addHandlers=function(e){function t(e){return function(){n.focused=e,n.updateState(),n.empty&&Object(p.hasObservers)(n.positionChange)&&n.positionChange.emit(e?"Out":"In")}}var n=this;this.subscribe(e,"onFocus",t(!0)),this.subscribe(e,"onBlur",t(!1)),this.handleAutofill(e);function i(){return n.updateState()}i(),this.subscribe(e,"onValueChange",i)},D.prototype.validateSetup=function(){if(!this.formControl&&!this.kendoInput&&Object(l.isDevMode)())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},Object(d.__decorate)([Object(l.HostBinding)("class.k-floating-label-container"),Object(d.__metadata)("design:type",Boolean)],D.prototype,"hostClasses",void 0),Object(d.__decorate)([Object(l.HostBinding)("class.k-state-focused"),Object(d.__metadata)("design:type",Boolean),Object(d.__metadata)("design:paramtypes",[])],D.prototype,"focusedClass",null),Object(d.__decorate)([Object(l.HostBinding)("class.k-state-invalid"),Object(d.__metadata)("design:type",Boolean),Object(d.__metadata)("design:paramtypes",[])],D.prototype,"invalidClass",null),Object(d.__decorate)([Object(l.HostBinding)("attr.dir"),Object(d.__metadata)("design:type",String)],D.prototype,"direction",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",Object)],D.prototype,"labelCssStyle",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",Object)],D.prototype,"labelCssClass",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",String)],D.prototype,"id",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",String)],D.prototype,"text",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",Boolean)],D.prototype,"optional",void 0),Object(d.__decorate)([Object(l.Output)(),Object(d.__metadata)("design:type",l.EventEmitter)],D.prototype,"positionChange",void 0),Object(d.__decorate)([Object(l.ContentChild)(p.KendoInput,{static:!1}),Object(d.__metadata)("design:type",Object)],D.prototype,"kendoInput",void 0),Object(d.__decorate)([Object(l.ContentChild)(t.NgControl,{static:!1}),Object(d.__metadata)("design:type",t.NgControl)],D.prototype,"formControl",void 0),Object(d.__decorate)([Object(l.Component)({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[u.LocalizationService,{provide:u.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(d.__metadata)("design:paramtypes",[l.ElementRef,l.Renderer2,l.ChangeDetectorRef,u.LocalizationService])],D)),t=[k],C=Object(d.__decorate)([Object(l.NgModule)({declarations:t.slice(),exports:t.concat([_]),imports:[h.CommonModule,_]})],E),S=(x.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(p.guid)()),void(this.control=e);this.control=this.kendoInput}},x.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}))},x.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},x.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},x.prototype.textFor=function(e){return this.localization.get(e)},Object(d.__decorate)([Object(l.HostBinding)("attr.dir"),Object(d.__metadata)("design:type",String)],x.prototype,"direction",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",String)],x.prototype,"text",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",Object)],x.prototype,"for",void 0),Object(d.__decorate)([Object(l.Input)(),Object(d.__metadata)("design:type",Boolean)],x.prototype,"optional",void 0),Object(d.__decorate)([Object(l.ViewChild)(g,{static:!0}),Object(d.__metadata)("design:type",g)],x.prototype,"labelDirective",void 0),Object(d.__decorate)([Object(l.ContentChild)(p.KendoInput,{static:!0}),Object(d.__metadata)("design:type",Object)],x.prototype,"kendoInput",void 0),Object(d.__decorate)([Object(l.Component)({selector:"kendo-label",exportAs:"kendoLabel",providers:[u.LocalizationService,{provide:u.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(d.__metadata)("design:paramtypes",[l.ElementRef,l.Renderer2,u.LocalizationService])],x)),u=[g,S],w=Object(d.__decorate)([Object(l.NgModule)({imports:[h.CommonModule,_],declarations:u.slice(),exports:u.concat([C,_])})],I);function I(){}function x(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new m.Subscription,Object(b.validatePackage)(O),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}function E(){}function D(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=i,this.hostClasses=!0,this.positionChange=new l.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+Object(p.guid)(),this.autoFillStarted=!1,Object(b.validatePackage)(O),this.direction=i.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}function T(e,t){function n(e){return e instanceof m.Observable||e instanceof l.EventEmitter}n((this.component=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)}function P(){}function F(e){var t=o.call(this)||this;return t.service=e,t}function R(e){var t=r.call(this)||this;return t.service=e,t}function V(){return null!==c&&c.apply(this,arguments)||this}function B(e,t,n){var i=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e,t=i.getFocusableComponent();t&&(!(e=t).wrapper||"KENDO-UPLOAD"!==e.wrapper.tagName&&"KENDO-FILESELECT"!==e.wrapper.tagName||t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}},function(e,t){e.exports=b},function(e,t){e.exports=u},function(e,t){e.exports=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(7),s=n(84),c=n(17),d=n(83),l=n(2),p=n(82),u=n(81),h=n(58),b=n(80),m=n(4),g=n(11),f=n(8),v=n(21),y=n(20),_=n(57),O=n(79),j=n(78),k=n(77),C=n(30),S=n(28),w=n(76),I=n(29),x=n(75),E=n(47),D=n(46),T=n(45),P=n(44),F=n(74),R=n(27),V=n(73),B=n(72),A=n(42),M=n(41),L=n(71),N=n(37),z=n(69),H=n(68),K=n(67),G=n(66),W=n(65),U=n(64),$=n(63),Z=n(62),q=n(59),Y=n(61),n=n(60),q=[a.CommonModule,r.ReactiveFormsModule,u.LabelModule,h.InputsModule,b.DateInputsModule,d.ButtonsModule,s.SplitterModule,c.TreeListModule,d.ButtonsModule,p.DialogModule,l.EventsModule,g.PopupModule,l.DraggableModule,s.TabStripModule,Z.GridModule,q.DropDownsModule],n=[y.GanttComponent,E.GanttFlatBindingDirective,D.GanttHierarchyBindingDirective,k.GanttTaskComponent,w.GanttSummaryTaskComponent,x.GanttMilestoneTaskComponent,_.GanttTimelineComponent,O.GanttTasksTableBodyComponent,j.GanttHeaderTableBodyComponent,S.GanttTaskContentTemplateDirective,C.GanttTaskTemplateDirective,I.GanttSummaryTaskTemplateDirective,R.ToolbarTemplateDirective,F.ToolbarComponent,V.ViewSelectorComponent,N.GanttColumnComponent,N.GanttColumnGroupComponent,N.GanttSpanColumnComponent,N.FilterMenuTemplateDirective,N.FilterCellTemplateDirective,N.CellTemplateDirective,N.EditTemplateDirective,N.ColumnMenuTemplateDirective,N.HeaderTemplateDirective,N.FooterTemplateDirective,T.GanttExpandableDirective,B.GanttDependencyDirective,A.DependencyDragCreateDirective,z.TimelineDayViewComponent,H.TimelineWeekViewComponent,K.TimelineMonthViewComponent,P.SelectableDirective,G.EditDialogComponent,W.CustomMessagesComponent,U.LocalizedMessagesDirective,$.GanttAddTaskComponent,M.DragValidationTooltipComponent,L.TimelineScrollableDirective,Y.DependenciesTableComponent,n.TaskFieldsComponent],f=i.__decorate([o.NgModule({imports:q.slice(),declarations:n.slice(),exports:n.slice(),entryComponents:[M.DragValidationTooltipComponent],providers:[{provide:m.L10N_PREFIX,useValue:"kendo.gantt"},{provide:v.TOUCH_ENABLED,useValue:f.touchEnabled}]})],X);function X(){}t.GanttModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditItem=function(t,e,n){e=e.find(function(e){return n.extractFromTask(e.data,"id")===n.extractFromTask(t,"id")});return i(e)};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}),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,o=n(2);(n=i=i||{})[n.Digit1=97]="Digit1",n[n.Digit2=98]="Digit2",n[n.Digit3=99]="Digit3",n[n.Digit4=100]="Digit4",t.isArrowUpDownKey=function(t){return[o.Keys.ArrowUp,o.Keys.ArrowDown].some(function(e){return t===e})},t.isNavigationKey=function(t){return[o.Keys.ArrowUp,o.Keys.ArrowDown,o.Keys.Home,o.Keys.End].some(function(e){return t===e})},t.isExpandCollapseKey=function(t,e){return e&&[o.Keys.ArrowLeft,o.Keys.ArrowRight].some(function(e){return t===e})},t.isViewDigitKey=function(t){return[o.Keys.Digit1,i.Digit1,o.Keys.Digit2,i.Digit2,o.Keys.Digit3,i.Digit3,o.Keys.Digit4,i.Digit4].some(function(e){return t===e})},t.getIndexFromViewDigitKeyCode=function(e){switch(e){case i.Digit1:case o.Keys.Digit1:return 0;case i.Digit2:case o.Keys.Digit2:return 1;case i.Digit3:case o.Keys.Digit3:return 2;case i.Digit4:case o.Keys.Digit4:return 3;default:return null}}},function(e,t){e.exports=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(o.prototype.preventDefault=function(){this.prevented=!0},o.prototype.isDefaultPrevented=function(){return this.prevented},o);function o(){this.prevented=!1}t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),o=(i=n(90).PreventableEvent,o.__extends(a,i),a);function a(e){var t=i.call(this)||this;return Object.assign(t,e),t}t.CellCloseEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.hasChildren=function(){return!1},t.fetchChildren=function(){return i.of([])},t.rowClassCallback=function(){return null},t.taskClassCallback=function(){return null},t.isSelected=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(17),c=n(15),d=n(36),l=n(25),p=n(56),n=n(34),l=(i=s.SpanColumnComponent,a.__extends(u,i),(o=u).prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},a.__decorate([r.ContentChildren(p.GanttColumnComponent),a.__metadata("design:type",r.QueryList)],u.prototype,"childColumns",void 0),a.__decorate([r.ContentChildren(d.CellTemplateDirective,{descendants:!1}),a.__metadata("design:type",r.QueryList)],u.prototype,"template",void 0),a.__decorate([r.ContentChildren(n.EditTemplateDirective,{descendants:!1}),a.__metadata("design:type",r.QueryList)],u.prototype,"editTemplate",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],u.prototype,"locked",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],u.prototype,"lockable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],u.prototype,"editable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],u.prototype,"hidden",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String)],u.prototype,"media",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],u.prototype,"style",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],u.prototype,"headerStyle",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],u.prototype,"footerStyle",void 0),a.__decorate([r.Input("class"),a.__metadata("design:type",Object)],u.prototype,"cssClass",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],u.prototype,"headerClass",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],u.prototype,"footerClass",void 0),o=a.__decorate([r.Component({selector:"kendo-gantt-span-column",template:"",providers:[{provide:l.GanttColumnBase,useExisting:r.forwardRef(function(){return o})}]}),a.__param(1,r.SkipSelf()),a.__param(1,r.Host()),a.__param(1,r.Optional()),a.__metadata("design:paramtypes",[c.OptionChangesService,l.GanttColumnBase])],u));function u(e,t){t=i.call(this,t)||this;return t.options=e,t.childColumns=new r.QueryList,t.template=new r.QueryList,t.editTemplate=new r.QueryList,t}t.GanttSpanColumnComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(0),r=n(1),s=n(17),c=n(15),d=n(25),n=n(35),d=(i=s.ColumnGroupComponent,a.__extends(l,i),(o=l).prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},a.__decorate([r.ContentChildren(d.GanttColumnBase),a.__metadata("design:type",r.QueryList)],l.prototype,"children",void 0),a.__decorate([r.ContentChildren(n.HeaderTemplateDirective),a.__metadata("design:type",r.QueryList)],l.prototype,"headerTemplates",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],l.prototype,"locked",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],l.prototype,"lockable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Boolean)],l.prototype,"hidden",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],l.prototype,"sortable",void 0),a.__decorate([r.Input(),a.__metadata("design:type",String)],l.prototype,"media",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],l.prototype,"style",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],l.prototype,"headerStyle",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],l.prototype,"footerStyle",void 0),a.__decorate([r.Input("class"),a.__metadata("design:type",Object)],l.prototype,"cssClass",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],l.prototype,"headerClass",void 0),a.__decorate([r.Input(),a.__metadata("design:type",Object)],l.prototype,"footerClass",void 0),o=a.__decorate([r.Component({selector:"kendo-gantt-column-group",template:"",providers:[{provide:d.GanttColumnBase,useExisting:r.forwardRef(function(){return o})}]}),a.__param(1,r.SkipSelf()),a.__param(1,r.Host()),a.__param(1,r.Optional()),a.__metadata("design:paramtypes",[c.OptionChangesService,d.GanttColumnBase])],l));function l(e,t){var n=i.call(this,t)||this;if(n.options=e,n.children=new r.QueryList,n.locked=!1,n.sortable=!0,t&&t.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent");return n}t.GanttColumnGroupComponent=d},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_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.packageMetadata={name:"@progress/kendo-angular-gantt",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642580546,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(20);t.GanttComponent=o.GanttComponent;o=n(85);t.GanttModule=o.GanttModule;o=n(46);t.GanttHierarchyBindingDirective=o.GanttHierarchyBindingDirective;o=n(47);t.GanttFlatBindingDirective=o.GanttFlatBindingDirective;o=n(45);t.GanttExpandableDirective=o.GanttExpandableDirective;o=n(42);t.DependencyDragCreateDirective=o.DependencyDragCreateDirective;o=n(30);t.GanttTaskTemplateDirective=o.GanttTaskTemplateDirective;o=n(28);t.GanttTaskContentTemplateDirective=o.GanttTaskContentTemplateDirective;o=n(29);t.GanttSummaryTaskTemplateDirective=o.GanttSummaryTaskTemplateDirective;o=n(27);t.ToolbarTemplateDirective=o.ToolbarTemplateDirective;o=n(44);t.SelectableDirective=o.SelectableDirective,i.__exportStar(n(51),t),i.__exportStar(n(37),t),function(e){for(var t in e)a(t,e[t])}(t)},function(e,t){e.exports=C}],i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=98)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-gantt",["tslib","@angular/core","@angular/common","@angular/forms","@progress/kendo-angular-layout","@progress/kendo-angular-treelist","@progress/kendo-angular-buttons","@progress/kendo-angular-common","@progress/kendo-angular-dialog","@progress/kendo-angular-popup","@progress/kendo-common","@progress/kendo-angular-grid","@progress/kendo-angular-dropdowns","@progress/kendo-date-math","@progress/kendo-licensing","rxjs","rxjs/operators","@progress/kendo-angular-intl","@progress/kendo-data-query"],function(o){var r,s,c,l,d,p,u,h,b,m,g,f,y,v,_,O,j,k,C;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){c=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){p=t(e)},function(e){u=t(e)},function(e){h=t(e)},function(e){b=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){f=t(e)},function(e){y=t(e)},function(e){v=t(e)},function(e){_=t(e)},function(e){O=t(e)},function(e){j=t(e)},function(e){k=t(e)},function(e){C=t(e)}],execute:function(){function i(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,a;a={},i.m=n=[function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=v},function(e,t){e.exports=h},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",function(){return r}),n.d(t,"ComponentMessages",function(){return s}),n.d(t,"L10N_PREFIX",function(){return l}),n.d(t,"LocalizationService",function(){return d}),n.d(t,"RTL",function(){return c});var i=n(0),t=n(1),a=n(5),o=n(7),r=(h.prototype.notify=function(e){this.changes.next({rtl:e})},h.prototype.get=function(e){},Object(i.__decorate)([Object(t.Injectable)()],h)),s=(Object.defineProperty(u.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),u.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},u.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(o.skip)(1)).subscribe(function(){return e.register(e)})},u.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},u.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},u),c=new t.InjectionToken("Kendo UI Right-to-Left token"),l=new t.InjectionToken("Localization key prefix"),d=(Object.defineProperty(p.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},p.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},p.prototype.register=function(e,t,n){void 0===n&&(n=!1);var i=this.key(e),e=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;e=this.defaultValue(i,t)}this.dictionary[i]=e},p.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},p.prototype.key=function(e){return this.prefix+"."+e},p.prototype.defaultValue=function(e,t){if(!this.messageService)return t;e=this.messageService.get(e);return void 0===e?t:e},Object(i.__decorate)([Object(t.Injectable)(),Object(i.__param)(0,Object(t.Inject)(l)),Object(i.__param)(1,Object(t.Optional)()),Object(i.__param)(2,Object(t.Optional)()),Object(i.__param)(2,Object(t.Inject)(c)),Object(i.__metadata)("design:paramtypes",[String,r,Boolean])],p));function p(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(o.map)(function(e){e=e.rtl;return void 0!==e?e:i._rtl}),Object(o.tap)(function(e){return i._rtl=e})).subscribe(function(e){i.dictionary={},i.changes.next({rtl:e})}))}function u(){}function h(){this.changes=new a.BehaviorSubject({rtl:void 0})}},function(e,t){e.exports=O},function(e,t){e.exports=l},function(e,t){e.exports=j},function(e,t){e.exports=k},function(e,t){e.exports=c},function(e,t){e.exports=_},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n,i=t(3),r=t(2),a=t(19);o.isWorkDay=function(e,t,n){return e.getDay()>=t&&e.getDay()<=n},o.isWorkHour=function(e,t,n){return e.getHours()>=t&&e.getHours()<=n},o.isPresent=function(e){return null!=e},o.normalizeGanttData=function(e){return o.isPresent(e)?Array.isArray(e.data)?e.data:e:[]},o.isArray=function(e){return Array.isArray(e)},o.setTime=function(e,t,n,i,a){if(void 0===n&&(n=0),void 0===i&&(i=0),void 0===a&&(a=0),!o.isPresent(e))return null;e=r.cloneDate(e);return e.setHours(t),e.setMinutes(n),e.setSeconds(i),e.setMilliseconds(a),e},o.lastDayOfWeek=function(e,t){e=r.addWeeks(e,1),t=r.firstDayInWeek(e,t);return r.addDays(t,-1)},o.scrollbarWidth=function(){var e;if(i.isDocumentAvailable())return isNaN(n)&&((e=document.createElement("div")).style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),n=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),n},o.isColumnGroup=function(e){return e.isColumnGroup},o.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},o.isString=function(e){return"string"==typeof e},o.getClosestTaskWrapper=function(e,t){return i.closestInScope(e,i.matchesClasses("k-task-wrap"),t)},o.isTaskWrapper=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task-wrap"),t);return o.isPresent(t)},o.getClosestTask=function(e,t){return i.closestInScope(e,i.matchesClasses("k-task"),t)},o.getClosestTaskIndex=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task-wrap"),t);return o.isPresent(t)?Number(t.getAttribute("data-task-index")):null},o.isTask=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task"),t);return o.isPresent(t)},o.isToolbar=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-gantt-toolbar"),t);return o.isPresent(t)},o.isClearButton=function(e,t){t=i.closestInScope(e,i.matchesClasses("k-task-actions"),t);return o.isPresent(t)},o.isDependencyDragClue=function(e){return!!o.isPresent(e)&&e.classList.contains("k-task-dot")},o.isDependencyDragStartClue=function(e){return!!o.isPresent(e)&&e.classList.contains("k-task-dot")&&e.classList.contains("k-task-start")},o.getDependencyTypeFromTargetTasks=function(e,t){if(!o.isDependencyDragClue(e)||!o.isDependencyDragClue(t))return null;switch((o.isDependencyDragStartClue(e)?"S":"F")+(o.isDependencyDragStartClue(t)?"S":"F")){case"FF":return a.DependencyType.FF;case"FS":return a.DependencyType.FS;case"SF":return a.DependencyType.SF;case"SS":return a.DependencyType.SS;default:return null}},o.sameTaskClues=function(e,t,n){return!(!o.isPresent(e)||!o.isPresent(t))&&o.getClosestTaskWrapper(e,n)===o.getClosestTaskWrapper(t,n)},o.fitToRange=function(e,t,n){return!o.isPresent(e)||e<t?t:n<e?n:e},o.areParentChild=function(e,t){for(var n=!1,i=e;o.isPresent(i)&&o.isPresent(i.data);){if(i.data===t.data){n=!0;break}i=i.parent}for(var a=t;!n&&o.isPresent(a)&&o.isPresent(a.data);){if(a.data===e.data){n=!0;break}a=a.parent}return n},o.elementFromPoint=function(e,t){return i.isDocumentAvailable()?document.elementFromPoint(e,t):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(14),r=n(96),s=n(95),c=n(11),a=(Object.defineProperty(l.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(l.prototype,"dependencyFields",{get:function(){return this._dependencyFields},set:function(e){this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),l.prototype.extractFromTask=function(e,t){return c.isPresent(this.taskFields)?o.getter(this.taskFields[t])(e):null},l.prototype.extractFromDependency=function(e,t){return c.isPresent(this.dependencyFields)?o.getter(this.dependencyFields[t])(e):null},i.__decorate([a.Injectable()],l));function l(){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS),this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS)}t.MappingService=a},function(e,t){e.exports=m},function(e,t){e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),i=(o.prototype.notifyColumnChanges=function(){this.columnChanges.emit()},o.prototype.notifyViewChanges=function(){this.viewChanges.emit()},i.__decorate([a.Injectable()],o));function o(){this.viewChanges=new a.EventEmitter,this.columnChanges=new a.EventEmitter}t.OptionChangesService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),n=n(12),n=(Object.defineProperty(r.prototype,"taskChanges",{get:function(){return this.notifier.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dependencyDomArgs",{get:function(){return{tasks:this.tasks,contentContainer:this.contentContainer,timelineRow:this.timelineRow}},enumerable:!0,configurable:!0}),r.prototype.ngOnDestroy=function(){this.tasks.clear(),this.tasks=null,this.contentContainer=null},r.prototype.registerTimelineRow=function(e){this.timelineRow=e,this.notifyChanges()},r.prototype.registerContentContainer=function(e){this.contentContainer=e,this.notifyChanges()},r.prototype.registerTask=function(e,t){e=this.mapper.extractFromTask(e,"id");this.tasks.set(e,t),this.notifyChanges()},r.prototype.unregisterTask=function(e){e=this.mapper.extractFromTask(e,"id");this.tasks.delete(e),this.notifyChanges()},r.prototype.notifyChanges=function(){this.notifier.next(this.dependencyDomArgs)},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.MappingService])],r));function r(e){this.mapper=e,this.notifier=new o.Subject,this.tasks=new Map}t.DependencyDomService=n},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(12),c=n(11),s=(Object.defineProperty(l.prototype,"dependencies",{get:function(){return this.predecessors.concat(this.successors)},set:function(e){var t=this,n=this.mapper.extractFromTask(this.dataItem,"id");this.predecessors=e.filter(function(e){return t.mapper.extractFromDependency(e,"toId")===n}),this.successors=e.filter(function(e){return t.mapper.extractFromDependency(e,"fromId")===n})},enumerable:!0,configurable:!0}),l.prototype.createEditDialog=function(e,t,n){this.dataItem=e,this.taskFormGroup=t,this.dependencies=n,this.showEditingDialog.next(!0)},l.prototype.closeEditDialog=function(){this.showEditingDialog.next(!1),this.dataItem=void 0,this.taskFormGroup=void 0,this.dependencies=[],this.updatedItems=[],this.deletedItems=[]},l.prototype.triggerEditEvent=function(e){this.editEvent.next({taskFormGroup:this.taskFormGroup,dataItem:this.dataItem,dependencies:{createdItems:this.getCreatedDependencies(),updatedItems:this.updatedItems,deletedItems:this.deletedItems},editResultType:e})},l.prototype.updateDependencies=function(e){var t;this.isNew(e)||(-1!==(t=this.itemIndex(e,this.updatedItems))?this.updatedItems.splice(t,1,e):this.updatedItems.push(e))},l.prototype.getCreatedDependencies=function(){var t=this;return this.dependencies.filter(function(e){return null===t.mapper.extractFromDependency(e,"id")})},l.prototype.deleteDependency=function(e){var t=this.itemIndex(e,this.updatedItems);-1!==t&&this.updatedItems.splice(t,1),this.isNew(e)||this.deletedItems.push(e)},l.prototype.loadTasks=function(e,t){var n=this;return void 0===t&&(t=!0),o.forkJoin(e.map(function(e){return n.getElementById(e)})).pipe(r.map(function(e){return e.reduce(function(e,t){return e.concat(c.normalizeGanttData(t))},[])}),r.expand(function(e){return e.some(function(e){return n.hasChildren(e)})?n.loadTasks(e,!1):o.EMPTY}),r.reduce(function(e,t){return e.concat(t)},t?e.slice():[]))},l.prototype.getElementById=function(e){e=this.fetchChildren(e);return o.isObservable(e)?e:o.of(e)},l.prototype.isNew=function(e){return!c.isPresent(this.mapper.extractFromDependency(e,"id"))},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[s.MappingService])],l));function l(e){var n=this;this.mapper=e,this.showEditingDialog=new o.Subject,this.taskDelete=new o.Subject,this.editEvent=new o.Subject,this.addEvent=new o.Subject,this.predecessors=[],this.successors=[],this.updatedItems=[],this.deletedItems=[],this.itemIndex=function(t,e){return e.findIndex(function(e){return n.mapper.extractFromTask(e,"id")===n.mapper.extractFromTask(t,"id")})}}t.EditService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.DependencyType||(t.DependencyType={}))[t.FF=0]="FF",t[t.FS=1]="FS",t[t.SF=2]="SF",t[t.SS=3]="SS"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,u=n(0),h=n(1),a=n(17),b=(n(2),n(5)),m=n(10),g=n(97),f=n(3),o=n(57),r=n(37),y=n(92),d=n(51),s=n(4),c=n(24),l=n(50),p=n(48),v=n(49),_=n(38),O=n(16),j=n(12),k=n(15),C=n(18),w=n(32),S=n(31),T=n(23),E=n(11),D=n(87),I=n(30),x=n(29),P=n(28),V=n(27),R=n(22),B=n(86),F={enabled:!0,step:3,interval:1,threshold:10},T=(i=M,Object.defineProperty(M.prototype,"toolbarTemplate",{get:function(){return this._customToolbarTemplate||(this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0)},set:function(e){this._customToolbarTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostRoleDescriptionAttr",{get:function(){return this.roleDescription},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hostRoleAttr",{get:function(){return this.role},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.updateTreeListGroupClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"taskModelFields",{set:function(e){this.mapper.taskFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"dependencyModelFields",{set:function(e){this.mapper.dependencyFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"activeView",{get:function(){var t=this;return this.views.find(function(e){return e.type===t._activeView})?this._activeView:this.views.first.type},set:function(e){this._activeView=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"data",{get:function(){return this._data},set:function(e){this._data=E.normalizeGanttData(e),this.loadTimelineData()},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"toolbarSettings",{get:function(){return this._toolbarSettings},set:function(e){this._toolbarSettings={position:e.position||"top",addTaskTool:e.addTaskTool||"none",viewSelectorTool:e.viewSelectorTool||"top"}},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"fetchChildren",{get:function(){return this._fetchChildren},set:function(e){this._fetchChildren=e,this.editService.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"hasChildren",{get:function(){return this._hasChildren},set:function(e){this._hasChildren=e,this.editService.hasChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"timelinePaneOptions",{get:function(){return u.__assign({},this._timelinePaneOptions,{size:this.treeListPaneOptions.collapsed?"100%":this._timelinePaneOptions.size})},set:function(e){this._timelinePaneOptions.collapsed&&!e.collapsed&&this.dependencyDomService.notifyChanges(),this._timelinePaneOptions=u.__assign({},D.DEFAULT_TIMELINE_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"treeListPaneOptions",{get:function(){return this._treeListPaneOptions},set:function(e){this._treeListPaneOptions=u.__assign({},D.DEFAULT_TREELIST_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"taskClass",{get:function(){return this._taskClass},set:function(e){if(h.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(M.prototype,"rowClass",{get:function(){return this._rowClass},set:function(e){if(h.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(M.prototype,"taskIdField",{get:function(){return this.mapper.taskFields.id},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"dragScrollSettings",{get:function(){return this._dragScrollSettings},set:function(e){this._dragScrollSettings=u.__assign({},F,e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"renderedTreeListItems",{get:function(){return E.isPresent(this.treeList)?this.treeList.view.data.map(function(e){return e.data}):[]},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"viewItems",{get:function(){return E.isPresent(this.treeList)?this.treeList.view.data:[]},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"filterMenu",{get:function(){return!!this.filterable&&"menu"},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"viewService",{get:function(){return this.views&&this.views.length?this.timelineViewService.service(this.activeView):null},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isTaskSelected",{get:function(){return(this.selectable?this:y).isSelected},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"idGetter",{get:function(){if(E.isPresent(this.treeList))return this.treeList.idGetter},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"viewTypes",{get:function(){return this.views.map(function(e){return e.type})},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"isInEditMode",{get:function(){return this.showEditingDialog||this.showConfirmationDialog||this.treeList.isEditing()},enumerable:!0,configurable:!0}),M.prototype.ngOnChanges=function(e){f.anyChanged(["data","activeView","workWeekStart","workWeekEnd","workDayStart","workDayEnd"],e)&&this.loadTimelineData()},M.prototype.ngAfterViewInit=function(){this.updateTreeListMargin(),this.navigable&&this.navigationService.initialize({gantt:this,host:this.hostElement.nativeElement,treeListElement:this.treeList.wrapper.nativeElement,timelineElement:this.timeline.timelineContent.nativeElement});var e=this.treeList.wrapper.nativeElement.querySelector("kendo-treelist-list > div");this.scrollSyncService.registerElement(e,"treelist")},M.prototype.ngAfterContentInit=function(){if(h.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-gantt>. Please, declare at least one view.");this.loadTimelineData(),this.updateTreeListGroupClass()},M.prototype.ngOnDestroy=function(){this.optionChangesSubscriptions.unsubscribe(),this.editServiceSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe()},M.prototype.focus=function(){this.navigable&&this.navigationService.focusLastActiveItem()},M.prototype.focusCell=function(e,t){this.navigable&&this.navigationService.focusCell(e,t)},M.prototype.focusTask=function(e){this.navigable&&this.navigationService.focusTask(e)},M.prototype.autoFitColumn=function(e){E.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},M.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),E.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},M.prototype.reload=function(e,t){E.isPresent(this.treeList)&&this.treeList.reload(e,t)},M.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),E.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},M.prototype.updateView=function(){E.isPresent(this.treeList)&&this.treeList.updateView(),this.loadTimelineData(),this.dependencyDomService.notifyChanges()},M.prototype.editTask=function(e,t){var n,i,a=this;this.showEditingDialog||(n=this.mapper.extractFromTask(e,"id"),i=this.dependencies.filter(function(e){return a.mapper.extractFromDependency(e,"toId")===n||a.mapper.extractFromDependency(e,"fromId")===n}),this.editService.createEditDialog(e,t,i))},M.prototype.closeTaskDialog=function(){this.showEditingDialog&&this.editService.closeEditDialog()},M.prototype.openConfirmationDialog=function(){this.showConfirmationDialog=!0},M.prototype.handleConfirmationDialogClose=function(){this.showConfirmationDialog=!1,this.navigable&&this.focus()},M.prototype.editCell=function(e,t,n){this.treeList.editCell(e,t,n)},M.prototype.closeCell=function(){this.treeList.closeCell()},M.prototype.handleCellClose=function(e){this.cellClose.emit(Object.assign(e,{item:this.editItem,sender:this})),this.dependencyDomService.notifyChanges()},M.prototype.onTreeListCollapsedChange=function(e){this.treeListPaneCollapsedChange.emit(e),e||this.scrollSyncService.syncScrollTop("timeline","treelist")},M.prototype.onTimelineCollapsedChange=function(e){this.timelinePaneCollapsedChange.emit(e),e||(this.scrollSyncService.syncScrollTop("treelist","timeline"),this.dependencyDomService.notifyChanges())},M.prototype.loadTimelineData=function(){var e,t;E.isPresent(this.viewService)&&(e=this.getActiveViewOptions(),this.viewService.options=u.__assign({workWeekStart:this.workWeekStart,workWeekEnd:this.workWeekEnd,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd},e),this.tableWidth=this.viewService.getTableWidth(this.data),e=(t=this.viewService.getSlots(this.data))[0],t=t[1],this.timelineSlots=t,this.timelineGroupSlots=e)},M.prototype.showToolbar=function(e){return"none"!==this.toolbarSettings.position&&-1<[e,"both"].indexOf(this.toolbarSettings.position)},M.prototype.handleColumnVisibilityChange=function(e){this.columnVisibilityChange.emit(e),this.updateTreeListGroupClass()},M.prototype.onTimelinePaneSizeChange=function(e){this._timelinePaneOptions.size=e,this.timelinePaneSizeChange.emit(e)},M.prototype.handleTimelineRightClick=function(e){var t,n,i=this,a=e.target,o=this.hostElement.nativeElement;E.isTask(a,o)&&!E.isClearButton(a,o)&&f.hasObservers(this.taskClick)&&(t=E.getClosestTaskIndex(a,o),n=this.renderedTreeListItems[t],this.zone.run(function(){return i.notifyTaskClick(e,n,t)}))},M.prototype.handleTimelineClick=function(e){var t,n,i,a=this,o=e.target,r=this.hostElement.nativeElement;E.isTask(o,r)&&!E.isClearButton(o,r)&&(t=E.getClosestTaskIndex(o,r),n=this.renderedTreeListItems[t],i=this.getSelectionAction(e,n),(f.hasObservers(this.selectionChange)&&!this.isSameSelection(i,n)||f.hasObservers(this.taskClick))&&this.zone.run(function(){a.notifySelectionChange(n,i),a.notifyTaskClick(e,n,t)}))},M.prototype.handleTreeListDoubleClick=function(e){var t=this;E.isPresent(this.lastTreeListCellClick)&&e.target===this.lastTreeListCellClick.originalEvent.target&&(this.editItem=B.getEditItem(this.lastTreeListCellClick.dataItem,this.treeList.view.data,this.mapper),f.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})}))},M.prototype.handleTreeListSelectionChange=function(e){var t;E.isPresent(this.lastTreeListCellClick)&&"contextmenu"===this.lastTreeListCellClick.type||(t=e.items.map(function(e){return e.dataItem})[0],e=e.action,this.notifySelectionChange(t,e))},M.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})},M.prototype.handleDeleteConfirmation=function(){this.editService.triggerEditEvent("remove")},M.prototype.handleTimelineMouseDown=function(e){var t=e.target,n=this.hostElement.nativeElement;E.isTask(t,n)&&!E.isClearButton(t,n)&&e.preventDefault()},M.prototype.handleTimelineDblClick=function(e){var t,n,i=this,a=e.target,o=this.hostElement.nativeElement;E.isTask(a,o)&&!E.isClearButton(a,o)&&f.hasObservers(this.taskDblClick)&&(t=E.getClosestTaskIndex(a,o),n=this.renderedTreeListItems[t],this.zone.run(function(){return i.taskDblClick.emit({dataItem:n,originalEvent:e,sender:i,index:t,type:"dblclick"})}))},M.prototype.getText=function(e){return this.localizationService.get(e)},M.prototype.changeActiveView=function(e){e!==this.activeView&&(this.activeView=e,this.loadTimelineData(),this.scrollSyncService.resetTimelineScrollLeft(),this.activeViewChange.emit(e))},M.prototype.notifyTaskClick=function(e,t,n){var i=e instanceof KeyboardEvent?"click":e.type;this.taskClick.emit({originalEvent:e,dataItem:t,index:n,type:i,sender:this})},M.prototype.notifySelectionChange=function(e,t){this.isSameSelection(t,e)||(this.selectionChange.emit({action:t,items:[e],sender:this}),this.treeList.updateView())},M.prototype.notifyTaskDelete=function(e){this.editService.dataItem=e,this.taskDelete.emit({item:B.getEditItem(e,this.treeList.view.data,this.mapper),sender:this})},M.prototype.isSameSelection=function(e,t){return"select"===e&&this.isSelected(t)},M.prototype.getSelectionAction=function(e,t){var n=e.ctrlKey,e=e.metaKey;return(n||e)&&this.isSelected(t)?"remove":"select"},M.prototype.updateTreeListGroupClass=function(e){void 0===e&&(e=this.columns),E.isPresent(this.treeList)&&(E.isPresent(e)&&0<e.length&&e.some(function(e){return E.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"))},M.prototype.updateTreeListMargin=function(){var e=this.treeList.wrapper.nativeElement.querySelector(".k-treelist .k-grid-content");this.renderer.setStyle(e,"margin-right",-Math.abs(E.scrollbarWidth()-1)+"px")},M.prototype.getActiveViewOptions=function(){var t=this;if(this.views)return this.views.find(function(e){return e.type===t.activeView})},M.prototype.getFirstSelectedItem=function(){var e=this.isSelected||y.isSelected;return(this.renderedTreeListItems||[]).find(e)},M.prototype.defaultValidateNewDependencyCallback=function(e){var n=this,i=this.mapper.extractFromDependency(e,"fromId"),a=this.mapper.extractFromDependency(e,"toId"),t=this.treeList.view.data.find(function(e){return n.mapper.extractFromTask(e.data,"id")===i}),o=this.treeList.view.data.find(function(e){return n.mapper.extractFromTask(e.data,"id")===a});if(!(E.isPresent(t)&&E.isPresent(t.data)&&E.isPresent(o)&&E.isPresent(o.data)&&t.data!==o.data))return!1;if(this.dependencies.some(function(e){var t=n.mapper.extractFromDependency(e,"fromId"),e=n.mapper.extractFromDependency(e,"toId");return i===t&&a===e||a===t&&i===e})||E.areParentChild(t,o))return!1;var r=this.mapper.extractFromTask(t.data,"start"),s=this.mapper.extractFromTask(t.data,"end"),c=this.mapper.extractFromTask(o.data,"start"),l=this.mapper.extractFromTask(o.data,"end");switch(this.mapper.extractFromDependency(e,"type")){case d.DependencyType.FF:return s<=l;case d.DependencyType.FS:return s<=c;case d.DependencyType.SF:return r<=l;case d.DependencyType.SS:return r<=c;default:return!1}},u.__decorate([h.ViewChild(a.TreeListComponent,{static:!0}),u.__metadata("design:type",a.TreeListComponent)],M.prototype,"treeList",void 0),u.__decorate([h.ViewChild(o.GanttTimelineComponent,{static:!1}),u.__metadata("design:type",o.GanttTimelineComponent)],M.prototype,"timeline",void 0),u.__decorate([h.ContentChild(P.GanttTaskContentTemplateDirective,{static:!0}),u.__metadata("design:type",P.GanttTaskContentTemplateDirective)],M.prototype,"taskContentTemplate",void 0),u.__decorate([h.ContentChild(I.GanttTaskTemplateDirective,{static:!0}),u.__metadata("design:type",I.GanttTaskTemplateDirective)],M.prototype,"taskTemplate",void 0),u.__decorate([h.ContentChild(x.GanttSummaryTaskTemplateDirective,{static:!0}),u.__metadata("design:type",x.GanttSummaryTaskTemplateDirective)],M.prototype,"summaryTaskTemplate",void 0),u.__decorate([h.ContentChildren(V.ToolbarTemplateDirective),u.__metadata("design:type",h.QueryList)],M.prototype,"toolbarTemplateChildren",void 0),u.__decorate([h.Input("aria-roledescription"),u.__metadata("design:type",String)],M.prototype,"roleDescription",void 0),u.__decorate([h.HostBinding("attr.aria-roledescription"),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[])],M.prototype,"hostRoleDescriptionAttr",null),u.__decorate([h.Input("role"),u.__metadata("design:type",String)],M.prototype,"role",void 0),u.__decorate([h.HostBinding("attr.role"),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[])],M.prototype,"hostRoleAttr",null),u.__decorate([h.HostBinding("class.k-gantt"),u.__metadata("design:type",Boolean)],M.prototype,"hostClasses",void 0),u.__decorate([h.HostBinding("attr.dir"),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[])],M.prototype,"dir",null),u.__decorate([h.ContentChildren(r.GanttColumnBase),u.__metadata("design:type",h.QueryList),u.__metadata("design:paramtypes",[h.QueryList])],M.prototype,"columns",null),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],M.prototype,"taskModelFields",null),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],M.prototype,"dependencyModelFields",null),u.__decorate([h.ContentChildren(R.ViewBase),u.__metadata("design:type",h.QueryList)],M.prototype,"views",void 0),u.__decorate([h.Input(),u.__metadata("design:type",String),u.__metadata("design:paramtypes",[String])],M.prototype,"activeView",null),u.__decorate([h.Input(),u.__metadata("design:type",Array),u.__metadata("design:paramtypes",[Array])],M.prototype,"data",null),u.__decorate([h.Input(),u.__metadata("design:type",Function)],M.prototype,"isSelected",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Function)],M.prototype,"validateNewDependency",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"selectionChange",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],M.prototype,"selectable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],M.prototype,"toolbarSettings",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],M.prototype,"fetchChildren",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],M.prototype,"hasChildren",null),u.__decorate([h.Input(),u.__metadata("design:type",Array)],M.prototype,"dependencies",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object)],M.prototype,"sortable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Array)],M.prototype,"sort",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],M.prototype,"filterable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object)],M.prototype,"filter",void 0),u.__decorate([h.Input(),u.__metadata("design:type",String)],M.prototype,"workDayStart",void 0),u.__decorate([h.Input(),u.__metadata("design:type",String)],M.prototype,"workDayEnd",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Number)],M.prototype,"workWeekStart",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Number)],M.prototype,"workWeekEnd",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],M.prototype,"navigable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],M.prototype,"timelinePaneOptions",null),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],M.prototype,"treeListPaneOptions",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],M.prototype,"taskClass",null),u.__decorate([h.Input(),u.__metadata("design:type",Function),u.__metadata("design:paramtypes",[Function])],M.prototype,"rowClass",null),u.__decorate([h.Input(),u.__metadata("design:type",Function)],M.prototype,"isExpanded",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],M.prototype,"columnsAutoSize",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object)],M.prototype,"columnMenu",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],M.prototype,"columnsReorderable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Boolean)],M.prototype,"columnsResizable",void 0),u.__decorate([h.Input(),u.__metadata("design:type",Object),u.__metadata("design:paramtypes",[Object])],M.prototype,"dragScrollSettings",null),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"rowExpand",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"taskDblClick",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"cellDblClick",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"cellClose",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"taskDelete",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"rowCollapse",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"remove",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"cancel",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"save",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"taskAdd",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"dependencyAdd",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"sortChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"filterChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"dataStateChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"treeListPaneCollapsedChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"timelinePaneCollapsedChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"timelinePaneSizeChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"activeViewChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"columnResize",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"columnReorder",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"columnVisibilityChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"columnLockedChange",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"cellClick",void 0),u.__decorate([h.Output(),u.__metadata("design:type",h.EventEmitter)],M.prototype,"taskClick",void 0),i=u.__decorate([h.Component({selector:"kendo-gantt",exportAs:"kendoGantt",providers:[S.GanttLocalizationService,s.LocalizationService,{provide:a.DataBoundTreeComponent,useExisting:h.forwardRef(function(){return i})},{provide:a.ExpandableTreeComponent,useExisting:h.forwardRef(function(){return i})},c.TimelineViewService,l.TimelineDayViewService,p.TimelineWeekViewService,v.TimelineMonthViewService,_.ScrollSyncService,O.DependencyDomService,j.MappingService,k.OptionChangesService,C.EditService,w.TimelineScrollService,T.NavigationService],template:'\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle="kendo.gantt.taskEditingGeneralTabTitle|The title of the \'General\' tab of the editing dialog TabStrip"\n taskEditingGeneralTabTitle="General"\n\n i18n-taskEditingPredecessorsTabTitle="kendo.gantt.taskEditingPredecessorsTabTitle|The title of the \'Predecessors\' dependencies tab of the editing dialog TabStrip"\n taskEditingPredecessorsTabTitle="Predecessors"\n\n i18n-taskEditingSuccessorsTabTitle="kendo.gantt.taskEditingSuccessorsTabTitle|The title of the \'Successors\' dependencies tab of the editing dialog TabStrip"\n taskEditingSuccessorsTabTitle="Successors"\n\n i18n-taskEditingDependenciesAddButtonText="kendo.gantt.taskEditingDependenciesAddButtonText|The text of the \'Add\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesAddButtonText="Add"\n\n i18n-taskEditingDependenciesRemoveButtonText="kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the \'Remove\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesRemoveButtonText="Remove"\n\n i18n-taskEditingDependenciesGridNameColumnTitle="kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the \'Task Title\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridNameColumnTitle="Task Title"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle="kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the \'Type\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridTypeColumnTitle="Type"\n\n i18n-taskDeleteLabel="kendo.gantt.taskDeleteLabel|The label of the task delete icon"\n taskDeleteLabel="Delete"\n\n i18n-taskEditingDialogTitle="kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog"\n taskEditingDialogTitle="Editing Task"\n\n i18n-taskEditingDialogCloseTitle="kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button"\n taskEditingDialogCloseTitle="Close"\n\n i18n-confirmationDialogCloseTitle="kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button"\n confirmationDialogCloseTitle="Close"\n\n i18n-confirmationDialogTitle="kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog"\n confirmationDialogTitle="Delete Task"\n\n i18n-confirmationDialogContent="kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog"\n confirmationDialogContent="Are you sure you want to delete this task?"\n\n i18n-deleteButtonText="kendo.gantt.deleteButtonText|The text of the task editing dialog \'Delete\' button"\n deleteButtonText="Delete"\n\n i18n-cancelButtonText="kendo.gantt.cancelButtonText|The text of the task editing dialog \'Cancel\' button"\n cancelButtonText="Cancel"\n\n i18n-saveButtonText="kendo.gantt.saveButtonText|The text of the task editing dialog \'Save\' button"\n saveButtonText="Save"\n\n i18n-titleFieldInputLabel="kendo.gantt.titleFieldInputLabel|The label of the \'title\' field input in editing mode"\n titleFieldInputLabel="Title"\n\n i18n-startFieldInputLabel="kendo.gantt.startFieldInputLabel|The label of the \'start\' field input in editing mode"\n startFieldInputLabel="Start"\n\n i18n-endFieldInputLabel="kendo.gantt.endFieldInputLabel|The label of the \'end\' field input in editing mode"\n endFieldInputLabel="End"\n\n i18n-completionRatioFieldInputLabel="kendo.gantt.completionRatioFieldInputLabel|The label of the \'completionRatio\' field input in editing mode"\n completionRatioFieldInputLabel="Progress"\n\n i18n-dayViewText="kendo.gantt.dayViewText|The text of the day view in the ViewSelector component"\n dayViewText="Day"\n\n i18n-weekViewText="kendo.gantt.weekViewText|The text of the week view in the ViewSelector component"\n weekViewText="Week"\n\n i18n-monthViewText="kendo.gantt.monthViewText|The text of the month view in the ViewSelector component"\n monthViewText="Month"\n\n i18n-yearViewText-disabled="kendo.gantt.yearViewText|The text of the year view in the ViewSelector component"\n yearViewText="Year"\n\n i18n-addTaskText="kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component"\n addTaskText="Add Task"\n\n i18n-addChildText="kendo.gantt.addChildText|The text of the \'Add Child\' option in the AddTask component"\n addChildText="Add Child"\n\n i18n-addAboveText="kendo.gantt.addAboveText|The text of the \'Add Above\' option in the AddTask component"\n addAboveText="Add Above"\n\n i18n-addBelowText="kendo.gantt.addBelowText|The text of the \'Add Below\' option in the AddTask component"\n addBelowText="Add Below"\n\n i18n-noRecords="kendo.gantt.noRecords|The label visible in the TreeList when there are no records"\n noRecords="No records available."\n\n i18n-filter="kendo.gantt.filter|The label of the filter cell or icon"\n filter="Filter"\n\n i18n-filterEqOperator="kendo.gantt.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.gantt.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.gantt.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.gantt.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterGteOperator="kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator"\n filterGteOperator="Is greater than or equal to"\n\n i18n-filterGtOperator="kendo.gantt.filterGtOperator|The text of the greater than filter operator"\n filterGtOperator="Is greater than"\n\n i18n-filterLteOperator="kendo.gantt.filterLteOperator|The text of the less than or equal filter operator"\n filterLteOperator="Is less than or equal to"\n\n i18n-filterLtOperator="kendo.gantt.filterLtOperator|The text of the less than filter operator"\n filterLtOperator="Is less than"\n\n i18n-filterIsTrue="kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option"\n filterIsTrue="Is True"\n\n i18n-filterIsFalse="kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option"\n filterIsFalse="Is False"\n\n i18n-filterBooleanAll="kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option"\n filterBooleanAll="(All)"\n\n i18n-filterAfterOrEqualOperator="kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator"\n filterAfterOrEqualOperator="Is after or equal to"\n\n i18n-filterAfterOperator="kendo.gantt.filterAfterOperator|The text of the after date filter operator"\n filterAfterOperator="Is after"\n\n i18n-filterBeforeOperator="kendo.gantt.filterBeforeOperator|The text of the before date filter operator"\n filterBeforeOperator="Is before"\n\n i18n-filterBeforeOrEqualOperator="kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator"\n filterBeforeOrEqualOperator="Is before or equal to"\n\n i18n-filterFilterButton="kendo.gantt.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.gantt.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-filterAndLogic="kendo.gantt.filterAndLogic|The text of the And filter logic"\n filterAndLogic="And"\n\n i18n-filterOrLogic="kendo.gantt.filterOrLogic|The text of the Or filter logic"\n filterOrLogic="Or"\n\n i18n-loading="kendo.gantt.loading|The loading text"\n loading="Loading"\n\n i18n-columnMenu="kendo.gantt.columnMenu|The title of the column menu icon"\n columnMenu="Column Menu"\n\n i18n-columns="kendo.gantt.columns|The text shown in the column menu for the columns item"\n columns="Columns"\n\n i18n-lock-disabled="kendo.gantt.lock|The text shown in the column menu for the lock item"\n lock-disabled="Lock"\n\n i18n-unlock-disabled="kendo.gantt.unlock|The text shown in the column menu for the unlock item"\n unlock-disabled="Unlock"\n\n i18n-sortable="kendo.gantt.sortable|The label of the sort icon"\n sortable="Sortable"\n\n i18n-sortAscending="kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item"\n sortAscending="Sort Ascending"\n\n i18n-sortDescending="kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item"\n sortDescending="Sort Descending"\n\n i18n-sortedAscending="kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending"\n sortedAscending="Sorted Ascending"\n\n i18n-sortedDescending="kendo.gantt.sortedDescending|The status announcement when a column is sorted descending"\n sortedDescending="Sorted Descending"\n\n i18n-sortedDefault="kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted"\n sortedDefault="Not Sorted"\n\n i18n-columnsApply="kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button"\n columnsApply="Apply"\n\n i18n-columnsReset="kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button"\n columnsReset="Reset"></ng-container>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'top\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'top\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'top\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-header k-toolbar k-gantt-toolbar"\n position="top"></kendo-gantt-toolbar>\n <div class="k-gantt-content">\n <kendo-splitter [style.border]="0">\n <kendo-splitter-pane\n class="k-gantt-treelist k-gantt-treelist-scrollable"\n [collapsible]="treeListPaneOptions?.collapsible"\n [collapsed]="treeListPaneOptions?.collapsed"\n (collapsedChange)="onTreeListCollapsedChange($event)"\n [scrollable]="false">\n <kendo-treelist\n [idField]="taskIdField"\n [columns]="columns"\n [data]="data"\n [hasChildren]="hasChildren"\n [fetchChildren]="fetchChildren"\n [navigable]="navigable"\n [isExpanded]="isExpanded"\n [autoSize]="columnsAutoSize"\n [columnMenu]="columnMenu"\n [reorderable]="columnsReorderable"\n [resizable]="columnsResizable"\n [rowClass]="rowClass"\n [isSelected]="isSelected"\n [selectable]="selectable"\n [sortable]="sortable"\n [sort]="sort"\n [filterable]="filterMenu"\n [filter]="filter"\n (filterChange)="filterChange.emit($event)"\n (sortChange)="sortChange.emit($event)"\n (dataStateChange)="dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })"\n (expandStateChange)="expandStateChange.emit($event)"\n (expand)="rowExpand.emit({ dataItem: $event.dataItem })"\n (collapse)="rowCollapse.emit({ dataItem: $event.dataItem })"\n (columnReorder)="columnReorder.emit($event)"\n (columnResize)="columnResize.emit($event)"\n (columnVisibilityChange)="handleColumnVisibilityChange($event)"\n (columnLockedChange)="columnLockedChange.emit($event)"\n (selectionChange)="handleTreeListSelectionChange($event)"\n (cellClick)="handleTreeListCellClick($event)"\n (cellClose)="handleCellClose($event)"\n [kendoEventsOutsideAngular]="{\n dblclick: handleTreeListDoubleClick\n }"\n [scope]="this"\n >\n <kendo-treelist-messages\n [noRecords]="getText(\'noRecords\')"\n [filter]="getText(\'filter\')"\n [filterEqOperator]="getText(\'filterEqOperator\')"\n [filterNotEqOperator]="getText(\'filterNotEqOperator\')"\n [filterIsNullOperator]="getText(\'filterIsNullOperator\')"\n [filterIsNotNullOperator]="getText(\'filterIsNotNullOperator\')"\n [filterIsEmptyOperator]="getText(\'filterIsEmptyOperator\')"\n [filterIsNotEmptyOperator]="getText(\'filterIsNotEmptyOperator\')"\n [filterStartsWithOperator]="getText(\'filterStartsWithOperator\')"\n [filterContainsOperator]="getText(\'filterContainsOperator\')"\n [filterNotContainsOperator]="getText(\'filterNotContainsOperator\')"\n [filterEndsWithOperator]="getText(\'filterEndsWithOperator\')"\n [filterGteOperator]="getText(\'filterGteOperator\')"\n [filterGtOperator]="getText(\'filterGtOperator\')"\n [filterLteOperator]="getText(\'filterLteOperator\')"\n [filterLtOperator]="getText(\'filterLtOperator\')"\n [filterIsTrue]="getText(\'filterIsTrue\')"\n [filterIsFalse]="getText(\'filterIsFalse\')"\n [filterBooleanAll]="getText(\'filterBooleanAll\')"\n [filterAfterOrEqualOperator]="getText(\'filterAfterOrEqualOperator\')"\n [filterAfterOperator]="getText(\'filterAfterOperator\')"\n [filterBeforeOperator]="getText(\'filterBeforeOperator\')"\n [filterBeforeOrEqualOperator]="getText(\'filterBeforeOrEqualOperator\')"\n [filterFilterButton]="getText(\'filterFilterButton\')"\n [filterClearButton]="getText(\'filterClearButton\')"\n [filterAndLogic]="getText(\'filterAndLogic\')"\n [filterOrLogic]="getText(\'filterOrLogic\')"\n [loading]="getText(\'loading\')"\n [columnMenu]="getText(\'columnMenu\')"\n [columns]="getText(\'columns\')"\n [sortable]="getText(\'sortable\')"\n [sortAscending]="getText(\'sortAscending\')"\n [sortDescending]="getText(\'sortDescending\')"\n [sortedAscending]="getText(\'sortedAscending\')"\n [sortedDescending]="getText(\'sortedDescending\')"\n [sortedDefault]="getText(\'sortedDefault\')"\n [columnsApply]="getText(\'columnsApply\')"\n [columnsReset]="getText(\'columnsReset\')"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]="timelinePaneOptions?.collapsible"\n [resizable]="timelinePaneOptions?.resizable"\n [collapsed]="timelinePaneOptions?.collapsed"\n [min]="timelinePaneOptions?.min"\n [max]="timelinePaneOptions?.max"\n [size]="timelinePaneOptions?.size"\n (collapsedChange)="onTimelineCollapsedChange($event)"\n (sizeChange)="onTimelinePaneSizeChange($event)"\n [scrollable]="false">\n <kendo-gantt-timeline\n *ngIf="views && views.length"\n [renderDependencyDragClues]="renderDependencyDragClues"\n [dragScrollSettings]="dragScrollSettings"\n [rows]="viewItems"\n [slots]="timelineSlots"\n [groupSlots]="timelineGroupSlots"\n [tableWidth]="tableWidth"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate?.templateRef"\n [taskTemplate]="taskTemplate?.templateRef"\n [summaryTaskTemplate]="summaryTaskTemplate?.templateRef"\n [taskClass]="taskClass"\n [dependencies]="dependencies"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [kendoEventsOutsideAngular]="{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }"\n [scope]="this"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'bottom\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'bottom\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'bottom\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-footer k-toolbar k-gantt-toolbar"\n position="bottom"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf="showEditingDialog"\n [data]="data">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf="showConfirmationDialog"\n [width]="575"\n [height]="170"\n [title]="getText(\'confirmationDialogTitle\')"\n (close)="handleConfirmationDialogClose()">\n <span>{{ getText(\'confirmationDialogContent\') }}</span>\n <kendo-dialog-actions layout="normal">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleDeleteConfirmation()">{{ getText(\'deleteButtonText\') }}</button>\n <button kendoButton (click)="handleConfirmationDialogClose()">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),u.__metadata("design:paramtypes",[c.TimelineViewService,_.ScrollSyncService,h.Renderer2,j.MappingService,k.OptionChangesService,O.DependencyDomService,C.EditService,s.LocalizationService,h.ElementRef,h.NgZone,T.NavigationService])],M));function M(e,t,n,i,a,o,r,s,c,l,d){var p=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=i,this.optionChangesService=a,this.dependencyDomService=o,this.editService=r,this.localizationService=s,this.hostElement=c,this.zone=l,this.navigationService=d,this.roleDescription="Gantt Chart",this.role="application",this.hostClasses=!0,this.isSelected=y.isSelected,this.validateNewDependency=this.defaultValidateNewDependencyCallback.bind(this),this.selectionChange=new h.EventEmitter,this.selectable=!1,this.dependencies=[],this.sortable=!1,this.sort=[],this.filterable=!1,this.workDayStart="08:00",this.workDayEnd="17:00",this.workWeekStart=1,this.workWeekEnd=5,this.navigable=!1,this.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new h.EventEmitter,this.taskDblClick=new h.EventEmitter,this.cellDblClick=new h.EventEmitter,this.cellClose=new h.EventEmitter,this.taskDelete=new h.EventEmitter,this.rowCollapse=new h.EventEmitter,this.remove=new h.EventEmitter,this.cancel=new h.EventEmitter,this.save=new h.EventEmitter,this.taskAdd=new h.EventEmitter,this.dependencyAdd=new h.EventEmitter,this.sortChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.dataStateChange=new h.EventEmitter,this.treeListPaneCollapsedChange=new h.EventEmitter,this.timelinePaneCollapsedChange=new h.EventEmitter,this.timelinePaneSizeChange=new h.EventEmitter,this.activeViewChange=new h.EventEmitter,this.columnResize=new h.EventEmitter,this.columnReorder=new h.EventEmitter,this.columnVisibilityChange=new h.EventEmitter,this.columnLockedChange=new h.EventEmitter,this.cellClick=new h.EventEmitter,this.taskClick=new h.EventEmitter,this.renderDependencyDragClues=!1,this.expandStateChange=new h.EventEmitter,this.showEditingDialog=!1,this.showConfirmationDialog=!1,this._columns=new h.QueryList,this._data=[],this._dragScrollSettings=u.__assign({},F),this._timelinePaneOptions=u.__assign({},D.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=u.__assign({},D.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=y.rowClassCallback,this._taskClass=y.taskClassCallback,this._activeView="week",this._toolbarSettings={position:"top",addTaskTool:"none",viewSelectorTool:"top"},this._fetchChildren=y.fetchChildren,this._hasChildren=y.hasChildren,this.rtl=!1,this.optionChangesSubscriptions=new b.Subscription,this.editServiceSubscription=new b.Subscription,m.validatePackage(g.packageMetadata),this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe(function(){p.loadTimelineData()})),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe(function(){p.treeList.columns.notifyOnChanges()})),this.editService.getSelectedItem=this.getFirstSelectedItem.bind(this),this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe(function(e){return p.showEditingDialog=e})),this.editServiceSubscription.add(this.editService.taskDelete.subscribe(function(e){f.hasObservers(p.taskDelete)&&p.zone.run(function(){return p.notifyTaskDelete(e)})})),this.editServiceSubscription.add(this.editService.editEvent.subscribe(function(e){p[e.editResultType].emit({taskFormGroup:e.taskFormGroup,item:B.getEditItem(e.dataItem,p.treeList.view.data,p.mapper),dependencies:e.dependencies,sender:p}),p.showConfirmationDialog=p.showEditingDialog=!1,p.editService.dataItem=p.editService.taskFormGroup=null,p.updateView(),p.navigable&&p.focus()})),this.editServiceSubscription.add(this.editService.addEvent.subscribe(function(e){var t=p.getFirstSelectedItem();p.taskAdd.emit({actionType:e.actionType,selectedItem:t?B.getEditItem(t,p.treeList.view.data,p.mapper):null}),p.updateView()})),this.localizationSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;p.rtl=e,p.direction=p.rtl?"rtl":"ltr"})}t.GanttComponent=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(1);t.TOUCH_ENABLED=new n.InjectionToken("gantt-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),i=(r.prototype.ngOnChanges=function(e){o.anyChanged(["slotWidth"],e)&&(this.optionChangesService.notifyColumnChanges(),this.dependencyDomService.notifyChanges())},i.__decorate([a.Input(),i.__metadata("design:type",Number)],r.prototype,"slotWidth",void 0),r);function r(e,t){this.optionChangesService=e,this.dependencyDomService=t,this.slotWidth=100}t.ViewBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var m=n(0),i=n(1),g=n(3),a=n(5),o=n(38),f=n(11),y=n(88),o=(Object.defineProperty(r.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeTask",{get:function(){return{activeIndex:this.activeTimelineIndex,isFocused:this.isTimelineFocused}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeTreeListCell",{get:function(){var e=this.treeListHeaderRowsCount+this.gantt.treeList.view.data.length-1,t=f.fitToRange(this._activeTreeListCell.rowIndex,0,e),e=this.gantt.columns.length;return{rowIndex:t,colIndex:f.fitToRange(this._activeTreeListCell.colIndex,0,e)}},set:function(e){this._activeTreeListCell=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeTimelineIndex",{get:function(){var e=this.gantt.treeList.view.data.length-1;return f.fitToRange(this._activeTimelineIndex,0,e)},set:function(e){this._activeTimelineIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"treeListHeaderRowsCount",{get:function(){return this.treeListElement.querySelectorAll(".k-grid-header tr").length},enumerable:!0,configurable:!0}),r.prototype.initialize=function(e){var t=this,n=e.gantt,i=e.host,a=e.treeListElement,e=e.timelineElement;this._enabled=!0,this.gantt=n,this.host=i,this.treeListElement=a,this.timelineElement=e;e=this.host.querySelector(".k-splitbar");f.isPresent(e)&&f.isPresent(e.previousElementSibling)&&f.isPresent(e.after)&&e.after(e.previousElementSibling),this.zone.runOutsideAngular(function(){t.eventListenerDisposers=[t.renderer.listen(t.host,"keydown",t.handleKeydown.bind(t)),t.renderer.listen(t.treeListElement,"mousedown",t.focusTreeList.bind(t)),t.renderer.listen(t.treeListElement,"focusin",t.handleTreeListFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"mousedown",t.handleTimelineMousedown.bind(t)),t.renderer.listen(t.timelineElement,"focusin",t.handleTimelineFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"focusout",t.handleTimelineFocusOut.bind(t))]})},r.prototype.ngOnDestroy=function(){f.isPresent(this.eventListenerDisposers)&&(this.eventListenerDisposers.forEach(function(e){return e()}),this.eventListenerDisposers=null),this.gantt=null,this.host=null,this.treeListElement=null,this.timelineElement=null},r.prototype.focusLastActiveItem=function(){var e,t;0===this.gantt.data.length||!this.treeListLastActive&&!this.timelineLastActive?this.focusCell(0,0):this.treeListLastActive?(e=(t=this.activeTreeListCell).rowIndex,t=t.colIndex,this.gantt.treeList.focusCell(e,t)):this.timelineLastActive&&this.focusTask(this.activeTimelineIndex)},r.prototype.focusCell=function(e,t){this.activeTreeListCell={rowIndex:e,colIndex:t},this.activeTimelineIndex=e-this.treeListHeaderRowsCount,this.gantt.treeList.focusCell(this.activeTreeListCell.rowIndex,this.activeTreeListCell.colIndex)},r.prototype.focusTask=function(e){this.activeTimelineIndex=e,this.isTimelineFocused=!0,this.activeTreeListCell={rowIndex:e+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex},this.notifyTaskStatusChange()},r.prototype.handleTimelineFocusIn=function(e){e=e.target;this.treeListLastActive=!1,this.timelineLastActive=!0,this.isTimelineFocused=!0,f.isTask(e,this.timelineElement)&&this.notifyTaskStatusChange()},r.prototype.handleTimelineFocusOut=function(e){e=e.relatedTarget;this.isTimelineFocused=this.timelineElement.contains(e),f.isTask(e,this.timelineElement)||this.notifyTaskStatusChange()},r.prototype.handleTreeListFocusIn=function(e){var t,n,i;this.treeListLastActive=!0,this.timelineLastActive=!1,this.treeListElement.contains(e.relatedTarget)?(i=(t=this.gantt.treeList.activeCell).colIndex,n=t.rowIndex,this.activeTreeListCell={colIndex:i,rowIndex:n}):(n=(t=this.activeTreeListCell).rowIndex,i=t.colIndex,this.gantt.treeList.focusCell(n,i)),this.activeTimelineIndex=this.gantt.treeList.activeCell.dataRowIndex,this.notifyTaskStatusChange(),0<=this.gantt.treeList.activeCell.dataRowIndex&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("treelist","timeline"))},r.prototype.handleKeydown=function(e){var t,n,i,a,o,r,s=this,c=e.keyCode,l=e.target,d=e.altKey,p=this.timelineElement.contains(l);p&&(y.isArrowUpDownKey(c)?(t=c===g.Keys.ArrowUp?-1:1,this.activeTimelineIndex=this.activeTimelineIndex+t,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}):c===g.Keys.Home?(this.activeTimelineIndex=0,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}):c===g.Keys.End&&(t=this.gantt.treeList.view.data.length-1,this.activeTimelineIndex=t,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}),y.isNavigationKey(c)&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("timeline","treelist"),this.notifyTaskStatusChange(),e.preventDefault()),c===g.Keys.Space&&g.hasObservers(this.gantt.selectionChange)&&(n=this.gantt.renderedTreeListItems[this.activeTimelineIndex],i=this.gantt.getSelectionAction(e,n),f.isPresent(n)&&!this.gantt.isSameSelection(i,n)&&this.zone.run(function(){return s.gantt.notifySelectionChange(n,i)}),e.preventDefault()),c===g.Keys.Enter&&g.hasObservers(this.gantt.taskClick)&&(a=this.gantt.renderedTreeListItems[this.activeTimelineIndex],f.isPresent(a)&&this.zone.run(function(){return s.gantt.notifyTaskClick(e,a,s.activeTimelineIndex)}),e.preventDefault()),y.isExpandCollapseKey(c,d)&&(o=this.gantt.renderedTreeListItems[this.activeTimelineIndex],f.isPresent(o)&&this.gantt.hasChildren(o)&&(r=c===g.Keys.ArrowRight,b=this.gantt.isExpanded(o),r===b||this.zone.run(function(){var e={dataItem:o};(r?s.gantt.rowExpand:s.gantt.rowCollapse).emit(e),s.gantt.expandStateChange.emit(m.__assign({},e,{expand:r})),s.gantt.updateView(),s.scrollHorizontallyToTask(s.activeTimelineIndex)})),e.preventDefault()));var u,h,b=this.treeListElement.contains(l);c===g.Keys.Delete&&(p||b)&&g.hasObservers(this.gantt.taskDelete)&&(b=b?this.gantt.treeList.activeCell.dataRowIndex:this.activeTimelineIndex,u=this.gantt.renderedTreeListItems[b],f.isPresent(u)&&this.zone.run(function(){return s.gantt.notifyTaskDelete(u)})),!y.isViewDigitKey(c)||f.isToolbar(l,this.host)||this.gantt.isInEditMode||(c=y.getIndexFromViewDigitKeyCode(c),h=this.gantt.views.toArray()[c],f.isPresent(h)&&h.type!==this.gantt.activeView&&this.zone.run(function(){return s.gantt.changeActiveView(h.type)}))},r.prototype.handleTimelineMousedown=function(e){var e=e.target;f.isTask(e,this.host)&&!f.isClearButton(e,this.host)&&(e=f.getClosestTaskIndex(e,this.host),this.focusTask(e))},r.prototype.scrollHorizontallyToTask=function(e){var t,n=this.timelineElement.querySelectorAll(".k-task-wrap").item(e);f.isPresent(n)&&(t=this.timelineElement.clientWidth+this.timelineElement.scrollLeft<n.offsetLeft+200,e=this.timelineElement.scrollLeft>n.offsetLeft,(t||e)&&(this.timelineElement.scrollLeft=n.offsetLeft))},r.prototype.focusTreeList=function(){this.gantt.treeList.focus()},r.prototype.notifyTaskStatusChange=function(){this.taskStatusChanges.next(this.activeTask)},m.__decorate([i.Injectable(),m.__metadata("design:paramtypes",[i.NgZone,i.Renderer2,o.ScrollSyncService])],r));function r(e,t,n){this.zone=e,this.renderer=t,this.scrollSyncService=n,this.taskStatusChanges=new a.Subject,this.isTimelineFocused=!1,this.treeListLastActive=!1,this.timelineLastActive=!1,this._enabled=!1,this._activeTimelineIndex=0,this._activeTreeListCell={rowIndex:0,colIndex:0}}t.NavigationService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(50),r=n(49),n=n(48),s={day:o.TimelineDayViewService,week:n.TimelineWeekViewService,month:r.TimelineMonthViewService},i=(c.prototype.service=function(e){e=s[e];return e?this.injector.get(e):null},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.Injector])],c));function c(e){this.injector=e,this.viewChange=new a.EventEmitter}t.TimelineViewService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),a=(i=n(17).ColumnBase,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],r.prototype,"locked",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],r.prototype,"lockable",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],r.prototype,"hidden",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"media",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],r.prototype,"style",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],r.prototype,"headerStyle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],r.prototype,"footerStyle",void 0),a.__decorate([o.Input("class"),a.__metadata("design:type",Object)],r.prototype,"cssClass",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],r.prototype,"headerClass",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],r.prototype,"footerClass",void 0),r);function r(){var e=null!==i&&i.apply(this,arguments)||this;return e.locked=!1,e}t.GanttColumnBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),s=n(5),r=n(11),c={day:o.MS_PER_HOUR,week:o.MS_PER_DAY,month:7*o.MS_PER_DAY},i=(Object.defineProperty(l.prototype,"taskIndexAttribute",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"ariaSelected",{get:function(){return this.selectable?String(this.isSelected(this.dataItem)):null},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"slotUnitDuration",{get:function(){return c[this.activeView]},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"viewService",{get:function(){return this.timelineViewService.service(this.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"slotWidth",{get:function(){return this.viewService.options.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"taskOffset",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"start")-this.viewService.viewStart)/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"completionOverlayWidth",{get:function(){var e=this.taskWidth*this.mapper.extractFromTask(this.dataItem,"completionRatio");return r.isNumber(e)?e:0},enumerable:!0,configurable:!0}),l.prototype.ngOnChanges=function(e){r.isPresent(e.dataItem)?(r.isPresent(e.dataItem.previousValue)&&this.dependencyDomService.unregisterTask(e.dataItem.previousValue),this.dependencyDomService.registerTask(this.dataItem,this.taskElement.nativeElement)):r.isPresent(e.activeView)&&this.dependencyDomService.notifyChanges(),this.navigationService.enabled&&r.isPresent(e.index)&&this.updateActiveState(this.navigationService.activeTask)},l.prototype.ngOnDestroy=function(){r.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.subscriptions.unsubscribe()},l.prototype.updateActiveState=function(e){var t=e.activeIndex,e=e.isFocused,t=t===this.index;this.taskElement.nativeElement.setAttribute("tabindex",t?"0":"-1"),t&&e?(this.taskElement.nativeElement.focus(),this.taskElement.nativeElement.classList.add("k-focus")):this.taskElement.nativeElement.classList.remove("k-focus")},i.__decorate([a.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],l.prototype,"wrapperClass",void 0),i.__decorate([a.HostBinding("attr.data-task-index"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],l.prototype,"taskIndexAttribute",null),i.__decorate([a.ViewChild("task",{static:!0}),i.__metadata("design:type",a.ElementRef)],l.prototype,"taskElement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],l.prototype,"dataItem",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],l.prototype,"index",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],l.prototype,"level",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],l.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],l.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"isSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],l.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"taskClass",void 0),i.__decorate([a.HostBinding("style.left.px"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],l.prototype,"taskOffset",null),l);function l(e,t,n,i,a,o){var r=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=a,this.navigationService=o,this.wrapperClass=!0,this.subscriptions=new s.Subscription,this.subscriptions.add(this.optionChangesService.viewChanges.subscribe(function(){return r.cdr.markForCheck()})),this.subscriptions.add(this.navigationService.taskStatusChanges.subscribe(this.updateActiveState.bind(this)))}t.GanttTaskBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(Object.defineProperty(a.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),i.__decorate([n.Input("position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],a.prototype,"position",null),i.__decorate([n.Directive({selector:"[kendoGanttToolbarTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a));function a(e){this.templateRef=e,this._position="top"}t.ToolbarTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttTaskContentTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.GanttTaskContentTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttSummaryTaskTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.GanttSummaryTaskTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttTaskTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.GanttTaskTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),n=n(4),n=(o.prototype.get=function(e){return this.localizationService.get(e)},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[n.LocalizationService])],o));function o(e){this.localizationService=e}t.GanttLocalizationService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),a=(r.prototype.ngOnDestroy=function(){this.horizontalScroll.complete(),this.verticalScroll.complete(),this.scrollCancel.complete()},r.prototype.requestHorizontalScroll=function(e){this.horizontalScroll.next(e)},r.prototype.requestVerticalScroll=function(e){this.verticalScroll.next(e)},r.prototype.requestScrollCancel=function(){this.scrollCancel.next()},i.__decorate([a.Injectable()],r));function r(){this.horizontalScroll=new o.Subject,this.verticalScroll=new o.Subject,this.scrollCancel=new o.Subject}t.TimelineScrollService=a},function(e,p,t){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var i=t(89),u=t(11),h=t(2);p.DAY_FORMAT="E d/MM",p.HOUR_FORMAT="HH:mm aa",p.MONTH_FORMAT="MMM";Object.defineProperty(n.prototype,"viewStart",{get:function(){return this._viewStart},enumerable:!0,configurable:!0}),n.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"}]),e=this.intlService.firstDay(),t=this.mapper.extractFromTask(t[0],"start")||new Date,n=this.mapper.extractFromTask(n[0],"end")||new Date;e===n.getDay()&&n.setDate(n.getDate()+7);t=this.getStartOffset(t),n=this.getEndOffset(n);return this._viewStart=Number(t),{start:new Date(t),end:new Date(n)}},n.prototype.getHours=function(e,t){for(var n=[],i=this.intlService.parseDate(this.options.workDayStart).getHours(),a=this.intlService.parseDate(this.options.workDayEnd).getHours(),o=new Date(e),r=new Date(t);o<r;){var s=new Date(o),c=u.isWorkHour(s,i,a);s.setHours(s.getHours()+1),n.push({start:o,end:s,isWorking:c,text:this.intlService.formatDate(o,p.HOUR_FORMAT),span:1}),o=s}return n},n.prototype.getDays=function(e,t){for(var n=[],i=new Date(e),a=new Date(t);i<=a;){var o=h.getDate(h.addDays(i,1)),r=u.isWorkDay(i,this.options.workWeekStart,this.options.workWeekEnd);n.push({start:i,end:a<o?a:o,isWorking:r,text:this.intlService.formatDate(i,p.DAY_FORMAT),span:1}),i=o}return n},n.prototype.getWeeks=function(e,t){for(var n=this.intlService.firstDay(),i=[],a=new Date(e),o=new Date(t);a<=o;){var r=u.lastDayOfWeek(a,n),s=o<r?o:r,c=this.getDays(a,s),l=c.length,d=this.intlService.formatDate(h.firstDayInWeek(h.getDate(a),n),p.DAY_FORMAT),r=this.intlService.formatDate(h.addDays(s,-1),p.DAY_FORMAT);0<l&&i.push({start:c[0].start,end:c[l-1].end,text:d+" - "+r,span:l}),a=h.firstDayInWeek(h.addWeeks(s,1))}return i},n.prototype.getMonths=function(e,t){for(var n=[],i=new Date(e),a=new Date(t);i<a;){var o=h.lastDayOfMonth(i),r=a<o?a:o,s=this.getDays(i,r),c=s.length,o=h.firstDayOfMonth(h.getDate(i)),o=this.intlService.formatDate(o,p.MONTH_FORMAT);0<c&&n.push({start:s[0].start,end:s[c-1].end,span:c,text:o}),i=h.firstDayOfMonth(h.addMonths(r,1))}return n},t=n;function n(e,t){this.intlService=e,this.mapper=t,this._viewStart=0}p.TimelineBaseViewService=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttEditTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.EditTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttHeaderTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.HeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttCellTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.CellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25);t.GanttColumnBase=i.GanttColumnBase;i=n(56);t.GanttColumnComponent=i.GanttColumnComponent;i=n(94);t.GanttColumnGroupComponent=i.GanttColumnGroupComponent;i=n(93);t.GanttSpanColumnComponent=i.GanttSpanColumnComponent;i=n(36);t.CellTemplateDirective=i.CellTemplateDirective;i=n(35);t.HeaderTemplateDirective=i.HeaderTemplateDirective;i=n(52);t.FooterTemplateDirective=i.FooterTemplateDirective;i=n(55);t.ColumnMenuTemplateDirective=i.ColumnMenuTemplateDirective;i=n(54);t.FilterCellTemplateDirective=i.FilterCellTemplateDirective;i=n(53);t.FilterMenuTemplateDirective=i.FilterMenuTemplateDirective;n=n(34);t.EditTemplateDirective=n.EditTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),a=(s.prototype.registerElement=function(t,n){var i=this;this.elements.push({element:t,sourceType:n}),"timeline"!==n&&"treelist"!==n||this.ngZone.runOutsideAngular(function(){var e=o.fromEvent(t,"scroll").pipe(r.map(function(e){e=e.target;return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,sourceType:n}}));i.subscriptions.add(e.pipe(r.distinctUntilChanged("timeline"===n?function(e,t){return e.scrollTop===t.scrollTop&&e.scrollLeft===t.scrollLeft}:function(e,t){return e.scrollTop===t.scrollTop})).subscribe(function(e){return i.changes.next(e)}))})},s.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.elements=null},s.prototype.syncScrollTop=function(t,n){var e=this.elements.find(function(e){return e.sourceType===t}),i=this.elements.find(function(e){return e.sourceType===n});this.ngZone.onStable.pipe(r.take(1)).subscribe(function(){return i.element.scrollTop=e.element.scrollTop})},s.prototype.resetTimelineScrollLeft=function(){this.elements.find(function(e){return"timeline"===e.sourceType}).element.scrollLeft=0},s.prototype.scroll=function(e){var t=this,n=e.scrollTop,i=e.scrollLeft,a=e.sourceType;this.ngZone.runOutsideAngular(function(){"timeline"===a&&(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),"treelist"===a&&(t.syncingTreeList||(t.syncingTimeline=!0,t.elements.find(function(e){return"timeline"===e.sourceType}).element.scrollTop=n),t.syncingTreeList=!1)})},i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.NgZone])],s));function s(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)}))}t.ScrollSyncService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),a=(i=n(4).ComponentMessages,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingGeneralTabTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingPredecessorsTabTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingSuccessorsTabTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesAddButtonText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesRemoveButtonText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesGridNameColumnTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingDependenciesGridTypeColumnTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"deleteButtonText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskDeleteLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingDialogTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"taskEditingDialogCloseTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"confirmationDialogCloseTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"confirmationDialogTitle",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"addTaskText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"addChildText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"addAboveText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"addBelowText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"cancelButtonText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"saveButtonText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"titleFieldInputLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"startFieldInputLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"endFieldInputLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"completionRatioFieldInputLabel",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"confirmationDialogContent",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"dayViewText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"weekViewText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"monthViewText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"yearViewText",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"noRecords",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filter",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterEqOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterNotEqOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterIsNullOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterIsNotNullOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterIsEmptyOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterIsNotEmptyOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterStartsWithOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterContainsOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterNotContainsOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterEndsWithOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterGteOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterGtOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterLteOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterLtOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterIsTrue",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterIsFalse",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterBooleanAll",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterAfterOrEqualOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterAfterOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterBeforeOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterBeforeOrEqualOperator",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterFilterButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterClearButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterAndLogic",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"filterOrLogic",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"loading",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"columnMenu",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"columns",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"lock",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"unlock",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"sortable",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"sortAscending",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"sortDescending",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"sortedAscending",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"sortedDescending",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"sortedDefault",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"columnsApply",void 0),a.__decorate([o.Input(),a.__metadata("design:type",String)],r.prototype,"columnsReset",void 0),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.Messages=a},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.ScrollDirection||(t.ScrollDirection={}))[i.Backwards=-1]="Backwards",i[i.Forward=1]="Forward",(t=t.ScrollAxis||(t.ScrollAxis={})).Vertical="scrollTop",t.Horizontal="scrollLeft"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Component({template:'\n <div\n class="k-tooltip k-gantt-tooltip-validation"\n [class.k-gantt-tooltip-valid]="showValidityStatus && isValid"\n [class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"\n >\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">From:</span>\n <span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>\n </div>\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">To:</span>\n <span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>\n </div>\n </div>\n ',styles:["\n .k-gantt-tooltip-validation {\n max-width: 200px;\n display: block;\n }\n .k-gantt-tooltip-validation::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 4px;\n height: 100%;\n background: #656565;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-valid::before {\n background: #37B400;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-invalid::before {\n background: #F31700;\n }\n .k-gantt-tooltip-validation-row {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .k-gantt-tooltip-validation-label {\n display: inline-flex;\n width: 50px;\n }\n .k-gantt-tooltip-validation-value {\n font-weight: bold;\n }\n "]})],a);function a(){this.isValid=!1}t.DragValidationTooltipComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=n(13),s=n(20),c=n(12),l=n(32),d=n(41),p=n(43),u=n(11),h=n(11),l=(Object.defineProperty(b.prototype,"container",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.timelineContent)?this.gantt.timeline.timelineContent.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"polyline",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dependencyDragCreatePolyline)?this.gantt.timeline.dependencyDragCreatePolyline.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"popupContainer",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dragPopupContainer)?this.gantt.timeline.dragPopupContainer:null},enumerable:!0,configurable:!0}),b.prototype.ngAfterViewInit=function(){this.subscribeDraggable(),this.addScrollListener()},b.prototype.ngOnDestroy=function(){this.unsubscribeDraggable(),this.removeScrollListener(),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup()},b.prototype.subscribeDraggable=function(){this.dragSubscriptions=this.gantt.timeline.timelineContainerPress.subscribe(this.handlePress.bind(this)),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerDrag.subscribe(this.handleDrag.bind(this))),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerRelease.subscribe(this.handleRelease.bind(this)))},b.prototype.unsubscribeDraggable=function(){u.isPresent(this.dragSubscriptions)&&(this.dragSubscriptions.unsubscribe(),this.dragSubscriptions=null)},b.prototype.handlePress=function(e){var t=e.clientX,e=e.clientY,e=h.elementFromPoint(t,e);u.isDependencyDragClue(e)&&(this.fromTaskClue=e,this.assignDragStartClasses(this.fromTaskClue),e=p.getElementClientCenterCoords(this.fromTaskClue),this.polylineStartCoords=p.clientToOffsetCoords(e.left,e.top,this.container))},b.prototype.handleDrag=function(e){var t=e.clientX,n=e.clientY;u.isPresent(this.fromTaskClue)&&(e=p.clientToOffsetCoords(t,n,this.container),this.updatePolyline(this.polylineStartCoords,e),this.currentPointerClientCoords={left:t,top:n},this.gantt.dragScrollSettings.enabled&&this.scrollPointIntoView(this.currentPointerClientCoords),this.displayValidationTooltip&&this.updateDragPopup(e))},b.prototype.handleRelease=function(e){var s,c=this,t=e.clientX,e=e.clientY;u.isPresent(this.fromTaskClue)&&(s=h.elementFromPoint(t,e),u.isDependencyDragClue(s)&&!u.sameTaskClues(this.fromTaskClue,s,this.container)&&this.zone.run(function(){var e=c.fromTaskClue,t=s,n=c.gantt.renderedTreeListItems[u.getClosestTaskIndex(e,c.container)],i=c.gantt.renderedTreeListItems[u.getClosestTaskIndex(t,c.container)],a=u.getDependencyTypeFromTargetTasks(e,t),o=c.mapper.dependencyFields,r=o.fromId,e=o.toId,t=o.type;c.gantt.dependencyAdd.emit({fromTask:n,toTask:i,type:a,isValid:c.gantt.validateNewDependency(((o={})[r]=c.mapper.extractFromTask(n,"id"),o[e]=c.mapper.extractFromTask(i,"id"),o[t]=a,o))})}),this.clearPolyline(),this.removeDragStartClasses(this.fromTaskClue),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup())},b.prototype.updatePolyline=function(e,t){t=e.left+","+e.top+" "+t.left+","+t.top;this.renderer.setAttribute(this.polyline,"points",t)},b.prototype.clearPolyline=function(){this.renderer.removeAttribute(this.polyline,"points")},b.prototype.assignDragStartClasses=function(e){u.isPresent(e)&&(this.renderer.addClass(this.container,"k-user-select-none"),this.renderer.addClass(e,"k-state-hover"),e=u.getClosestTaskWrapper(e,this.container),u.isPresent(e)&&this.renderer.addClass(e,"k-origin"))},b.prototype.removeDragStartClasses=function(e){u.isPresent(e)&&(this.renderer.removeClass(this.container,"k-user-select-none"),this.renderer.removeClass(e,"k-state-hover"),e=u.getClosestTaskWrapper(e,this.container),u.isPresent(e)&&this.renderer.removeClass(e,"k-origin"))},b.prototype.scrollPointIntoView=function(e){var t=e.left,e=e.top;this.timelineScrollService.requestScrollCancel(),this.timelineScrollService.requestHorizontalScroll(t),this.timelineScrollService.requestVerticalScroll(e)},b.prototype.cancelScroll=function(){this.timelineScrollService.requestScrollCancel()},b.prototype.addScrollListener=function(){var n=this;o.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return n.scrollListenerDisposer=n.renderer.listen(n.container,"scroll",function(){var e,t;u.isPresent(n.fromTaskClue)&&u.isPresent(n.currentPointerClientCoords)&&(e=(t=n.currentPointerClientCoords).left,t=t.top,t=p.clientToOffsetCoords(e,t,n.container),n.updatePolyline(n.polylineStartCoords,t),n.displayValidationTooltip&&n.updateDragPopup(t))})})},b.prototype.removeScrollListener=function(){u.isPresent(this.scrollListenerDisposer)&&(this.scrollListenerDisposer(),this.scrollListenerDisposer=null)},b.prototype.openDragPopup=function(){u.isPresent(this.dragPopup)&&this.closeDragPopup(),this.dragPopup=this.popupService.open({animate:!1,content:d.DragValidationTooltipComponent,appendTo:this.popupContainer,positionMode:"absolute",popupClass:"k-popup-transparent"})},b.prototype.updateDragPopup=function(e){u.isPresent(this.dragPopup)||this.openDragPopup();var t=this.dragPopup.content.instance,n=this.getTooltipContext(),i=n.fromTaskName,a=n.toTaskName,o=n.isValid,n=n.showValidityStatus;t.fromTaskName===i&&t.toTaskName===a&&t.isValid===o&&t.showValidityStatus===n||(t.fromTaskName=i,t.toTaskName=a,t.isValid=o,t.showValidityStatus=n,this.dragPopup.content.changeDetectorRef.detectChanges()),this.dragPopup.popup.instance.offset=this.normalizePopupPosition(e),this.dragPopup.popup.changeDetectorRef.detectChanges()},b.prototype.closeDragPopup=function(){u.isPresent(this.dragPopup)&&(this.dragPopup.close(),this.dragPopup=null)},b.prototype.extractTaskName=function(e){if(!u.isTaskWrapper(e,this.container))return null;e=u.getClosestTaskIndex(e,this.container),e=this.gantt.renderedTreeListItems[e];return this.mapper.extractFromTask(e,"title")},b.prototype.getTooltipContext=function(){var e=this.extractTaskName(this.fromTaskClue),t=h.elementFromPoint(this.currentPointerClientCoords.left,this.currentPointerClientCoords.top),n=u.isTaskWrapper(t,this.container)&&!u.sameTaskClues(this.fromTaskClue,t,this.container)?this.extractTaskName(t):"",i=u.isDependencyDragClue(t)&&!u.sameTaskClues(this.fromTaskClue,t,this.container),a=this.mapper.dependencyFields,o=a.fromId,r=a.toId,a=a.type;return{fromTaskName:e,toTaskName:n,showValidityStatus:i,isValid:i&&this.gantt.validateNewDependency(((i={})[o]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(this.fromTaskClue,this.container)],"id"),i[r]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(t,this.container)],"id"),i[a]=u.getDependencyTypeFromTargetTasks(this.fromTaskClue,t),i))}},b.prototype.normalizePopupPosition=function(e){var t=e.top+20,n=this.container.clientHeight+this.container.scrollTop,i=this.dragPopup.popupElement.querySelector(".k-tooltip").clientHeight;t<n-i||(t-=i+40);n=this.dragPopup.popupElement.querySelector(".k-tooltip").clientWidth,e=e.left-n/2;return{left:u.fitToRange(e,0,this.container.scrollWidth-n),top:u.fitToRange(t,0,this.container.scrollHeight-i)}},i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],b.prototype,"displayValidationTooltip",void 0),i.__decorate([a.Directive({selector:"[kendoGanttDependencyDragCreate]"}),i.__metadata("design:paramtypes",[s.GanttComponent,a.NgZone,a.Renderer2,c.MappingService,r.PopupService,l.TimelineScrollService])],b));function b(e,t,n,i,a,o){this.gantt=e,this.zone=t,this.renderer=n,this.mapper=i,this.popupService=a,this.timelineScrollService=o,this.displayValidationTooltip=!0,this.gantt.renderDependencyDragClues=!0}t.DependencyDragCreateDirective=l},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var u=t(19);i.getOffsetRelativeToParent=function(e,t){var n={top:0,left:0};if(!t.contains(e))return n;for(var i=e;i&&i!==t;)n.top+=i.offsetTop,n.left+=i.offsetLeft,i=i.offsetParent;return n},i.getElementRect=function(e,t){var n=i.getOffsetRelativeToParent(e,t),t=n.top,n=n.left;return{top:t+e.offsetHeight/2,left:n,right:n+e.offsetWidth}},i.dependencyCoordinates=function(e,t,n,i,a,o){var r,s,c,l=[],d=Math.floor(n/2),p=e.top<t.top;return i===u.DependencyType.FF||i===u.DependencyType.SS?(c=i===u.DependencyType.SS?"left":"right",r=e.top,s=e[c],l.push({top:r,left:s}),s=Math["left"==c?"min":"max"](e[c],t[c]),l.push({top:r,left:s="left"==c?s-a:s+a}),r=t.top,l.push({top:r,left:s}),s="left"==c?t[c]-o:t[c]+o,l.push({top:r,left:s}),l.push.apply(l,h(r,s,"left"!=c,o))):(n=i===u.DependencyType.SF?"left":"right",c=i===u.DependencyType.SF?"right":"left",i=i===u.DependencyType.SF?e[n]-2*a<t[c]:e[n]+2*a>t[c],r=e.top,s=e[n],l.push({top:r,left:s}),l.push({top:r,left:s="left"==n?s-a:s+a}),i&&(l.push({top:r=p?r+d:r-d,left:s}),s="left"==n?t[c]+a:t[c]-a,l.push({top:r,left:s})),r=t.top,l.push({top:r,left:s}),s="left"==c?t[c]-o:t[c]+o,l.push({top:r,left:s}),l.push.apply(l,h(r,s,"left"!=c,o))),l};var h=function(e,t,n,i){return(n?a: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};i.clientToOffsetCoords=function(e,t,n){var i=n.getBoundingClientRect();return{left:e-i.left+n.scrollLeft,top:t-i.top+n.scrollTop}},i.getElementClientCenterCoords=function(e){var t=e.getBoundingClientRect(),n=t.left,e=t.top;return{left:n+t.width/2,top:e+t.height/2}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(14),r=n(20),s=n(11),r=(Object.defineProperty(c.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(c.prototype,"selectedKeys",{set:function(e){s.isPresent(e)&&e===this.lastChange||(e=(e||[]).slice(0,1),this.state=new Set(e),this.gantt.updateView())},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"itemKey",{set:function(e){s.isString(e)?this._keyGetter=o.getter(e):this._keyGetter=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"keyGetter",{get:function(){return this._keyGetter||this.gantt.idGetter},enumerable:!0,configurable:!0}),c.prototype.ngOnDestroy=function(){this.unsubscribeSelection()},c.prototype.isSelected=function(e){return this.state.has(this.keyGetter(e))},c.prototype.selectionChange=function(e){var t=this,n=e.action,e=e.items;this.state.clear(),"select"===n&&e.forEach(function(e){return t.state.add(t.keyGetter(e))}),this.emitSelectedItemsChange()},c.prototype.emitSelectedItemsChange=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},c.prototype.subscribeSelection=function(){this.unsubscribeSelection(),this.selectionSubscription=this.gantt.selectionChange.subscribe(this.selectionChange)},c.prototype.unsubscribeSelection=function(){this.selectionSubscription&&(this.selectionSubscription.unsubscribe(),this.selectionSubscription=null)},i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],c.prototype,"selectable",null),i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],c.prototype,"selectedKeys",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],c.prototype,"selectedKeysChange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],c.prototype,"itemKey",null),i.__decorate([a.Directive({exportAs:"kendoGanttSelectable",selector:"[kendoGanttSelectable]"}),i.__metadata("design:paramtypes",[r.GanttComponent])],c));function c(e){this.gantt=e,this.selectedKeysChange=new a.EventEmitter,this.state=new Set,this.isSelected=this.isSelected.bind(this),this.selectionChange=this.selectionChange.bind(this),this.selectable=!0}t.SelectableDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),o=(i=n(17).ExpandableDirective,a.__extends(r,i),a.__decorate([o.Input(),a.__metadata("design:type",Object)],r.prototype,"expandBy",void 0),a.__decorate([o.Directive({exportAs:"kendoGanttExpandable",selector:"[kendoGanttExpandable]"})],r));function r(){return null!==i&&i.apply(this,arguments)||this}t.GanttExpandableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),o=(i=n(17).HierarchyBindingDirective,a.__extends(r,i),a.__decorate([o.Input("kendoGanttHierarchyBinding"),a.__metadata("design:type",Array)],r.prototype,"data",void 0),a.__decorate([o.Directive({selector:"[kendoGanttHierarchyBinding]",exportAs:"kendoGanttHierarchyBinding"})],r));function r(){var e=null!==i&&i.apply(this,arguments)||this;return e.data=[],e}t.GanttHierarchyBindingDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),o=(i=n(17).FlatBindingDirective,a.__extends(r,i),a.__decorate([o.Input("kendoGanttFlatBinding"),a.__metadata("design:type",Array)],r.prototype,"data",void 0),a.__decorate([o.Directive({selector:"[kendoGanttFlatBinding]",exportAs:"kendoGanttFlatBinding"})],r));function r(){var e=null!==i&&i.apply(this,arguments)||this;return e.data=[],e}t.GanttFlatBindingDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),r=n(8),s=n(2),c=n(12),c=(i=n(33).TimelineBaseViewService,a.__extends(l,i),l.prototype.getStartOffset=function(e){return s.addDays(s.getDate(e),-1)},l.prototype.getEndOffset=function(e){return s.addDays(s.getDate(e),1)},l.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],e=this.options.slotWidth;return Math.round(t.length*e)},l.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,e=n.end,n=this.getWeeks(i,e),e=this.getDays(i,e);return t.push(n,e),t},a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService,c.MappingService])],l));function l(e,t){return i.call(this,e,t)||this}t.TimelineWeekViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),r=n(8),s=n(2),c=n(12),c=(i=n(33).TimelineBaseViewService,a.__extends(l,i),l.prototype.getStartOffset=function(e){var t=this.intlService.firstDay(),t=s.firstDayInWeek(s.getDate(e),t);return s.addWeeks(s.getDate(t),-1)},l.prototype.getEndOffset=function(e){var t=this.intlService.firstDay(),t=s.addDays(s.firstDayInWeek(s.getDate(e),t),6);return s.addWeeks(s.getDate(t),1)},l.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],e=this.options.slotWidth;return Math.round(t.length*e)},l.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,e=n.end,n=this.getMonths(i,e),e=this.getWeeks(i,e);return t.push(n,e),t},a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService,c.MappingService])],l));function l(e,t){return i.call(this,e,t)||this}t.TimelineMonthViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),o=n(1),r=n(8),s=n(33),c=n(12),l=n(11),c=(i=s.TimelineBaseViewService,a.__extends(d,i),d.prototype.getStartOffset=function(e){return l.setTime(e,e.getHours()-1)},d.prototype.getEndOffset=function(e){return l.setTime(e,e.getHours()+1)},d.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],e=this.options.slotWidth;return Math.round(t.length*e)},d.prototype.getSlots=function(e){for(var t=[],n=this.getRange(e),e=n.start,n=n.end,i=this.getDays(e,n),a=[],o=0;o<i.length;o++){var r=i[o],s=this.getHours(r.start,r.end);r.span=s.length,a.push.apply(a,s)}return t.push(i,a),t},a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService,c.MappingService])],d));function d(e,t){return i.call(this,e,t)||this}t.TimelineDayViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(19);t.DependencyType=i.DependencyType;n=n(91);t.CellCloseEvent=n.CellCloseEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttFooterTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.FooterTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttFilterMenuTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.FilterMenuTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttFilterCellTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.FilterCellTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoGanttColumnMenuTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],a);function a(e){this.templateRef=e}t.ColumnMenuTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(17),c=n(15),l=n(25),d=n(36),p=n(55),u=n(54),h=n(53),b=n(52),m=n(35),n=n(34),l=(i=s.ColumnComponent,o.__extends(g,i),(a=g).prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},o.__decorate([r.ContentChildren(m.HeaderTemplateDirective,{descendants:!1}),o.__metadata("design:type",r.QueryList)],g.prototype,"headerTemplates",void 0),o.__decorate([r.ContentChild(b.FooterTemplateDirective,{static:!1}),o.__metadata("design:type",b.FooterTemplateDirective)],g.prototype,"footerTemplate",void 0),o.__decorate([r.ContentChildren(p.ColumnMenuTemplateDirective),o.__metadata("design:type",r.QueryList)],g.prototype,"columnMenuTemplates",void 0),o.__decorate([r.ContentChild(d.CellTemplateDirective,{static:!1}),o.__metadata("design:type",d.CellTemplateDirective)],g.prototype,"template",void 0),o.__decorate([r.ContentChild(n.EditTemplateDirective,{static:!1}),o.__metadata("design:type",n.EditTemplateDirective)],g.prototype,"editTemplate",void 0),o.__decorate([r.ContentChild(u.FilterCellTemplateDirective,{static:!1}),o.__metadata("design:type",u.FilterCellTemplateDirective)],g.prototype,"filterCellTemplate",void 0),o.__decorate([r.ContentChild(h.FilterMenuTemplateDirective,{static:!1}),o.__metadata("design:type",h.FilterMenuTemplateDirective)],g.prototype,"filterMenuTemplate",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],g.prototype,"format",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],g.prototype,"filter",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],g.prototype,"filterable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],g.prototype,"editor",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],g.prototype,"editable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],g.prototype,"locked",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],g.prototype,"lockable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],g.prototype,"hidden",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],g.prototype,"media",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],g.prototype,"style",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],g.prototype,"headerStyle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],g.prototype,"footerStyle",void 0),o.__decorate([r.Input("class"),o.__metadata("design:type",Object)],g.prototype,"cssClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],g.prototype,"headerClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],g.prototype,"footerClass",void 0),a=o.__decorate([r.Component({selector:"kendo-gantt-column",template:"",providers:[{provide:l.GanttColumnBase,useExisting:r.forwardRef(function(){return a})}]}),o.__param(1,r.SkipSelf()),o.__param(1,r.Host()),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[c.OptionChangesService,l.GanttColumnBase])],g));function g(e,t){t=i.call(this,t)||this;return t.options=e,t.headerTemplates=new r.QueryList,t.columnMenuTemplates=new r.QueryList,t.filter="text",t.filterable=!0,t.editor="text",t.editable=!0,t.locked=!1,t}t.GanttColumnComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(5),s=n(7),c=n(3),a=n(38),l=n(16),d=n(11),l=(Object.defineProperty(p.prototype,"draggableEnabled",{get:function(){return this.renderDependencyDragClues},enumerable:!0,configurable:!0}),p.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)},p.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},p.prototype.isNonWorking=function(e){return e.hasOwnProperty("isWorking")&&!e.isWorking},i.__decorate([o.ViewChild("timelineContent",{static:!0}),i.__metadata("design:type",o.ElementRef)],p.prototype,"timelineContent",void 0),i.__decorate([o.ViewChild("timelineColumns",{static:!0}),i.__metadata("design:type",o.ElementRef)],p.prototype,"timelineColumns",void 0),i.__decorate([o.ViewChild("timelineHeaderWrap",{static:!0}),i.__metadata("design:type",o.ElementRef)],p.prototype,"timelineHeaderWrap",void 0),i.__decorate([o.ViewChild("tasksContainer",{static:!0}),i.__metadata("design:type",o.ElementRef)],p.prototype,"tasksContainer",void 0),i.__decorate([o.ViewChild("dragPopupContainer",{static:!1,read:o.ViewContainerRef}),i.__metadata("design:type",o.ViewContainerRef)],p.prototype,"dragPopupContainer",void 0),i.__decorate([o.ViewChild("dependencyDragCreatePolyline",{static:!1}),i.__metadata("design:type",o.ElementRef)],p.prototype,"dependencyDragCreatePolyline",void 0),i.__decorate([o.HostBinding("class.k-gantt-timeline"),i.__metadata("design:type",Boolean)],p.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],p.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],p.prototype,"slots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],p.prototype,"groupSlots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],p.prototype,"tableWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],p.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],p.prototype,"taskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],p.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],p.prototype,"taskClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],p.prototype,"renderDependencyDragClues",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],p.prototype,"dragScrollSettings",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],p.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],p.prototype,"isTaskSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],p.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],p.prototype,"dependencies",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],p.prototype,"timelineContainerPress",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],p.prototype,"timelineContainerDrag",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],p.prototype,"timelineContainerRelease",void 0),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 \x3c!-- tabindex="-1" required for https://bugzilla.mozilla.org/show_bug.cgi?id=1069739 --\x3e\n <div\n #timelineContent\n class="k-grid-content"\n tabindex="-1"\n role="tree"\n aria-roledescription="Timeline"\n kendoGanttTimelineScrollable\n [scrollSettings]="dragScrollSettings"\n kendoDraggable\n [enableDrag]="draggableEnabled"\n (kendoPress)="timelineContainerPress.emit($event)"\n (kendoDrag)="timelineContainerDrag.emit($event)"\n (kendoRelease)="timelineContainerRelease.emit($event)"\n >\n <div class="k-gantt-tables">\n <table\n class="k-gantt-rows"\n [style.width.px]="tableWidth"\n role="presentation"\n >\n <tbody>\n <tr *ngFor="let item of rows; let i = index;"\n [class.k-alt]="i % 2"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class="k-gantt-columns"\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <colgroup>\n <col *ngFor="let item of slots">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor="let item of slots"\n [class.k-nonwork-hour]="isNonWorking(item)"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class="k-gantt-tasks"\n role="presentation"\n style="border-collapse: collapse;"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]="rows"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [summaryTaskTemplate]="summaryTaskTemplate"\n [taskClass]="taskClass"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </tbody>\n </table>\n </div>\n <svg class="k-gantt-dependencies-svg">\n <polyline\n *ngFor="let dependency of dependencies"\n kendoGanttDependency\n [dependency]="dependency"\n />\n <polyline #dependencyDragCreatePolyline />\n </svg>\n\n \x3c!-- placeholder for the dependency drag popup; its position is not arbitrary - the popup is intended to be absolutely positioned inside the .k-grid-content element --\x3e\n <ng-container #dragPopupContainer></ng-container>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[a.ScrollSyncService,l.DependencyDomService,o.Renderer2,o.NgZone])],p));function p(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.timelineContainerPress=new o.EventEmitter,this.timelineContainerDrag=new o.EventEmitter,this.timelineContainerRelease=new o.EventEmitter,this.subscriptions=new r.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(s.filter(function(e){return d.isPresent(e.timelineRow)}),s.switchMap(function(e){return a.zone.onStable.pipe(s.take(1),s.map(function(){return e}))})).subscribe(function(e){e=e.timelineRow,e=c.isDocumentAvailable()?e.getBoundingClientRect().height:0;a.renderer.setStyle(a.timelineColumns.nativeElement,"height",(a.rows||[]).length*e+"px")}))}t.GanttTimelineComponent=l},function(e,t,n){"use strict";n.r(t);function i(){}var a,o,r,s=n(0),c=n(1),l=n(6),d=n(5),p=n(7),u=n(4),h=n(3),b=n(10),m=n(14),g=n(8),f=n(9),y=n(13),v={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"},_=null,O={get browser(){return"undefined"==typeof window||_?_:_=function(e){var t,n={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},i={};for(t in n)if(n.hasOwnProperty(t)){var a=e.match(n[t]);if(a){i[t]=!0,i[a[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,i.version=parseInt(document.documentMode||a[2],10);break}}return i}(window.navigator.userAgent)}}.browser,j=function(e){var t=Object.keys(v);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return j=function(e){return n.exec(e)},n.exec(e)},k=((r=i)&&(E.__proto__=r),((E.prototype=Object.create(r&&r.prototype)).constructor=E).prototype.toHSV=function(){return this},E.prototype.toRGB=function(){return this},E.prototype.toHex=function(e){return this.toBytes().toHex(e)},E.prototype.toBytes=function(){return this},E.prototype.toCss=function(e){return"#"+this.toHex(e)},E.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},E.prototype.toDisplay=function(){return O.msie&&O.version<9?this.toCss():this.toCssRgba()},E.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===A(e).toCssRgba()},E.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),e=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-e.r),2)+Math.pow(.59*(t.g-e.g),2)+Math.pow(.11*(t.b-e.b),2))},E.prototype.clone=function(){var e=this.toBytes();return e=e===this?new w(e.r,e.g,e.b,e.a):e},E),C=((o=k)&&(T.__proto__=o),((T.prototype=Object.create(o&&o.prototype)).constructor=T).prototype.toHSV=function(){var e,t,n=this.r,i=this.g,a=this.b,o=Math.min(n,i,a),r=Math.max(n,i,a),s=r-o,o=r;return 0==s?new P(0,0,o,this.a):(0!==r?(t=s/r,e=n===r?(i-a)/s:i===r?2+(a-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new P(e,t,o,this.a))},T.prototype.toHSL=function(){var e,t=this.r,n=this.g,i=this.b,a=Math.max(t,n,i),o=Math.min(t,n,i),r=(a+o)/2;if(a===o)e=c=0;else{var s=a-o,c=.5<r?s/(2-a-o):s/(a+o);switch(a){case t:e=(n-i)/s+(n<i?6:0);break;case n:e=(i-t)/s+2;break;case i:e=(t-n)/s+4}}return new V(60*e,100*c,100*r,this.a)},T.prototype.toBytes=function(){return new w(255*this.r,255*this.g,255*this.b,this.a)},T),w=((a=C)&&(S.__proto__=a),((S.prototype=Object.create(a&&a.prototype)).constructor=S).prototype.toRGB=function(){return new a(this.r/255,this.g/255,this.b/255,this.a)},S.prototype.toHSV=function(){return this.toRGB().toHSV()},S.prototype.toHSL=function(){return this.toRGB().toHSL()},S.prototype.toHex=function(e){var t=D(this.r,2)+D(this.g,2)+D(this.b,2);return e&&e.alpha&&(t+=D(Math.round(255*this.a),2)),t},S.prototype.toBytes=function(){return this},S);function S(e,t,n,i){a.call(this,Math.round(e),Math.round(t),Math.round(n),i)}function T(e,t,n,i){o.call(this),this.r=e,this.g=t,this.b=n,this.a=i}function E(){r.call(this)}function D(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var I,x,P=((x=k)&&(B.__proto__=x),((B.prototype=Object.create(x&&x.prototype)).constructor=B).prototype.toRGB=function(){var e,t,n,i=this.h,a=this.s,o=this.v;if(0===a)e=t=n=o;else{i/=60;var r=Math.floor(i),i=i-r,s=o*(1-a),c=o*(1-a*i),l=o*(1-a*(1-i));switch(r){case 0:e=o,t=l,n=s;break;case 1:e=c,t=o,n=s;break;case 2:e=s,t=o,n=l;break;case 3:e=s,t=c,n=o;break;case 4:e=l,t=s,n=o;break;default:e=o,t=s,n=c}}return new C(e,t,n,this.a)},B.prototype.toHSL=function(){return this.toRGB().toHSL()},B.prototype.toBytes=function(){return this.toRGB().toBytes()},B),V=((I=k)&&(R.__proto__=I),((R.prototype=Object.create(I&&I.prototype)).constructor=R).prototype.toRGB=function(){var e,t,n,i=this.h/360,a=this.s/100,o=this.l/100;return 0==a?e=t=n=o:(e=F(a=2*o-(o=o<.5?o*(1+a):o+a-o*a),o,i+1/3),t=F(a,o,i),n=F(a,o,i-1/3)),new C(e,t,n,this.a)},R.prototype.toHSV=function(){return this.toRGB().toHSV()},R.prototype.toBytes=function(){return this.toRGB().toBytes()},R);function R(e,t,n,i){I.call(this),this.h=e,this.s=t,this.l=n,this.a=i}function B(e,t,n,i){x.call(this),this.h=e,this.s=t,this.v=n,this.a=i}function F(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function M(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function A(e,t){var n;if(null==e||"none"===e)return null;if(e instanceof k)return e;var i=e.toLowerCase();if(e=j(i))return(i="transparent"===e[1]?new C(1,1,1,0):A(v[e[1]],t)).match=[e[1]],i;if((e=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?n=new w(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1):(e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?n=new w(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),1):(e=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?n=new w(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),M(e[4]+e[4])):(e=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?n=new w(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),M(e[4])):(e=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(i))?n=new w(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),1):(e=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(i))?n=new w(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])):(e=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(i))?n=new C(parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])/100,1):(e=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(i))&&(n=new C(parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])/100,parseFloat(e[4]))),n)n.match=e;else if(!t)throw new Error("Cannot parse color: "+i);return n}var L,N=((L=i)&&(z.__proto__=L),((z.prototype=Object.create(L&&L.prototype)).constructor=z).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)},z.prototype.resolveColor=function(e){e=(e=(e="#"===(e=e||"black").charAt(0)?e.substr(1,6):e).replace(/ /g,"")).toLowerCase();return z.namedColors[e]||e},z.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:255<e?255:e},z.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},z.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},z.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},z.prototype.isDark=function(){return this.percBrightness()<180},z.fromBytes=function(e,t,n,i){return new w(e,t,n,null!=i?i:1)},z.fromRGB=function(e,t,n,i){return new C(e,t,n,null!=i?i:1)},z.fromHSV=function(e,t,n,i){return new P(e,t,n,null!=i?i:1)},z.fromHSL=function(e,t,n,i){return new V(e,t,n,null!=i?i:1)},z);function z(e){if(L.call(this),1===arguments.length)for(var t=z.formats,n=this.resolveColor(e),i=0;i<t.length;i++){var a=t[i].re,o=t[i].process,a=a.exec(n);a&&(a=o(a),this.r=a[0],this.g=a[1],this.b=a[2])}else this.r=e,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)}N.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)]}}],N.namedColors=v;var H=N;n.d(t,"CheckBoxModule",function(){return Sa}),n.d(t,"ColorContrastSvgComponent",function(){return ka}),n.d(t,"ColorInputComponent",function(){return oa}),n.d(t,"ContrastValidationComponent",function(){return Oa}),n.d(t,"ContrastComponent",function(){return ja}),n.d(t,"FlatColorPickerActionButtonsComponent",function(){return ha}),n.d(t,"FlatColorPickerHeaderComponent",function(){return ua}),n.d(t,"FocusOnDomReadyDirective",function(){return _a}),n.d(t,"ColorGradientLocalizationService",function(){return aa}),n.d(t,"ColorPaletteLocalizationService",function(){return ca}),n.d(t,"ColorPickerLocalizationService",function(){return Un}),n.d(t,"ColorPickerCustomMessagesComponent",function(){return ya}),n.d(t,"FlatColorPickerLocalizationService",function(){return qn}),n.d(t,"ColorPickerMessages",function(){return fa}),n.d(t,"ColorPaletteService",function(){return la}),n.d(t,"FlatColorPickerService",function(){return $n}),n.d(t,"MaskingService",function(){return dn}),n.d(t,"NumericTextBoxMessages",function(){return ht}),n.d(t,"RadioButtonModule",function(){return Ea}),n.d(t,"RangeSliderCustomMessagesComponent",function(){return jn}),n.d(t,"RangeSliderMessages",function(){return _n}),n.d(t,"SHARED_DIRECTIVES",function(){return An}),n.d(t,"SliderCustomMessagesComponent",function(){return yn}),n.d(t,"SliderMessages",function(){return gn}),n.d(t,"SliderBase",function(){return ze}),n.d(t,"SlidersCommonModule",function(){return mn}),n.d(t,"SwitchCustomMessagesComponent",function(){return Sn}),n.d(t,"Messages",function(){return Cn}),n.d(t,"TextFieldsBase",function(){return zn}),n.d(t,"TextBoxCustomMessagesComponent",function(){return Bn}),n.d(t,"TextBoxMessages",function(){return Rn}),n.d(t,"SliderComponent",function(){return He}),n.d(t,"RangeSliderComponent",function(){return We}),n.d(t,"LabelTemplateDirective",function(){return Ne}),n.d(t,"SwitchComponent",function(){return Ke}),n.d(t,"TextBoxDirective",function(){return Ue}),n.d(t,"TextAreaDirective",function(){return qe}),n.d(t,"NumericTextBoxComponent",function(){return ut}),n.d(t,"NumericTextBoxCustomMessagesComponent",function(){return bt}),n.d(t,"MaskedTextBoxComponent",function(){return un}),n.d(t,"InputsModule",function(){return Ba}),n.d(t,"SliderTicksComponent",function(){return bn}),n.d(t,"SliderModule",function(){return vn}),n.d(t,"RangeSliderModule",function(){return kn}),n.d(t,"SwitchModule",function(){return Tn}),n.d(t,"NumericTextBoxModule",function(){return Dn}),n.d(t,"MaskedTextBoxModule",function(){return In}),n.d(t,"TextBoxModule",function(){return Nn}),n.d(t,"TextAreaModule",function(){return Kn}),n.d(t,"ColorPickerComponent",function(){return ga}),n.d(t,"ColorPaletteComponent",function(){return pa}),n.d(t,"ColorGradientComponent",function(){return sa}),n.d(t,"ColorPickerModule",function(){return Ca}),n.d(t,"FlatColorPickerComponent",function(){return ba}),n.d(t,"ColorPickerCancelEvent",function(){return Yn}),n.d(t,"CheckBoxDirective",function(){return wa}),n.d(t,"RadioButtonDirective",function(){return Ta}),n.d(t,"HintComponent",function(){return Pa}),n.d(t,"ErrorComponent",function(){return Ia}),n.d(t,"FormFieldComponent",function(){return Va}),n.d(t,"FormFieldModule",function(){return Ra}),n.d(t,"TextBoxComponent",function(){return Vn}),n.d(t,"TextBoxPrefixTemplateDirective",function(){return Pn}),n.d(t,"TextBoxSuffixTemplateDirective",function(){return xn}),n.d(t,"TextAreaComponent",function(){return Gn}),n.d(t,"TextAreaSuffixComponent",function(){return Wn}),n.d(t,"InputSeparatorComponent",function(){return Mn}),n.d(t,"SharedModule",function(){return Ln}),n.d(t,"LocalizedColorPickerMessagesDirective",function(){return va}),n.d(t,"LocalizedNumericTextBoxMessagesDirective",function(){return En}),n.d(t,"LocalizedTextBoxMessagesDirective",function(){return Fn}),n.d(t,"LocalizedSliderMessagesDirective",function(){return fn}),n.d(t,"LocalizedRangeSliderMessagesDirective",function(){return On}),n.d(t,"LocalizedSwitchMessagesDirective",function(){return wn}),n.d(t,"ColorPickerCloseEvent",function(){return Xn}),n.d(t,"ColorPickerOpenEvent",function(){return Qn}),n.d(t,"ActiveColorClickEvent",function(){return Jn});function G(e){return null!=e}function W(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t}function K(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function U(e,t,n,i){switch(t){case"size":return{toRemove:"k-"+e+"-"+pe[n],toAdd:i?"k-"+e+"-"+pe[i]:null};case"rounded":return{toRemove:"k-rounded-"+ue[n],toAdd:i?"k-rounded-"+ue[i]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:i?"k-"+e+"-"+i:null}}}function q(e){return Math.min(e,20)}function Z(e,t){if(0===t)return NaN;var n=be(e,t);return(n=Math.pow(10,n))*e/(n*t)}function $(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth}function Y(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),(n=void 0===n?1:n)<=0)throw new Error("Invalid argument: smallStep must be a positive number");return e=Math.abs(fe(t,e)),n=Math.floor(Z(e,n)),ge(n,1)}function X(e){var t=e.trackWidth,n=e.min,i=e.max,a=e.reverse,e=e.value,i=t/Math.abs(i-n),n=G(e)?i*(e-n):n;return a&&(n=t-n),Math.floor(n)}function Q(e){return-1<e.id.indexOf("k-start-handle")}function J(e,t,n){return e<n?e:n<t?t:n}function ee(e,t,n){return n?[J(e,t,n[0]),J(e,t,n[1])]:[t,t]}function te(e){return e}function ne(e,t,n){var i,a=n.min,o=n.max,r=n.vertical,s=n.rtl,c=(i=t.getBoundingClientRect(),c=document.documentElement,{left:i.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||0),top:i.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||0)}),t=(r?e.pageY-c.top:e.pageX-c.left)*((o-a)/(r?t.clientHeight:t.clientWidth)),a=s||r?o-t:a+t,t=he(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,a=t.max,a=je(e,i,a);if(e!==a)return a;a=_e(e,t),t=Oe(e,t);return(e-i)%n==0?e:t-e<=(t-a)/2?t:a}(me(a,t+1),n)}function ie(e){return 0<=e.className.indexOf("k-button-increase")||0<=e.className.indexOf("k-button-decrease")}function ae(e){return Oe(e.value,e)}function oe(e){return _e(e.value,e)}function re(e){return Oe(e.value,e,!0)}function se(e){return _e(e.value,e,!0)}function ce(e){if(c.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")}var le,de=function(e,t,n){return!G(e)||isNaN(e)||e<=t?t:n<=e?n:e},pe={small:"sm",medium:"md",large:"lg"},ue={small:"sm",medium:"md",large:"lg",full:"full"},he=function(e){return(String(e).split(".")[1]||"").length},be=function(e,t){return Math.max(he(e),he(t))},me=function(e,t){t=q(t);return parseFloat(e.toFixed(t))},ge=function(e,t){var n=be(e,t);return me(e+t,n)},fe=function(e,t){return ge(e,-t)},ye=function(e,t){var n=he(e)+he(t);return me(e*t,n)},ve=function(e,t){return Math.abs(fe(e,ye(t,Math.floor(Z(e,t)))))},_e=function(e,t,n){var i=t.max,a=t.min,o=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?ye(o,t):o,o=fe(e,a),e=ve(o,t),e=fe(o,0===e?t:e);return je(ge(e,a),a,i)},Oe=function(e,t,n){var i=t.max,a=t.min,o=t.smallStep,t=t.largeStep,t=(n=void 0===n?!1:n)&&t?ye(o,t):o,o=fe(e,a),e=ve(o,t),t=ge(fe(o,e),t);return je(ge(t,a),a,i)},je=function(e,t,n){return Math.max(Math.min(e,n),t)},t=(we.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},we.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)},we.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=$(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},we.prototype.trackWidth=function(){return this.props.fixedTickWidth?$(this.props):this.elementSize(this.track.parentElement)},we.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,a=Y(t,n,i),e=this.trackWidth(),o=e/fe(n,t),r=[],s=0,c=0,l=0;l<a;l++){var c=+(c+=0===l||l===a-1?i/2*o:i*o).toFixed(2)-.01,d=Math.round(c-s);r.push(d),s+=d}return e<=s&&--r[r.length-1],r},we.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce(function(e,t){return e+t},0),t=this.trackWidth()-t;0!=t&&(t=t+this.elementOffset(this.track),e.style.paddingTop=t+"px")},we.prototype.elementOffset=function(e){var t=this.props.vertical,e=getComputedStyle(e);return parseInt(t?e.bottom:e.left,10)},we.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},we),ke=(le=t,Object(s.__extends)(Ce,le),Ce.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,a=t.reverse,o=t.vertical?"bottom":"left",r=this.trackWidth(),t=J(n,i,this.props.value);this.handlePosition=X({min:i,max:n,reverse:a,value:t,trackWidth:r}),this.renderer.setStyle(e,o,this.handlePosition+"px")},Ce.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",t=this.handlePosition;n&&(t=this.trackWidth()-t),this.renderer.setStyle(e,i,t+"px")},Ce);function Ce(){return null!==le&&le.apply(this,arguments)||this}function we(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()}function Se(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return e&&e.nativeElement&&e.nativeElement[t].apply(e.nativeElement,n)}function Te(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function Ee(e){return 0<=e?Math.floor(e):Math.ceil(e)}function De(e){}function Ie(e){return!isNaN(e)&&null!==e}var xe,Pe,Ve,Re,Be,Fe,Me,Ae,Le={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642572427,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"},Ne=Object(s.__decorate)([Object(c.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(s.__param)(0,Object(c.Optional)()),Object(s.__metadata)("design:paramtypes",[c.TemplateRef])],nt),ze=(Object.defineProperty(tt.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),tt.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},tt.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(l.NgControl,null)},Object.defineProperty(tt.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),tt.prototype.isEmpty=function(){return!1},Object.defineProperty(tt.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[h.Keys.ArrowLeft]=t?ae:oe,e[h.Keys.ArrowRight]=t?oe:ae,e[h.Keys.ArrowDown]=oe,e[h.Keys.ArrowUp]=ae,e[h.Keys.PageUp]=re,e[h.Keys.PageDown]=se,e[h.Keys.Home]=function(e){return e.min},e[h.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),tt.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(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Function)],tt.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],tt.prototype,"tickPlacement",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],tt.prototype,"vertical",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],tt.prototype,"min",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],tt.prototype,"max",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],tt.prototype,"smallStep",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],tt.prototype,"largeStep",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],tt.prototype,"fixedTickWidth",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],tt.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],tt.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],tt.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],tt.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],tt.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],tt.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],tt.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-slider-horizontal"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],tt.prototype,"horizontalClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-slider-vertical"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],tt.prototype,"verticalClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-slider"),Object(s.__metadata)("design:type",Boolean)],tt.prototype,"sliderClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-widget"),Object(s.__metadata)("design:type",Boolean)],tt.prototype,"widgetClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],tt.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.ViewChild)("wrap",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],tt.prototype,"wrapper",void 0),Object(s.__decorate)([Object(c.ViewChild)("track",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],tt.prototype,"track",void 0),Object(s.__decorate)([Object(c.ViewChild)("sliderSelection",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],tt.prototype,"sliderSelection",void 0),Object(s.__decorate)([Object(c.ViewChild)("ticks",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],tt.prototype,"ticksContainer",void 0),Object(s.__decorate)([Object(c.ViewChild)("ticks",{static:!1}),Object(s.__metadata)("design:type",Object)],tt.prototype,"ticks",void 0),Object(s.__decorate)([Object(c.ContentChild)(Ne,{static:!1}),Object(s.__metadata)("design:type",Ne)],tt.prototype,"labelTemplate",void 0),tt),He=(Me=ze,Object(s.__extends)(et,Me),Ae=et,Object.defineProperty(et.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"currentValue",{get:function(){return G(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),et.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,Se(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},et.prototype.blur=function(){this.focusChangedProgrammatically=!0,Se(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},et.prototype.ngOnChanges=function(e){var t=this;Object(h.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(p.take)(1)).subscribe(function(){t.sizeComponent(!1)})},et.prototype.ngAfterViewInit=function(){var e=this;Object(h.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())},et.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(et.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),et.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},et.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(ne(e,this.track.nativeElement,this.getProps()))},et.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},et.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},et.prototype.registerOnChange=function(e){this.ngChange=e},et.prototype.registerOnTouched=function(e){this.ngTouched=e},et.prototype.changeValue=function(e){var t=this;W(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()})},et.prototype.sizeComponent=function(e){var t,n,i,a,o;Object(h.isDocumentAvailable)()&&(t=this.wrapper.nativeElement,o=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandle.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null,e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([o,n,i,a,this.hostElement.nativeElement]),a=this.getProps(),(o=new ke(a,t,o,this.renderer)).resizeTrack(),this.ticks&&o.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),o.positionHandle(i),o.positionSelection(n),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&o.resizeWrapper())},Object.defineProperty(et.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(et.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e&&this.sliderSelection&&this.draghandle&&(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}),et.prototype.setValueChangeInterval=function(i,a){var o=this;this.ngZone.runOutsideAngular(function(){var e=Object(d.fromEvent)(i,"mousedown"),t=Object(d.fromEvent)(i,"mouseup"),n=Object(d.fromEvent)(i,"mouseout"),e=e.pipe(Object(p.filter)(function(e){return 0===e.button&&!o.isDisabled}),Object(p.concatMap)(function(){return Object(d.interval)(150).pipe(Object(p.startWith)(-1),Object(p.takeUntil)(Object(d.merge)(t,n)))})).subscribe(function(){o.isFocused||Se(o.draghandle,"focus"),a()});o.subscriptions.add(e)})},et.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:J(this.max,this.min,this.value),vertical:this.vertical}},et.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandle.nativeElement&&t.handleBlur(),n=!1):i||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){i=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){i=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===h.Keys.Tab}))})},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],et.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],et.prototype,"dragHandleTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],et.prototype,"incrementTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],et.prototype,"animate",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],et.prototype,"decrementTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],et.prototype,"showButtons",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],et.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],et.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.ViewChild)("draghandle",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],et.prototype,"draghandle",void 0),Object(s.__decorate)([Object(c.ViewChild)("decreaseButton",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],et.prototype,"decreaseButton",void 0),Object(s.__decorate)([Object(c.ViewChild)("increaseButton",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],et.prototype,"increaseButton",void 0),Ae=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Ae})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Ae})}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService,c.Injector,c.Renderer2,c.NgZone,c.ChangeDetectorRef,c.ElementRef])],et)),Ge=(Fe=t,Object(s.__extends)(Je,Fe),Je.prototype.positionHandle=function(e){var t,n,i,a,o,r;e.id&&(t=(r=this.props).max,n=r.min,i=r.reverse,a=r.vertical?"bottom":"left",o=this.trackWidth(),r=Q(e)?ee(t,n,this.props.value)[0]:ee(t,n,this.props.value)[1],Q(e)?(this.startHandlePosition=X({min:n,max:t,reverse:i,value:r,trackWidth:o}),this.renderer.setStyle(e,a,this.startHandlePosition+"px")):(this.endHandlePosition=X({min:n,max:t,reverse:i,value:r,trackWidth:o}),this.renderer.setStyle(e,a,this.endHandlePosition+"px")))},Je.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,a=n.vertical,o=a?"height":"width",r=a?"bottom":i?"right":"left",n=Math.abs(this.endHandlePosition-this.startHandlePosition),e=a?e.style.bottom:e.style.left;this.renderer.setStyle(t,o,n+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(e)+"px":parseFloat(e)+"px")},Je),We=(Re=ze,Object(s.__extends)(Qe,Re),(Be=Qe).prototype.focus=function(){this.focusChangedProgrammatically=!0,Se(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},Qe.prototype.blur=function(){this.focusChangedProgrammatically=!0,Se("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},Qe.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),Re.prototype.ngOnInit.call(this)},Qe.prototype.ngOnChanges=function(e){var t=this;Object(h.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&ce(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(p.take)(1)).subscribe(function(){t.sizeComponent()}))},Qe.prototype.ngAfterViewInit=function(){var e=this;Object(h.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(function(){return e.sizeComponent()}),this.attachElementEventHandlers())},Qe.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Qe.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(Qe.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),Qe.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();e=e.originalEvent.target;this.draggedHandle=e,this.renderer.setStyle(e,"zIndex",++this.handleZIndex)},Qe.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};function a(){return t.changeValue([ne(e,t.track.nativeElement,t.getProps()),t.value[1]])}function o(){return t.changeValue([t.value[0],ne(e,t.track.nativeElement,t.getProps())])}function r(){return t.changeValue([ne(e,t.track.nativeElement,t.getProps()),ne(e,t.track.nativeElement,t.getProps())])}var s=e.pageX<this.lastHandlePosition.x,c=e.pageX>this.lastHandlePosition.x,l=e.pageY>this.lastHandlePosition.y,d=Q(this.draggedHandle),i=this.vertical,n=!i,s=i&&l||(this.reverse?n&&c:n&&s);(this.value[0]===this.value[1]?s?d?a:r:d?r:o:d?a:o)()},Qe.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},Qe.prototype.writeValue=function(e){ce(e),this.value=e,this.sizeComponent()},Qe.prototype.registerOnChange=function(e){this.ngChange=e},Qe.prototype.registerOnTouched=function(e){this.ngTouched=e},Qe.prototype.changeValue=function(e){var t,n=this;this.value&&(t=this.value,W(t[0],e[0])&&W(t[1],e[1]))||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.value&&n.valueChange.emit(e),n.sizeComponent()})},Qe.prototype.sizeComponent=function(){var e,t,n,i,a,o;Object(h.isDocumentAvailable)()&&(e=this.wrapper.nativeElement,o=this.track.nativeElement,t=this.sliderSelection.nativeElement,n=this.draghandleStart.nativeElement,i=this.draghandleEnd.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null,this.resetStyles([o,t,n,i,a,this.hostElement.nativeElement]),a=this.getProps(),(o=new Ge(a,e,o,this.renderer)).resizeTrack(),this.ticks&&o.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(function(e){return e.nativeElement})),o.positionHandle(n),o.positionHandle(i),o.positionSelection(n,t),this.fixedTickWidth&&o.resizeWrapper())},Object.defineProperty(Qe.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),Qe.prototype.isEmpty=function(){return!1},Object.defineProperty(Qe.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(Qe.prototype,"dragging",{set:function(e){var t,n;this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd&&(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}),Qe.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ee(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},Qe.prototype.attachElementEventHandlers=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.focusChangedProgrammatically||t.onFocus.emit(),t.focused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(n?(e.relatedTarget!==t.draghandleStart.nativeElement&&e.relatedTarget!==t.draghandleEnd.nativeElement&&t.handleBlur(),n=!1):i||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){i=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){i=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){n=e.keyCode===h.Keys.Tab}))})},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Array)],Qe.prototype,"value",void 0),Object(s.__decorate)([Object(c.ViewChild)("draghandleStart",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],Qe.prototype,"draghandleStart",void 0),Object(s.__decorate)([Object(c.ViewChild)("draghandleEnd",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],Qe.prototype,"draghandleEnd",void 0),Be=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoRangeSlider",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Be})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Be})}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService,c.Injector,c.Renderer2,c.NgZone,c.ChangeDetectorRef,c.ElementRef])],Qe)),Ke=(Ve=Xe,Object.defineProperty(Xe.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"ieClass",{get:function(){return m.browser&&m.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(Xe.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),Xe.prototype.ngOnInit=function(){var e,t=this;this.hostElement&&(e=this.hostElement.nativeElement,this.renderer.removeAttribute(e,"tabindex")),this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(p.skip)(1)).subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"}),this.control=this.injector.get(l.NgControl,null),this.ngZone.onStable.pipe(Object(p.take)(1)).subscribe(function(){return t.initialized=!0})},Xe.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},Xe.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},Xe.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},Xe.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},Xe.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},Xe.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},Xe.prototype.registerOnChange=function(e){this.ngChange=e},Xe.prototype.registerOnTouched=function(e){this.ngTouched=e},Xe.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==h.Keys.Space&&t!==h.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},Xe.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},Xe.prototype.isEmpty=function(){return!1},Xe.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(Xe.prototype,"focused",{set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),Xe.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))})},Xe.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},Xe.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("switch",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Xe.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,e=U("switch","rounded",this.trackRounded,e);e.toRemove&&(this.renderer.removeClass(t,e.toRemove),this.renderer.removeClass(n,e.toRemove)),e.toAdd&&(this.renderer.addClass(t,e.toAdd),this.renderer.addClass(n,e.toAdd))},Xe.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,e=U("switch","rounded",this.thumbRounded,e);e.toRemove&&this.renderer.removeClass(t,e.toRemove),e.toAdd&&this.renderer.addClass(t,e.toAdd)},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Xe.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Xe.prototype,"onLabel",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Xe.prototype,"offLabel",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[Boolean])],Xe.prototype,"checked",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Xe.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Xe.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Xe.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Xe.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Xe.prototype,"thumbRounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Xe.prototype,"trackRounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Xe.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],Xe.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],Xe.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Xe.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Xe.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-ie"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Xe.prototype,"ieClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Xe.prototype,"ariaDisabled",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Xe.prototype,"ariaReadonly",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-switch"),Object(s.__metadata)("design:type",Boolean)],Xe.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Xe.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.ViewChild)("track",{static:!0}),Object(s.__metadata)("design:type",Object)],Xe.prototype,"track",void 0),Object(s.__decorate)([Object(c.ViewChild)("thumb",{static:!0}),Object(s.__metadata)("design:type",Object)],Xe.prototype,"thumb",void 0),Ve=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoSwitch",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Ve})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Ve})}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef,u.LocalizationService,c.Injector,c.ChangeDetectorRef,c.NgZone])],Xe)),Ue=(Pe=Ye,Object.defineProperty(Ye.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(Ye.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),Ye.prototype.ngAfterViewInit=function(){var t=this,e=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(e,"focus",function(){return t.onFocus.emit()}),this.renderer.listen(e,"blur",function(){return t.onBlur.emit()})],this.ngZone.runOutsideAngular(function(){t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})})},Ye.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()})},Object(s.__decorate)([Object(c.HostBinding)("class.k-textbox"),Object(c.HostBinding)("class.k-input"),Object(s.__metadata)("design:type",Boolean)],Ye.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ye.prototype,"value",null),Pe=Object(s.__decorate)([Object(c.Directive)({selector:"input[kendoTextBox]",providers:[{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Pe})}]}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef,c.NgZone])],Ye)),qe=(xe=$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 t=this,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.listeners=[t.renderer.listen(e,"focus",t.handleFocus.bind(t)),t.renderer.listen(e,"blur",t.handleBlur.bind(t)),t.renderer.listen(e,"animationstart",function(e){"autoFillStart"===e.animationName?t.autoFillStart.emit():"autoFillEnd"===e.animationName&&t.autoFillEnd.emit()})],Object(h.isDocumentAvailable)()&&t.autoSize&&(t.resizeSubscription=Object(d.fromEvent)(window,"resize").pipe(Object(p.debounceTime)(50)).subscribe(function(){return t.resize()})),t.inputSubscription=Object(d.fromEvent)(e,"input").subscribe(t.handleInput.bind(t))}),this.control=this.injector.get(l.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(){var e,t;this.autoSize&&(e=this.element.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px",(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},$e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(h.hasObservers)(this.onValueChange)||Object(h.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(h.hasObservers)(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()})},$e.prototype.handleBlur=function(){var e=this;(Object(h.hasObservers)(this.onBlur)||K(this.control))&&this.zone.run(function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()})},Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea"),Object(c.HostBinding)("class.k-input"),Object(s.__metadata)("design:type",Boolean)],$e.prototype,"elementClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-autofill"),Object(s.__metadata)("design:type",Boolean)],$e.prototype,"autofillClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],$e.prototype,"direction",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],$e.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],$e.prototype,"autoSize",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],$e.prototype,"value",void 0),xe=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return xe}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return xe})}],selector:"textarea[kendoTextArea]"}),Object(s.__param)(5,Object(c.Optional)()),Object(s.__param)(5,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef,c.NgZone,c.ChangeDetectorRef,c.Injector,Boolean])],$e)),Ze=/[eE][\-+]?([0-9]+)/;function $e(e,t,n,i,a,o){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=a,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new c.EventEmitter,this.autoSize=!1,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.onValueChange=new c.EventEmitter,this.autoFillStart=new c.EventEmitter,this.autoFillEnd=new c.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=o?"rtl":"ltr"}function Ye(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.onValueChange=new c.EventEmitter,this.autoFillStart=new c.EventEmitter,this.autoFillEnd=new c.EventEmitter,this.listeners=[]}function Xe(e,t,n,i,a,o){var r=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=a,this.ngZone=o,this.focusableId="k-"+Object(h.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new d.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){r.isFocused||(r.focused=!0,Object(h.hasObservers)(r.onFocus)&&r.ngZone.run(function(){r.onFocus.emit()}))},this.handleBlur=function(e){e=e&&e.relatedTarget;r.hostElement.nativeElement.contains(e)||(r.changeDetector.markForCheck(),r.focused=!1,(Object(h.hasObservers)(r.onBlur)||K(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.onBlur.emit()}))},Object(b.validatePackage)(Le),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}function Qe(e,t,n,i,a,o){var r=Re.call(this,e,t,n,i,a,o)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=i,r.changeDetector=a,r.hostElement=o,r.startHandleId="k-start-handle-"+Object(h.guid)(),r.endHandleId="k-end-handle-"+Object(h.guid)(),r.focusableId=r.startHandleId,r.handleZIndex=0,r.activeHandle="startHandle",r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t,n,i;r.isDisabled||(r.value=r.value||[r.min,r.min],t=ne(e,r.track.nativeElement,r.getProps()),n=void 0,e=(i=n=r.value)[0],i=i[1],t<=e?(n=[t,i],r.activeHandle="startHandle"):e<t&&t<i?t<(e+i)/2?(n=[t,i],r.activeHandle="startHandle"):(n=[e,t],r.activeHandle="endHandle"):i<=t&&(n=[e,t],r.activeHandle="endHandle"),Se("startHandle"===r.activeHandle?r.draghandleStart:r.draghandleEnd,"focus"),r.changeValue(n))},r.onKeyDown=function(e){r.value=r.value||[r.min,r.min];var t,n=r.getProps(),i=n.max,a=n.min,o=r.keyBinding[e.keyCode];!r.isDisabled&&o&&(r.renderer.setStyle(e.target,"zIndex",++r.handleZIndex),t=Q(e.target),n=o(Object(s.__assign)({},n,{value:t?r.value[0]:r.value[1]})),t?n>r.value[1]&&(r.value[1]=n):n<r.value[0]&&(r.value[0]=n),n=J(i,a,n),n=t?[n,r.value[1]]:[r.value[0],n],r.changeValue(n),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(Object(h.hasObservers)(r.onBlur)||K(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}function Je(){return null!==Fe&&Fe.apply(this,arguments)||this}function et(e,t,n,i,a,o){var r=Me.call(this,e,t,n,i,a,o)||this;return r.localization=e,r.injector=t,r.renderer=n,r.ngZone=i,r.changeDetector=a,r.hostElement=o,r.focusableId="k-"+Object(h.guid)(),r.animate=!0,r.showButtons=!0,r.value=r.min,r.focusChangedProgrammatically=!1,r.onWrapClick=function(e){var t=e.target;r.isDisabled||ie(t)||ie(t.parentNode)||(e=ne(e,r.track.nativeElement,r.getProps()),r.changeValue(e)),Se(r.draghandle,"focus")},r.onKeyDown=function(e){var t=r.getProps(),n=t.max,i=t.min,a=r.keyBinding[e.keyCode];!r.isDisabled&&a&&(t=a(t),r.changeValue(J(n,i,t)),e.preventDefault())},r.ngChange=function(e){},r.ngTouched=function(){},r.decreaseValue=function(){r.changeValue(_e(r.value,r.getProps()))},r.increaseValue=function(){r.changeValue(Oe(r.value,r.getProps()))},r.handleBlur=function(){r.changeDetector.markForCheck(),r.focused=!1,(Object(h.hasObservers)(r.onBlur)||K(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.focusChangedProgrammatically||r.onBlur.emit()})},r}function tt(e,t,n,i,a,o){var r=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=a,this.hostElement=o,this.title=te,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new d.Subscription,this.ifEnabled=function(e,t){r.isDisabled||e.call(r,t)},Object(b.validatePackage)(Le),this.direction=e.rtl?"rtl":"ltr"}function nt(e){this.templateRef=e}function it(e,t){var n=t-String(e).length,t=e;return 0<n&&(n=new Array(1+n).join("0"),t=parseFloat(e+n)),t}var at;(t=at=at||{})[t.Down=-1]="Down",t[t.None=0]="None",t[t.Up=1]="Up";var ot,rt,st,ct,lt,dt=["min","max","step","decimals"],pt={decimals:null,max:null,min:null,step:1},ut=(lt=ft,Object.defineProperty(ft.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(ft.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),ft.prototype.ngOnInit=function(){var t=this;this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"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(l.NgControl,null),this.ngZone.runOutsideAngular(function(){t.domEvents.push(t.renderer.listen(t.hostElement.nativeElement,"mousewheel",t.handleWheel.bind(t))),t.domEvents.push(t.renderer.listen(t.hostElement.nativeElement,"DOMMouseScroll",t.handleWheel.bind(t)))})},ft.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},ft.prototype.ngOnChanges=function(t){var n,i;Object(h.anyChanged)(dt,t,!1)&&this.parseOptions(dt.filter(function(e){return t[e]})),this.verifySettings(),Object(h.anyChanged)(["min","max","rangeValidation"],t,!1)&&(this.minValidateFn=this.rangeValidation?(i=this.min,function(e){return!G(i)||!G(e.value)||e.value>=i?null:{minError:{minValue:i,value:e.value}}}):De,this.maxValidateFn=this.rangeValidation?(n=this.max,function(e){return!G(n)||!G(e.value)||e.value<=n?null:{maxError:{maxValue:n,value:e.value}}}):De,this.ngValidatorChange()),Object(h.anyChanged)(["autoCorrect","decimals","min"],t)&&delete this.numericRegex,Object(h.anyChanged)(["value","format"],t,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},ft.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})},ft.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},ft.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},ft.prototype.writeValue=function(e){this.verifyValue(e);e=this.restrictModelValue(e);this.value=e,this.setInputValue()},ft.prototype.registerOnChange=function(e){this.ngChange=e},ft.prototype.registerOnTouched=function(e){this.ngTouched=e},ft.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},ft.prototype.focus=function(){Se(this.numericInput,"focus")},ft.prototype.blur=function(){Se(this.numericInput,"blur")},ft.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(ft.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(ft.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(ft.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&0<=this.decimals},enumerable:!0,configurable:!0}),Object.defineProperty(ft.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),ft.prototype.arrowPress=function(e,t){var n;t.preventDefault(),this.isDisabled||(n=t.button&&2===t.button,t=t.which&&3===t.which,n||t)||(m.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},ft.prototype.updateValue=function(e){var t=this;W(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},ft.prototype.replaceNumpadDotValue=function(){var e,t,n,i,a,o=this.inputValue||"";return this.previousSelection&&(t=(e=this.numericInput.nativeElement).selectionStart,n=e.selectionEnd,i=(a=this.previousSelection).start,a=a.end,e.value=o=o.substring(0,i)+this.decimalSeparator+o.substring(a),this.setSelection(t,n)),o},ft.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},n=t.min,"."===(i=t.separator)&&(i="\\"+i),new RegExp("^"+(t.autoCorrect&&null!==n&&0<=n?"":"-?")+(0===t.decimals?"\\d*":"(?:(?:\\d+("+i+"\\d*)?)|(?:"+i+"\\d*))?")+"$"))),this.numericRegex.test(e);var t,n,i},ft.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){n.spin(e,50)},t),this.addStep(e)},ft.prototype.addStep=function(e){e=ge(this.value||0,this.step*e),e=this.limitValue(e);e=this.restrictDecimals(e),this.setInputValue(e),this.updateValue(e)},ft.prototype.setSelection=function(e,t){this.focused&&Se(this.numericInput,"setSelectionRange",e,t)},ft.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(Ie(this.max)&&e>this.max&&(t=this.max),Ie(this.min)&&e<this.min&&(t=this.min)),t},ft.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,a=t.value,o=e,r=!1;if(!this.isInRange(e)){var s=a.length-String(this.inputValue).length,c=this.min,l=this.max,d=Ie(l),p=Ie(c),u=void 0,h=void 0,t=e;if(0===n&&this.inputValue.substr(1)===a)return{selectionEnd:i,selectionStart:n,value:null};d&&l<e?0<e?h=!0:u=l:p&&e<c&&(0<e?u=c:h=!0),u?(c=this.tryPadValue(e,u))&&Ee(e)!==Ee(u)&&(t=c,r=!0):h&&this.inputValue&&n!==a.length&&(t=parseFloat(a.substr(0,n)+a.substr(n+s))),o=this.limitValue(t),r=(r||o!==t)&&this.previousSelection&&0<this.previousSelection.end-this.previousSelection.start+s}return{selectionEnd:r?String(o).length:i,selectionStart:n,value:o}},ft.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,t=it(e,i),i=it(e,i+1);return this.isInRange(t)?n=t:this.isInRange(i)&&(n=i),n},ft.prototype.isInRange=function(e){return!Ie(e)||(!Ie(this.min)||this.min<=e)&&(!Ie(this.max)||e<=this.max)},ft.prototype.restrictModelValue=function(e){e=this.restrictDecimals(e,!0);return e=this.autoCorrect&&this.limitValue(e)!==e?null:e},ft.prototype.restrictDecimals=function(e,t){var n,i,a=e;return e&&this.hasDecimals&&(n=this.decimals,i=String(e),t||Ze.test(i)?a=me(e,n):(i=(e=i.split("."))[1])&&i.length>n&&(i=i.substr(0,n),a=parseFloat(e[0]+"."+i))),a},ft.prototype.formatInputValue=function(e){var t=String(e),n=Ze.exec(t);return(t=n?e.toFixed(q(parseInt(n[1],10))):t).replace(".",this.decimalSeparator)},ft.prototype.formatValue=function(e,t){return null!=e&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},ft.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);t=this.formatValue(e,t);this.elementValue=t,this.inputValue=t},ft.prototype.verifySettings=function(){if(Object(c.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.")},ft.prototype.verifyValue=function(e){if(Object(c.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},ft.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),o=!isNaN(a);if(Object(c.isDevMode)()&&!o&&""!==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]=o?a:pt[n]}}},ft.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},ft.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){e=e.split(this.decimalSeparator)[1];return e&&e.length>this.decimals&&e.lastIndexOf("0")===e.length-1}},ft.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},ft.prototype.selectCaret=function(){var n,e=this.numericInput.nativeElement.selectionStart,t=this.elementValue,i=t.substring(0,e);this.setInputValue(),i.length?(e=this.decimalSeparator,n=e+"0123456789-",i=i.split("").reduce(function(e,t){return n.includes(t)?++e:e},0),i=this.adjustSignificantChars(t,i),this.setSelection(i,i)):this.setSelection(0,0)},ft.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){e=n[0].length,n=n[1].length;return e===t?n-1:n}return 0},ft.prototype.adjustSignificantChars=function(e,t){e=this.numberOfLeadingZeroes(e);return 0<e?Math.max(0,t-e):t},ft.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("input",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ft.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ft.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"autoCorrect",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],ft.prototype,"format",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"max",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"min",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"decimals",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ft.prototype,"placeholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"step",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"spinners",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"rangeValidation",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],ft.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"changeValueOnScroll",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"selectOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ft.prototype,"maxlength",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],ft.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],ft.prototype,"rounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],ft.prototype,"fillMode",null),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],ft.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],ft.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],ft.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.ViewChild)("numericInput",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],ft.prototype,"numericInput",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],ft.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],ft.prototype,"disableClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-input"),Object(c.HostBinding)("class.k-numerictextbox"),Object(s.__metadata)("design:type",Boolean)],ft.prototype,"hostClasses",void 0),lt=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoNumericTextBox",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return lt}),multi:!0},{provide:l.NG_VALIDATORS,useExisting:Object(c.forwardRef)(function(){return lt}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return lt})}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),Object(s.__metadata)("design:paramtypes",[g.IntlService,c.Renderer2,u.LocalizationService,c.Injector,c.NgZone,c.ChangeDetectorRef,c.ElementRef])],ft)),ht=(ct=u.ComponentMessages,Object(s.__extends)(gt,ct),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],gt.prototype,"decrement",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],gt.prototype,"increment",void 0),gt),bt=(rt=ht,Object(s.__extends)(mt,rt),st=mt,Object.defineProperty(mt.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),st=Object(s.__decorate)([Object(c.Component)({providers:[{provide:ht,useExisting:Object(c.forwardRef)(function(){return st})}],selector:"kendo-numerictextbox-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],mt));function mt(e){var t=rt.call(this)||this;return t.service=e,t}function gt(){return null!==ct&&ct.apply(this,arguments)||this}function ft(e,t,n,i,a,o,r){var s=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=a,this.changeDetector=o,this.hostElement=r,this.focusableId="k-"+Object(h.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 c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.ArrowDirection=at,this.arrowDirection=at.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=De,this.maxValidateFn=De,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=De,this.ngTouched=De,this.ngValidatorChange=De,this.domEvents=[],this.increasePress=function(e){s.arrowPress(at.Up,e)},this.decreasePress=function(e){s.arrowPress(at.Down,e)},this.releaseArrow=function(){clearTimeout(s.spinTimeout),s.arrowDirection!==at.None&&(s.arrowDirection=at.None,s.changeDetector.detectChanges())},this.handlePaste=function(){s.isPasted=!0},this.handleInput=function(){var e=s.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(s.pressedKey===h.Keys.NumpadDecimal&&(i=s.replaceNumpadDotValue()),s.isPasted&&(i=s.formatInputValue(s.intl.parseNumber(i))),!s.isValid(i))return e.value=s.inputValue,void s.setSelection(t-1,n-1);var a,o=s.intl.parseNumber(i),r=s.restrictDecimals(o);s.autoCorrect&&(r=(a=s.limitInputValue(r)).value,t=a.selectionStart,n=a.selectionEnd),o!==r||s.hasTrailingZeros(i)||!s.focused?(s.setInputValue(r),s.setSelection(t,n)):s.inputValue=i,s.isPasted&&(e.value=s.inputValue),s.updateValue(r),s.previousSelection=null,s.isPasted=!1},this.handleDragEnter=function(){s.focused||s.isDisabled||s.setInputValue(s.value,!0)},this.handleMouseDown=function(){s.mouseDown=!0},this.handleFocus=function(){var e;s.focused||(s.focused=!0,s.isDisabled)||(e=s.selectOnFocus||!s.mouseDown,s.ngZone.runOutsideAngular(function(){setTimeout(function(){e?s.selectAll():s.selectCaret()},0)})),s.mouseDown=!1,Object(h.hasObservers)(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.inputValue!==s.elementValue&&s.handleInput(),s.setInputValue(),(Object(h.hasObservers)(s.onBlur)||K(s.control))&&s.ngZone.run(function(){s.ngTouched(),s.onBlur.emit()})},this.handleKeyDown=function(e){var t;s.isDisabled||(e.keyCode===h.Keys.ArrowDown?t=-1:e.keyCode===h.Keys.ArrowUp&&(t=1),t&&s.step&&(e.preventDefault(),s.addStep(t)),t=s.numericInput.nativeElement,s.previousSelection={end:t.selectionEnd,start:t.selectionStart},s.pressedKey=e.keyCode)},this.handleWheel=function(e){var t;s.focused&&!s.isDisabled&&s.changeValueOnScroll&&(e.preventDefault(),t=0,(e=e).wheelDelta?t=0<(t=e.wheelDelta/120)?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t=t,s.addStep(t))},Object(b.validatePackage)(Le),this.direction=n.rtl?"rtl":"ltr"}(t=ot=ot||{})[t.Literal=0]="Literal",t[t.Mask=1]="Mask",t[t.Undefined=2]="Undefined";function yt(e){return(e||"").split("")}function vt(i,a){return new ln(function(e){var t=e.next().char,n=i[t];return"\\"===t?(t=e.next().char,new sn(a.literal(t),e)):new sn(n?a.mask(n):a.literal(t),e)})}function _t(e){var n=e.prompt,i=e.promptPlaceholder;return new ln(function(e){var t=e.next().char;return new sn(t===n?i:t,e)})}function Ot(n){return new ln(function(e){var t=e.next().char;return new sn(n?t:"",e)})}function jt(e){return e.reduce(function(e,t){return n=t,e.chain(function(t){return n.map(function(e){return t.concat([e])})});var n},(t=[],new ln(function(e){return new sn(t,e)})));var t}function kt(n){return new ln(function(e){for(var t=new sn([],e);!e.eof();)t=t.concat(n.run(e));return t})}function Ct(e,t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!0),-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(G(e)){if("name"===t)return function(t,e){if(t=t.toLowerCase().trim(),G(v[t]))return t;A(t,e)&&(t=A(t,e).toHex());var n=Object.keys(v).find(function(e){return v[e]===t});if(!n&&!e)throw new Error("The provided color "+t+" is not supported for 'format=\"name\"' property.To display "+t+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}(e,i);i=A(e.trim(),i);return G(i)?"hex"===t?Tt(i,n):i.toCssRgba():void 0}}function wt(e,t){return t=A(e,t=void 0===t?!0:t),G(t)?t.toBytes():{}}function St(e,t,n){void 0===t&&(t="rgba"),void 0===n&&(n=!1);var i=de(e.h,0,359.9),a=de(e.s,0,1),o=de(e.v,0,1),e=de(e.a,0,1),e=H.fromHSV(i,a,o,e);return"hex"===t?Tt(e,n):e.toCssRgba()}function Tt(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()}function Et(e){return St({h:e,s:1,v:1,a:1})}var Dt,It,xt,Pt,Vt,Rt,Bt,Ft,Mt,At,Lt,Nt,zt,Ht,Gt,Wt,Kt,Ut,qt,Zt,$t,Yt,Xt,Qt,Jt,en,tn,nn,an,on,rn,sn=(zi.prototype.map=function(e){return new zi(e(this.value),this.rest)},zi.prototype.chain=function(e){return e(this.value,this.rest)},zi.prototype.fold=function(e,t){return e(this.value,this.rest)},zi.prototype.concat=function(t){return this.map(function(n,e){return t.chain(function(e,t){return n.concat([e])})})},zi.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},zi),cn=(Ni.prototype.eof=function(){return this.inputCursor>=this.input.length},Ni.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},Ni.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},Ni.prototype.eat_input=function(){this.inputCursor++},Ni.prototype.eat_control=function(){this.controlCursor++},Ni.prototype.eat=function(){this.inputCursor++,this.controlCursor++},Ni),ln=(Li.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof cn?this.parse(e):this.parse(new cn(yt(e),yt(t)))},Li.prototype.map=function(t){var n=this;return new Li(function(e){return n.parse(e).map(t)})},Li.prototype.chain=function(n){var t=this;return new Li(function(e){return t.parse(e).chain(function(e,t){return n(e).run(t)})})},Li.prototype.isLiteral=function(e){return this.run(e).type===ot.Literal},Li),dn=(Ai.prototype.update=function(e){var t=e.mask,n=e.prompt,i=void 0===n?"":n,a=e.promptPlaceholder,n=void 0===a?" ":a,a=e.rules,a=void 0===a?{}:a,e=e.includeLiterals,e=void 0!==e&&e;this.mask=void 0===t?"":t,this.prompt=i,this.promptPlaceholder=n,this.rules=a,this.includeLiterals=e,this.tokenize()},Ai.prototype.validationValue=function(e){var t=e=void 0===e?"":e;return jt(this.validationTokens).run(e).fold(function(e){t=e.join("")}),t},Ai.prototype.rawValue=function(e){var t=e=void 0===e?"":e;return this.rawTokens.length&&jt(this.rawTokens).run(e).fold(function(e){t=e.join("")}),t},Ai.prototype.maskRaw=function(e){var t=e=void 0===e?"":e;return this.maskTokens.length&&jt(this.maskTokens).run(e).fold(function(e){t=e.join("")}),t},Ai.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},Ai.prototype.maskInRange=function(e,t,n,i){var a="",o=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return jt(this.maskTokens.slice(n,i)).run(e).fold(function(e){a=r.concat(e).concat(s).join("")}),{selection:o,value:a}},Ai.prototype.maskRemoved=function(e,t,n){var i=this,a="",o=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),n=this.maskTokens.length-(e.length-n);return jt(this.maskTokens.slice(0,n)).run(s,t).fold(function(e){o=i.adjustPosition(e,o),a=e.concat(r).join("")}),{selection:o,value:a}},Ai.prototype.adjustPosition=function(e,t){e=e[t];return this.maskTokens[t].isLiteral(e)||e===this.prompt?t:t+1},Ai.prototype.maskInserted=function(e,n,t){var i=this,a="",o=t,t=e.slice(0,t);return jt(this.unmaskTokens).run(t,n).chain(function(e){o=e.join("").length;var t=n.slice(o);return jt(i.maskTokens).run(e.join("")+t,n)}).fold(function(e){a=e.join("")}),{selection:o,value:a}},Object.defineProperty(Ai.prototype,"maskTokenCreator",{get:function(){var n=this.prompt,i=this.promptPlaceholder;return{literal:function(e){return t=e,new ln(function(e){return e.peek().char===t&&e.eat(),new sn(t,e,ot.Literal)});var t},mask:function(e){return a=(t={prompt:n,promptPlaceholder:i}).prompt,o=t.promptPlaceholder,function(i){return new ln(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===t&&t===a)return e.eat(),new sn(a,e,ot.Mask);if(i.test(n))return e.eat(),new sn(n,e,ot.Mask);if(n===o)return e.eat(),new sn(a,e,ot.Mask);e.eat_input()}return e.eat(),new sn(a,e,ot.Mask)})}(e);var t,a,o}}},enumerable:!0,configurable:!0}),Object.defineProperty(Ai.prototype,"unmaskTokenCreator",{get:function(){var t=this;return{literal:function(e){return t=e,new ln(function(e){return e.eof()?new sn("",e):(e.peek().char===t&&e.eat(),new sn(t,e))});var t},mask:function(e){return a=t.prompt,function(i){return new ln(function(e){for(;!e.eof();){var t=e.peek(),n=t.char,t=t.control;if(n===a&&t===a)return e.eat(),new sn(n,e);if(i.test(n))return e.eat(),new sn(n,e);e.eat_input()}return e.eat(),new sn("",e)})}(e);var a}}},enumerable:!0,configurable:!0}),Object.defineProperty(Ai.prototype,"rawTokenCreator",{get:function(){var t=this.prompt,n=this.promptPlaceholder,i=this.includeLiterals;return{literal:function(e){return Ot(i)},mask:function(e){return _t({prompt:t,promptPlaceholder:n})}}},enumerable:!0,configurable:!0}),Object.defineProperty(Ai.prototype,"validationTokenCreator",{get:function(){var t=this.prompt;return{literal:function(e){return Ot(!1)},mask:function(e){return _t({prompt:t,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),Ai.prototype.tokenize=function(){var n=this;kt(vt(this.rules,this.maskTokenCreator)).run(this.mask).fold(function(e,t){n.maskTokens=e}),kt(vt(this.rules,this.unmaskTokenCreator)).run(this.mask).fold(function(e,t){n.unmaskTokens=e}),kt(vt(this.rules,this.rawTokenCreator)).run(this.mask).fold(function(e,t){n.rawTokens=e}),kt(vt(this.rules,this.validationTokenCreator)).run(this.mask).fold(function(e,t){n.validationTokens=e})},Object(s.__decorate)([Object(c.Injectable)()],Ai)),pn=Promise.resolve(null),un=(rn=Mi,Object.defineProperty(Mi.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.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(Mi.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Mi.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(l.NgControl,null)},Mi.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},Mi.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},Mi.prototype.handleDragDrop=function(){return!1},Mi.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},Mi.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},Mi.prototype.pasteHandler=function(e){var t=e.target,e=t.selectionStart,t=t.selectionEnd;t!==e&&(this.isPasted=!0,this.selection=[e,t])},Mi.prototype.inputHandler=function(e){var t=e.target.value,n=this.selection,i=n[0],a=n[1];if(!this.mask)return this.updateValue(t),void(this.isPasted=!1);e=this.isPasted?(this.isPasted=!1,n=this.maskedValue.length-a,n=t.length-n,this.service.maskInRange(t.slice(i,n),this.maskedValue,i,a)):this.service.maskInput(t,this.maskedValue,e.target.selectionStart),this.updateInput(e.value,e.selection),this.updateValue(e.value)},Mi.prototype.ngOnChanges=function(e){var t,n=this;e.value&&(this.value=this.normalizeValue()),this.mask?(t=this.extractChanges(e),this.updateService(t),Object(h.isChanged)("value",e)?(t=this.service.maskRaw(this.value))!==this.maskedValue&&this.updateInput(t):Object(h.anyChanged)(["promptPlaceholder","includeLiterals"],e)?pn.then(function(){n.updateValue(n.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))):this.updateInput(this.value)},Mi.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},Mi.prototype.registerOnChange=function(e){this.onChange=e},Mi.prototype.registerOnTouched=function(e){this.onTouched=e},Mi.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Mi.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},Mi.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)},Mi.prototype.updateInput=function(e,t){this.maskedValue=e=void 0===e?"":e;e=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",e),void 0!==t&&this.setSelection(t,t)},Mi.prototype.extractChanges=function(n){return Object.keys(n).filter(function(e){return"rules"!==e}).reduce(function(e,t){return e[t]=n[t].currentValue,e},{})},Mi.prototype.updateService=function(e){e=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(e)},Mi.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&Se(this.input,"setSelectionRange",e,t)},Object.defineProperty(Mi.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),Mi.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;0<=t&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(Mi.prototype,"focused",{get:function(){return this.isFocused},set:function(e){var t;this.isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e)},enumerable:!0,configurable:!0}),Mi.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=G(e);if(t&&"string"!=typeof e){if(Object(c.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Mi.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("input",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mi.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mi.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mi.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mi.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Mi.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Mi.prototype,"rounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Mi.prototype,"fillMode",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Mi.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-input"),Object(c.HostBinding)("class.k-maskedtextbox"),Object(s.__metadata)("design:type",Boolean)],Mi.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Mi.prototype,"hostDisabledClass",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mi.prototype,"mask",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mi.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Mi.prototype,"rules",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mi.prototype,"prompt",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Mi.prototype,"promptPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mi.prototype,"includeLiterals",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mi.prototype,"maskOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Mi.prototype,"maskValidation",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Mi.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Mi.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],Mi.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],Mi.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Mi.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.ViewChild)("input",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],Mi.prototype,"input",void 0),Object(s.__decorate)([Object(c.HostListener)("paste",["$event"]),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Object]),Object(s.__metadata)("design:returntype",void 0)],Mi.prototype,"pasteHandler",null),Object(s.__decorate)([Object(c.HostListener)("input",["$event"]),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Object]),Object(s.__metadata)("design:returntype",void 0)],Mi.prototype,"inputHandler",null),rn=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoMaskedTextBox",providers:[dn,{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return rn})},{multi:!0,provide:l.NG_VALIDATORS,useExisting:Object(c.forwardRef)(function(){return rn})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return rn})}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(s.__param)(6,Object(c.Optional)()),Object(s.__param)(6,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[dn,c.Renderer2,c.ElementRef,c.NgZone,c.Injector,c.ChangeDetectorRef,Boolean])],Mi)),hn=function(e){this.value=e,this.classes={"k-tick":!0}},bn=(Fi.prototype.ngOnChanges=function(e){this.createTicks()},Fi.prototype.createTicks=function(){for(var e,t,n,i,a,o=Y(this.min,this.max,this.step),r=this.largeStep,s={max:this.max,min:this.min,smallStep:this.step},c=[],l=0;l<o;l++)c.push(new hn((e=l,i=a=i=n=void 0,n=(t=s).max,a=s.reverse,t=s.vertical,i=ge(s.min,ye(e,i=s.smallStep)),t||a?Math.abs(fe(i,n)):i))),r&&l%r==0&&(c[l].large=!0,c[l].classes["k-tick-large"]=!0);0<c.length&&(Object.assign(c[0].classes,this.endTickClasses(!0)),Object.assign(c[c.length-1].classes,this.endTickClasses(!1))),this.ticks=c},Fi.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(s.__decorate)([Object(c.HostBinding)("class"),Object(s.__metadata)("design:type",String)],Fi.prototype,"wrapperClasses",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Function)],Fi.prototype,"tickTitle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Fi.prototype,"vertical",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Fi.prototype,"step",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Fi.prototype,"largeStep",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Fi.prototype,"min",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],Fi.prototype,"max",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",c.TemplateRef)],Fi.prototype,"labelTemplate",void 0),Object(s.__decorate)([Object(c.ViewChildren)("tickElement"),Object(s.__metadata)("design:type",c.QueryList)],Fi.prototype,"tickElements",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],Fi)),mn=Object(s.__decorate)([Object(c.NgModule)({declarations:[bn,Ne],exports:[Ne,bn,h.DraggableModule,h.EventsModule,h.ResizeSensorModule],imports:[f.CommonModule,h.DraggableModule,h.EventsModule,h.ResizeSensorModule]})],Bi),gn=(on=u.ComponentMessages,Object(s.__extends)(Ri,on),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ri.prototype,"decrement",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ri.prototype,"increment",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ri.prototype,"dragHandle",void 0),Ri),fn=(nn=gn,Object(s.__extends)(Vi,nn),an=Vi,an=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:gn,useExisting:Object(c.forwardRef)(function(){return an})}],selector:"[kendoSliderLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Vi)),yn=(en=gn,Object(s.__extends)(Pi,en),tn=Pi,Object.defineProperty(Pi.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),tn=Object(s.__decorate)([Object(c.Component)({providers:[{provide:gn,useExisting:Object(c.forwardRef)(function(){return tn})}],selector:"kendo-slider-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Pi)),vn=Object(s.__decorate)([Object(c.NgModule)({declarations:[He,yn,fn],exports:[He,yn,Ne,fn],imports:[f.CommonModule,mn]})],xi),_n=(Jt=u.ComponentMessages,Object(s.__extends)(Ii,Jt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ii.prototype,"dragHandleStart",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ii.prototype,"dragHandleEnd",void 0),Ii),On=(Xt=_n,Object(s.__extends)(Di,Xt),Qt=Di,Qt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:_n,useExisting:Object(c.forwardRef)(function(){return Qt})}],selector:"[kendoSliderLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Di)),jn=($t=_n,Object(s.__extends)(Ei,$t),Yt=Ei,Object.defineProperty(Ei.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Yt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:_n,useExisting:Object(c.forwardRef)(function(){return Yt})}],selector:"kendo-rangeslider-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Ei)),kn=Object(s.__decorate)([Object(c.NgModule)({declarations:[We,jn,On],exports:[We,jn,On,Ne],imports:[f.CommonModule,mn]})],Ti),Cn=(Zt=u.ComponentMessages,Object(s.__extends)(Si,Zt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Si.prototype,"on",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Si.prototype,"off",void 0),Si),wn=(Ut=Cn,Object(s.__extends)(wi,Ut),qt=wi,qt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:Cn,useExisting:Object(c.forwardRef)(function(){return qt})}],selector:"[kendoSwitchLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],wi)),Sn=(Wt=Cn,Object(s.__extends)(Ci,Wt),Kt=Ci,Object.defineProperty(Ci.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Kt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:Cn,useExisting:Object(c.forwardRef)(function(){return Kt})}],selector:"kendo-switch-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Ci)),Tn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Ke,Sn,wn],exports:[Ke,Sn,wn],imports:[f.CommonModule,h.EventsModule,h.ResizeSensorModule]})],ki),En=(Ht=ht,Object(s.__extends)(ji,Ht),Gt=ji,Gt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:ht,useExisting:Object(c.forwardRef)(function(){return Gt})}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],ji)),Dn=Object(s.__decorate)([Object(c.NgModule)({declarations:[En,ut,bt],exports:[ut,bt],imports:[f.CommonModule,h.EventsModule]})],Oi),In=Object(s.__decorate)([Object(c.NgModule)({declarations:[un],exports:[un],imports:[f.CommonModule,h.EventsModule]})],_i),xn=Object(s.__decorate)([Object(c.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(s.__param)(0,Object(c.Optional)()),Object(s.__metadata)("design:paramtypes",[c.TemplateRef])],vi),Pn=Object(s.__decorate)([Object(c.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(s.__param)(0,Object(c.Optional)()),Object(s.__metadata)("design:paramtypes",[c.TemplateRef])],yi),Vn=(zt=fi,Object.defineProperty(fi.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),fi.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(l.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},fi.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(i?(Te(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),i=!1):n||t.clearButtonClicked||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){i=e.keyCode===h.Keys.Tab}))}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},fi.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},fi.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},fi.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},fi.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},fi.prototype.clearTitle=function(){return this.localizationService.get("clear")},fi.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},fi.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},fi.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},fi.prototype.registerOnChange=function(e){this.ngChange=e},fi.prototype.registerOnTouched=function(e){this.ngTouched=e},fi.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},fi.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},fi.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,e=e.touched;return t&&(n||e)},Object.defineProperty(fi.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon||"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(fi.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),fi.prototype.setSelection=function(e,t){this.isFocused&&Se(this.input,"setSelectionRange",e,t)},fi.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},fi.prototype.updateValue=function(e){var t=this;W(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()})},Object.defineProperty(fi.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),fi.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},fi.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("input",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],fi.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],fi.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],fi.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],fi.prototype,"selectOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],fi.prototype,"showSuccessIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],fi.prototype,"showErrorIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],fi.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"successIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"errorIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"clearButtonIcon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],fi.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],fi.prototype,"rounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],fi.prototype,"fillMode",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],fi.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],fi.prototype,"placeholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],fi.prototype,"maxlength",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],fi.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],fi.prototype,"inputFocus",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],fi.prototype,"inputBlur",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],fi.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],fi.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.ViewChild)("input",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],fi.prototype,"input",void 0),Object(s.__decorate)([Object(c.ContentChild)(xn,{static:!1}),Object(s.__metadata)("design:type",xn)],fi.prototype,"suffixTemplate",void 0),Object(s.__decorate)([Object(c.ContentChild)(Pn,{static:!1}),Object(s.__metadata)("design:type",Pn)],fi.prototype,"prefixTemplate",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],fi.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-textbox"),Object(c.HostBinding)("class.k-input"),Object(s.__metadata)("design:type",Boolean)],fi.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],fi.prototype,"direction",void 0),zt=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoTextBox",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textbox"},{provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return zt}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return zt})}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.Injector,c.ElementRef])],fi)),Rn=(Nt=u.ComponentMessages,Object(s.__extends)(gi,Nt),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],gi.prototype,"clear",void 0),gi),Bn=(At=Rn,Object(s.__extends)(mi,At),Lt=mi,Object.defineProperty(mi.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Lt=Object(s.__decorate)([Object(c.Component)({providers:[{provide:Rn,useExisting:Object(c.forwardRef)(function(){return Lt})}],selector:"kendo-textbox-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],mi)),Fn=(Ft=Rn,Object(s.__extends)(bi,Ft),Mt=bi,Mt=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:Rn,useExisting:Object(c.forwardRef)(function(){return Mt})}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],bi)),Mn=(Object(s.__decorate)([Object(c.HostBinding)("class.k-input-separator"),Object(s.__metadata)("design:type",Boolean)],hi.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],hi)),An=[Mn,qe],Ln=Object(s.__decorate)([Object(c.NgModule)({declarations:[An],exports:[An]})],ui),Nn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Ue,Vn,xn,Pn,Bn,Fn],exports:[Ue,Vn,xn,Pn,h.EventsModule,Bn,Fn,An],imports:[f.CommonModule,h.EventsModule,Ln]})],pi),zn=(Object.defineProperty(di.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),di.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},di.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],di.prototype,"title",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],di.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],di.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],di.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],di.prototype,"selectOnFocus",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],di.prototype,"placeholder",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],di.prototype,"inputFocus",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],di.prototype,"inputBlur",void 0),Object(s.__decorate)([Object(c.ViewChild)("input",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],di.prototype,"input",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],di.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],di.prototype,"direction",void 0),di),Hn={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Gn=(Rt=zn,Object(s.__extends)(li,Rt),Bt=li,Object.defineProperty(li.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(li.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),li.prototype.ngAfterViewInit=function(){var t=this,e=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focusin",function(){t.isFocused||t.ngZone.run(function(){t.onFocus.emit(),t.isFocused=!0})})),t.subscriptions.add(t.renderer.listen(e,"focusout",function(e){t.isFocused&&(i?(Te(e.relatedTarget,function(e){return e===t.hostElement.nativeElement})||t.handleBlur(),i=!1):n||t.handleBlur())})),t.subscriptions.add(t.renderer.listen(e,"mouseenter",function(){n=!0})),t.subscriptions.add(t.renderer.listen(e,"mouseleave",function(){n=!1})),t.subscriptions.add(t.renderer.listen(e,"keydown",function(e){i=e.keyCode===h.Keys.Tab}))}),["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)})},li.prototype.ngOnInit=function(){var t=this;this.control=this.injector.get(l.NgControl,null),Object(h.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(d.fromEvent)(window,"resize").pipe(Object(p.debounceTime)(50)).subscribe(function(){return t.resize()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})},li.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&&(G(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},li.prototype.ngAfterViewChecked=function(){this.resize()},li.prototype.writeValue=function(e){this.value=e},li.prototype.registerOnChange=function(e){this.ngChange=e},li.prototype.registerOnTouched=function(e){this.ngTouched=e},li.prototype.updateValue=function(e){var t=this;W(this.value,e)||this.ngZone.run(function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()})},li.prototype.ngOnDestroy=function(){Rt.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(li.prototype,"resizableClass",{get:function(){return Hn[this.resizable]},enumerable:!0,configurable:!0}),li.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},li.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},li.prototype.resize=function(){var e,t;"auto"===this.resizable&&(e=this.input.nativeElement,this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px"),(t=e.scrollHeight)>this.initialHeight&&(e.style.height=t+"px"))},Object.defineProperty(li.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){var t;this._isFocused!==e&&this.hostElement&&(t=this.hostElement.nativeElement,e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e)},enumerable:!0,configurable:!0}),li.prototype.handleBlur=function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})},li.prototype.setSelection=function(e,t){this.isFocused&&Se(this.input,"setSelectionRange",e,t)},li.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},li.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("input",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],li.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea"),Object(c.HostBinding)("class.k-input"),Object(s.__metadata)("design:type",Boolean)],li.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-flex-col"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],li.prototype,"flowCol",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-flex-row"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],li.prototype,"flowRow",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],li.prototype,"flow",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],li.prototype,"rows",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],li.prototype,"cols",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],li.prototype,"maxlength",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],li.prototype,"tabindex",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],li.prototype,"tabIndex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],li.prototype,"resizable",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],li.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],li.prototype,"rounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],li.prototype,"fillMode",null),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],li.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],li.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],li.prototype,"valueChange",void 0),Bt=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoTextArea",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.textarea"},{provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Bt}),multi:!0},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Bt})}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',styles:["\n :host(.k-flex-col) {\n flex-direction: column !important;\n }\n :host(.k-flex-row) {\n flex-direction: row !important;\n }\n "]}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService,c.NgZone,c.ChangeDetectorRef,c.Renderer2,c.Injector,c.ElementRef])],li)),Wn=(Object(s.__decorate)([Object(c.HostBinding)("class.k-textarea-suffix"),Object(s.__metadata)("design:type",Boolean)],ci.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],ci)),Kn=Object(s.__decorate)([Object(c.NgModule)({declarations:[Gn,Wn],exports:[Gn,h.EventsModule,Wn,An],imports:[f.CommonModule,h.EventsModule,Ln]})],si),Un=(Vt=u.LocalizationService,Object(s.__extends)(ri,Vt),Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean])],ri)),qn=(Pt=u.LocalizationService,Object(s.__extends)(oi,Pt),oi.prototype.get=function(e){return this.colorPickerLocalization?this.colorPickerLocalization.get(e):Pt.prototype.get.call(this,e)},Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__param)(3,Object(c.Optional)()),Object(s.__param)(3,Object(c.Inject)(Un)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean,Un])],oi)),Zn={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}},$n=(ai.prototype.getPaletteSettings=function(e,t){var n=e.palette,i="string"==typeof n&&Zn[n]?Zn[n].columns:void 0;return{palette:n||("name"!==t?"office":"accessible"),tileSize:e.tileSize||24,columns:e.columns||i||10}},ai.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width||e.height,height:e.height||e.width}},Object(s.__decorate)([Object(c.Injectable)()],ai)),Yn=(xt=h.PreventableEvent,Object(s.__extends)(ii,xt),ii),Xn=(It=h.PreventableEvent,Object(s.__extends)(ni,It),ni),Qn=(Dt=h.PreventableEvent,Object(s.__extends)(ti,Dt),ti),Jn=(ei.prototype.preventOpen=function(){this.openPrevented=!0},ei.prototype.isOpenPrevented=function(){return this.openPrevented},ei);function ei(e){this.color=e,this.openPrevented=!1}function ti(){return null!==Dt&&Dt.apply(this,arguments)||this}function ni(){return null!==It&&It.apply(this,arguments)||this}function ii(e){var t=xt.call(this)||this;return t.originalEvent=e,t}function ai(){}function oi(e,t,n,i){n=Pt.call(this,e,t,n)||this;return n.colorPickerLocalization=i,n}function ri(e,t,n){return Vt.call(this,e,t,n)||this}function si(){}function ci(){this.hostClass=!0}function li(e,t,n,i,a,o){var r=Rt.call(this,e,t,n,i,a,o)||this;return r.localizationService=e,r.ngZone=t,r.changeDetector=n,r.renderer=i,r.injector=a,r.hostElement=o,r.focusableId="k-"+Object(h.guid)(),r.hostClasses=!0,r.flow="vertical",r.tabindex=0,r.resizable="vertical",r.onFocus=new c.EventEmitter,r.onBlur=new c.EventEmitter,r.valueChange=new c.EventEmitter,r._size="medium",r._rounded="medium",r._fillMode="solid",r.handleInput=function(e){e=e.target.value;r.updateValue(e),r.resize()},r.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),Object(h.hasObservers)(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),Object(h.hasObservers)(r.inputFocus)&&(r.focusChangedProgrammatically||r.ngZone.run(function(){r.inputFocus.emit()})),r.ngZone.run(function(){r.isFocused=!0}))},Object(b.validatePackage)(Le),r.direction=e.rtl?"rtl":"ltr",r}function di(e,t,n,i,a,o){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=a,this.hostElement=o,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new c.EventEmitter,this.inputBlur=new c.EventEmitter,this.subscriptions=new d.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){r.changeDetector.markForCheck(),(Object(h.hasObservers)(r.inputBlur)||K(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.ngChange=function(e){},this.ngTouched=function(){}}function pi(){}function ui(){}function hi(){this.hostClass=!0}function bi(e){var t=Ft.call(this)||this;return t.service=e,t}function mi(e){var t=At.call(this)||this;return t.service=e,t}function gi(){return null!==Nt&&Nt.apply(this,arguments)||this}function fi(e,t,n,i,a,o){var r=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=a,this.hostElement=o,this.focusableId="k-"+Object(h.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 c.EventEmitter,this.inputFocus=new c.EventEmitter,this.inputBlur=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){r.disabled||(r.selectOnFocus&&r.value&&r.ngZone.run(function(){setTimeout(function(){r.selectAll()})}),Object(h.hasObservers)(r.onFocus)&&(r.isFocused||r.ngZone.run(function(){r.onFocus.emit()})),Object(h.hasObservers)(r.inputFocus)&&(!r.focusChangedProgrammatically||r.focusChangedProgrammatically&&r.clearButtonClicked)&&r.ngZone.run(function(){r.inputFocus.emit()}),r.ngZone.run(function(){r.isFocused=!0}))},this.handleInputBlur=function(){r.changeDetector.markForCheck(),(Object(h.hasObservers)(r.inputBlur)||K(r.control))&&r.ngZone.run(function(){r.ngTouched(),r.inputBlur.emit()})},this.handleInput=function(e){var t,e=(t=navigator.userAgent,(Object(m.detectDesktopBrowser)(t).safari||Object(m.detectMobileOS)(t)&&"mobilesafari"===Object(m.detectMobileOS)(t).browser)&&/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(e.target.value)?e.data:e.target.value);r.updateValue(e)},this.ngChange=function(e){},this.ngTouched=function(){},Object(b.validatePackage)(Le),this.direction=e.rtl?"rtl":"ltr"}function yi(e){this.templateRef=e}function vi(e){this.templateRef=e}function _i(){}function Oi(){}function ji(e){var t=Ht.call(this)||this;return t.service=e,t}function ki(){}function Ci(e){var t=Wt.call(this)||this;return t.service=e,t}function wi(e){var t=Ut.call(this)||this;return t.service=e,t}function Si(){return null!==Zt&&Zt.apply(this,arguments)||this}function Ti(){}function Ei(e){var t=$t.call(this)||this;return t.service=e,t}function Di(e){var t=Xt.call(this)||this;return t.service=e,t}function Ii(){return null!==Jt&&Jt.apply(this,arguments)||this}function xi(){}function Pi(e){var t=en.call(this)||this;return t.service=e,t}function Vi(e){var t=nn.call(this)||this;return t.service=e,t}function Ri(){return null!==on&&on.apply(this,arguments)||this}function Bi(){}function Fi(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}function Mi(e,t,n,i,a,o,r){var s=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=a,this.changeDetector=o,this.focusableId="k-"+Object(h.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 c.EventEmitter,this.onBlur=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){s.focused=!0,s.maskOnFocus&&s.emptyMask&&(s.updateInput(s.service.maskRaw(s.value)),s.ngZone.runOutsideAngular(function(){setTimeout(function(){s.setSelection(0,0)},0)})),Object(h.hasObservers)(s.onFocus)&&s.ngZone.run(function(){s.onFocus.emit()})},this.handleClick=function(){var e;s.focused&&!s.focusClick&&(s.focusClick=!0,(e=s.input.nativeElement).selectionStart===e.selectionEnd&&s.setFocusSelection())},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,s.focusClick=!1,s.maskOnFocus&&s.emptyMask&&s.updateInput(s.maskedValue),(Object(h.hasObservers)(s.onBlur)||K(s.control))&&s.ngZone.run(function(){s.onTouched(),s.onBlur.emit()})},this.onChange=function(e){},this.onTouched=function(){},Object(b.validatePackage)(Le),this.direction=r?"rtl":"ltr",this.updateService()}function Ai(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}function Li(e){this.parse=e}function Ni(e,t){void 0===t&&(t=[]),this.input=e=void 0===e?[]:e,this.control=t,this.inputCursor=0,this.controlCursor=0}function zi(e,t,n){void 0===n&&(n=ot.Undefined),this.value=e,this.rest=t,this.type=n}function Hi(e,t){var n=de(e.r,0,255),i=de(e.g,0,255),a=de(e.b,0,255),o=de(e.a,0,1),r=de(t.r,0,255),e=de(t.g,0,255),t=de(t.b,0,255);return{r:Math.round((1-o)*r+o*n),g:Math.round((1-o)*e+o*i),b:Math.round((1-o)*t+o*a)}}function Gi(e){return.2126*(e=[e.r,e.g,e.b].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}))[0]+.7152*e[1]+.0722*e[2]}function Wi(e,t){return e=Gi(Hi(e,t)),t=Gi(Hi(t,{r:0,g:0,b:0,a:1})),(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function Ki(e,t){var n=t[0]-e[0],e=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(e,2)),angle:Math.atan2(e,n)}}function Ui(e,a){return 0===e.length?"":e.reduce(function(e,t,n,i){return 0===n?"M "+t[0]+","+t[1]:e+" "+a(t,n,i)},"")}var qi,Zi,$i,Yi,Xi,Qi,Ji,ea,ta,na,ia,aa=(ia=u.LocalizationService,Object(s.__extends)(co,ia),co.prototype.get=function(e){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(e):ia.prototype.get.call(this,e)},Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__param)(3,Object(c.Optional)()),Object(s.__param)(3,Object(c.Inject)(qn)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean,qn])],co)),oa=(Object.defineProperty(so.prototype,"isFocused",{get:function(){if(!Object(h.isDocumentAvailable)()||!G(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(so.prototype,"rgbaInputValid",{get:function(){var t=this;return Object.keys(this.rgba).every(function(e){return G(t.rgba[e])})},enumerable:!0,configurable:!0}),so.prototype.ngAfterViewInit=function(){this.initDomEvents()},so.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},so.prototype.ngOnChanges=function(e){G(e.value)&&!this.isFocused&&(this.hex=Ct(this.value,"hex",this.opacity),this.rgba=wt(this.value),this.rgba.a=Ct(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(so.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),so.prototype.handleRgbaValueChange=function(){var e,t,n,i=(i=this.rgba,e=de(i.r,0,255),t=de(i.g,0,255),n=de(i.b,0,255),i=de(i.a,0,1),H.fromBytes(e,t,n,i).toCssRgba());this.rgbaInputValid&&i!==this.value&&(this.value=i,this.rgba=wt(this.value),this.hex=Ct(i,"hex",this.opacity),this.valueChange.emit(i))},so.prototype.handleHexValueChange=function(e){this.hex=e;e=Ct(e,"rgba",this.opacity);G(e)&&e!==this.value&&(this.value=e,this.rgba=wt(e),this.valueChange.emit(e))},so.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=wt(this.value))},so.prototype.handleHexInputBlur=function(){this.hex=Ct(this.value,"hex",this.opacity)},so.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},so.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",function(){return e.toggleFormatView()}))},Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],so.prototype,"focusableId",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],so.prototype,"formatView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],so.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],so.prototype,"opacity",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],so.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],so.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],so.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-colorgradient-inputs"),Object(c.HostBinding)("class.k-hstack"),Object(s.__metadata)("design:type",Boolean)],so.prototype,"colorInputClass",void 0),Object(s.__decorate)([Object(c.ViewChild)("opacityInput",{static:!1}),Object(s.__metadata)("design:type",ut)],so.prototype,"opacityInput",void 0),Object(s.__decorate)([Object(c.ViewChild)("hexInput",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],so.prototype,"hexInput",void 0),Object(s.__decorate)([Object(c.ViewChild)("blueInput",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],so.prototype,"blueInput",void 0),Object(s.__decorate)([Object(c.ViewChild)("toggleFormatButton",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],so.prototype,"toggleFormatButton",void 0),Object(s.__decorate)([Object(c.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,c.Renderer2,u.LocalizationService])],so)),ra=0,sa=(na=ro,Object.defineProperty(ro.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Ct(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=Ct(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t;G(e)?(t=Number(e),this._tabindex=isNaN(t)?0:t):this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"isFocused",{get:function(){return!(!Object(h.isDocumentAvailable)()||!G(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"alphaSliderValue",{get:function(){if(G(this.hsva.value)&&G(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&0<this.contrastTool.length},enumerable:!0,configurable:!0}),ro.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},ro.prototype.ngOnChanges=function(e){Object(h.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(h.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},ro.prototype.ngOnDestroy=function(){this.listeners.forEach(function(e){return e()}),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},ro.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},ro.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},ro.prototype.handleDragPress=function(e){this.disabled||this.readonly||!G(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},ro.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},ro.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(St(this.hsva.value,this.format,this.opacity)))},ro.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,a=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":a=-5;break;case"ArrowDown":a=5}var o=parseInt(n.style.top,10)+a,r=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run(function(){return t.moveDragHandle(r,o)})}},ro.prototype.changePosition=function(e){var t,n,i,a=this;this.disabled||this.readonly||(this.gradientDragHandle.nativeElement.focus(),t=this.gradientRect,n=e.clientX-t.left,i=e.clientY-t.top,this.ngZone.run(function(){return a.moveDragHandle(n,i)}))},ro.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(St(this.hsva.value,this.format,this.opacity)),this.backgroundColor=Et(e),this.setAlphaSliderBackground(this.backgroundColor)},ro.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(St(this.hsva.value,this.format,this.opacity))},ro.prototype.handleInputsValueChange=function(e){e=Ct(e,this.format,this.opacity);this.value!==e&&(this.handleValueChange(e),this.updateUI())},ro.prototype.writeValue=function(e){this.value=e,G(this.gradientWrapper)&&this.updateUI()},ro.prototype.registerOnChange=function(e){this.notifyNgChanged=e},ro.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},ro.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(ro.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=Ct(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(ro.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),ro.prototype.isEmpty=function(){return!1},ro.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,i=n.width,a=n.height,n=de(t,0,a),t=de(e,0,i);this.setDragHandleElementPosition(n,t);e=this.hsva.value;e.s=t/i,e.v=1-n/a,this.hsva.next(e),this.updateValues.next(St(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(St(Object(s.__assign)({},this.hsva.value,{a:1}),this.format,this.opacity))},ro.prototype.updateUI=function(){var e,t;Object(h.isDocumentAvailable)()&&(this.hsva.next(this.value?function(e,t){t=A(e,t=void 0===t?!0:t);return G(t)?t.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1}),t=this.gradientRect,e=(1-this.hsva.value.v)*t.height,t=this.hsva.value.s*t.width,this.setDragHandleElementPosition(e,t),this.backgroundColor=Et(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel())},ro.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},ro.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},ro.prototype.setAlphaSliderBackground=function(e){var t;G(this.alphaSlider)&&(t=this.alphaSlider.track.nativeElement,this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")"))},ro.prototype.setHostElementAriaLabel=function(){var e=Ct(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},ro.prototype.addEventListeners=function(){var o=this;this.ngZone.runOutsideAngular(function(){var e=o.renderer.listen(o.host.nativeElement,"focusout",function(e){var t,n;n=o.host.nativeElement,e=e.relatedTarget,n&&e&&(n===e||n.contains(e))||!((e=o.host)&&e.nativeElement&&(e=e.nativeElement,t="ng-untouched",Boolean((e=e.className,String(e).trim().split(" ").find(function(e){return e===t})))))||o.ngZone.run(function(){return o.notifyNgTouched()})}),t=o.renderer.listen(o.gradientDragHandle.nativeElement,"keydown",function(e){o.onKeyboardAction(e)}),n=o.renderer.listen(o.gradientDragHandle.nativeElement,"keyup",function(){o.renderer.removeClass(o.gradientWrapper.nativeElement,"k-dragging"),o.readonly||o.disabled||o.ngZone.run(function(){return o.handleValueChange(St(o.hsva.value,o.format,o.opacity))})}),i=o.renderer.listen(o.gradientDragHandle.nativeElement,"focusin",function(){o.renderer.addClass(o.gradientDragHandle.nativeElement,"k-state-focus")}),a=o.renderer.listen(o.gradientDragHandle.nativeElement,"focusout",function(){o.renderer.removeClass(o.gradientDragHandle.nativeElement,"k-state-focus")});o.listeners.push(e,t,n,i,a)})},ro.prototype.subscribeChanges=function(){var t=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(p.throttleTime)(this.delay)).subscribe(function(e){t.handleValueChange(e)})},ro.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(s.__decorate)([Object(c.HostBinding)("class.k-colorgradient"),Object(s.__metadata)("design:type",Boolean)],ro.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],ro.prototype,"readonlyAttribute",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],ro.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],ro.prototype,"gradientId",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],ro.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.tabindex"),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[])],ro.prototype,"hostTabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ro.prototype,"id",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ro.prototype,"opacity",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ro.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ro.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],ro.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number)],ro.prototype,"delay",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],ro.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],ro.prototype,"contrastTool",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],ro.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],ro.prototype,"format",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],ro.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.ViewChild)("gradientDragHandle",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],ro.prototype,"gradientDragHandle",void 0),Object(s.__decorate)([Object(c.ViewChild)("inputs",{static:!1}),Object(s.__metadata)("design:type",oa)],ro.prototype,"inputs",void 0),Object(s.__decorate)([Object(c.ViewChild)("alphaSlider",{static:!1}),Object(s.__metadata)("design:type",He)],ro.prototype,"alphaSlider",void 0),Object(s.__decorate)([Object(c.ViewChild)("gradientWrapper",{static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],ro.prototype,"gradientWrapper",void 0),na=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return na})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return na})},aa,{provide:u.LocalizationService,useExisting:aa},{provide:u.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [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 <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [value]="hsva.value.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,c.NgZone,c.Renderer2,c.ChangeDetectorRef,u.LocalizationService])],ro)),ca=(ta=u.LocalizationService,Object(s.__extends)(oo,ta),oo.prototype.get=function(e){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(e):ta.prototype.get.call(this,e)},Object(s.__decorate)([Object(s.__param)(0,Object(c.Inject)(u.L10N_PREFIX)),Object(s.__param)(1,Object(c.Optional)()),Object(s.__param)(2,Object(c.Optional)()),Object(s.__param)(2,Object(c.Inject)(u.RTL)),Object(s.__param)(3,Object(c.Optional)()),Object(s.__param)(3,Object(c.Inject)(qn)),Object(s.__metadata)("design:paramtypes",[String,u.MessageService,Boolean,qn])],oo)),la=(ao.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],G(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)}}},ao.prototype.getCellCoordsFor=function(e){if(G(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}},ao.prototype.getColorAt=function(e){if(G(e)&&G(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},ao.prototype.getNextCell=function(e,t,n){if(!(G(e)&&G(e.row)&&G(e.col)))return{row:0,col:0};n=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:n,col:this.clampIndex(e.col+t,this.colorRows[n].length-1)}},ao.prototype.clampIndex=function(e,t){return e<0?0:t<e?t:e},Object(s.__decorate)([Object(c.Injectable)()],ao)),da=0,pa=(ea=io,Object.defineProperty(io.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Ct(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=1<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;"string"==typeof(e=!G(e)?"office":e)&&G(Zn[e])&&(this.columns=this.columns||Zn[e].columns,e=Zn[e].colors);e="string"==typeof e?e.split(","):e;this._palette=e.map(function(e){return Ct(e,t.format,!1,!1)})},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(io.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),io.prototype.ngOnInit=function(){var e;0===this.colorRows.length&&(e="name"!==this.format?"office":"accessible",this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value))},io.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},io.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},io.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())},io.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case h.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case h.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case h.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case h.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case h.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},io.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},io.prototype.handleCellSelection=function(e,t){this.readonly||(this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0,e=Ct(e,this.format,!1,!1),this.cellSelection.emit(e),this.handleValueChange(e),this.selection!==e&&(this.selection=e,this.selectionChange.emit(e)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId))},io.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},io.prototype.registerOnChange=function(e){this.notifyNgChanged=e},io.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},io.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},io.prototype.isEmpty=function(){return!1},io.prototype.reset=function(){this.focusedCell=null,G(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},io.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},io.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},io.prototype.setRows=function(){G(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},io.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},io.prototype.setHostElementAriaLabel=function(){var e=Ct(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},io.prototype.handleEnter=function(){var e;G(this.focusedCell)&&(e=this.service.getColorAt(this.focusedCell),this.handleCellSelection(e,this.focusedCell))},Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],io.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],io.prototype,"paletteId",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],io.prototype,"id",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],io.prototype,"format",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],io.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],io.prototype,"columns",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],io.prototype,"palette",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],io.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],io.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],io.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],io.prototype,"tileSize",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],io.prototype,"selectionChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],io.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],io.prototype,"cellSelection",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.tabindex"),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[])],io.prototype,"hostTabindex",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-colorpalette"),Object(s.__metadata)("design:type",Boolean)],io.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-disabled"),Object(c.HostBinding)("class.k-state-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],io.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],io.prototype,"readonlyAttribute",null),Object(s.__decorate)([Object(c.HostListener)("keydown",["$event"]),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[Object]),Object(s.__metadata)("design:returntype",void 0)],io.prototype,"handleKeydown",null),Object(s.__decorate)([Object(c.HostListener)("blur"),Object(s.__metadata)("design:type",Function),Object(s.__metadata)("design:paramtypes",[]),Object(s.__metadata)("design:returntype",void 0)],io.prototype,"handleHostBlur",null),ea=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return ea})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return ea})},la,ca,{provide:u.LocalizationService,useExisting:ca},{provide:u.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,la,c.ChangeDetectorRef,c.Renderer2,u.LocalizationService])],io)),ua=(no.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(no.prototype,"viewButtons",{get:function(){return this.views&&0<=this.views.indexOf("gradient")&&0<=this.views.indexOf("palette")},enumerable:!0,configurable:!0}),no.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},no.prototype.getText=function(e){return this.localizationService.get(e)},Object(s.__decorate)([Object(c.HostBinding)("class.k-coloreditor-header"),Object(c.HostBinding)("class.k-hstack"),Object(s.__metadata)("design:type",Boolean)],no.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],no.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],no.prototype,"activeView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Array)],no.prototype,"views",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],no.prototype,"preview",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],no.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],no.prototype,"selection",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],no.prototype,"viewChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],no.prototype,"valuePaneClick",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],no.prototype,"clearButtonClick",void 0),Object(s.__decorate)([Object(c.ViewChildren)("viewButtons",{read:c.ElementRef}),Object(s.__metadata)("design:type",c.QueryList)],no.prototype,"viewButtonsCollection",void 0),Object(s.__decorate)([Object(c.ViewChild)("clearButton",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],no.prototype,"clearButtonElement",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],no)),ha=(to.prototype.getText=function(e){return this.localizationService.get(e)},to.prototype.onActionButtonClick=function(e,t){this.actionButtonClick.emit({target:e,originalEvent:t})},Object(s.__decorate)([Object(c.HostBinding)("class.k-coloreditor-footer"),Object(c.HostBinding)("class.k-actions"),Object(c.HostBinding)("class.k-hstack"),Object(s.__metadata)("design:type",Boolean)],to.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],to.prototype,"actionButtonClick",void 0),Object(s.__decorate)([Object(c.ViewChild)("last",{read:c.ElementRef,static:!1}),Object(s.__metadata)("design:type",c.ElementRef)],to.prototype,"lastButton",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoFlatColorPickerActionButtons]",template:"\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n >{{getText('applyButton')}}</button>\n "}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],to)),ba=(Ji=eo,Object.defineProperty(eo.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Ct(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),eo.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},eo.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},eo.prototype.ngOnChanges=function(e){Object(h.isChanged)("value",e)&&this.setHostElementAriaLabel(),Object(h.isChanged)("paletteSettings",e)&&this.setSizingVariables()},eo.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(eo.prototype,"headerHasContent",{get:function(){return this.preview||1<this.views.length||this.clearButton},enumerable:!0,configurable:!0}),eo.prototype.isEmpty=function(){return!1},eo.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},eo.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},eo.prototype.reset=function(){G(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},eo.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){t.gradient.gradientDragHandle.nativeElement.focus()})}))},eo.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},eo.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},eo.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},eo.prototype.writeValue=function(e){this.value=e},eo.prototype.registerOnChange=function(e){this.notifyNgChanged=e},eo.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},eo.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},eo.prototype.resetSelection=function(e){e=new Yn(e);this.cancel.emit(e),e.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},eo.prototype.setHostElementAriaLabel=function(){var e=Ct(this.value,this.format,this.gradientSettings.opacity),e=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},eo.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),e="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",e)},eo.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},eo.prototype.resetInnerComponentValue=function(){this.selection=null,(this.gradient||this.palette).reset()},eo.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},eo.prototype.setActiveView=function(){if(G(this.activeView)){if(Object(c.isDevMode)()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},eo.prototype.initDomEvents=function(){var e,t=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){t.subscriptions.add(t.renderer.listen(e,"focus",function(){t.focused=!0})),t.subscriptions.add(t.renderer.listen(e,"blur",function(){t.focused=!1,t.notifyNgTouched()}))}))},Object(s.__decorate)([Object(c.HostBinding)("class.k-flatcolorpicker"),Object(c.HostBinding)("class.k-coloreditor"),Object(s.__metadata)("design:type",Boolean)],eo.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-state-disabled"),Object(c.HostBinding)("attr.aria-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],eo.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],eo.prototype,"ariaReadonly",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],eo.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.tabindex"),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[])],eo.prototype,"hostTabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],eo.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],eo.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],eo.prototype,"format",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],eo.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],eo.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],eo.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],eo.prototype,"preview",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],eo.prototype,"actionsLayout",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],eo.prototype,"activeView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Array)],eo.prototype,"views",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],eo.prototype,"gradientSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],eo.prototype,"paletteSettings",null),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],eo.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],eo.prototype,"cancel",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],eo.prototype,"activeViewChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],eo.prototype,"actionButtonClick",void 0),Object(s.__decorate)([Object(c.ViewChild)("header",{static:!1}),Object(s.__metadata)("design:type",ua)],eo.prototype,"header",void 0),Object(s.__decorate)([Object(c.ViewChild)("gradient",{static:!1}),Object(s.__metadata)("design:type",sa)],eo.prototype,"gradient",void 0),Object(s.__decorate)([Object(c.ViewChild)("palette",{static:!1}),Object(s.__metadata)("design:type",pa)],eo.prototype,"palette",void 0),Object(s.__decorate)([Object(c.ViewChild)("footer",{static:!1}),Object(s.__metadata)("design:type",ha)],eo.prototype,"footer",void 0),Ji=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Ji})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Ji})},$n,qn,{provide:u.LocalizationService,useExisting:qn},{provide:u.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,$n,u.LocalizationService,c.ChangeDetectorRef,c.Renderer2,c.NgZone])],eo)),ma=["focus","blur"],ga=(Qi=Ja,Object.defineProperty(Ja.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"view",{get:function(){return this.views&&0<this.views.length?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Ct(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"isOpen",{get:function(){return G(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"iconStyles",{get:function(){return this.iconClass||(this.icon?"k-icon k-i-"+this.icon:void 0)},enumerable:!0,configurable:!0}),Ja.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&Zn[t]?Zn[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},Ja.prototype.ngAfterViewInit=function(){var t=this;["size","rounded","fillMode"].forEach(function(e){t.handleClasses(t[e],e)}),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},Ja.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Ct(this.value,this.format,this.gradientSettings.opacity)),Object(h.isChanged)("value",e)&&this.setHostElementAriaLabel()},Ja.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",ma)},Ja.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},Ja.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},Ja.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),Object(h.closest)(e.target,function(e){return e===t.activeColor.nativeElement})){e=new Jn(this.value);return this.activeColorClick.emit(e),void(e.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},Ja.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},Ja.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run(function(){e.focus(),e.onFocus.emit()})},Ja.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},Ja.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run(function(){e.onBlur.emit(),e.isFocused=!1})},Ja.prototype.arrowButtonMouseDown=function(e){e.preventDefault()},Ja.prototype.reset=function(){G(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},Ja.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=G(e)?e:!this.isOpen)&&this.openPopup())},Ja.prototype.handleValueChange=function(e){e=Ct(e,this.format,this.gradientSettings.opacity);e!==this.value&&(this.value=e,this.valueChange.emit(e),this.setHostElementAriaLabel(),this.notifyNgChanged(e))},Ja.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},Ja.prototype.writeValue=function(e){this.value=e},Ja.prototype.registerOnChange=function(e){this.notifyNgChanged=e},Ja.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},Ja.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Ja.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==h.Keys.ArrowDown&&e.keyCode!==h.Keys.Enter||(e.preventDefault(),this.ngZone.run(function(){t.toggleWithEvents(!0)}))},Ja.prototype.handlePopupKeyDown=function(e){var t,n;e.keyCode===h.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===h.Keys.Tab&&(t=(e.shiftKey?this.firstFocusableElement:this.lastFocusableElement).nativeElement,n=(e.shiftKey?this.lastFocusableElement:this.firstFocusableElement).nativeElement,e.target===t&&(e.preventDefault(),n.focus()))},Ja.prototype.isEmpty=function(){return!1},Ja.prototype.setHostElementAriaLabel=function(){var e=""+(this.value||this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},Ja.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,e=U("picker",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Ja.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return Object(h.closest)(e.relatedTarget,function(e){return e===t.host.nativeElement})||n},Ja.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new Qn,this.open.emit(t)):(t=new Xn,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},Ja.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(Object(p.take)(1)).subscribe(function(){e.flatColorPicker&&(e.flatColorPicker.gradient?e.flatColorPicker.gradient.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()})},Ja.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:t,vertical:"top"},anchorAlign:{horizontal:t,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})})},Ja.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(Ja.prototype,"firstFocusableElement",{get:function(){return!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton?this.flatColorPicker.gradient?this.flatColorPicker.gradient.gradientDragHandle:this.flatColorPicker.palette.host:1<this.views.length?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(Ja.prototype,"lastFocusableElement",{get:function(){return this.preview?this.flatColorPicker.footer.lastButton:this.flatColorPicker.palette?this.flatColorPicker.palette.host:this.gradientSettings.opacity?this.flatColorPicker.gradient.inputs.opacityInput.numericInput:this.flatColorPicker.gradient.inputs.blueInput},enumerable:!0,configurable:!0}),Ja.prototype.handleDomEvents=function(t,e){var n=this,i=this.host.nativeElement;e.forEach(function(e){return i[t+"EventListener"](e,n.domFocusListener,!0)})},Ja.prototype.initDomEvents=function(){var e,n=this;this.host&&(e=this.host.nativeElement,this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"focusin",function(){n.handleWrapperFocus()})),n.subscriptions.add(n.renderer.listen(e,"focusout",function(e){var t=!!n.popupRef&&Object(h.closest)(e.relatedTarget,function(e){return e===n.flatColorPicker.host.nativeElement}),e=Object(h.closest)(e.relatedTarget,function(e){return e===n.host.nativeElement});t||e||n.handleWrapperBlur()})),n.handleDomEvents("add",ma),n.subscriptions.add(n.renderer.listen(e,"keydown",function(e){n.handleWrapperKeyDown(e)})),n.subscriptions.add(n.renderer.listen(e,"click",function(e){n.ngZone.run(function(){n.handleWrapperClick(e)})}))}))},Ja.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");t?this.focusableId=t:(t="k-"+Object(h.guid)(),e.setAttribute("id",t),this.focusableId=t)},Object(s.__decorate)([Object(c.HostBinding)("class.k-colorpicker"),Object(c.HostBinding)("class.k-icon-picker"),Object(c.HostBinding)("class.k-picker"),Object(s.__metadata)("design:type",Boolean)],Ja.prototype,"hostClasses",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-focus"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ja.prototype,"focusedClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-disabled"),Object(c.HostBinding)("class.k-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ja.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-readonly"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ja.prototype,"ariaReadonly",null),Object(s.__decorate)([Object(c.HostBinding)("attr.aria-expanded"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Ja.prototype,"ariaExpanded",null),Object(s.__decorate)([Object(c.HostBinding)("attr.tabindex"),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[])],Ja.prototype,"hostTabindex",null),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Ja.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.role"),Object(s.__metadata)("design:type",String)],Ja.prototype,"role",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Array)],Ja.prototype,"views",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ja.prototype,"view",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ja.prototype,"activeView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ja.prototype,"readonly",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ja.prototype,"disabled",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ja.prototype,"format",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ja.prototype,"value",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Ja.prototype,"popupSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Ja.prototype,"paletteSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object),Object(s.__metadata)("design:paramtypes",[Object])],Ja.prototype,"gradientSettings",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ja.prototype,"icon",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],Ja.prototype,"iconClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ja.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Number),Object(s.__metadata)("design:paramtypes",[Number])],Ja.prototype,"tabindex",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Ja.prototype,"preview",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ja.prototype,"actionsLayout",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ja.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ja.prototype,"rounded",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ja.prototype,"fillMode",null),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"valueChange",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"open",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"close",void 0),Object(s.__decorate)([Object(c.Output)("focus"),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"onFocus",void 0),Object(s.__decorate)([Object(c.Output)("blur"),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"onBlur",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"cancel",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"activeColorClick",void 0),Object(s.__decorate)([Object(c.Output)(),Object(s.__metadata)("design:type",c.EventEmitter)],Ja.prototype,"activeViewChange",void 0),Object(s.__decorate)([Object(c.ViewChild)("container",{read:c.ViewContainerRef,static:!0}),Object(s.__metadata)("design:type",c.ViewContainerRef)],Ja.prototype,"container",void 0),Object(s.__decorate)([Object(c.ViewChild)("activeColor",{static:!0}),Object(s.__metadata)("design:type",c.ElementRef)],Ja.prototype,"activeColor",void 0),Object(s.__decorate)([Object(c.ViewChild)("popupTemplate",{static:!0}),Object(s.__metadata)("design:type",c.TemplateRef)],Ja.prototype,"popupTemplate",void 0),Object(s.__decorate)([Object(c.ViewChild)("flatColorPicker",{static:!1}),Object(s.__metadata)("design:type",ba)],Ja.prototype,"flatColorPicker",void 0),Qi=Object(s.__decorate)([Object(c.Component)({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:l.NG_VALUE_ACCESSOR,useExisting:Object(c.forwardRef)(function(){return Qi})},{provide:h.KendoInput,useExisting:Object(c.forwardRef)(function(){return Qi})},Un,{provide:u.LocalizationService,useExisting:Un},{provide:u.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n #arrowButton\n tabindex="-1"\n role="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,y.PopupService,c.ChangeDetectorRef,u.LocalizationService,c.NgZone,c.Renderer2])],Ja)),fa=(Xi=u.ComponentMessages,Object(s.__extends)(Qa,Xi),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"colorPaletteNoColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"colorGradientNoColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"flatColorPickerNoColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"colorPickerNoColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"colorGradientHandle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"clearButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"hueSliderHandle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"opacitySliderHandle",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"hexInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"redInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"greenInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"blueInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"alphaInputPlaceholder",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"passContrast",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"failContrast",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"contrastRatio",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"previewColor",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"revertSelection",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"gradientView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"paletteView",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"formatButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"applyButton",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Qa.prototype,"cancelButton",void 0),Qa),ya=($i=fa,Object(s.__extends)(Xa,$i),Yi=Xa,Object.defineProperty(Xa.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Yi=Object(s.__decorate)([Object(c.Component)({providers:[{provide:fa,useExisting:Object(c.forwardRef)(function(){return Yi})}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Xa)),va=(qi=fa,Object(s.__extends)(Ya,qi),Zi=Ya,Zi=Object(s.__decorate)([Object(c.Directive)({providers:[{provide:fa,useExisting:Object(c.forwardRef)(function(){return Zi})}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Ya)),_a=($a.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},$a.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular(function(){return setTimeout(function(){return e.host.nativeElement.focus()})})},Object(s.__decorate)([Object(c.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(s.__metadata)("design:paramtypes",[c.ElementRef,c.NgZone])],$a)),Oa=(Object.defineProperty(Za.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(Za.prototype,"contrastText",{get:function(){var e="AA"===this.type?4.5:7;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Za.prototype,"type",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Boolean)],Za.prototype,"pass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Za.prototype,"value",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],Za)),ja=(Object.defineProperty(qa.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"satisfiesAACondition",{get:function(){return 4.5<=this.contrastRatio},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"satisfiesAAACondition",{get:function(){return 7<=this.contrastRatio},enumerable:!0,configurable:!0}),Object.defineProperty(qa.prototype,"contrastRatio",{get:function(){return Wi(wt(this.value),wt(this.ratio))},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],qa.prototype,"value",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],qa.prototype,"ratio",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(s.__metadata)("design:paramtypes",[u.LocalizationService])],qa)),ka=(Ua.prototype.ngAfterViewInit=function(){var t=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe(function(e){e.h===t.oldH&&e.a===t.oldA||(t.oldH=e.h,t.oldA=e.a,t.setPaths())})},Ua.prototype.ngOnChanges=function(e){G(e.backgroundColor)&&this.metrics&&this.setPaths()},Ua.prototype.setPaths=function(){var o,a,e=(a=Ki,o=function(e,t,n,i){n=a(t||e,n||e),i=n.angle+(i?Math.PI:0),n=.1*n.length;return[e[0]+Math.cos(i)*n,e[1]+Math.sin(i)*n]},function(e,t,n){var i=o(n[t-1],n[t-2],e),a=i[0],i=i[1],t=o(e,n[t-1],n[t+1],!0);return"C "+a+","+i+" "+t[0]+","+t[1]+" "+e[0]+","+e[1]});this.paths=[Ui(this.getPaths(4.5,16),e),Ui(this.getPaths(4.5,16,!0),e),Ui(this.getPaths(7,16),e),Ui(this.getPaths(7,16,!0),e)]},Ua.prototype.findValue=function(e,t,n,i,a){var o=(n+i)/2,r=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-o/this.metrics.height}),r=Wi(wt(St(r)),wt(this.backgroundColor||""));return i<n+.5?r<e+1&&e-1<r?o:null:a(r,e)?this.findValue(e,t,n,i-(i-n)/2,a):this.findValue(e,t,n+(i-n)/2,i,a)},Ua.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=this.metrics.width;a+=this.metrics.width/t){var o=this.findValue(e,a,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return t<e});null!==o&&i.push([a,o])}return i},Object(s.__decorate)([Object(c.HostBinding)("class.k-color-contrast-svg"),Object(s.__metadata)("design:type",Boolean)],Ua.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",Object)],Ua.prototype,"wrapper",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",d.BehaviorSubject)],Ua.prototype,"hsva",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Ua.prototype,"backgroundColor",void 0),Object(s.__decorate)([Object(c.Component)({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],Ua)),g=[ga,pa,sa,ba,va,ya],t=[oa,_a,ja,Oa,ua,ha,ka],Ca=Object(s.__decorate)([Object(c.NgModule)({declarations:[g,t],exports:[g],imports:[vn,Dn,f.CommonModule,y.PopupModule,h.DraggableModule]})],Ka),wa=(Object.defineProperty(Wa.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Wa.prototype.ngAfterViewInit=function(){var t=this;["size","rounded"].forEach(function(e){t.handleClasses(t[e],e)})},Wa.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("checkbox",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Object(s.__decorate)([Object(c.HostBinding)("class.k-checkbox"),Object(s.__metadata)("design:type",Boolean)],Wa.prototype,"kendoClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Wa.prototype,"size",null),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Wa.prototype,"rounded",null),Object(s.__decorate)([Object(c.Directive)({selector:"input[kendoCheckBox]"}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef])],Wa)),Sa=Object(s.__decorate)([Object(c.NgModule)({declarations:[wa],exports:[wa],imports:[f.CommonModule]})],Ga),Ta=(Object.defineProperty(Ha.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Ha.prototype.ngAfterViewInit=function(){var t=this;["size"].forEach(function(e){t.handleClasses(t[e],e)})},Ha.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,e=U("radio",t,this[t],e);e.toRemove&&this.renderer.removeClass(n,e.toRemove),e.toAdd&&this.renderer.addClass(n,e.toAdd)},Object(s.__decorate)([Object(c.HostBinding)("class.k-radio"),Object(s.__metadata)("design:type",Boolean)],Ha.prototype,"kendoClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[String])],Ha.prototype,"size",null),Object(s.__decorate)([Object(c.Directive)({selector:"input[kendoRadioButton]"}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,c.ElementRef])],Ha)),Ea=Object(s.__decorate)([Object(c.NgModule)({declarations:[Ta],exports:[Ta],imports:[f.CommonModule]})],za),Da=0,Ia=(Object.defineProperty(Na.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(Na.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(Na.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-error"),Object(s.__metadata)("design:type",Boolean)],Na.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Na.prototype,"align",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.role"),Object(s.__metadata)("design:type",String)],Na.prototype,"roleAttribute",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-start"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Na.prototype,"startClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-end"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Na.prototype,"endClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],Na.prototype,"idAttribute",null),Object(s.__decorate)([Object(c.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],Na)),xa=0,Pa=(Object.defineProperty(La.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(La.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(La.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],La.prototype,"align",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-hint"),Object(s.__metadata)("design:type",Boolean)],La.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-start"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],La.prototype,"startClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-text-end"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],La.prototype,"endClass",null),Object(s.__decorate)([Object(c.HostBinding)("attr.id"),Object(s.__metadata)("design:type",String),Object(s.__metadata)("design:paramtypes",[])],La.prototype,"idAttribute",null),Object(s.__decorate)([Object(c.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],La)),Va=(Object.defineProperty(Aa.prototype,"errorClass",{get:function(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"disabledClass",{get:function(){return!!this.control&&!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(Aa.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),Aa.prototype.ngAfterViewInit=function(){this.setDescription()},Aa.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Aa.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},Aa.prototype.disabledControl=function(){return this.control.disabled},Aa.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every(function(e){return e.nativeElement.hasAttribute("disabled")})},Aa.prototype.validateFormControl=function(e){if(Object(c.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.")},Aa.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)})},Aa.prototype.isRadioControl=function(e){return e.valueAccessor instanceof l.RadioControlValueAccessor},Aa.prototype.updateDescription=function(){var n=this,e=this.findControlElements();e&&e.forEach(function(e){var t;(0<n.errorChildren.length||0<n.hintChildren.length)&&(t=n.generateDescriptionIds(e),n.renderer.setAttribute(e,"aria-describedby",t))})},Aa.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(h.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map(function(e){return e.nativeElement})},Aa.prototype.generateDescriptionIds=function(e){var t=new Set;return e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach(function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}),this.hintChildren.forEach(function(e){t.add(e.id)}),this.errorChildren.forEach(function(e){t.add(e.id)}),Array.from(t).join(" ")},Aa.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,e=e.pristine;return t||n&&e},Aa.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,e=e.touched;return t&&(n||e)},Aa.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(s.__decorate)([Object(c.HostBinding)("class.k-form-field"),Object(s.__metadata)("design:type",Boolean)],Aa.prototype,"hostClass",void 0),Object(s.__decorate)([Object(c.HostBinding)("attr.dir"),Object(s.__metadata)("design:type",String)],Aa.prototype,"direction",void 0),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-field-error"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Aa.prototype,"errorClass",null),Object(s.__decorate)([Object(c.HostBinding)("class.k-form-field-disabled"),Object(s.__metadata)("design:type",Boolean),Object(s.__metadata)("design:paramtypes",[])],Aa.prototype,"disabledClass",null),Object(s.__decorate)([Object(c.ContentChildren)(l.NgControl,{descendants:!0}),Object(s.__metadata)("design:type",c.QueryList),Object(s.__metadata)("design:paramtypes",[c.QueryList])],Aa.prototype,"formControls",null),Object(s.__decorate)([Object(c.ContentChildren)(l.NgControl,{read:c.ElementRef,descendants:!0}),Object(s.__metadata)("design:type",c.QueryList)],Aa.prototype,"controlElementRefs",void 0),Object(s.__decorate)([Object(c.ContentChild)(h.KendoInput,{static:!0}),Object(s.__metadata)("design:type",Object)],Aa.prototype,"kendoInput",void 0),Object(s.__decorate)([Object(c.ContentChildren)(Ia,{descendants:!0}),Object(s.__metadata)("design:type",c.QueryList)],Aa.prototype,"errorChildren",void 0),Object(s.__decorate)([Object(c.ContentChildren)(Pa,{descendants:!0}),Object(s.__metadata)("design:type",c.QueryList)],Aa.prototype,"hintChildren",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Aa.prototype,"showHints",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Aa.prototype,"orientation",void 0),Object(s.__decorate)([Object(c.Input)(),Object(s.__metadata)("design:type",String)],Aa.prototype,"showErrors",void 0),Object(s.__decorate)([Object(c.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:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(s.__metadata)("design:paramtypes",[c.Renderer2,u.LocalizationService,c.ElementRef])],Aa)),Ra=Object(s.__decorate)([Object(c.NgModule)({declarations:[Pa,Ia,Va],exports:[Pa,Ia,Va],imports:[f.CommonModule]})],Ma),Ba=Object(s.__decorate)([Object(c.NgModule)({exports:[Kn,Nn,vn,kn,Tn,Dn,In,Ca,Sa,Ea,Ra],imports:[f.CommonModule]})],Fa);function Fa(){}function Ma(){}function Aa(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 d.Subscription,this.rtl=!1,Object(b.validatePackage)(Le),this.subscriptions.add(this.localizationService.changes.subscribe(function(e){e=e.rtl;i.rtl=e,i.direction=i.rtl?"rtl":"ltr"}))}function La(){this.align="start",this.id="kendo-hint-"+xa++,this.hostClass=!0}function Na(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+Da++,this.roleAttribute="alert"}function za(){}function Ha(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",Object(b.validatePackage)(Le)}function Ga(){}function Wa(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}function Ka(){}function Ua(){this.hostClass=!0}function qa(e){this.localization=e}function Za(e){this.localization=e}function $a(e,t){this.host=e,this.ngZone=t}function Ya(e){var t=qi.call(this)||this;return t.service=e,t}function Xa(e){var t=$i.call(this)||this;return t.service=e,t}function Qa(){return null!==Xi&&Xi.apply(this,arguments)||this}function Ja(e,t,n,i,a,o){var r=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=a,this.renderer=o,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new c.EventEmitter,this.open=new c.EventEmitter,this.close=new c.EventEmitter,this.onFocus=new c.EventEmitter,this.onBlur=new c.EventEmitter,this.cancel=new c.EventEmitter,this.activeColorClick=new c.EventEmitter,this.activeViewChange=new c.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new d.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},Object(b.validatePackage)(Le),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}function eo(e,t,n,i,a,o){var r=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=a,this.ngZone=o,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new c.EventEmitter,this.cancel=new c.EventEmitter,this.activeViewChange=new c.EventEmitter,this.actionButtonClick=new c.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new d.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(b.validatePackage)(Le),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(e){e=e.rtl;r.direction=e?"rtl":"ltr"})}function to(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new c.EventEmitter}function no(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new c.EventEmitter,this.valuePaneClick=new c.EventEmitter,this.clearButtonClick=new c.EventEmitter}function io(e,t,n,i,a){var o=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=a,this.id="k-colorpalette-"+da++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new c.EventEmitter,this.valueChange=new c.EventEmitter,this.cellSelection=new c.EventEmitter,this.hostClasses=!0,this.uniqueId=Object(h.guid)(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(b.validatePackage)(Le),this.dynamicRTLSubscription=a.changes.subscribe(function(e){e=e.rtl;o.direction=e?"rtl":"ltr"})}function ao(){this.colorRows=[]}function oo(e,t,n,i){n=ta.call(this,e,t,n)||this;return n.flatColorPickerLocalization=i,n}function ro(e,t,n,i,a){var o=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=a,this.hostClasses=!0,this.id="k-colorgradient-"+ra++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format="rgba",this.valueChange=new c.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva=new d.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new d.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(b.validatePackage)(Le),this.dynamicRTLSubscription=a.changes.subscribe(function(e){e=e.rtl;o.direction=e?"rtl":"ltr"})}function so(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+Object(h.guid)(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new c.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new d.Subscription}function co(e,t,n,i){n=ia.call(this,e,t,n)||this;return n.flatColorPickerLocalization=i,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(31),n=n(18),r=(Object.defineProperty(s.prototype,"formGroup",{get:function(){return this.editService.taskFormGroup},enumerable:!0,configurable:!0}),s.prototype.getText=function(e){return this.localizationService.get(e)},i.__decorate([a.Component({selector:"kendo-gantt-task-fields",template:'\n <form class="k-form" [formGroup]="formGroup">\n <kendo-formfield *ngIf="formGroup.contains(mapper.taskFields.title)">\n <kendo-label [for]="mapper.taskFields.title" [text]="getText(\'titleFieldInputLabel\')"></kendo-label>\n <input kendoTextBox [formControlName]="mapper.taskFields.title" />\n </kendo-formfield>\n <div class="k-hstack">\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.start)">\n <kendo-label [for]="mapper.taskFields.start" [text]="getText(\'startFieldInputLabel\')"></kendo-label>\n <kendo-datetimepicker [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>\n </kendo-formfield>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.end)">\n <kendo-label [for]="mapper.taskFields.end" [text]="getText(\'endFieldInputLabel\')"></kendo-label>\n <kendo-datetimepicker [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>\n </kendo-formfield>\n </div>\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.completionRatio)">\n <kendo-label [for]="mapper.taskFields.completionRatio" [text]="getText(\'completionRatioFieldInputLabel\')"></kendo-label>\n <kendo-numerictextbox\n [formControlName]="mapper.taskFields.completionRatio"\n [min]="0"\n [max]="1"\n [decimals]="2"\n format="p2"\n [step]="0.01"\n ></kendo-numerictextbox>\n </kendo-formfield>\n </form>\n '}),i.__metadata("design:paramtypes",[o.MappingService,n.EditService,r.GanttLocalizationService])],s));function s(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n}t.TaskFieldsComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(6),r=n(12),s=n(31),c=n(19),n=n(18),s=(Object.defineProperty(l.prototype,"taskId",{get:function(){return this.editService.dataItem.id},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"dependencyIdField",{get:function(){return"predecessor"===this.dependencyType?"fromId":"toId"},enumerable:!0,configurable:!0}),l.prototype.ngOnInit=function(){var n,i=this;0===this.formGroups.controls.length&&(n=this.mapper.dependencyFields,this.dependencies.forEach(function(e){var t=new o.FormGroup(((t={})[n.id]=new o.FormControl(i.mapper.extractFromDependency(e,"id")),t[n.fromId]=new o.FormControl(i.mapper.extractFromDependency(e,"fromId"),o.Validators.required),t[n.toId]=new o.FormControl(i.mapper.extractFromDependency(e,"toId"),o.Validators.required),t[n.type]=new o.FormControl(i.mapper.extractFromDependency(e,"type"),o.Validators.required),t));i.formGroups.push(t)})),this.formGroups.valueChanges.subscribe(function(e){i.formGroups.controls.forEach(function(e){e.dirty&&i.editService.updateDependencies(e.value)}),i.dependenciesChange.emit(e)})},l.prototype.getFormControl=function(n,e){return this.formGroups.controls.find(function(e,t){return t===n}).get(this.mapper.dependencyFields[e])},l.prototype.getText=function(e){return this.localizationService.get(e)},l.prototype.getDependencyTypes=function(){return Object.keys(c.DependencyType).filter(function(e){return"number"==typeof c.DependencyType[e]}).map(function(e){return{type:e,id:c.DependencyType[e]}})},l.prototype.addHandler=function(){var e=this.mapper.dependencyFields,t=new o.FormGroup(((t={})[e.id]=new o.FormControl,t[e.fromId]=new o.FormControl("toId"===this.dependencyIdField?this.taskId:null,o.Validators.required),t[e.toId]=new o.FormControl("fromId"===this.dependencyIdField?this.taskId:null,o.Validators.required),t[e.type]=new o.FormControl(null,o.Validators.required),t));this.formGroups.push(t)},l.prototype.removeHandler=function(){var e=this.selectedKeys[0],t=this.formGroups.at(e).value;this.editService.deleteDependency(t),this.formGroups.removeAt(e)},i.__decorate([a.Input(),i.__metadata("design:type",Array)],l.prototype,"tasks",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],l.prototype,"dependencies",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],l.prototype,"dependencyType",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],l.prototype,"dependenciesChange",void 0),i.__decorate([a.Component({selector:"kendo-gantt-dependencies-table",template:'\n <kendo-grid\n [data]="dependencies"\n [selectable]="{ mode: \'single\' }"\n [(selectedKeys)]="selectedKeys"\n kendoGridSelectBy\n [height]="275"\n >\n <ng-template kendoGridToolbarTemplate>\n <button kendoButton (click)="addHandler()">\n {{ getText(\'taskEditingDependenciesAddButtonText\') }}\n </button>\n <button kendoButton (click)="removeHandler()" [disabled]="selectedKeys.length === 0">\n {{ getText(\'taskEditingDependenciesRemoveButtonText\') }}\n </button>\n </ng-template>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridNameColumnTitle\')" [field]="dependencyIdField">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="tasks"\n textField="title"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridTypeColumnTitle\')" field="type">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="dependencyTypes"\n textField="type"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n </kendo-grid>\n '}),i.__metadata("design:paramtypes",[r.MappingService,n.EditService,s.GanttLocalizationService])],l));function l(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n,this.dependenciesChange=new a.EventEmitter,this.selectedKeys=[],this.formGroups=new o.FormArray([]),this.dependencyTypes=this.getDependencyTypes()}t.DependenciesTableComponent=s},function(e,t){e.exports=y},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),n=n(18),a=(r.prototype.getText=function(e){return this.localizationService.get(e)},r.prototype.handleOpen=function(e){this.editService.getSelectedItem()||e.preventDefault()},r.prototype.handleMouseClick=function(){var e=this;this.editService.getSelectedItem()||this.ngZone.run(function(){e.editService.addEvent.next({selectedItem:null,actionType:"addTask"})})},r.prototype.handleItemClick=function(e){this.editService.addEvent.next({actionType:e.type,selectedItem:null})},i.__decorate([a.Input(),i.__metadata("design:type",Array)],r.prototype,"data",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],r.prototype,"icon",void 0),i.__decorate([a.Component({selector:"kendo-gantt-add-task",template:'\n <kendo-dropdownbutton\n [data]="data"\n [icon]="icon"\n [kendoEventsOutsideAngular]="{ click: handleMouseClick }"\n [scope]="this"\n (itemClick)="handleItemClick($event)"\n (open)="handleOpen($event)">\n {{ getText(\'addTaskText\') }}\n </kendo-dropdownbutton>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService,n.EditService,a.NgZone])],r));function r(e,t,n){this.localizationService=e,this.editService=t,this.ngZone=n,this.data=[{text:this.getText("addChildText"),type:"addChild"},{text:this.getText("addAboveText"),type:"addAbove"},{text:this.getText("addBelowText"),type:"addBelow"}],this.icon="plus"}t.GanttAddTaskComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(4),n=n(39),s=(i=n.Messages,o.__extends(c,i),a=c,a=o.__decorate([r.Directive({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"[kendoGanttLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=i.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(4),n=n(39),s=(i=n.Messages,o.__extends(c,i),a=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),a=o.__decorate([r.Component({providers:[{provide:n.Messages,useExisting:r.forwardRef(function(){return a})}],selector:"kendo-gantt-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=i.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(12),s=n(19),n=n(18),o=(c.prototype.ngOnInit=function(){var t=this;this.editService.loadTasks(this.data).subscribe(function(e){t.loadedTasks=e})},Object.defineProperty(c.prototype,"predecessors",{get:function(){return this.editService.predecessors},set:function(e){this.editService.predecessors=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"successors",{get:function(){return this.editService.successors},set:function(e){this.editService.successors=e},enumerable:!0,configurable:!0}),c.prototype.getText=function(e){return this.localizationService.get(e)},c.prototype.getDependencyType=function(e){return s.DependencyType[e]},c.prototype.handleEditingResult=function(e){this.editService.triggerEditEvent(e)},c.prototype.handleTaskDelete=function(){this.editService.taskDelete.next(this.editService.dataItem)},i.__decorate([a.Input(),i.__metadata("design:type",Array)],c.prototype,"data",void 0),i.__decorate([a.Component({selector:"kendo-gantt-edit-dialog",template:'\n <kendo-dialog\n [title]="getText(\'taskEditingDialogTitle\')"\n [width]="575"\n [height]="470"\n (close)="handleEditingResult(\'cancel\')">\n <kendo-dialog-messages\n [closeTitle]="getText(\'taskEditingDialogCloseTitle\')"></kendo-dialog-messages>\n\n <kendo-tabstrip [keepTabContent]="true" style="height: 345px;">\n <kendo-tabstrip-tab [title]="getText(\'taskEditingGeneralTabTitle\')" [selected]="true">\n <ng-template kendoTabContent>\n <kendo-gantt-task-fields></kendo-gantt-task-fields>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingPredecessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="predecessors"\n dependencyType="predecessor"\n >\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingSuccessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="successors"\n dependencyType="successor">\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n </kendo-tabstrip>\n\n <kendo-dialog-actions layout="normal">\n <button\n kendoButton\n [kendoEventsOutsideAngular]="{\n click: handleTaskDelete\n }"\n [scope]="this"\n >\n {{ getText(\'deleteButtonText\') }}\n </button>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleEditingResult(\'save\')">{{ getText(\'saveButtonText\') }}</button>\n <button kendoButton (click)="handleEditingResult(\'cancel\')">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[r.MappingService,n.EditService,a.ChangeDetectorRef,o.LocalizationService])],c));function c(e,t,n,i){this.mapper=e,this.editService=t,this.cdr=n,this.localizationService=i}t.EditDialogComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(16),c=n(22),n=n(15),s=(i=c.ViewBase,o.__extends(l,i),a=l,a=o.__decorate([r.Component({selector:"kendo-gantt-timeline-month-view",template:"",providers:[{provide:c.ViewBase,useExisting:r.forwardRef(function(){return a})}]}),o.__metadata("design:paramtypes",[n.OptionChangesService,s.DependencyDomService])],l));function l(e,t){t=i.call(this,e,t)||this;return t.type="month",t}t.TimelineMonthViewComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(16),c=n(22),n=n(15),s=(i=c.ViewBase,o.__extends(l,i),a=l,a=o.__decorate([r.Component({selector:"kendo-gantt-timeline-week-view",template:"",providers:[{provide:c.ViewBase,useExisting:r.forwardRef(function(){return a})}]}),o.__metadata("design:paramtypes",[n.OptionChangesService,s.DependencyDomService])],l));function l(e,t){t=i.call(this,e,t)||this;return t.type="week",t}t.TimelineWeekViewComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(16),c=n(22),n=n(15),s=(i=c.ViewBase,o.__extends(l,i),a=l,a=o.__decorate([r.Component({selector:"kendo-gantt-timeline-day-view",template:"",providers:[{provide:c.ViewBase,useExisting:r.forwardRef(function(){return a})}]}),o.__metadata("design:paramtypes",[n.OptionChangesService,s.DependencyDomService])],l));function l(e,t){t=i.call(this,e,t)||this;return t.type="day",t}t.TimelineDayViewComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(3),d=n(40),p=n(11);t.scrollElement=function(e,t,n,i){if(p.isPresent(e)&&l.isDocumentAvailable())for(var a=e[i],o=t,r=0;!(a!==e[i]||n===d.ScrollDirection.Backwards&&Math.floor(e[i])<=0||n===d.ScrollDirection.Forward&&(s=e,c=void 0,c=i===d.ScrollAxis.Horizontal?s.scrollWidth-s.clientWidth:s.scrollHeight-s.clientHeight,Math.ceil(s[i])>=c)||!(r<20));)e[i]+=o*n,o+=1,r+=1;var s,c},t.getViewportBoundaries=function(e){var t=e.getBoundingClientRect(),n=Math.max(t.top,0),i=Math.max(t.left,0);return{top:n,bottom:n+Math.min(t.bottom,e.clientHeight),left:i,right:i+Math.min(t.right,e.clientWidth)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(11),s=n(40),c=n(32),l=n(70),a=(d.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},d.prototype.scrollHorizontallyTo=function(n){var i=this;this.zone.runOutsideAngular(function(){var e=i.timelineScrollableContainer.nativeElement,t=l.getViewportBoundaries(e);n<t.left+i.scrollSettings.threshold?i.horizontalScrollInterval=setInterval(function(){return l.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Horizontal)},i.scrollSettings.interval):n>t.right-i.scrollSettings.threshold&&(i.horizontalScrollInterval=setInterval(function(){return l.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Horizontal)},i.scrollSettings.interval))})},d.prototype.scrollVerticallyTo=function(n){var i=this;this.zone.runOutsideAngular(function(){var e=i.timelineScrollableContainer.nativeElement,t=l.getViewportBoundaries(e);n<t.top+i.scrollSettings.threshold?i.verticalScrollInterval=setInterval(function(){return l.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Vertical)},i.scrollSettings.interval):n>t.bottom-i.scrollSettings.threshold&&(i.verticalScrollInterval=setInterval(function(){return l.scrollElement(e,i.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Vertical)},i.scrollSettings.interval))})},d.prototype.cancelScroll=function(){r.isPresent(this.verticalScrollInterval)&&(clearInterval(this.verticalScrollInterval),this.verticalScrollInterval=null),r.isPresent(this.horizontalScrollInterval)&&(clearInterval(this.horizontalScrollInterval),this.horizontalScrollInterval=null)},i.__decorate([a.Input(),i.__metadata("design:type",Object)],d.prototype,"scrollSettings",void 0),i.__decorate([a.Directive({selector:"[kendoGanttTimelineScrollable]"}),i.__metadata("design:paramtypes",[a.ElementRef,c.TimelineScrollService,a.NgZone])],d));function d(e,t,n){this.timelineScrollableContainer=e,this.scrollService=t,this.zone=n,this.subscriptions=new o.Subscription,this.subscriptions.add(this.scrollService.horizontalScroll.subscribe(this.scrollHorizontallyTo.bind(this))),this.subscriptions.add(this.scrollService.verticalScroll.subscribe(this.scrollVerticallyTo.bind(this))),this.subscriptions.add(this.scrollService.scrollCancel.subscribe(this.cancelScroll.bind(this)))}t.TimelineScrollableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),r=n(5),s=n(7),o=n(12),c=n(16),l=n(11),d=n(43),p=n(3),c=(u.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},u.prototype.ngOnChanges=function(e){l.isPresent(e.dependency)&&this.updatePoints(this.dependencyDomService.dependencyDomArgs)},u.prototype.updatePoints=function(e){var t=e.timelineRow,n=e.contentContainer,i=e.tasks;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"))?(e=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"fromId")),n),n=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"toId")),n),t=p.isDocumentAvailable()?t.getBoundingClientRect().height:0,t=d.dependencyCoordinates(e,n,t,this.dependency.type,10,4),this.drawPoints(t)):this.clearPoints()},u.prototype.clearPoints=function(){this.renderer.setAttribute(this.polyline.nativeElement,"points","")},u.prototype.drawPoints=function(e){l.isPresent(e)&&0!==e.length?(e=e.map(function(e){return e.left+","+e.top}).join(" "),this.renderer.setAttribute(this.polyline.nativeElement,"points",e)):this.clearPoints()},i.__decorate([a.Input(),i.__metadata("design:type",Object)],u.prototype,"dependency",void 0),i.__decorate([a.Directive({selector:"[kendoGanttDependency]"}),i.__metadata("design:paramtypes",[a.ElementRef,a.NgZone,a.Renderer2,o.MappingService,c.DependencyDomService])],u));function u(e,t,n,i,a){var o=this;this.polyline=e,this.zone=t,this.renderer=n,this.mapper=i,this.dependencyDomService=a,this.subscriptions=new r.Subscription,this.subscriptions.add(a.taskChanges.pipe(s.switchMap(function(e){return o.zone.onStable.pipe(s.take(1),s.map(function(){return e}))})).subscribe(function(e){return o.updatePoints(e)}))}t.GanttDependencyDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),n=n(4),n=(o.prototype.onClick=function(e){e!==this.activeView&&this.activeViewChange.emit(e)},o.prototype.getViewTypeText=function(e){return this.localizationService.get(e+"ViewText")},i.__decorate([a.HostBinding("class.k-gantt-views-wrapper"),i.__metadata("design:type",Boolean)],o.prototype,"hostClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],o.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],o.prototype,"activeView",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],o.prototype,"activeViewChange",void 0),i.__decorate([a.Component({selector:"kendo-gantt-view-selector",template:'\n <select\n class="k-dropdownlist k-picker k-rounded-md k-views-dropdown"\n aria-label="View Selector"\n [value]="activeView"\n (change)="activeViewChange.emit($event.target.value)">\n <option *ngFor="let view of views" [value]="view">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class="k-gantt-views" selection="single">\n <button *ngFor="let view of views"\n kendoButton\n type="button"\n [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '}),i.__metadata("design:paramtypes",[n.LocalizationService])],o));function o(e){this.localizationService=e,this.hostClass=!0,this.activeView="week",this.activeViewChange=new a.EventEmitter}t.ViewSelectorComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),n=n(20),n=(Object.defineProperty(o.prototype,"position",{get:function(){return this._position},set:function(e){this.context.position=this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolbarTemplateRef",{get:function(){return this.gantt.toolbarTemplate?this.gantt.toolbarTemplate.templateRef:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.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}),o.prototype.handleViewChange=function(e){this.gantt.changeActiveView(e)},i.__decorate([a.HostBinding("attr.role"),i.__metadata("design:type",String)],o.prototype,"role",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],o.prototype,"showAddTask",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],o.prototype,"showViewSelector",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],o.prototype,"position",null),i.__decorate([a.Component({selector:"kendo-gantt-toolbar",template:'\n <ng-container *ngIf="!renderTemplate">\n <kendo-gantt-add-task *ngIf="showAddTask"></kendo-gantt-add-task>\n <span class="k-spacer k-toolbar-spacer"></span>\n <kendo-gantt-view-selector\n *ngIf="showViewSelector"\n [views]="gantt.viewTypes"\n [activeView]="gantt.activeView"\n (activeViewChange)="handleViewChange($event)"></kendo-gantt-view-selector>\n </ng-container>\n <ng-template\n *ngIf="renderTemplate"\n [ngTemplateOutlet]="toolbarTemplateRef"\n [ngTemplateOutletContext]="context"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[n.GanttComponent])],o));function o(e){this.gantt=e,this.context={},this.role="toolbar"}t.ToolbarComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(0),o=n(1),r=n(12),c=n(23),l=n(21),d=n(16),p=n(15),u=n(24),n=n(26),c=(s=n.GanttTaskBase,a.__extends(h,s),i=h,a.__decorate([o.HostBinding("class.k-milestone-wrap"),a.__metadata("design:type",Boolean)],h.prototype,"milestoneWrapperClass",void 0),i=a.__decorate([o.Component({selector:"kendo-gantt-milestone-task",providers:[{provide:n.GanttTaskBase,useExisting:o.forwardRef(function(){return i})}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),a.__param(0,o.Inject(l.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[Boolean,r.MappingService,u.TimelineViewService,d.DependencyDomService,p.OptionChangesService,o.ChangeDetectorRef,c.NavigationService])],h));function h(e,t,n,i,a,o,r){r=s.call(this,t,n,i,a,o,r)||this;return r.touchEnabled=e,r.milestoneWrapperClass=!0,r}t.GanttMilestoneTaskComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,i,a=n(0),o=n(1),r=n(12),c=n(23),l=n(21),d=n(16),p=n(15),u=n(24),h=n(26),b=n(11),c=(s=h.GanttTaskBase,a.__extends(m,s),i=m,Object.defineProperty(m.prototype,"ariaExpanded",{get:function(){var e=!b.isPresent(this.isExpanded)||this.isExpanded(this.dataItem);return String(e)},enumerable:!0,configurable:!0}),a.__decorate([o.HostBinding("class.k-summary-wrap"),a.__metadata("design:type",Boolean)],m.prototype,"summaryWrapperClass",void 0),a.__decorate([o.Input(),a.__metadata("design:type",o.TemplateRef)],m.prototype,"template",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Function)],m.prototype,"isExpanded",void 0),i=a.__decorate([o.Component({selector:"kendo-gantt-summary-task",providers:[{provide:h.GanttTaskBase,useExisting:o.forwardRef(function(){return i})}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-level]="level + 1"\n >\n <div *ngIf="!template; else summaryTemplate"\n class="k-task-summary-progress"\n [style.width.px]="taskWidth">\n <div\n class="k-task-summary-complete"\n [style.width.px]="completionOverlayWidth"\n >\n </div>\n </div>\n <ng-template\n #summaryTemplate\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),a.__param(0,o.Inject(l.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[Boolean,r.MappingService,u.TimelineViewService,d.DependencyDomService,p.OptionChangesService,o.ChangeDetectorRef,c.NavigationService])],m));function m(e,t,n,i,a,o,r){r=s.call(this,t,n,i,a,o,r)||this;return r.touchEnabled=e,r.summaryWrapperClass=!0,r}t.GanttSummaryTaskComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,i,a=n(0),o=n(1),r=n(12),s=n(23),l=n(18),d=n(21),p=n(16),u=n(15),h=n(24),n=n(26),s=(c=n.GanttTaskBase,a.__extends(b,c),(i=b).prototype.onTaskDelete=function(){this.editService.dataItem=this.dataItem,this.editService.taskDelete.next(this.dataItem)},a.__decorate([o.Input(),a.__metadata("design:type",o.TemplateRef)],b.prototype,"taskContentTemplate",void 0),a.__decorate([o.Input(),a.__metadata("design:type",o.TemplateRef)],b.prototype,"taskTemplate",void 0),i=a.__decorate([o.Component({selector:"kendo-gantt-task",providers:[{provide:n.GanttTaskBase,useExisting:o.forwardRef(function(){return i})}],template:'\n <div\n #task\n class="k-task k-task-single"\n role="treeitem"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\n aria-hidden="true"\n >\n </div>\n <div class="k-task-content">\n <div class="k-task-template">\n <ng-container *ngIf="!taskContentTemplate; else taskContent">\n {{ mapper.extractFromTask(dataItem, \'title\') }}\n </ng-container>\n <ng-template\n #taskContent\n [ngTemplateOutlet]="taskContentTemplate"\n [ngTemplateOutletContext]="{ $implicit: dataItem }"\n >\n </ng-template>\n </div>\n <span\n class="k-task-actions"\n aria-hidden="true"\n >\n <span\n class="k-link k-task-delete"\n [kendoEventsOutsideAngular]="{\n click: onTaskDelete\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-close"></span>\n </span>\n </span>\n </div>\n </ng-container>\n <ng-template\n *ngIf="taskTemplate"\n [ngTemplateOutlet]="taskTemplate"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),a.__param(1,o.Inject(d.TOUCH_ENABLED)),a.__metadata("design:paramtypes",[l.EditService,Boolean,r.MappingService,h.TimelineViewService,p.DependencyDomService,u.OptionChangesService,o.ChangeDetectorRef,s.NavigationService])],b));function b(e,t,n,i,a,o,r,s){s=c.call(this,n,i,a,o,r,s)||this;return s.editService=e,s.touchEnabled=t,s}t.GanttTaskComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(i.__decorate([n.Input(),i.__metadata("design:type",Array)],a.prototype,"groupSlots",void 0),i.__decorate([n.Input(),i.__metadata("design:type",Array)],a.prototype,"slots",void 0),i.__decorate([n.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 '})],a));function a(){}t.GanttHeaderTableBodyComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),r=n(16),s=n(12),c=n(11),s=(Object.defineProperty(l.prototype,"timelineRow",{set:function(e){c.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),l.prototype.isMileStone=function(e){return!e.hasChildren&&o.isEqual(this.mapper.extractFromTask(e.data,"start"),this.mapper.extractFromTask(e.data,"end"))},i.__decorate([a.ViewChild("timelineRow",{static:!1}),i.__metadata("design:type",a.ElementRef),i.__metadata("design:paramtypes",[a.ElementRef])],l.prototype,"timelineRow",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],l.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],l.prototype,"rows",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],l.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],l.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],l.prototype,"taskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],l.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"taskClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],l.prototype,"isTaskSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],l.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Component({selector:"[kendoGanttTasksTableBody]",template:'\n <tr #timelineRow *ngFor="let item of rows; let index = index">\n <td>\n <kendo-gantt-milestone-task\n *ngIf="isMileStone(item); else task"\n [dataItem]="item.data"\n [level]="item.level"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [isExpanded]="isExpanded"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,s.MappingService])],l));function l(e,t){this.dependencyDomService=e,this.mapper=t}t.GanttTasksTableBodyComponent=s},function(e,t,n){"use strict";n.r(t),n.d(t,"CalendarCommonModule",function(){return Ui}),n.d(t,"CALENDAR_RANGE_VALIDATORS",function(){return Rt}),n.d(t,"CALENDAR_VALUE_ACCESSOR",function(){return Vt}),n.d(t,"KENDO_INPUT_PROVIDER",function(){return Bt}),n.d(t,"KForOf",function(){return zn}),n.d(t,"KForOfContext",function(){return Nn}),n.d(t,"HeaderComponent",function(){return Wi}),n.d(t,"HorizontalViewListComponent",function(){return Tn}),n.d(t,"CalendarMessages",function(){return Qi}),n.d(t,"MultiViewCalendarCustomMessagesComponent",function(){return Yi}),n.d(t,"Messages",function(){return Zi}),n.d(t,"RANGE_CALENDAR_RANGE_VALIDATORS",function(){return In}),n.d(t,"RANGE_CALENDAR_VALUE_ACCESSOR",function(){return Dn}),n.d(t,"NavigationComponent",function(){return gt}),n.d(t,"BusViewService",function(){return Pe}),n.d(t,"CenturyViewService",function(){return se}),n.d(t,"DecadeViewService",function(){return de}),n.d(t,"DisabledDatesService",function(){return _t}),n.d(t,"CalendarDOMService",function(){return qe}),n.d(t,"MonthViewService",function(){return he}),n.d(t,"NavigationService",function(){return vt}),n.d(t,"ScrollSyncService",function(){return jt}),n.d(t,"SelectionService",function(){return Ot}),n.d(t,"WeekNamesService",function(){return Sn}),n.d(t,"YearViewService",function(){return ge}),n.d(t,"TemplatesModule",function(){return qi}),n.d(t,"CellTemplateDirective",function(){return kt}),n.d(t,"CenturyCellTemplateDirective",function(){return Tt}),n.d(t,"DecadeCellTemplateDirective",function(){return St}),n.d(t,"HeaderTitleTemplateDirective",function(){return Dt}),n.d(t,"MonthCellTemplateDirective",function(){return Ct}),n.d(t,"NavigationItemTemplateDirective",function(){return It}),n.d(t,"WeekNumberCellTemplateDirective",function(){return Et}),n.d(t,"YearCellTemplateDirective",function(){return wt}),n.d(t,"ViewListComponent",function(){return ft}),n.d(t,"ViewComponent",function(){return Ki}),n.d(t,"PickerService",function(){return xt}),n.d(t,"DateInputMessages",function(){return oa}),n.d(t,"DatePickerMessages",function(){return la}),n.d(t,"DateRangeInput",function(){return Fn}),n.d(t,"DateRangePopupTemplateDirective",function(){return Pn}),n.d(t,"DateTimePickerCustomMessagesComponent",function(){return Lo}),n.d(t,"LocalizedMessagesDirective",function(){return No}),n.d(t,"Messages$1",function(){return Ao}),n.d(t,"TimePickerMessages",function(){return Po}),n.d(t,"TimePickerCustomMessagesComponent",function(){return Ro}),n.d(t,"TimeSelectorCustomMessagesComponent",function(){return Fo}),n.d(t,"DayPeriodService",function(){return Ra}),n.d(t,"TimePickerDOMService",function(){return fa}),n.d(t,"HoursService",function(){return Oa}),n.d(t,"MillisecondsService",function(){return Va}),n.d(t,"MinutesService",function(){return wa}),n.d(t,"SecondsService",function(){return Da}),n.d(t,"TimeListComponent",function(){return Ma}),n.d(t,"TimeSelectorComponent",function(){return xo}),n.d(t,"TOUCH_ENABLED",function(){return fn}),n.d(t,"ScrollerService",function(){return Xe}),n.d(t,"DEFAULT_SCROLLER_FACTORY",function(){return it}),n.d(t,"SCROLLER_FACTORY_TOKEN",function(){return Qe}),n.d(t,"VirtualizationComponent",function(){return mt}),n.d(t,"VirtualizationModule",function(){return na}),n.d(t,"CalendarComponent",function(){return Ft}),n.d(t,"DateInputComponent",function(){return mn}),n.d(t,"DatePickerComponent",function(){return yn}),n.d(t,"TimePickerComponent",function(){return kn}),n.d(t,"DateTimePickerComponent",function(){return wn}),n.d(t,"MultiViewCalendarComponent",function(){return xn}),n.d(t,"DateRangeComponent",function(){return Bn}),n.d(t,"DateRangePopupComponent",function(){return Rn}),n.d(t,"DateRangeEndInputDirective",function(){return Mn}),n.d(t,"DateRangeStartInputDirective",function(){return An}),n.d(t,"DateRangeSelectionDirective",function(){return Ln}),n.d(t,"CalendarModule",function(){return ia}),n.d(t,"CalendarsModule",function(){return aa}),n.d(t,"DateInputModule",function(){return ca}),n.d(t,"DatePickerModule",function(){return ha}),n.d(t,"DateInputsModule",function(){return Ho}),n.d(t,"TimePickerModule",function(){return Mo}),n.d(t,"DateTimePickerModule",function(){return zo}),n.d(t,"MultiViewCalendarModule",function(){return Xi}),n.d(t,"DateRangeModule",function(){return ma}),n.d(t,"DateRangeService",function(){return Vn}),n.d(t,"CalendarCustomMessagesComponent",function(){return ea}),n.d(t,"DateInputCustomMessagesComponent",function(){return sa}),n.d(t,"DatePickerCustomMessagesComponent",function(){return pa}),n.d(t,"PreventableEvent",function(){return gn}),n.d(t,"CalendarLocalizedMessagesDirective",function(){return Ji}),n.d(t,"MultiViewCalendarLocalizedMessagesDirective",function(){return $i}),n.d(t,"DateInputLocalizedMessagesDirective",function(){return ra}),n.d(t,"DatePickerLocalizedMessagesDirective",function(){return da}),n.d(t,"TimePickerLocalizedMessagesDirective",function(){return Vo}),n.d(t,"TimeSelectorLocalizedMessagesDirective",function(){return Bo});var c,i=n(0),h=n(1),a=n(6),o=n(4),_=n(2),b=n(3),m=n(10),r=n(8),d=n(5),l=n(7),s=n(13),p=n(9),u=n(14),g={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635945725,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};(On=c=c||{})[On.Left=0]="Left",On[On.Right=1]="Right",On[On.Up=2]="Up",On[On.Down=3]="Down",On[On.PrevView=4]="PrevView",On[On.NextView=5]="NextView",On[On.FirstInView=6]="FirstInView",On[On.LastInView=7]="LastInView",On[On.LowerView=8]="LowerView",On[On.UpperView=9]="UpperView";function f(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function y(e){return e.preventDefault()}function v(e){return e.relatedTarget||document.activeElement}function O(e){return null!=e}function j(e){return null!=e}function k(n){return function(e,t){e=Object(_.cloneDate)(e);return e[n](t),e}}function C(e,t,n){return{candidateValue:J(Z,e),maxValue:Object(_.addDays)(J(Z,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:J(Z,t)}}function w(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function S(e,t,n){return!e||!(t&&e<t||n&&n<e)}function T(e,t,n){return!(e&&t&&n)||(e=C(e,t,n),t=e.candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function E(e,t){return!j(e)||!j(t)||e<=t}function D(e,t,n){return e&&(t&&e<t?Object(_.cloneDate)(t):n&&n<e?Object(_.cloneDate)(n):e)}function I(){return new Date}function x(){return Object(_.getDate)(new Date)}function P(e){}function V(){return"undefined"!=typeof window}function R(e,t){return e.slice(t).concat(e.slice(0,t))}function B(a){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(a);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}}function F(e,t){return void 0!==e[t]}function M(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function A(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function L(e,t){var t=(n=t||q).start,n=n.end;return!(!t||!n)&&t<e&&e<n}function N(e,t){return e||t}function z(e){return{start:e,end:e}}function H(e,t){var n=(i=e||q).start,e=i.end,t=(i=t||q).start,i=i.end;return Object(_.isEqual)(n,t)&&Object(_.isEqual)(e,i)}function G(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return Object(_.isEqual)(e,n[t])})}function W(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function K(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}var U,q={start:null,end:null},Z=new Date(1980,0,1),$=new Date(1900,0,1),Y=new Date(2099,11,31),X=new Date(1980,0,1),Q=new Date(1980,0,1,23,59,59),J=function(e,t){e=Object(_.cloneDate)(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},ee=k("setFullYear"),te=k("setHours"),ne=k("setMinutes"),ie=k("setSeconds"),ae=k("setMilliseconds"),oe=[[]],re=((ta={})[c.Left]=function(e){return Object(_.addDecades)(e,-1)},ta[c.Up]=function(e){return Object(_.addDecades)(e,-5)},ta[c.Right]=function(e){return Object(_.addDecades)(e,1)},ta[c.Down]=function(e){return Object(_.addDecades)(e,5)},ta[c.PrevView]=function(e){return Object(_.addCenturies)(e,-1)},ta[c.NextView]=function(e){return Object(_.addCenturies)(e,1)},ta[c.FirstInView]=function(e){return Object(_.firstDecadeOfCentury)(e)},ta[c.LastInView]=function(e){return Object(_.lastDecadeOfCentury)(e)},ta),se=(_e.prototype.addToDate=function(e,t){return Object(_.addCenturies)(e,t)},_e.prototype.datesList=function(t,e){return w(0,e).map(function(e){return Object(_.addCenturies)(t,e)})},_e.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,c=e.isActiveView,l=e.max,d=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?q:t,e=e.viewDate;if(!e)return oe;var n=w(0,4),h=Object(_.firstDecadeOfCentury)(e),b=Object(_.lastDecadeOfCentury)(e),m=x();return w(0,3).map(function(e){var a=Object(_.addDecades)(h,4*e);return n.map(function(e){var t=o.normalize(Object(_.addDecades)(a,e),d,l),n=t.getFullYear()>b.getFullYear();if(!o.isInRange(t,d,l)||n)return null;var i=o.isEqual(t,u.start),e=o.isEqual(t,u.end),n=!i&&!e&&L(t,u);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:c&&p.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,b),isRangeSplitStart:n&&o.isEqual(t,h),isToday:o.isEqual(t,m),title:o.cellTitle(t),value:t}})})},_e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(_.firstYearOfDecade)(e).getFullYear()===Object(_.firstYearOfDecade)(t).getFullYear()},_e.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99},_e.prototype.isInRange=function(e,t,n){e=Object(_.firstYearOfDecade)(e).getFullYear(),t=!t||Object(_.firstYearOfDecade)(t).getFullYear()<=e,n=!n||e<=Object(_.firstYearOfDecade)(n).getFullYear();return t&&n},_e.prototype.beginningOfPeriod=function(e){if(!e)return e;e=Object(_.firstYearOfDecade)(Object(_.firstDecadeOfCentury)(e));return Object(_.createDate)(e.getFullYear(),0,1)},_e.prototype.lastDayOfPeriod=function(e){e=Object(_.lastDecadeOfCentury)(e),e=Object(_.lastYearOfDecade)(e),e=Object(_.lastMonthOfYear)(e);return Object(_.lastDayOfMonth)(e)},_e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},_e.prototype.move=function(e,t){t=re[t];return t?t(e):e},_e.prototype.cellTitle=function(e){return Object(_.firstYearOfDecade)(e).getFullYear().toString()},_e.prototype.navigationTitle=function(e){return e?Object(_.firstDecadeOfCentury)(e).getFullYear().toString():""},_e.prototype.title=function(e){return e?Object(_.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(_.lastDecadeOfCentury)(e).getFullYear():""},_e.prototype.rowLength=function(){return 4},_e.prototype.skip=function(e,t){return Object(_.durationInCenturies)(t,e)},_e.prototype.total=function(e,t){return Object(_.durationInCenturies)(e,t)+1},_e.prototype.value=function(e){return e?Object(_.firstYearOfDecade)(e).getFullYear().toString():""},_e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addCenturies)(e,-1*t)}return e},_e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},Object(i.__decorate)([Object(h.Injectable)()],_e)),ce=[[]],le=((ua={})[c.Left]=function(e){return Object(_.addYears)(e,-1)},ua[c.Up]=function(e){return Object(_.addYears)(e,-5)},ua[c.Right]=function(e){return Object(_.addYears)(e,1)},ua[c.Down]=function(e){return Object(_.addYears)(e,5)},ua[c.PrevView]=function(e){return Object(_.addDecades)(e,-1)},ua[c.NextView]=function(e){return Object(_.addDecades)(e,1)},ua[c.FirstInView]=function(e){return Object(_.firstYearOfDecade)(e)},ua[c.LastInView]=function(e){return Object(_.lastYearOfDecade)(e)},ua),de=(ve.prototype.addToDate=function(e,t){return Object(_.addDecades)(e,t)},ve.prototype.datesList=function(t,e){return w(0,e).map(function(e){return Object(_.addDecades)(t,e)})},ve.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,c=e.isActiveView,l=e.max,d=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?q:t,e=e.viewDate;if(!e)return ce;var n=w(0,4),h=Object(_.firstYearOfDecade)(e),b=Object(_.lastYearOfDecade)(e),m=x();return w(0,3).map(function(e){var a=Object(_.addYears)(h,4*e);return n.map(function(e){var t=o.normalize(Object(_.addYears)(a,e),d,l),n=t.getFullYear()>b.getFullYear();if(!o.isInRange(t,d,l)||n)return null;var i=o.isEqual(t,u.start),e=o.isEqual(t,u.end),n=!i&&!e&&L(t,u);return{formattedValue:o.value(t),id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:c&&p.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,b),isRangeSplitStart:n&&o.isEqual(t,h),isToday:o.isEqual(t,m),title:o.cellTitle(t),value:t}})})},ve.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},ve.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9},ve.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,n=!n||e<=n.getFullYear();return t&&n},ve.prototype.beginningOfPeriod=function(e){if(!e)return e;e=Object(_.firstYearOfDecade)(e);return Object(_.createDate)(e.getFullYear(),0,1)},ve.prototype.lastDayOfPeriod=function(e){e=Object(_.lastYearOfDecade)(e),e=Object(_.lastMonthOfYear)(e);return Object(_.lastDayOfMonth)(e)},ve.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},ve.prototype.move=function(e,t){t=le[t];return t?t(e):e},ve.prototype.cellTitle=function(e){return e.getFullYear().toString()},ve.prototype.navigationTitle=function(e){return e?Object(_.firstYearOfDecade)(e).getFullYear().toString():""},ve.prototype.title=function(e){return e?Object(_.firstYearOfDecade)(e).getFullYear()+" - "+Object(_.lastYearOfDecade)(e).getFullYear():""},ve.prototype.rowLength=function(){return 4},ve.prototype.skip=function(e,t){return Object(_.durationInDecades)(t,e)},ve.prototype.total=function(e,t){return Object(_.durationInDecades)(e,t)+1},ve.prototype.value=function(e){return e?e.getFullYear().toString():""},ve.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addDecades)(e,-1*t)}return e},ve.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},Object(i.__decorate)([Object(h.Injectable)()],ve)),pe=[[]],ue=((ba={})[c.Left]=function(e){return Object(_.addDays)(e,-1)},ba[c.Up]=function(e){return Object(_.addWeeks)(e,-1)},ba[c.Right]=function(e){return Object(_.addDays)(e,1)},ba[c.Down]=function(e){return Object(_.addWeeks)(e,1)},ba[c.PrevView]=function(e){return Object(_.addMonths)(e,-1)},ba[c.NextView]=function(e){return Object(_.addMonths)(e,1)},ba[c.FirstInView]=function(e){return Object(_.firstDayOfMonth)(e)},ba[c.LastInView]=function(e){return Object(_.lastDayOfMonth)(e)},ba),he=(ye.prototype.addToDate=function(e,t){return Object(_.addMonths)(e,t)},ye.prototype.datesList=function(t,e){return w(0,e).map(function(e){return Object(_.addMonths)(t,e)})},ye.prototype.data=function(e){var r=this,s=e.cellUID,c=e.focusedDate,l=e.isActiveView,d=e.max,p=e.min,u=e.selectedDates,t=e.selectionRange,h=void 0===t?q:t,t=e.viewDate,e=e.isDateDisabled,b=void 0===e?function(){return!1}:e;if(!t)return pe;var m=Object(_.firstDayOfMonth)(t),g=Object(_.getDate)(m),f=Object(_.lastDayOfMonth)(t),y=Object(_.getDate)(f),n=Object(_.dayOfWeek)(m,this._intlService.firstDay(),-1),i=w(0,7),v=x();return w(0,6).map(function(e){var o=Object(_.addDays)(n,7*e);return i.map(function(e){var t=r.normalize(Object(_.addDays)(o,e),p,d),n=Object(_.getDate)(t),i=n<g||y<n;if(t<p||d<t)return null;var a=r.isEqual(t,h.start),e=r.isEqual(t,h.end),n=!a&&!e&&L(t,h);return{formattedValue:r.value(t),id:""+s+t.getTime(),isFocused:r.isEqual(t,c),isSelected:l&&u.some(function(e){return r.isEqual(t,e)}),isWeekend:r.isWeekend(t),isRangeStart:a,isRangeMid:n,isRangeEnd:e,isRangeSplitStart:n&&r.isEqual(t,m),isRangeSplitEnd:n&&r.isEqual(t,f),isToday:r.isEqual(t,v),title:r.cellTitle(t),value:t,isDisabled:b(t),isOtherMonth:i}})})},ye.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(_.getDate)(e).getTime()===Object(_.getDate)(t).getTime()},ye.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(Object(_.addMonths)(t[t.length-1],1));return n<=e&&e<t},ye.prototype.isInRange=function(e,t,n){e=Object(_.getDate)(e),t=!t||Object(_.getDate)(t)<=e,n=!n||e<=Object(_.getDate)(n);return t&&n},ye.prototype.beginningOfPeriod=function(e){return e&&Object(_.createDate)(e.getFullYear(),e.getMonth(),1)},ye.prototype.lastDayOfPeriod=function(e){return Object(_.lastDayOfMonth)(e)},ye.prototype.isRangeStart=function(e){return!e.getMonth()},ye.prototype.move=function(e,t){t=ue[t];return t?t(e):e},ye.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},ye.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},ye.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},ye.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},ye.prototype.skip=function(e,t){return Object(_.durationInMonths)(t,e)},ye.prototype.total=function(e,t){return Object(_.durationInMonths)(e,t)+1},ye.prototype.value=function(e){return e?e.getDate().toString():""},ye.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addMonths)(e,-1*t)}return e},ye.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},ye.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},ye.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},ye.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],ye)),be=[[]],me=((vn={})[c.Left]=function(e){return Object(_.addMonths)(e,-1)},vn[c.Up]=function(e){return Object(_.addMonths)(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},vn[c.Right]=function(e){return Object(_.addMonths)(e,1)},vn[c.Down]=function(e){return Object(_.addMonths)(e,(e=e.getMonth())<7?5:e<10?7:2)},vn[c.PrevView]=function(e){return Object(_.addYears)(e,-1)},vn[c.NextView]=function(e){return Object(_.addYears)(e,1)},vn[c.FirstInView]=function(e){return Object(_.firstMonthOfYear)(e)},vn[c.LastInView]=function(e){return Object(_.lastMonthOfYear)(e)},vn),ge=(fe.prototype.addToDate=function(e,t){return Object(_.addYears)(e,t)},fe.prototype.datesList=function(t,e){return w(0,e).map(function(e){return Object(_.addYears)(t,e)})},fe.prototype.data=function(e){var o=this,r=e.cellUID,s=e.focusedDate,c=e.isActiveView,l=e.max,d=e.min,p=e.selectedDates,t=e.selectionRange,u=void 0===t?q:t,e=e.viewDate;if(!e)return be;var h=this.abbrMonthNames(),b=Object(_.firstMonthOfYear)(e),m=Object(_.lastMonthOfYear)(e),g=b.getFullYear(),n=w(0,4),f=x();return w(0,3).map(function(e){var a=Object(_.addMonths)(b,4*e);return n.map(function(e){var t=o.normalize(Object(_.addMonths)(a,e),d,l),n=g<t.getFullYear();if(!o.isInRange(t,d,l)||n)return null;var i=o.isEqual(t,u.start),e=o.isEqual(t,u.end),n=!i&&!e&&L(t,u);return{formattedValue:h[t.getMonth()],id:""+r+t.getTime(),isFocused:o.isEqual(t,s),isSelected:c&&p.some(function(e){return o.isEqual(t,e)}),isWeekend:!1,isRangeStart:i,isRangeMid:n,isRangeEnd:e,isRangeSplitEnd:n&&o.isEqual(t,m),isRangeSplitStart:n&&o.isEqual(t,b),isToday:o.isEqual(t,f),title:o.cellTitle(t),value:t}})})},fe.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},fe.prototype.isInArray=function(e,t){if(!t.length)return!1;e=e.getFullYear();return t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()},fe.prototype.isInRange=function(e,t,n){e=Object(_.createDate)(e.getFullYear(),e.getMonth(),1),t=!t||Object(_.createDate)(t.getFullYear(),t.getMonth(),1)<=e,n=!n||e<=Object(_.createDate)(n.getFullYear(),n.getMonth(),1);return t&&n},fe.prototype.beginningOfPeriod=function(e){return e&&Object(_.createDate)(e.getFullYear(),0,1)},fe.prototype.lastDayOfPeriod=function(e){e=Object(_.lastMonthOfYear)(e);return Object(_.lastDayOfMonth)(e)},fe.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},fe.prototype.move=function(e,t){t=me[t];return t?t(e):e},fe.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},fe.prototype.navigationTitle=function(e){return this.title(e)},fe.prototype.title=function(e){return e?e.getFullYear().toString():""},fe.prototype.rowLength=function(){return 4},fe.prototype.skip=function(e,t){return Object(_.durationInYears)(t,e)},fe.prototype.total=function(e,t){return Object(_.durationInYears)(e,t)+1},fe.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},fe.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);if(t<n){t=n-t;return Object(_.addYears)(e,-1*t)}return e},fe.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},fe.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(_.cloneDate)(t):n<e&&this.isEqual(e,n)?Object(_.cloneDate)(n):e},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],fe));function fe(e){this._intlService=e,this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addMonths)(i,1);return n}}function ye(e){this._intlService=e,this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addDays)(i,1);return n}}function ve(){this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addYears)(i,1);return n}}function _e(){this.dateRange=function(e,t){if(!O(e)||!O(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(_.addDecades)(i,1);return n}}(_n=U=U||{})[_n.month=0]="month",_n[_n.year=1]="year",_n[_n.decade=2]="decade",_n[_n.century=3]="century";function Oe(e,t){return new Array(e).fill("1").map(t)}function je(e,a,o){var r,s=e.cells,c=e.rows;return function(){return b.isDocumentAvailable?(r||(n=c,i=void 0===s?1:s,e=ze([Le([Ae([Me("1","k-calendar-th")],"k-calendar-tr")].concat(Oe(n,function(){return Ae(Oe(i,function(e){return Fe('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),t=a,n=o,r=Ve([Ve('\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?ze([Ne([Ae([Me("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,He([e,e])],t,{left:"-10000px",position:"absolute"})),r):null;var e,t,n,i}}function ke(e){return e.querySelector(".k-scrollable")}function Ce(e){return ke(e).classList.add("k-scrollable-horizontal"),e}function we(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function Se(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function Te(e){return e.querySelector("tbody")}function Ee(e){return Math.max(e,0)}var De,Ie,xe=((t={})[U.month]=he,t[U.year]=ge,t[U.decade]=de,t[U.century]=se,t),Pe=(nt.prototype.configure=function(e,t){this.bottom=e,this.top=t},nt.prototype.service=function(e){e=xe[e];return e?this.injector.get(e):null},nt.prototype.moveDown=function(e){this.move(e,-1)},nt.prototype.moveUp=function(e){this.move(e,1)},nt.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},nt.prototype.canMoveDown=function(e){return this.bottom<e},nt.prototype.canMoveUp=function(e){return e<this.top},nt.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},nt.prototype.move=function(e,t){t=this.clamp(void 0!==(t=U[U[e+t]])?t:e);t!==e&&this.viewChanged.emit({view:t})},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[h.Injector])],nt)),Ve=B("div"),Re=B("ul"),Be=B("li"),Fe=B("td"),Me=B("th"),Ae=B("tr"),Le=B("tbody"),Ne=B("thead"),ze=B("table"),He=function(e){return Ve(e,"k-flex k-content k-calendar-content k-scrollable")},Ge=function(){return b.isDocumentAvailable?Ie=Ie||Ve([He([Re([Be("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},We=je({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Ke=je({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Ue=je({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),qe=(tt.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},tt.prototype.calculateHeights=function(e){var n=this;Object(b.isDocumentAvailable)()&&(this.hostContainer=e,this.batch(We(),function(e){var t=Te(e);n.calendarHeight=we(e),n.monthViewHeight=we(t),n.headerHeight=we(t.children[0]),n.scrollableContentHeight=we(ke(e))}),this.batch(Ce(We()),function(e){var t=Te(e);n.calendarWidth=Se(e),n.monthViewWidth=Se(t),n.scrollableContentWidth=Se(ke(e))}),this.batch(Ke(),function(e){n.yearViewHeight=we(Te(e)),n.scrollableYearContentHeight=we(ke(e))}),this.batch(Ce(Ke()),function(e){n.yearViewWidth=Se(Te(e))}),this.batch(Ue(),function(e){n.decadeViewHeight=we(Te(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(Ce(Ue()),function(e){n.decadeViewWidth=Se(Te(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(Ge(),function(e){n.navigationItemHeight=we(e.querySelector("li"))}))},tt.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},tt.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},tt.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case U.month:return this["month"+n];case U.year:return this["year"+n];case U.decade:return this["decade"+n];case U.century:return this["century"+n];default:return 1}},tt.prototype.batch=function(e,t){if(O(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},Object(i.__decorate)([Object(h.Injectable)()],tt)),Ze=(et.prototype.height=function(e){return this.heights[e]},et.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},et.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},et.prototype.index=function(i){if(!(i<0)){var e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0);return void 0===e?this.total-1:e}},et.prototype.offset=function(e){return this.offsets[e]},et.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},et.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,n.slice(0,e+1).concat(n.slice(e+1).map(function(e){return e+i})))},et),$e=function(e){this.offset=e},Ye=function(e){this.skip=e},Xe=(Je.prototype.create=function(e,t,n,i,a,o,r){var s=this;void 0===a&&(a=0),void 0===o&&(o=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=a,this.bottomOffset=o,this.direction=r;var c=new d.ReplaySubject(2),a=this.rowsForHeight(a),t=Ee(t-a);return c.next(new $e(this.rowOffset(t))),a&&c.next(new Ye(t)),this.subscription=new d.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return c.next(e)}),c},Je.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},Je.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?a:e;this.lastScroll!==i&&(a=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(Ee(i-this.topOffset)),n=this.rowHeightService.index(Ee(i+n-this.bottomOffset)),!a&&n>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new $e(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Ye(this.firstLoaded))),a&&e<=this.firstLoaded&&(a=Math.floor(.3*this.take),this.firstLoaded=Ee(e-a),t.next(new $e(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Ye(this.firstLoaded))))},Je.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},Je.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},Je.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},Je),Qe=new h.InjectionToken("dateinputs-scroll-service-factory");function Je(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}function et(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}function tt(){}function nt(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=U.month,this.top=U.century}function it(e){return new Xe(e)}(n=De=De||{})[n.Backward=0]="Backward",n[n.Forward=1]="Forward";function at(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function ot(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function rt(){return!1}function st(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function ct(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function lt(e){return e?e.virtualization:null}function dt(){return function(e,t){return!O(e.value)&&t?{incompleteDate:!0}:null}}var pt,ut=((On={})[De.Forward]=function(t){return function(e){return e+t}},On[De.Backward]=function(t){return function(e){return e-t}},On),ht=((ta={})[De.Forward]=function(t){return function(e){return Math.min(e,t)}},ta[De.Backward]=function(t){return function(e){return Math.max(e,t)}},ta),bt=((ua={})[De.Forward]=function(t){return function(e){return e<t}},ua[De.Backward]=function(t){return function(e){return t<e}},ua),mt=(Object.defineProperty(Qt.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(Qt.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),Qt.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},Qt.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},Qt.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(Object(l.map)(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},Qt.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},Qt.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},Qt.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},Qt.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},Qt.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},Qt.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),e=i+this.rowHeightService.height(e);return t<=i&&e<=n},Qt.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},Qt.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},Qt.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},Qt.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},Qt.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n,i,a,o=this.rowHeightService.offset(e),r=this.getContainerScrollDirection(o),e=this.scrollRange(o,r),s=e.start,o=e.end;s!==o&&(e=this.scrollStep(s,o),n=ut[r](e),i=ht[r](o),a=bt[r](n(o)),this.zone.runOutsideAngular(function(){t.animationSubscription=Object(d.combineLatest)(Object(d.of)(s),Object(d.interval)(0,d.animationFrameScheduler)).pipe(Object(l.map)(function(e){return e[0]}),Object(l.scan)(n),Object(l.takeWhile)(a),Object(l.map)(i)).subscribe(function(e){return t.scrollTo(e)})}))},Qt.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i=this.containerMaxScroll(),a=t===De.Backward?1:-1,t=(t=this.maxScrollDifference,Math.min(Math.abs(e-n),t)),e=Math.min(e,i);return{start:Math.min(Math.max(e+a*t,0),i),end:e}},Qt.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},Qt.prototype.scroll$=function(){return Object(b.isDocumentAvailable)()?Object(d.fromEvent)(this.container.nativeElement,"scroll"):d.EMPTY},Qt.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof Ye?t.pageChange:t.scrollChange).emit(e)})},Qt.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Ze(this.total,e,0)},Qt.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},Qt.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},Qt.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?De.Backward:De.Forward},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qt.prototype,"direction",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"itemHeight",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"itemWidth",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"topOffset",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"bottomOffset",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"maxScrollDifference",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"scrollOffsetSize",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"scrollDuration",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"skip",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"take",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qt.prototype,"total",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qt.prototype,"activeIndexChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qt.prototype,"pageChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qt.prototype,"scrollChange",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-flex"),Object(h.HostBinding)("class.k-content"),Object(h.HostBinding)("class.k-calendar-content"),Object(h.HostBinding)("class.k-scrollable"),Object(i.__metadata)("design:type",Boolean)],Qt.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-scrollable-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Qt.prototype,"horizontalClass",null),Object(i.__decorate)([Object(h.Component)({providers:[{provide:Qe,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(i.__param)(0,Object(h.Inject)(Qe)),Object(i.__metadata)("design:paramtypes",[Object,h.ElementRef,h.Renderer2,h.NgZone])],Qt)),gt=(Object.defineProperty(Xt.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Xt.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))},Xt.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=U[this.activeView],t=D(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)))},Xt.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Xt.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Xt.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Xt.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Xt.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},Xt.prototype.handleDateChange=function(e){var e=at(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(Object(_.cloneDate)(e)))},Xt.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Xt.prototype.intlChange=function(){this.activeView===U.month&&this.cdr.markForCheck()},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Xt.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Xt.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Xt.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Xt.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Xt.prototype,"templateRef",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Xt.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Xt.prototype,"pageChange",void 0),Object(i.__decorate)([Object(h.ViewChild)(mt,{static:!1}),Object(i.__metadata)("design:type",mt)],Xt.prototype,"virtualization",void 0),Object(i.__decorate)([Object(h.ViewChild)("list",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],Xt.prototype,"list",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-navigation"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Xt.prototype,"getComponentClass",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(i.__metadata)("design:paramtypes",[Pe,qe,r.IntlService,h.ChangeDetectorRef,h.Renderer2])],Xt)),ft=(Object.defineProperty(Yt.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentMonthClass",{get:function(){return this.activeView===U.month},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentYearClass",{get:function(){return this.activeView===U.year},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===U.decade},enumerable:!0,configurable:!0}),Object.defineProperty(Yt.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===U.century},enumerable:!0,configurable:!0}),Yt.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))},Yt.prototype.ngOnChanges=function(e){var t,n,i,a,o;this.service=this.bus.service(this.activeView),this.service&&(this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=F(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,i=F(e,"activeView"),t=this.focusedDate,o=D(this.service.viewDate(t,this.max,this.minViewsToRender),this.min,this.max),a=this.service.total(this.min,this.max),n=this.total&&this.total!==a||!this.service.isInArray(t,this.dates),this.skip=this.service.skip(o,this.min),this.total=a,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),n&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),a=this.activeDate,o=t,a&&o&&a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()||(this.activeDate=Object(_.cloneDate)(t)),i=F(e,"focusedDate")||i,(n||i||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(t,this.min)))},Yt.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Yt.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Yt.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},Yt.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Yt.prototype.scrollChange=function(e){var t=e.offset,e=this.list.nativeElement,t="translateY("+t+"px)";this.renderer.setStyle(e,"transform",t),this.renderer.setStyle(e,"-ms-transform",t)},Yt.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},Yt.prototype.isMonthView=function(){return this.activeView===U.month},Yt.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},Yt.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},Yt.prototype.getScrollableHeight=function(){return this.activeView===U.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},Yt.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Yt.prototype.getWeekNames=function(){var e=R(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},Yt.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Yt.prototype,"cellTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Yt.prototype,"weekNumberTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Yt.prototype,"headerTitleTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Yt.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Yt.prototype,"cellUID",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Yt.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Yt.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Yt.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Yt.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Array)],Yt.prototype,"selectedDates",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],Yt.prototype,"weekNumber",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"cellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"weekNumberCellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"activeDateChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"todayButtonClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Yt.prototype,"pageChange",void 0),Object(i.__decorate)([Object(h.ViewChild)(mt,{static:!1}),Object(i.__metadata)("design:type",mt)],Yt.prototype,"virtualization",void 0),Object(i.__decorate)([Object(h.ViewChild)("list",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],Yt.prototype,"list",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-vstack"),Object(h.HostBinding)("class.k-calendar-view"),Object(i.__metadata)("design:type",Boolean)],Yt.prototype,"getComponentClass",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-monthview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentMonthClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-yearview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentYearClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-decadeview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentDecadeClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-centuryview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Yt.prototype,"getComponentCenturyClass",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table 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(i.__metadata)("design:paramtypes",[Pe,h.ChangeDetectorRef,r.IntlService,qe,h.Renderer2])],Yt)),yt={33:c.PrevView,34:c.NextView,35:c.LastInView,36:c.FirstInView,37:c.Left,38:c.Up,39:c.Right,40:c.Down,"meta+38":c.UpperView,"meta+40":c.LowerView},vt=($t.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return yt[e]},$t.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===c.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===c.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[Pe])],$t)),_t=(Zt.prototype.initialize=function(t){var n,i,e;"function"==typeof t?this.isDateDisabled=function(e){return t(Object(_.getDate)(e))}:(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return"number"==typeof e})?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return e instanceof Date})?(i=new Set(t.map(function(e){return Object(_.getDate)(e).getTime()})),this.isDateDisabled=function(e){return i.has(Object(_.getDate)(e).getTime())}):(this.isDateDisabled=rt,this.notifyInvalidInput(t)))),this.notifyServiceChange()},Zt.prototype.notifyInvalidInput=function(e){if(O(e)&&Object(h.isDevMode)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},Zt.prototype.notifyServiceChange=function(){this.changes.next()},Object(i.__decorate)([Object(h.Injectable)()],Zt)),Ot=(qt.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,e=e.selectedDates.slice();return o="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!Object(_.isEqual)(e,t)}):e.push(t),t):n.shiftKey?(n=(i=[o||t,t].filter(O).sort(function(e,t){return e.getTime()-t.getTime()}))[0],i=i[1],e=this.bus.service(a).dateRange(n,i),t>e[0]?e[0]:A(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:o}},qt.prototype.isDateSelected=function(e,t){return e.some(function(e){return Object(_.isEqual)(e,t)})},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[Pe])],qt)),jt=(Ut.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(n=e,function(e){return Math.floor(e/n)}),this.powerByMagnitude=(t=e,function(e){return e*t})},Ut.prototype.sync=function(e,i){var a=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;a.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,a.scrollSiblingOf(e.target))}),a.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,a.scrollSiblingOf(e.target))})}))},Ut.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},Ut.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},Ut.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},Ut.prototype.destroy=function(){this.unsubscribe()},Ut.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[qe,h.NgZone])],Ut)),kt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Kt),Ct=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarMonthCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Wt),wt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarYearCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Gt),St=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarDecadeCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Ht),Tt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarCenturyCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],zt),Et=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarWeekNumberCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Nt),Dt=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarHeaderTitleTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Lt),It=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoCalendarNavigationItemTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],At),xt=function(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter},Pt="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Vt={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return Ft})},Rt={multi:!0,provide:a.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return Ft})},Bt={provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return Ft})},Ft=(Object.defineProperty(Mt.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!Object(_.isEqual)(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||x(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date($)},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Y)},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(O).map(function(e){return Object(_.cloneDate)(e)}):Object(_.cloneDate)(e);var t=[].concat(e).filter(O).map(function(e){return Object(_.cloneDate)(e)});G(t,this.selectedDates)||(e=A(t),this.rangePivot=Object(_.cloneDate)(e),this.focusedDate=Object(_.cloneDate)(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.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(Mt.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"activeViewEnum",{get:function(){var e=U[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"bottomViewEnum",{get:function(){return U[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"topViewEnum",{get:function(){return U[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Mt.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Mt.prototype.ngOnInit=function(){var t=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(U[e])}),this.control=this.injector.get(a.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},Mt.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),M(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=D(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.onValidatorChange())},Mt.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},Mt.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(lt(this.navigationView),lt(this.monthView)))},Mt.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},Mt.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},Mt.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Mt.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Mt.prototype.containsElement=function(e){var t=this;return Boolean(ot(e,function(e){return e===t.element.nativeElement}))},Mt.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(Object(_.cloneDate)(e).setDate(1)):this.focusedDate,this.focusedDate=D(e,this.min,this.max),this.detectChanges())},Mt.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Object(d.from)(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},Mt.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},Mt.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),a=n.filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!G(a,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(function(){t.selectedDates=a.map(function(e){return Object(_.cloneDate)(e)}),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()}):this.emitSameDate())},Mt.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},Mt.prototype.registerOnChange=function(e){this.onControlChange=e},Mt.prototype.registerOnTouched=function(e){this.onControlTouched=e},Mt.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},Mt.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},Mt.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},Mt.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case U.month:return this.monthCellTemplate||this.cellTemplate;case U.year:return this.yearCellTemplate;case U.decade:return this.decadeCellTemplate;case U.century:return this.centuryCellTemplate;default:return null}},Mt.prototype.emitNavigate=function(e){var t=U[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},Mt.prototype.emitEvent=function(e,t){Object(b.hasObservers)(e)&&this.ngZone.run(function(){e.emit(t)})},Mt.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},Mt.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},Mt.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},Mt.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:A(e)})})},Mt.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},Mt.prototype.verifyChanges=function(){if(Object(h.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},Mt.prototype.verifyValue=function(e){if(Object(h.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Pt+" 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 "+Pt+" for possible resolution.")}},Mt.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",y),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},Mt.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},Mt.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},Mt.prototype.handleBlur=function(e){var t=this;this.isActive=!1,!this.pickerService&&f(this.control)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges())},Mt.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},Mt.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Object(_.cloneDate)(this.focusedDate),this.detectChanges()),this.focus())},Mt.prototype.handleKeydown=function(e){var t=-1!==[b.Keys.ArrowUp,b.Keys.ArrowRight,b.Keys.ArrowDown,b.Keys.ArrowLeft].indexOf(e.keyCode);O(this.pickerService)&&t&&e.altKey||(t=D(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),Object(_.isEqual)(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===b.Keys.Enter&&this.performSelection(this.focusedDate,e))},Mt.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},Mt.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},Mt.prototype.setAriaActivedescendant=function(){var e;O(this.element)&&(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e))},Mt.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(_.cloneDate)(A(e)):e.map(function(e){return Object(_.cloneDate)(e)})},Mt.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Mt.prototype,"id",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Mt.prototype,"focusedDate",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Mt.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Mt.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Mt.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Mt.prototype,"selection",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Mt.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Mt.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Mt.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],Mt.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Mt.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Mt.prototype,"navigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Mt.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Mt.prototype,"bottomView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Mt.prototype,"topView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],Mt.prototype,"type",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Mt.prototype,"animateNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(h.HostBinding)("class.k-week-number"),Object(i.__metadata)("design:type",Boolean)],Mt.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Mt.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Mt.prototype,"navigate",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Mt.prototype,"activeViewDateChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Mt.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!0}),Object(i.__metadata)("design:type",kt)],Mt.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("cellTemplate"),Object(i.__metadata)("design:type",kt),Object(i.__metadata)("design:paramtypes",[kt])],Mt.prototype,"cellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!0}),Object(i.__metadata)("design:type",Ct)],Mt.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("monthCellTemplate"),Object(i.__metadata)("design:type",Ct),Object(i.__metadata)("design:paramtypes",[Ct])],Mt.prototype,"monthCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!0}),Object(i.__metadata)("design:type",wt)],Mt.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("yearCellTemplate"),Object(i.__metadata)("design:type",wt),Object(i.__metadata)("design:paramtypes",[wt])],Mt.prototype,"yearCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!0}),Object(i.__metadata)("design:type",St)],Mt.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("decadeCellTemplate"),Object(i.__metadata)("design:type",St),Object(i.__metadata)("design:paramtypes",[St])],Mt.prototype,"decadeCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Tt,{static:!0}),Object(i.__metadata)("design:type",Tt)],Mt.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("centuryCellTemplate"),Object(i.__metadata)("design:type",Tt),Object(i.__metadata)("design:paramtypes",[Tt])],Mt.prototype,"centuryCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!0}),Object(i.__metadata)("design:type",Et)],Mt.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.Input)("weekNumberTemplate"),Object(i.__metadata)("design:type",Et),Object(i.__metadata)("design:paramtypes",[Et])],Mt.prototype,"weekNumberTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Dt,{static:!0}),Object(i.__metadata)("design:type",Dt)],Mt.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.Input)("headerTitleTemplate"),Object(i.__metadata)("design:type",Dt),Object(i.__metadata)("design:paramtypes",[Dt])],Mt.prototype,"headerTitleTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(It,{static:!0}),Object(i.__metadata)("design:type",It)],Mt.prototype,"navigationItemTemplate",void 0),Object(i.__decorate)([Object(h.Input)("navigationItemTemplate"),Object(i.__metadata)("design:type",It),Object(i.__metadata)("design:paramtypes",[It])],Mt.prototype,"navigationItemTemplateRef",null),Object(i.__decorate)([Object(h.ViewChild)(gt,{static:!1}),Object(i.__metadata)("design:type",gt)],Mt.prototype,"navigationView",void 0),Object(i.__decorate)([Object(h.ViewChild)(ft,{static:!1}),Object(i.__metadata)("design:type",ft)],Mt.prototype,"monthView",void 0),Object(i.__decorate)([Object(h.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Mt.prototype,"widgetId",null),Object(i.__decorate)([Object(h.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Mt.prototype,"widgetRole",null),Object(i.__decorate)([Object(h.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],Mt.prototype,"calendarTabIndex",null),Object(i.__decorate)([Object(h.HostBinding)("attr.aria-disabled"),Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Mt.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[Pe,Vt,Rt,Bt,o.LocalizationService,_t,{provide:o.L10N_PREFIX,useValue:"kendo.calendar"},vt,jt,Ot],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(i.__param)(12,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[Pe,qe,h.ElementRef,vt,h.Renderer2,h.ChangeDetectorRef,h.NgZone,h.Injector,jt,_t,o.LocalizationService,Ot,xt])],Mt));function Mt(e,t,n,i,a,o,r,s,c,l,d,p,u){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=o,this.ngZone=r,this.injector=s,this.scrollSyncService=c,this.disabledDatesService=l,this.localization=d,this.selectionService=p,this.pickerService=u,this.id=Object(b.guid)(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=U[U.month],this.bottomView=U[U.month],this.topView=U[U.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=Object(b.guid)(),this.selectedDates=[],this._min=new Date($),this._max=new Date(Y),this._focusedDate=x(),this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,Object(m.validatePackage)(g),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}function At(e){this.templateRef=e}function Lt(e){this.templateRef=e}function Nt(e){this.templateRef=e}function zt(e){this.templateRef=e}function Ht(e){this.templateRef=e}function Gt(e){this.templateRef=e}function Wt(e){this.templateRef=e}function Kt(e){this.templateRef=e}function Ut(e,t){this.dom=e,this.zone=t}function qt(e){this.bus=e}function Zt(){this.changes=new d.Subject,this.isDateDisabled=rt}function $t(e){this.bus=e}function Yt(e,t,n,i,a){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=a,this.isActive=!0,this.min=new Date($),this.max=new Date(Y),this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.todayButtonClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}function Xt(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date($),this.max=new Date(Y),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}function Qt(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.scrollChange=new h.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new d.Subject,this.scroller=e(this.dispatcher)}(ba=pt=pt||{})[ba.Up=0]="Up",ba[ba.Down=1]="Down",ba[ba.None=2]="None";function Jt(e){return e.replace(/^0*/,"")}function en(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}function tn(){return null}function nn(e){return e&&e.isActive||!1}var an,on,rn,sn,cn,ln,dn=/year|month|<day>/,pn=/hour|minute|second|millisecond/,un=/d|M|H|h|m|s/,hn=function(){this.symbols=""},bn=(ri.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},ri.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},ri.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return Object(_.cloneDate)(this.value)},ri.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},ri.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}},ri.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},ri.prototype.modifyPart=function(e,t){var n=Object(_.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(_.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},ri.prototype.parsePart=function(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};for(var i=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,r=!1,s="",c="",l="",d=0;d<i.length;d++)o[d]===e?(c+=this.getExisting(e)?i[d]:"0",r=!0):r?l+=i[d]:s+=i[d];var p=c.length-3,u=null,h=this.matchMonth(t),b=this.matchDayPeriod(t,e),m="0"===t,g=(this.leadingZero||{})[e]||0;for(m?0!==parseInt(n?t:c+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero(),d=Math.max(0,p);d<=c.length;d++){var f=n?t:c.substring(d)+t;"S"===e&&n&&(f=Array(o.match(/S+(\1)/)[0].length).join("0")+f);var y=parseInt(f,10);if((u=this.intl.parseDate(s+f+l,this.format))||isNaN(y)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(v=y-1)&&v<12&&((u=Object(_.cloneDate)(this.value)).setMonth(v),u.getMonth()!==v&&(u=Object(_.lastDayOfMonth)(Object(_.addMonths)(u,-1)))),"y"===e&&(u=Object(_.createDate)(parseInt(f,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&&u.getDate()!==this.value.getDate()&&(u=Object(_.lastDayOfMonth)(Object(_.addMonths)(u,-1))))),u){var y=this.partPattern(a.partMap,e).pattern,v=this.intl.parseDate(""+s+this.peek(f,y)+l,this.format),y=this.patternLength(y)||y.length,y=g+(Jt(f)||t).length>=y,y=null===v||y;return this.shouldNormalizeCentury()&&(u=this.normalizeCentury(u)),this.value=u,this.setExisting(e,!0),{value:this.value,switchToNext:y}}}return h&&(u=this.intl.parseDate(s+h+l,this.format))?(this.value=u,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):b&&(u=this.intl.parseDate(s+b+l,this.format))?(this.value=u,{value:this.value,switchToNext:!0}):(m&&this.setExisting(e,!1),{value:null,switchToNext:!1})},ri.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},ri.prototype.setLeadingZero=function(e){this.leadingZero=e},ri.prototype.normalizeCentury=function(e){if(!O(e))return e;var t=!O(n=e)||isNaN(n.getTime())?0:Number(n.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t);return ee(e,n+t)},ri.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},ri.prototype.isAbbrMonth=function(e,t){t=this.partPattern(e,t);return"month"===t.type&&t.names},ri.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},ri.prototype.peek=function(e,t){e=Jt(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},ri.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},ri.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},ri.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},ri.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},ri.prototype.patternLength=function(e){return"y"===e[0]?4:un.test(e)?2:0},ri.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<r;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;t=new hn;return t.symbols=i.join(""),t.partMap=a,t},ri.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];0<=o&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},ri.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},ri.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},ri),mn=(ln=oi,Object.defineProperty(oi.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!S(e,this.min,this.max)||(this._value=Object(_.cloneDate)(e),this.valueUpdate.emit(Object(_.cloneDate)(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrap&&!O(this.pickerService)&&(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(oi.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(oi.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),oi.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},oi.prototype.containsElement=function(e){var t=this;return Boolean(ot(e,function(e){return e===t.element.nativeElement}))},oi.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?st(this.min):P,this.maxValidator=this.rangeValidation?ct(this.max):P,this.incompleteValidator=this.incompleteDateValidation?dt():P,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&Object(_.isEqual)(this.value,this.kendoDate.getDateObject());!e.format&&t&&!e.placeholder||(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},oi.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},oi.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},oi.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},oi.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(a.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},oi.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},oi.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Object(_.cloneDate)(e),this.updateElementValue(this.isActive)},oi.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Object(_.cloneDate)(e),this.notify())},oi.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(Object(_.cloneDate)(e.value)),e.valueChange.emit(Object(_.cloneDate)(e.value))})},oi.prototype.registerOnChange=function(e){this.onControlChange=e},oi.prototype.registerOnTouched=function(e){this.onControlTouched=e},oi.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},oi.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},oi.prototype.handleButtonClick=function(e){this.arrowDirection=pt.None,this.modifyDateSegmentValue(e)},oi.prototype.modifyDateSegmentValue=function(e){var t=this.caret(),n=this.currentFormat[t[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;"S"!==n||this.steps.millisecond||(t=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0}(this.inputFormat),i=Math.pow(10,3-t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},oi.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;0<=a&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return a<i&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0)},oi.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)},oi.prototype.handleClick=function(){var e,t;this.hasMousedown=!1,this.isActive&&(e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=O(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!e&&t?0:this.caret()[0],this.selectNearestSegment(t))},oi.prototype.handleDragAndDrop=function(e){e.preventDefault()},oi.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},oi.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,Object(b.hasObservers)(this.onFocus)?this.ngZone.run(function(){t.emitFocus(e)}):this.emitFocus(e)},oi.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Object(b.hasObservers)(this.onBlur)||f(this.ngControl)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):this.emitBlur(e)},oi.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,e=new bn(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},oi.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){return e[t.pattern[0]]=t.type,e},{})},oi.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),a=!this.isActive&&O(this.placeholder)&&!this.kendoDate.hasValue(),n=this.inputElement;this.currentFormat=i[1],this.currentValue=a?"":i[0],this.renderer.setProperty(n,"value",this.currentValue),n.placeholder!==this.placeholder&&this.renderer.setProperty(n,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},oi.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(Object(b.isDocumentAvailable)()&&document.activeElement!==a&&a.focus(),a.setSelectionRange(e,t)),i=[a.selectionStart,a.selectionEnd])}catch(e){i=[]}return i}},oi.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},oi.prototype.verifyRange=function(){if(Object(h.isDevMode)()&&!E(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.")},oi.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},oi.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=D(e,this.min,this.max);this.autoCorrect&&!Object(_.isEqual)(e,t)&&(this.kendoDate=this.getKendoDate(t))},oi.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,t){var n=e.date,e=e.time;return{date:n||dn.test(t.type),time:e||pn.test(t.type)}},{date:!1,time:!1})},oi.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},oi.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value,t=+(e=O(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},oi.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)))},oi.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},oi.prototype.handlePaste=function(){this.paste=!0},oi.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==b.Keys.Tab)if(e.keyCode!==b.Keys.Backspace){switch(e.keyCode){case b.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case b.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case b.Keys.ArrowRight:this.switchDateSegment(1);break;case b.Keys.ArrowLeft:this.switchDateSegment(-1);break;case b.Keys.Home:this.selectNearestSegment(0);break;case b.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()},oi.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(e,t,n,i){var a=i+e.length-n.length,o=e[a],r=e.substring(0,i+e.length-n.length),n=n.substring(0,i),s=[];if(r===n&&0<i)return s.push([t[i-1],n[i-1]]),s;if(0===r.indexOf(n)&&(0===n.length||t[n.length-1]!==t[n.length])){var c="";1===n.length&&s.push([t[0],n[0]]);for(var l=n.length;l<r.length;l++)t[l]!==c&&"_"!==t[l]&&(c=t[l],s.push([c,""]));return s}if(0!==n.indexOf(r)&&"_"!==t[i-1])return" "===n[n.length-1]||n[n.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],n[i-1]]];for(var d=t[0],l=Math.max(0,r.length-1);l<t.length;l++)if("_"!==t[l]){d=t[l];break}return[[d,n[i-1]]]}(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1],n=!1;if(!t){for(var i=0;i<e.length;i++)n=this.kendoDate.parsePart(e[i][0],e[i][1],this.resetSegmentValue).switchToNext;var a=this.kendoDate.getDateObject();this.value&&a&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(J(this.value,a)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),e.length&&"_"!==e[0][0]&&this.selectDateSegment(e[0][0]),(n||t)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}},oi.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},oi.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},oi.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(O(this.ngControl)&&!O(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):O(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],oi.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],oi.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],oi.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],oi.prototype,"role",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"ariaReadOnly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],oi.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],oi.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],oi.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],oi.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],oi.prototype,"steps",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],oi.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],oi.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],oi.prototype,"twoDigitYearMax",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],oi.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"spinners",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"isPopupOpen",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],oi.prototype,"hasPopup",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],oi.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],oi.prototype,"valueUpdate",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],oi.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],oi.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.ViewChild)("dateInput",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],oi.prototype,"dateInput",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrap",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],oi.prototype,"wrap",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-dateinput"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],oi.prototype,"wrapperClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],oi.prototype,"disabledClass",null),ln=Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return ln}),multi:!0},{provide:a.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return ln}),multi:!0},{provide:o.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return ln})},o.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(i.__param)(7,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[h.ChangeDetectorRef,r.IntlService,h.Renderer2,h.ElementRef,h.NgZone,h.Injector,o.LocalizationService,xt])],oi)),gn=(ai.prototype.preventDefault=function(){this.prevented=!0},ai.prototype.isDefaultPrevented=function(){return this.prevented},ai),fn=new h.InjectionToken("dateinputs-touch-enabled"),yn=(cn=ii,Object.defineProperty(ii.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(_.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&Object(b.hasObservers)(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),ii.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},ii.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(a.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},ii.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.disabledDatesValidateFn=this.disabledDatesValidation?en(this.disabledDatesService.isDateDisabled):P,this.incompleteValidator=this.incompleteDateValidation?dt():P,this.onValidatorChange())},ii.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(ii.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),ii.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(_.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},ii.prototype.registerOnChange=function(e){this.onControlChange=e},ii.prototype.registerOnTouched=function(e){this.onControlTouched=e},ii.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ii.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},ii.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ii.prototype.focus=function(){this.input.focus()},ii.prototype.blur=function(){(this.calendar||this.input).blur()},ii.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},ii.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},ii.prototype.handleMousedown=function(e){e.preventDefault()},ii.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(Object(_.cloneDate)(e)),this.valueChange.emit(Object(_.cloneDate)(e))},ii.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(ii.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(ii.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(ii.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(ii.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),ii.prototype.mergeTime=function(e){return this.value&&e?J(e,this.value):e},ii.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e===b.Keys.Escape&&(this.show=!1),t&&(e!==b.Keys.ArrowDown||this.show||(this.show=!0),e===b.Keys.ArrowUp&&(this.show=!1)),e===b.Keys.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)},ii.prototype.togglePopup=function(e){var t=new gn;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},ii.prototype._toggle=function(e){var t=this;e!==this._show&&((this._show=e)?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},ii.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},ii.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())},ii.prototype.verifySettings=function(){if(Object(h.isDevMode)()&&!E(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.")},ii.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},ii.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),V()&&(this.windowBlurSubscription=Object(d.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},ii.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(b.hasObservers)(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},ii.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},ii.prototype.handleBlur=function(e){var t=this,e=e&&v(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(Object(b.hasObservers)(this.onBlur)||this.show&&Object(b.hasObservers)(this.close)||f(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},ii.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},ii.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},ii.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",h.ViewContainerRef)],ii.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",h.TemplateRef)],ii.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrapper",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],ii.prototype,"wrapper",void 0),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!1}),Object(i.__metadata)("design:type",kt)],ii.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("cellTemplate"),Object(i.__metadata)("design:type",kt),Object(i.__metadata)("design:paramtypes",[kt])],ii.prototype,"cellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!1}),Object(i.__metadata)("design:type",Ct)],ii.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("monthCellTemplate"),Object(i.__metadata)("design:type",Ct),Object(i.__metadata)("design:paramtypes",[Ct])],ii.prototype,"monthCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!1}),Object(i.__metadata)("design:type",wt)],ii.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("yearCellTemplate"),Object(i.__metadata)("design:type",wt),Object(i.__metadata)("design:paramtypes",[wt])],ii.prototype,"yearCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!1}),Object(i.__metadata)("design:type",St)],ii.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("decadeCellTemplate"),Object(i.__metadata)("design:type",St),Object(i.__metadata)("design:paramtypes",[St])],ii.prototype,"decadeCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Tt,{static:!1}),Object(i.__metadata)("design:type",Tt)],ii.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("centuryCellTemplate"),Object(i.__metadata)("design:type",Tt),Object(i.__metadata)("design:paramtypes",[Tt])],ii.prototype,"centuryCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!1}),Object(i.__metadata)("design:type",Et)],ii.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.Input)("weekNumberTemplate"),Object(i.__metadata)("design:type",Et),Object(i.__metadata)("design:paramtypes",[Et])],ii.prototype,"weekNumberTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Dt,{static:!1}),Object(i.__metadata)("design:type",Dt)],ii.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.Input)("headerTitleTemplate"),Object(i.__metadata)("design:type",Dt),Object(i.__metadata)("design:paramtypes",[Dt])],ii.prototype,"headerTitleTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(It,{static:!1}),Object(i.__metadata)("design:type",It)],ii.prototype,"navigationItemTemplate",void 0),Object(i.__decorate)([Object(h.Input)("navigationItemTemplate"),Object(i.__metadata)("design:type",It),Object(i.__metadata)("design:paramtypes",[It])],ii.prototype,"navigationItemTemplateRef",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"bottomView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"topView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"calendarType",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"animateCalendarNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"readOnlyInput",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ii.prototype,"popupSettings",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"navigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ii.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ii.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ii.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ii.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ii.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ii.prototype,"twoDigitYearMax",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ii.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ii.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ii.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ii.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ii.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"disabledDatesValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ii.prototype,"close",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-datepicker"),Object(i.__metadata)("design:type",Boolean)],ii.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],ii.prototype,"disabledClass",null),cn=Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return cn}),multi:!0},{provide:a.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return cn}),multi:!0},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return cn})},o.LocalizationService,xt,_t,{provide:o.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(i.__param)(9,Object(h.Optional)()),Object(i.__param)(9,Object(h.Inject)(fn)),Object(i.__metadata)("design:paramtypes",[h.NgZone,o.LocalizationService,h.ChangeDetectorRef,s.PopupService,h.ElementRef,h.Renderer2,h.Injector,xt,_t,Boolean])],ii)),vn="dayperiod",_n="hour",t="millisecond",n="minute",On="second",jn=new RegExp("hour|minute|second|"+t+"|"+vn+"|literal"),kn=(sn=ni,Object.defineProperty(ni.prototype,"min",{get:function(){return this._min},set:function(e){this._min=Object(_.cloneDate)(e||X)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"max",{get:function(){return this._max},set:function(e){this._max=Object(_.cloneDate)(e||Q)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(_.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"))},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(e||this._show&&Object(b.hasObservers)(this.close)?this.zone.run(function(){t.togglePopup(e)}):this.togglePopup(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),ni.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},ni.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(a.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},ni.prototype.ngOnChanges=function(e){var n,i;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(n=this.min,i=this.max,function(e){if(!n||!i||!e.value)return null;var t={timeRangeError:{maxValue:i,minValue:n,value:e.value}};return T(e.value,n,i)?null:t}):P,this.incompleteValidator=this.incompleteDateValidation?dt():P,this.onValidatorChange()),e.format&&this.verifyFormat()},ni.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()},ni.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e!==b.Keys.Escape?t&&(e===b.Keys.ArrowUp&&(this.show=!1),e!==b.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},ni.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(_.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},ni.prototype.registerOnChange=function(e){this.onControlChange=e},ni.prototype.registerOnTouched=function(e){this.onControlTouched=e},ni.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ni.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},ni.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ni.prototype.focus=function(){this.input.focus()},ni.prototype.blur=function(){(this.timeSelector||this.input).blur()},ni.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(ni.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(ni.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),ni.prototype.handleChange=function(e){var t=this;if(Object(_.isEqual)(this.value,e))return this.focusInput(),void(this.show=!1);this.value=Object(_.cloneDate)(e),this.zone.run(function(){t.focusInput(),t.show=!1,t.onControlChange(Object(_.cloneDate)(e)),t.valueChange.emit(Object(_.cloneDate)(e))})},ni.prototype.handleReject=function(){this.show=!1},ni.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},ni.prototype.handleMousedown=function(e){e.preventDefault()},ni.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(ni.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),ni.prototype.normalizeTime=function(e){return J(Z,e)},ni.prototype.mergeTime=function(e){return this.value&&e?J(this.value,e):e},ni.prototype.togglePopup=function(e){var t=new gn;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},ni.prototype._toggle=function(e){var t=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},ni.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},ni.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())},ni.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},ni.prototype.verifyFormat=function(){if(Object(h.isDevMode)()&&this.intl.splitDateFormat(this.format).some(function(e){return!jn.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")},ni.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),V()&&(this.windowBlurSubscription=Object(d.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},ni.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},ni.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(b.hasObservers)(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},ni.prototype.handleBlur=function(e){var t=this,e=e&&v(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(Object(b.hasObservers)(this.onBlur)||this.show&&Object(b.hasObservers)(this.close)||f(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},ni.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},ni.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!1}),Object(i.__metadata)("design:type",h.ViewContainerRef)],ni.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("popupTemplate",{static:!1}),Object(i.__metadata)("design:type",h.TemplateRef)],ni.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrapper",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],ni.prototype,"wrapper",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"readOnlyInput",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ni.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ni.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ni.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"cancelButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"nowButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ni.prototype,"steps",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ni.prototype,"popupSettings",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ni.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ni.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ni.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ni.prototype,"value",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ni.prototype,"close",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-timepicker"),Object(i.__metadata)("design:type",Boolean)],ni.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],ni.prototype,"disabledClass",null),sn=Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return sn}),multi:!0},{provide:a.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return sn}),multi:!0},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return sn})},o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.timepicker"},xt],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(i.__param)(9,Object(h.Optional)()),Object(i.__param)(9,Object(h.Inject)(fn)),Object(i.__metadata)("design:paramtypes",[h.NgZone,o.LocalizationService,h.ChangeDetectorRef,s.PopupService,h.ElementRef,h.Renderer2,h.Injector,xt,r.IntlService,Boolean])],ni)),Cn=new RegExp("hour|minute|second|"+vn+"|literal"),wn=(rn=ti,Object.defineProperty(ti.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(_.cloneDate)(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"min",{get:function(){return this._min},set:function(e){O(e)&&(this._min=Object(_.cloneDate)(e),this.calendarMin=Object(_.getDate)(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"max",{get:function(){return this._max},set:function(e){O(e)&&(this._max=Object(_.cloneDate)(e),this.calendarMax=K(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"isOpen",{get:function(){return O(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(ti.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(ti.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return O(this.calendar)||O(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(ti.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(O(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),ti.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(Object(l.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))),V()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return Object(d.fromEvent)(window,"blur").subscribe(e.handleCancel.bind(e))}))},ti.prototype.ngOnChanges=function(e){(O(e.min)||O(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.disabledDatesValidateFn=this.disabledDatesValidation?en(this.disabledDatesService.isDateDisabled):P,this.incompleteValidator=this.incompleteDateValidation?dt():P,this.onValidatorChange())},ti.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},ti.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},ti.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},ti.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((O(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},ti.prototype.writeValue=function(e){this.value=e},ti.prototype.registerOnChange=function(e){this.onControlChange=e},ti.prototype.registerOnTouched=function(e){this.onControlTouched=e},ti.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},ti.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},ti.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},ti.prototype.isEmpty=function(){return!O(this.value)&&this.input.isEmpty()},ti.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||Object(b.hasObservers)(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},ti.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(b.hasObservers)(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},ti.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.host.nativeElement.classList.contains("ng-untouched")||Object(b.hasObservers)(this.onBlur)||this.isOpen&&Object(b.hasObservers)(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},ti.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(Object(_.isEqual)(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},ti.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},ti.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=W(this.calendar.value,this.timeSelector.current),t=!Object(_.isEqual)(this.value,e)||Object(b.hasObservers)(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},ti.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=Object(b.hasObservers)(this.close),this.run(e,function(){return t.togglePopup(!1)}))},ti.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},ti.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},ti.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&b.Keys.ArrowUp:case b.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&b.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&b.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&b.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&O(this.calendarValue)&&b.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},ti.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=O(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==b.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},ti.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===b.Keys.Tab&&e&&this.input.focus()},ti.prototype.preventMouseDown=function(e){e.preventDefault()},ti.prototype.verifyValue=function(e){if(Object(h.isDevMode)()&&O(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},ti.prototype.verifyMinMaxRange=function(){if(Object(h.isDevMode)()&&!E(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/.")},ti.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},ti.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},ti.prototype.timeFormatPartFilter=function(e,t,n){t=1<=t&&n[t-1];return t&&"literal"===e.type?Cn.test(t.type):Cn.test(e.type)},ti.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new gn,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus()))},ti.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},ti.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()})},ti.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},ti.prototype.handleValueChange=function(e){Object(_.isEqual)(this.value,e)||(this.value=Object(_.cloneDate)(e),this.onControlChange(Object(_.cloneDate)(e)),this.valueChange.emit(Object(_.cloneDate)(e)))},ti.prototype.focusTargetInComponent=function(e){if(!O(e))return!1;var t=e.relatedTarget||document.activeElement,e=O(this.popupRef)&&this.popupRef.popupElement.contains(t),t=this.wrapper.nativeElement.contains(t);return e||t},ti.prototype.setTimeSelectorMinMax=function(e){var t=O(e)&&Object(_.isEqual)(Object(_.getDate)(e),Object(_.getDate)(this.min));this.timeSelectorMin=Object(_.cloneDate)(t?this.min:X);e=O(e)&&Object(_.isEqual)(Object(_.getDate)(e),Object(_.getDate)(this.max));this.timeSelectorMax=Object(_.cloneDate)(e?this.max:Q)},ti.prototype.setCalendarValue=function(e){var t=O(e)&&S(e,this.calendarMin,this.calendarMax);this.calendarValue=t?Object(_.getDate)(e):null},ti.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},ti.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},ti.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},Object(i.__decorate)([Object(h.HostBinding)("class.k-widget"),Object(h.HostBinding)("class.k-datetimepicker"),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(h.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",h.ElementRef)],ti.prototype,"wrapper",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ti.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ti.prototype,"format",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],ti.prototype,"twoDigitYearMax",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],ti.prototype,"tabindex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ti.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],ti.prototype,"popupSettings",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"focusableId",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"title",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"readonly",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"readOnlyInput",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"cancelButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ti.prototype,"formatPlaceholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"placeholder",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],ti.prototype,"steps",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],ti.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],ti.prototype,"calendarType",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"animateCalendarNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ti.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],ti.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"disabledDatesValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],ti.prototype,"incompleteDateValidation",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"close",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],ti.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],ti.prototype,"defaultTab",null),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!1}),Object(i.__metadata)("design:type",kt)],ti.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!1}),Object(i.__metadata)("design:type",Ct)],ti.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!1}),Object(i.__metadata)("design:type",wt)],ti.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!1}),Object(i.__metadata)("design:type",St)],ti.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Tt,{static:!1}),Object(i.__metadata)("design:type",Tt)],ti.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!1}),Object(i.__metadata)("design:type",Et)],ti.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Dt,{static:!1}),Object(i.__metadata)("design:type",Dt)],ti.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",h.ViewContainerRef)],ti.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("popupTemplate",{read:h.TemplateRef,static:!0}),Object(i.__metadata)("design:type",h.TemplateRef)],ti.prototype,"popupTemplate",void 0),rn=Object(i.__decorate)([Object(h.Component)({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[xt,o.LocalizationService,_t,{provide:o.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return rn}),multi:!0},{provide:a.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return rn}),multi:!0},{provide:b.KendoInput,useExisting:Object(h.forwardRef)(function(){return rn})}],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(i.__param)(6,Object(h.Inject)(fn)),Object(i.__metadata)("design:paramtypes",[s.PopupService,r.IntlService,h.ChangeDetectorRef,xt,h.NgZone,h.ElementRef,Boolean,o.LocalizationService,_t,h.Renderer2])],ti)),Sn=(ei.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=R(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],ei)),Tn=(Object.defineProperty(Jn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===U.month},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentYearClass",{get:function(){return this.activeView===U.year},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===U.decade},enumerable:!0,configurable:!0}),Object.defineProperty(Jn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===U.century},enumerable:!0,configurable:!0}),Jn.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=F(e,"activeView"),e=0<this.views&&F(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=Object(_.cloneDate)(this.dates[0]),this.activeDateChange.emit(this.activeDate)))},Jn.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},Jn.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},Jn.prototype.initService=function(){this.service=this.bus.service(this.activeView)},Jn.prototype.isMonthView=function(){return this.activeView===U.month},Jn.prototype.getCaptionTitle=function(e){return this.service.title(e)},Jn.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},Jn.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),o=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.NextView?this.nextAnimationDate=Object(_.cloneDate)(this.dates[0]):this.prevAnimationDate=Object(_.cloneDate)(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",o+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")});var r=i.getBoundingClientRect(),s=parseFloat(getComputedStyle(n).columnGap),i=e===c.NextView?"translateX(0)":"translateX(-"+(r.width+s)+"px)",s=e===c.NextView?"translateX(-"+(r.width+s)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:i},{transform:s}],{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()})},Jn.prototype.navigate=function(e){this.animateNavigation&&Object(b.isDocumentAvailable)()&&O(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),e=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(e)&&(this.dates=e),this.activeDate=Object(_.cloneDate)(this.dates[0]),this.focusedDate=Object(_.cloneDate)(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Object(_.cloneDate)(t)},Jn.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},Jn.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},Jn.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},Jn.prototype.clampDate=function(e){return D(e,this.min,this.max)},Jn.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},Jn.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},Jn.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},Jn.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Jn.prototype,"cellTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],Jn.prototype,"weekNumberTemplateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jn.prototype,"activeRangeEnd",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Jn.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jn.prototype,"cellUID",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Jn.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Jn.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Jn.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],Jn.prototype,"selectionRange",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Array)],Jn.prototype,"selectedDates",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Jn.prototype,"views",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"showViewHeader",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"animateNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],Jn.prototype,"weekNumber",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"cellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"weekNumberCellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"cellEnter",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"cellLeave",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Jn.prototype,"activeDateChange",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-view"),Object(h.HostBinding)("class.k-hstack"),Object(h.HostBinding)("class.k-align-items-start"),Object(h.HostBinding)("class.k-justify-content-center"),Object(i.__metadata)("design:type",Boolean)],Jn.prototype,"getComponentClass",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-monthview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentMonthClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-yearview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentYearClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-decadeview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentDecadeClass",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-centuryview"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Jn.prototype,"getComponentCenturyClass",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.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(i.__metadata)("design:paramtypes",[Pe,r.IntlService,Sn,h.ChangeDetectorRef,h.ElementRef,h.Renderer2])],Jn)),En="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Dn={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(h.forwardRef)(function(){return xn})},In={multi:!0,provide:a.NG_VALIDATORS,useExisting:Object(h.forwardRef)(function(){return xn})},xn=(Object.defineProperty(Qn.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||x()},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date($)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Y)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(O).map(function(e){return Object(_.cloneDate)(e)}):Object(_.cloneDate)(e);var t=[].concat(e).filter(O).map(function(e){return Object(_.cloneDate)(e)});G(t,this.selectedDates)||(e=A(t),this.rangePivot=Object(_.cloneDate)(e),this.focusedDate=Object(_.cloneDate)(e)||this.focusedDate,this.selectedDates=t)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"activeViewEnum",{get:function(){var e=U[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"bottomViewEnum",{get:function(){return U[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"topViewEnum",{get:function(){return U[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(Qn.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),Qn.prototype.handleBlur=function(){this.onControlTouched(),this.isActive=!1,this.isHovered=!1},Qn.prototype.handleFocus=function(){this.isActive=!0},Qn.prototype.handleMouseEnter=function(){this.isHovered=!0},Qn.prototype.handleMouseLeave=function(){this.isHovered=!1},Qn.prototype.handleMousedown=function(e){e.preventDefault()},Qn.prototype.handleClick=function(){this.isActive||this.focus()},Qn.prototype.keydown=function(e){e.keyCode===b.Keys.Enter&&this.performSelection(this.focusedDate,e);var t=D(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(_.isEqual)(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate))},Qn.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=U[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},Qn.prototype.ngOnChanges=function(e){var t,n;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),M(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=D(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?st(this.min):P,this.maxValidateFn=this.rangeValidation?ct(this.max):P,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(n=this.disabledDatesService.isDateDisabled,O(n)?function(e){if(!(O(e)&&O(e.start)&&O(e.end))||e.start>e.end)return null;e=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=Object(_.addDays)(a,1);return i}(e.start,e.end,n);return e.length?{disabledDatesInRange:e}:null}:tn):P,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},Qn.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Qn.prototype.ngAfterViewInit=function(){this.updateButtonState()},Qn.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Qn.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Qn.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;e=!n&&G(i,this.selectedDates);this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return Object(_.cloneDate)(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},Qn.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)},Qn.prototype.setActiveDate=function(e){this.activeDate=Object(_.cloneDate)(e),this.cdr.detectChanges()},Qn.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},Qn.prototype.registerOnChange=function(e){this.onControlChange=e},Qn.prototype.registerOnTouched=function(e){this.onControlTouched=e},Qn.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},Qn.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},Qn.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},Qn.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case U.month:return this.monthCellTemplate||this.cellTemplate;case U.year:return this.yearCellTemplate;case U.decade:return this.decadeCellTemplate;case U.century:return this.centuryCellTemplate;default:return null}},Qn.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},Qn.prototype.emitNavigate=function(e){var t=U[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},Qn.prototype.emitCellEvent=function(e,t){Object(b.hasObservers)(e)&&this.zone.run(function(){e.emit(t)})},Qn.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},Qn.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:A(e)})})},Qn.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},Qn.prototype.verifyChanges=function(){if(Object(h.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},Qn.prototype.verifyValue=function(e){if(Object(h.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+En+" 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 "+En+" for possible resolution.")}},Qn.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()})},Qn.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(_.cloneDate)(A(e)):e.map(function(e){return Object(_.cloneDate)(e)})},Qn.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"id",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Qn.prototype,"focusedDate",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Qn.prototype,"min",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date),Object(i.__metadata)("design:paramtypes",[Date])],Qn.prototype,"max",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"disabledDatesRangeValidation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"selection",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Qn.prototype,"value",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qn.prototype,"tabindex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],Qn.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Qn.prototype,"disabledDates",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"bottomView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"topView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"showViewHeader",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"animateNavigation",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Qn.prototype,"weekNumber",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Qn.prototype,"activeRangeEnd",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Qn.prototype,"selectionRange",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Qn.prototype,"views",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"navigate",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"cellEnter",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"cellLeave",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Qn.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.ContentChild)(kt,{static:!0}),Object(i.__metadata)("design:type",kt)],Qn.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("cellTemplate"),Object(i.__metadata)("design:type",kt),Object(i.__metadata)("design:paramtypes",[kt])],Qn.prototype,"cellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Ct,{static:!0}),Object(i.__metadata)("design:type",Ct)],Qn.prototype,"monthCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("monthCellTemplate"),Object(i.__metadata)("design:type",Ct),Object(i.__metadata)("design:paramtypes",[Ct])],Qn.prototype,"monthCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(wt,{static:!0}),Object(i.__metadata)("design:type",wt)],Qn.prototype,"yearCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("yearCellTemplate"),Object(i.__metadata)("design:type",wt),Object(i.__metadata)("design:paramtypes",[wt])],Qn.prototype,"yearCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(St,{static:!0}),Object(i.__metadata)("design:type",St)],Qn.prototype,"decadeCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("decadeCellTemplate"),Object(i.__metadata)("design:type",St),Object(i.__metadata)("design:paramtypes",[St])],Qn.prototype,"decadeCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Tt,{static:!0}),Object(i.__metadata)("design:type",Tt)],Qn.prototype,"centuryCellTemplate",void 0),Object(i.__decorate)([Object(h.Input)("centuryCellTemplate"),Object(i.__metadata)("design:type",Tt),Object(i.__metadata)("design:paramtypes",[Tt])],Qn.prototype,"centuryCellTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Et,{static:!0}),Object(i.__metadata)("design:type",Et)],Qn.prototype,"weekNumberTemplate",void 0),Object(i.__decorate)([Object(h.Input)("weekNumberTemplate"),Object(i.__metadata)("design:type",Et),Object(i.__metadata)("design:paramtypes",[Et])],Qn.prototype,"weekNumberTemplateRef",null),Object(i.__decorate)([Object(h.ContentChild)(Dt,{static:!0}),Object(i.__metadata)("design:type",Dt)],Qn.prototype,"headerTitleTemplate",void 0),Object(i.__decorate)([Object(h.Input)("headerTitleTemplate"),Object(i.__metadata)("design:type",Dt),Object(i.__metadata)("design:paramtypes",[Dt])],Qn.prototype,"headerTitleTemplateRef",null),Object(i.__decorate)([Object(h.ViewChild)(Tn,{static:!1}),Object(i.__metadata)("design:type",Tn)],Qn.prototype,"viewList",void 0),Object(i.__decorate)([Object(h.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"widgetId",null),Object(i.__decorate)([Object(h.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"widgetRole",null),Object(i.__decorate)([Object(h.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"calendarTabIndex",null),Object(i.__decorate)([Object(h.HostBinding)("attr.aria-disabled"),Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(h.HostBinding)("attr.aria-activedescendant"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],Qn.prototype,"ariaActivedescendant",null),Object(i.__decorate)([Object(h.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleBlur",null),Object(i.__decorate)([Object(h.HostListener)("focus"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleFocus",null),Object(i.__decorate)([Object(h.HostListener)("mouseenter"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleMouseEnter",null),Object(i.__decorate)([Object(h.HostListener)("mouseleave"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleMouseLeave",null),Object(i.__decorate)([Object(h.HostListener)("mousedown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleMousedown",null),Object(i.__decorate)([Object(h.HostListener)("click"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"handleClick",null),Object(i.__decorate)([Object(h.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],Qn.prototype,"keydown",null),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[Pe,Dn,In,o.LocalizationService,_t,{provide:o.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},vt,Ot],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(i.__metadata)("design:paramtypes",[Pe,h.ElementRef,vt,h.Renderer2,h.ChangeDetectorRef,h.NgZone,_t,Ot])],Qn)),Pn=Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangePopupTemplate]"}),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Xn),Vn=(Object.defineProperty(Yn.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(Yn.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),Yn.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},Yn.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},Yn.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},Yn.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},Yn.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=nn(e),n=nn(this.startInput$.value),i=nn(this.endInput$.value);return t||n||i||e&&e.hasActiveContent()||!1},Yn.prototype.registerStartInput=function(e){this.startInput$.next(e)},Yn.prototype.registerEndInput=function(e){this.endInput$.next(e)},Yn.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},Yn.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},Yn.prototype.setFocusedDate=function(e){Object(_.isEqual)(this.focusedDate$.value,e)||this.focusedDate$.next(e)},Yn.prototype.setRange=function(e){this.range$.next(e=void 0===e?q:e)},Object(i.__decorate)([Object(h.Injectable)()],Yn)),Rn=(Object.defineProperty($n.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new gn,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!0,configurable:!0}),$n.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},$n.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),V()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=Object(d.fromEvent)(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},$n.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()},$n.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(d.merge)(e.contentCalendar.changes,e.viewCalendar.changes).pipe(Object(l.filter)(function(e){return e&&e.first}),Object(l.map)(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){return e.focus()})})}))},$n.prototype.focus=function(){this.calendar&&this.calendar.focus()},$n.prototype.hasActiveContent=function(){return!(!Object(b.isDocumentAvailable)()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},$n.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},$n.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},$n.prototype.handleWindowBlur=function(){var e=this;this.show&&(Object(b.hasObservers)(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},$n.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},$n.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===b.Keys.Escape||n&&e===b.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},$n.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=Object(d.fromEvent)(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=Object(d.fromEvent)(e,"focus").subscribe(function(){return t.onFocus.emit()}))},$n.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];O(this.popupSubscriptions)||(this.popupSubscriptions=new d.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty($n.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),$n.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return Object(d.fromEvent)(t,"keydown").subscribe(n.handleKeydown.bind(n))}),Object(d.fromEvent)(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},$n.prototype.destroyPopup=function(){O(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),O(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},Object(i.__decorate)([Object(h.ViewChild)("container",{read:h.ViewContainerRef,static:!1}),Object(i.__metadata)("design:type",h.ViewContainerRef)],$n.prototype,"container",void 0),Object(i.__decorate)([Object(h.ViewChild)("defaultTemplate",{static:!1}),Object(i.__metadata)("design:type",h.TemplateRef)],$n.prototype,"defaultTemplate",void 0),Object(i.__decorate)([Object(h.ContentChild)(Pn,{static:!1}),Object(i.__metadata)("design:type",Pn)],$n.prototype,"contentTemplate",void 0),Object(i.__decorate)([Object(h.ViewChildren)(xn),Object(i.__metadata)("design:type",h.QueryList)],$n.prototype,"viewCalendar",void 0),Object(i.__decorate)([Object(h.ContentChildren)(xn),Object(i.__metadata)("design:type",h.QueryList)],$n.prototype,"contentCalendar",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],$n.prototype,"animate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.ElementRef)],$n.prototype,"anchor",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],$n.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],$n.prototype,"appendTo",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],$n.prototype,"collision",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],$n.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],$n.prototype,"margin",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],$n.prototype,"open",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],$n.prototype,"close",void 0),Object(i.__decorate)([Object(h.Output)("blur"),Object(i.__metadata)("design:type",h.EventEmitter)],$n.prototype,"onBlur",void 0),Object(i.__decorate)([Object(h.Output)("focus"),Object(i.__metadata)("design:type",h.EventEmitter)],$n.prototype,"onFocus",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],$n.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.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(i.__param)(4,Object(h.Optional)()),Object(i.__param)(4,Object(h.Inject)(o.RTL)),Object(i.__metadata)("design:paramtypes",[s.PopupService,Vn,h.ChangeDetectorRef,h.NgZone,Boolean])],$n)),Bn=(Object.defineProperty(Zn.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!0,configurable:!0}),Zn.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},Zn.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(i.__decorate)([Object(h.ContentChildren)(Rn),Object(i.__metadata)("design:type",h.QueryList)],Zn.prototype,"contentPopup",void 0),Object(i.__decorate)([Object(h.Component)({providers:[Vn],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),Object(i.__metadata)("design:paramtypes",[])],Zn)),Fn=(Object.defineProperty(qn.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(qn.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return O(e)&&O(e.calendar)},enumerable:!0,configurable:!0}),qn.prototype.init=function(){var t=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(Object(l.filter)(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),Object(d.fromEvent)(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),Object(d.fromEvent)(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},qn.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},qn.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()},qn.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new d.Subscription},qn.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},qn.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()}))})})},qn.prototype.updateRange=function(e,t){t=this.getRange(e,t);t&&(this.focusActiveDate(),this.dateRangeService.setRange(t))},qn.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===b.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===b.Keys.ArrowDown&&this.dateRangeService.activatePopup()},qn.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(Object(_.cloneDate)(this.input.value))},qn.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t.querySelector(".k-dateinput-wrap"),"k-state-focused")},qn),Mn=(on=Fn,Object(i.__extends)(Un,on),Un.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),on.prototype.init.call(this)},Un.prototype.ngOnDestroy=function(){on.prototype.destroy.call(this)},Un.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!S(e,i,n))return null;n=(this.rangeService.selectionRange||q).start;return this.autoCorrectOn===t&&O(e)&&e<n?z(e):{start:n,end:Object(_.cloneDate)(e)}},Un.prototype.updateInputValue=function(e){var t=(e||q).end,n=this.dateInput,e=n.min,n=n.max;!Object(_.isEqual)(this.dateInput.value,t)&&S(t,e,n)&&(this.dateInput.writeValue(Object(_.cloneDate)(t)),this.dateInput.notify())},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Un.prototype,"autoCorrectOn",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Un.prototype,"navigateCalendarOnFocus",void 0),Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangeEndInput]"}),Object(i.__metadata)("design:paramtypes",[Vn,mn,h.ElementRef,h.Renderer2,h.NgZone])],Un)),An=(an=Fn,Object(i.__extends)(Kn,an),Kn.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),an.prototype.init.call(this)},Kn.prototype.ngOnDestroy=function(){an.prototype.destroy.call(this)},Kn.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;if(!S(e,i,n))return null;n=(this.rangeService.selectionRange||q).end;return this.autoCorrectOn===t&&n&&n<e?z(e):{start:Object(_.cloneDate)(e),end:n}},Kn.prototype.updateInputValue=function(e){var t=(e||q).start,n=this.dateInput,e=n.min,n=n.max;!Object(_.isEqual)(this.dateInput.value,t)&&S(t,e,n)&&(this.dateInput.writeValue(Object(_.cloneDate)(t)),this.dateInput.notify())},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Kn.prototype,"autoCorrectOn",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Kn.prototype,"navigateCalendarOnFocus",void 0),Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangeStartInput]"}),Object(i.__metadata)("design:paramtypes",[Vn,mn,h.ElementRef,h.Renderer2,h.NgZone])],Kn)),Ln=(Object.defineProperty(Wn.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),H(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Wn.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(Wn.prototype,"calendarRange",{get:function(){return this.selectionRange||q},enumerable:!0,configurable:!0}),Wn.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=N(e.min,n.min),n.max=N(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){Object(_.isEqual)(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),Object(d.fromEvent)(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},Wn.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},Wn.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},Wn.prototype.isEqualCalendarRange=function(e){return H(this.calendar.selectionRange,e)},Wn.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(z(t))},Wn.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",e=n?z(e):this.updateRange(e);H(t.selectionRange,e)||(this.acceptAndEmit(e),t.setActiveRangeEnd(i),t.setRange(e))},Wn.prototype.handleHover=function(e){var t,n,i;this.hasCompleteRange()||(t=(i=this.calendarRange).start,n=i.end,i=this.calendar.activeRangeEnd,(t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e)))},Wn.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||q,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},Wn.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},Wn.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},Wn.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},Wn.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},Wn.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Wn.prototype,"autoCorrectOn",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],Wn.prototype,"selectionRange",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],Wn.prototype,"activeRangeEnd",null),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Wn.prototype,"activeRangeEndChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Wn.prototype,"selectionRangeChange",void 0),Object(i.__decorate)([Object(h.Directive)({selector:"[kendoDateRangeSelection]"}),Object(i.__param)(4,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[xn,h.ChangeDetectorRef,h.ElementRef,h.Renderer2,Vn])],Wn)),Nn=(Object.defineProperty(Gn.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(Gn.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),Gn),zn=(Object.defineProperty(Hn.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),Hn.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+(t.name||typeof t)+"'.")}}},Hn.prototype.ngDoCheck=function(){var e;!this._differ||(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},Hn.prototype._applyChanges=function(e){if(Object(b.isDocumentAvailable)()){var t=this._viewContainer.length,n=this.kForOf.length,i={};e.forEachOperation(function(e,t,n){null!==n&&(i[n]=e.item)});for(var a=t;a<n;a++)this._viewContainer.createEmbeddedView(this._template,new Nn(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;n<a;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],Hn.prototype,"kForOf",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Function)],Hn.prototype,"kForTrackBy",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef),Object(i.__metadata)("design:paramtypes",[h.TemplateRef])],Hn.prototype,"kForTemplate",null),Object(i.__decorate)([Object(h.Directive)({selector:"[kFor][kForOf]"}),Object(i.__metadata)("design:paramtypes",[h.ViewContainerRef,h.TemplateRef,h.IterableDiffers])],Hn));function Hn(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}function Gn(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}function Wn(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new h.EventEmitter,this.selectionRangeChange=new h.EventEmitter,this.calendarSubscriptions=new d.Subscription,this.dateRangeService=this.dateRangeService||new Vn,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}function Kn(e,t,n,i,a){a=an.call(this,"start",e,t,n,i,a)||this;return a.rangeService=e,a.dateInput=t,a.navigateCalendarOnFocus=!1,a}function Un(e,t,n,i,a){a=on.call(this,"end",e,t,n,i,a)||this;return a.rangeService=e,a.dateInput=t,a.navigateCalendarOnFocus=!1,a}function qn(e,t,n,i,a,o){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=o,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new d.Subscription,this.subscriptions=new d.Subscription}function Zn(){this.showDefault=!1,Object(m.validatePackage)(g)}function $n(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.cancel=new h.EventEmitter,this.popupUID=Object(b.guid)(),this.calendarSubscriptions=new d.Subscription,this.popupSubscriptions=new d.Subscription,this.resolvedPromise=Promise.resolve()}function Yn(){this.activeRangeEnd$=new d.BehaviorSubject(null),this.focusedDate$=new d.BehaviorSubject(null),this.endInput$=new d.BehaviorSubject(null),this.startInput$=new d.BehaviorSubject(null),this.dateRangePopup$=new d.BehaviorSubject(null),this.range$=new d.BehaviorSubject(q)}function Xn(e){this.templateRef=e}function Qn(e,t,n,i,a,o,r,s){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=a,this.zone=o,this.disabledDatesService=r,this.selectionService=s,this.id=Object(b.guid)(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=U[U.month],this.bottomView=U[U.month],this.topView=U[U.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.cellUID=Object(b.guid)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=c.PrevView,this.nextView=c.NextView,this.selectedDates=[],this._min=new Date($),this._max=new Date(Y),this._focusedDate=x(),this.resolvedPromise=Promise.resolve(),this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.disabledDatesRangeValidateFn=P,this.subscriptions=new d.Subscription,this.setClasses(t.nativeElement)}function Jn(e,t,n,i,a,o){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=o,this.activeView=U.month,this.isActive=!0,this.min=new Date($),this.max=new Date(Y),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}function ei(e){this.intl=e}function ti(e,t,n,i,a,o,r,s,c,l){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.host=o,this.touchEnabled=r,this.localization=s,this.disabledDatesService=c,this.renderer=l,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+Object(b.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=Object(_.cloneDate)(X),this.timeSelectorMax=Object(_.cloneDate)(Q),this.calendarValue=null,this.calendarMin=Object(_.cloneDate)($),this.calendarMax=K(Y),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=W($,X),this._max=W(Y,Q),this._isActive=!1,this.onControlTouched=P,this.onControlChange=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.disabledDatesValidateFn=P,this.incompleteValidator=P,this.subscriptions=new d.Subscription,Object(m.validatePackage)(g)}function ni(e,t,n,i,a,o,r,s,c,l){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=o,this.injector=r,this.pickerService=s,this.intl=c,this.touchEnabled=l,this.focusableId="k-"+Object(b.guid)(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(b.guid)(),this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=P,this.incompleteValidator=P,this._min=Object(_.cloneDate)(X),this._max=Object(_.cloneDate)(Q),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],Object(m.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)))}function ii(e,t,n,i,a,o,r,s,c,l){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=o,this.injector=r,this.pickerService=s,this.disabledDatesService=c,this.touchEnabled=l,this.focusableId="k-"+Object(b.guid)(),this.activeView=U[U.month],this.bottomView=U[U.month],this.topView=U[U.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=Object(_.cloneDate)($),this.max=Object(_.cloneDate)(Y),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(b.guid)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.minValidateFn=P,this.maxValidateFn=P,this.disabledDatesValidateFn=P,this.incompleteValidator=P,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],Object(m.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)))}function ai(){this.prevented=!1}function oi(e,t,n,i,a,o,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=a,this.injector=o,this.localization=r,this.pickerService=s,this.focusableId="k-"+Object(b.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new h.EventEmitter,this.valueUpdate=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.arrow=pt,this.arrowDirection=pt.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=P,this.maxValidator=P,this.incompleteValidator=P,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=P,this.onControlTouched=P,this.onValidatorChange=P,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}function ri(e,t,n,i,a){if(void 0===a&&(a=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Object(_.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(m.validatePackage)(g),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=Object(_.cloneDate)(i);else{this.value=Object(_.getDate)(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}function si(e,t){return ya(24+e-t)}function ci(n){return function(e,t){return t&&Object(_.getDate)(e).getTime()!==Object(_.getDate)(t).getTime()?te(e,n):e}}function li(e,t){return ja(60+e-t)}function di(n){return function(e,t){return t&&e.getHours()!==t.getHours()?ne(e,n):e}}function pi(e,t){return Sa(60+e-t)}function ui(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:ie(e,n)}}function hi(e,t){return Ia(1e3+e-t)}function bi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:ae(e,n)}}function mi(e,t){return(e=Object(_.cloneDate)(e)).setHours(t),e}function gi(e){return null!==e&&e<12}function fi(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function yi(e,t){return fi(e,t)&&e.getSeconds()===t.getSeconds()}function vi(e){return function(t,n){return t.setHours.apply(t,e.map(function(e){return e(t,n)})),t}}function _i(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}var Oi,ji,ki,Ci,wi,Si,Ti,Ei,Di,Ii,xi,Pi,Vi,Ri,Bi,Fi,Mi,Ai,Li,Ni,zi,Hi,Gi,Wi=(go.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)))},go.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=U[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},go.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},go.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(D(x(),this.min,this.max)))},go.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},go.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},go.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},go.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)},go.prototype.setTodayAvailability=function(){var e=x(),t=S(e,Object(_.getDate)(this.min),Object(_.getDate)(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],go.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],go.prototype,"currentDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],go.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],go.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],go.prototype,"rangeLength",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],go.prototype,"templateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],go.prototype,"isPrevDisabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],go.prototype,"isNextDisabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],go.prototype,"showNavigationButtons",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],go.prototype,"todayButtonClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],go.prototype,"prevButtonClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],go.prototype,"nextButtonClick",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-calendar-header"),Object(h.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],go.prototype,"getComponentClass",void 0),Object(i.__decorate)([Object(h.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(i.__metadata)("design:paramtypes",[Pe,h.ChangeDetectorRef,o.LocalizationService,r.IntlService,_t])],go)),Ki=(Object.defineProperty(mo.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===U.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),mo.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},mo.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))},mo.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},mo.prototype.isHorizontal=function(){return"horizontal"===this.direction},mo.prototype.isMonthView=function(){return this.activeView===U.month},mo.prototype.shouldRenderCellContent=function(e){return O(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},mo.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},mo.prototype.getWeekNumber=function(e){return this.weekNumber?Object(_.weekInYear)(e,this.intl.firstDay()):null},mo.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;e=Object(_.weekInYear)(t.value,this.intl.firstDay()).toString();return{formattedValue:e,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:e,value:Object(_.cloneDate)(t.value)}},mo.prototype.getStyles=function(e){var n,t=e.isRangeEnd,i=e.isRangeStart,a="end"===this.activeRangeEnd&&t,o="start"===this.activeRangeEnd&&i;return n={"k-range-end":!e.isOtherMonth&&t,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-state-active":o||a,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||i||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},mo.prototype.tableCellIndex=function(e,t){return e+":"+t},mo.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},mo.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},mo.prototype.updateData=function(){var e=A(this.selectedDates)||x(),e=J(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},mo.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},mo.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},mo.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)))},mo.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(n=i.getAttribute("data-cell-index"),(t=this.cellByIndex(n)).isDisabled||(i=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:t.value,modifiers:{ctrlKey:i,metaKey:n,shiftKey:e}})))},mo.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},mo.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);t?(e=t.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},mo.prototype.closestCell=function(e){return at(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},mo.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},mo.prototype.cellByIndex=function(e){var t=e.split(":"),e=t[0],t=t[1];return this.data[e][t]},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],mo.prototype,"direction",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],mo.prototype,"isActive",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],mo.prototype,"activeView",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],mo.prototype,"cellUID",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],mo.prototype,"focusedDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],mo.prototype,"viewDate",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],mo.prototype,"activeRangeEnd",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],mo.prototype,"selectionRange",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],mo.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],mo.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Array)],mo.prototype,"selectedDates",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],mo.prototype,"weekNumber",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],mo.prototype,"viewIndex",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],mo.prototype,"templateRef",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",h.TemplateRef)],mo.prototype,"weekNumberTemplateRef",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],mo.prototype,"cellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],mo.prototype,"weekNumberCellClick",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],mo.prototype,"cellEnter",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],mo.prototype,"cellLeave",void 0),Object(i.__decorate)([Object(h.Component)({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}),Object(i.__metadata)("design:paramtypes",[Pe,r.IntlService,h.ChangeDetectorRef,h.ElementRef,h.NgZone,h.Renderer2,_t])],mo)),Ui=Object(i.__decorate)([Object(h.NgModule)({declarations:[zn,Wi,Ki],exports:[zn,Wi,Ki],imports:[p.CommonModule,b.EventsModule]})],bo),qi=Object(i.__decorate)([Object(h.NgModule)({declarations:[kt,Ct,wt,St,Tt,Et,Dt,It],exports:[kt,Ct,wt,St,Tt,Et,Dt,It]})],ho),Zi=(Gi=o.ComponentMessages,Object(i.__extends)(uo,Gi),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],uo.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],uo.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],uo.prototype,"nextButtonTitle",void 0),uo),$i=(zi=Zi,Object(i.__extends)(po,zi),Hi=po,Hi=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Zi,useExisting:Object(h.forwardRef)(function(){return Hi})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],po)),Yi=(Li=Zi,Object(i.__extends)(lo,Li),Ni=lo,Object.defineProperty(lo.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Ni=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Zi,useExisting:Object(h.forwardRef)(function(){return Ni})}],selector:"kendo-multiviewcalendar-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],lo)),Xi=Object(i.__decorate)([Object(h.NgModule)({declarations:[Tn,$i,Yi,xn],exports:[Tn,$i,Yi,xn,Ui,qi],imports:[p.CommonModule,Ui,r.IntlModule,qi,s.PopupModule],providers:[vt,se,de,he,ge,Sn]})],co),Qi=(Ai=o.ComponentMessages,Object(i.__extends)(so,Ai),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],so.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],so.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],so.prototype,"nextButtonTitle",void 0),so),Ji=(Fi=Qi,Object(i.__extends)(ro,Fi),Mi=ro,Mi=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Qi,useExisting:Object(h.forwardRef)(function(){return Mi})}],selector:"[kendoCalendarLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],ro)),ea=(Ri=Qi,Object(i.__extends)(oo,Ri),Bi=oo,Object.defineProperty(oo.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Bi=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Qi,useExisting:Object(h.forwardRef)(function(){return Bi})}],selector:"kendo-calendar-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],oo)),ta=[mt],na=Object(i.__decorate)([Object(h.NgModule)({declarations:[ta],exports:[ta],imports:[p.CommonModule]})],ao),ia=Object(i.__decorate)([Object(h.NgModule)({declarations:[Ft,gt,ea,Ji,ft],exports:[Ft,gt,ea,Ji,ft,Ui,qi],imports:[p.CommonModule,Ui,Xi,r.IntlModule,qi,na,b.EventsModule,b.ResizeSensorModule],providers:[qe,se,de,he,ge,Sn]})],io),aa=Object(i.__decorate)([Object(h.NgModule)({exports:[ia,Xi],imports:[ia,Xi]})],no),oa=(Vi=o.ComponentMessages,Object(i.__extends)(to,Vi),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],to.prototype,"decrement",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],to.prototype,"increment",void 0),to),ra=(xi=oa,Object(i.__extends)(eo,xi),Pi=eo,Pi=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:oa,useExisting:Object(h.forwardRef)(function(){return Pi})}],selector:"[kendoDateInputLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],eo)),sa=(Di=oa,Object(i.__extends)(Ja,Di),Ii=Ja,Object.defineProperty(Ja.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),Ii=Object(i.__decorate)([Object(h.Component)({providers:[{provide:oa,useExisting:Object(h.forwardRef)(function(){return Ii})}],selector:"kendo-dateinput-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Ja)),ca=Object(i.__decorate)([Object(h.NgModule)({declarations:[mn,sa,ra],exports:[mn,sa,ra],imports:[p.CommonModule,r.IntlModule,b.EventsModule]})],Qa),la=(Ei=o.ComponentMessages,Object(i.__extends)(Xa,Ei),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Xa.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Xa.prototype,"toggle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Xa.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Xa.prototype,"nextButtonTitle",void 0),Xa),da=(Si=la,Object(i.__extends)(Ya,Si),Ti=Ya,Ti=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:la,useExisting:Object(h.forwardRef)(function(){return Ti})}],selector:"[kendoDatePickerLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Ya)),pa=(Ci=la,Object(i.__extends)($a,Ci),wi=$a,Object.defineProperty($a.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),wi=Object(i.__decorate)([Object(h.Component)({providers:[{provide:la,useExisting:Object(h.forwardRef)(function(){return wi})}],selector:"kendo-datepicker-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],$a)),ua=u.touchEnabled,ha=Object(i.__decorate)([Object(h.NgModule)({declarations:[yn,pa,da],exports:[yn,pa,da,qi],imports:[p.CommonModule,ca,ia,r.IntlModule,s.PopupModule,qi,b.EventsModule],providers:[{provide:fn,useValue:ua}]})],Za),ba=[Bn,Rn,Pn,Ln,An,Mn],ta=[Xi,ca,s.PopupModule,b.EventsModule],ma=Object(i.__decorate)([Object(h.NgModule)({declarations:[ba],exports:[ba],imports:[p.CommonModule,ta]})],qa),ua=B("div"),ba=B("ul"),ta=B("li"),ga=Object(b.isDocumentAvailable)()?ua([ua([ua([ba([ta("<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,fa=(Ua.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},Ua.prototype.calculateHeights=function(e){var t;Object(b.isDocumentAvailable)()&&(e=(t=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(ga),this.timeListHeight=e.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=e.querySelector("li").getBoundingClientRect().height,t.removeChild(e))},Ua.prototype.isActive=function(e){return!(!Object(b.isDocumentAvailable)()||!e)&&(e.nativeElement||e)===document.activeElement},Object(i.__decorate)([Object(h.Injectable)()],Ua)),ya=function(e){return e%24},va=ci(0),_a=ci(23),Oa=(Ka.prototype.apply=function(e,t){return te(e,t.getHours())},Ka.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,a=e.insertUndividedMax,o=void 0===a?this.insertUndividedMax:a,n=e.min,a=void 0===n?this.min:n,n=e.max,n=void 0===n?this.max:n,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){e=te(Z,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=n,this.step=e},Ka.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return ya(t+e*n)}),o=w(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},Ka.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Ka.prototype.limitRange=function(e,t,n){return this.boundRange?[va(e,n),_a(t,n)]:[e,t]},Ka.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},Ka.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ka.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e)},Ka.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},Ka.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},Ka.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(si(t,e)/this.step)+1},Ka.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ka.prototype.isLastMissing=function(e){return this.isMissing(te(this.max,this.lastHour(e)))},Ka.prototype.divideByStep=function(e){return si(e.getHours(),this.min.getHours())/this.step},Ka.prototype.lastHour=function(e){return this.range(e)[1]},Ka.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getHours(),t.getHours()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Ka)),ja=function(e){return e%60},ka=di(0),Ca=di(59),wa=(Wa.prototype.apply=function(e,t){return ne(e,t.getMinutes())},Wa.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=ne(Z,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=a,this.step=e},Wa.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return ja(t+e*n)}),o=w(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},Wa.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Wa.prototype.limitRange=function(e,t,n){return[ka(e,n),Ca(t,n)]},Wa.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},Wa.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Wa.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},Wa.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Wa.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},Wa.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(li(t,e)/this.step)+1},Wa.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Wa.prototype.isLastMissing=function(e){return this.isMissing(ne(this.max,this.lastMinute(e)))},Wa.prototype.divideByStep=function(e){return li(e.getMinutes(),this.min.getMinutes())/this.step},Wa.prototype.lastMinute=function(e){return this.range(e)[1]},Wa.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMinutes(),t.getMinutes()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Wa)),Sa=function(e){return e%60},Ta=ui(0),Ea=ui(59),Da=(Ga.prototype.apply=function(e,t){return ie(e,t.getSeconds())},Ga.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=ie(Z,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=n,this.max=a,this.step=e},Ga.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return Sa(t+e*n)}),o=w(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},Ga.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Ga.prototype.limitRange=function(e,t,n){return[Ta(e,n),Ea(t,n)]},Ga.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},Ga.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ga.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},Ga.prototype.divideByStep=function(e){return pi(e.getSeconds(),this.min.getSeconds())/this.step},Ga.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},Ga.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},Ga.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(pi(t,e)/this.step)+1},Ga.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ga.prototype.isLastMissing=function(e){return this.isMissing(ie(this.max,this.lastSecond(e)))},Ga.prototype.lastSecond=function(e){return this.range(e)[1]},Ga.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getSeconds(),t.getSeconds()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Ga)),Ia=function(e){return e%1e3},xa=bi(0),Pa=bi(999),Va=(Ha.prototype.apply=function(e,t){return ae(e,t.getMilliseconds())},Ha.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,n=void 0===a?this.min:a,a=e.max,a=void 0===a?this.max:a,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=i,this.toListItem=function(e){e=ae(Z,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=n,this.max=a,this.step=e},Ha.prototype.data=function(e){var t,n,i=this,a=(t=this.range(e)[0],n=this.step,function(e){return Ia(t+e*n)}),o=w(0,this.countFromMin(e)).map(function(e){return i.toListItem(a(e))});return this.addLast(o),this.addMissing(o,e),o},Ha.prototype.isRangeChanged=function(e,t){return!Object(_.isEqual)(this.min,e)||!Object(_.isEqual)(this.max,t)},Ha.prototype.limitRange=function(e,t,n){return[xa(e,n),Pa(t,n)]},Ha.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},Ha.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ha.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},Ha.prototype.divideByStep=function(e){return hi(e.getMilliseconds(),this.min.getMilliseconds())/this.step},Ha.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},Ha.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},Ha.prototype.countFromMin=function(e){var t=this.range(e),e=t[0],t=t[1];return Math.floor(hi(t,e)/this.step)+1},Ha.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ha.prototype.isLastMissing=function(e){return this.isMissing(ae(this.max,this.lastMillisecond(e)))},Ha.prototype.lastMillisecond=function(e){return this.range(e)[1]},Ha.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),e=t[0],t=t[1];return[e.getMilliseconds(),t.getMilliseconds()]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],Ha)),Ra=(za.prototype.apply=function(e,t){var n=e.getHours(),i=gi(n),a=gi(t.getHours());if(i&&a||!i&&!a)return e;t=this.normalizedRange(),i=t[0],t=t[1],t=void 0===t?24:t;return mi(e,Math.min(Math.max(i,n+(a?-12:12)),t||24))},za.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,t=e.max,t=void 0===t?this.max:t,e=e.part,e=void 0===e?this.part:e;this.min=n,this.max=t,this.part=e},za.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n=[],i=this.normalizedRange(),a=i[0],i=i[1],t=this.intl.dateFormatNames(t);return gi(a)&&n.push({text:t.am,value:mi(this.min,a)}),null!==i&&(!i||11<i)&&n.push({text:t.pm,value:mi(this.min,Math.max(12,i))}),this.min.getHours()!==a?n.reverse():n},za.prototype.isRangeChanged=function(e,t){return!1},za.prototype.limitRange=function(e,t,n){return[e,t]},za.prototype.total=function(){var e=this.normalizedRange(),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},za.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;e=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0},za.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?function(e,t,n){return!t&&!n||t<=e||e<=n}:function(e,t,n){return!t&&!n||t<=e&&e<=n})(e.getHours(),this.min.getHours(),this.max.getHours())},za.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},Object(i.__decorate)([Object(h.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.IntlService])],za)),Ba={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]}},Fa=((ta={})[vn]=Ra,ta.hour=Oa,ta[n]=wa,ta[On]=Da,ta[t]=Va,ta),Ma=(Object.defineProperty(Na.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),Na.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Fa[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=this.service.limitRange(this.min,this.max,t),a=i[0],i=i[1];(this.service.isRangeChanged(a,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},Na.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()})},Na.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},Na.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},Na.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},Na.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))},Na.prototype.handleItemClick=function(e){var e=at(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},Na.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Na.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Na.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);if(t===n&&e<2)return i;t=n<t;return t&&e>=this.bottomThreshold||!t&&e>this.topThreshold?this.virtualization.itemOffset(n+1):i},Na.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},Na.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},Na.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},e=Object.assign({},t,e);return e.boundRange="hour"!==e.part.type,e},Na.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},Na.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;if(!t||!e)return!1;t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)];return t&&e&&t.text!==e.text},Na.prototype.handleKeyDown=function(e){var t=(Ba[e.keyCode]||function(){return null})(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},Na.prototype.bindEvents=function(){var t=this;this.scrollSubscription=this.virtualization.scroll$().pipe(Object(l.debounceTime)(100),Object(l.map)(function(e){return e.target.scrollTop}),Object(l.map)(function(e){return t.itemOffset(e)}),Object(l.map)(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])});var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Na.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Na.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object)],Na.prototype,"part",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Number)],Na.prototype,"step",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],Na.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],Na.prototype,"value",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],Na.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.ViewChild)(mt,{static:!0}),Object(i.__metadata)("design:type",mt)],Na.prototype,"virtualization",void 0),Object(i.__decorate)([Object(h.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],Na.prototype,"tabIndex",null),Object(i.__decorate)([Object(h.HostBinding)("class.k-time-list"),Object(i.__metadata)("design:type",Boolean)],Na.prototype,"componentClass",void 0),Object(i.__decorate)([Object(h.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(i.__metadata)("design:paramtypes",[h.ElementRef,h.Injector,fa,h.Renderer2,h.NgZone])],Na)),n=[{type:_n,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:n,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return fi(e,t)?t.getMinutes():0}},{type:On,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return yi(e,t)?t.getSeconds():0}},{type:t,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return yi(n=e,e=t)&&n.getMilliseconds()===e.getMilliseconds()?t.getMilliseconds():0;var n}}],Aa=function(e){return ki.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return t[e.type]?(i=e.getter,function(e,t){return i(t)}):(n=e.getter,function(e,t){return n(e)});var n,i}));var t},La=(ji=ki=n,function(n){return ji.map(function(e){var i,a,o,t=n[e.type];return t?(i=e.getter,a=e.minGetter,o=t,function(e,t){var n=i(e),e=a(e,t),t=n-e;if(t<0)return e;t%=o;return n-t+(o/2<t?o:0)}):e.getter})});function Na(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=Object(_.cloneDate)(Z),this.max=Object(_.cloneDate)(Q),this.step=1,this.disabled=!1,this.valueChange=new h.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}function za(e){this.intl=e}function Ha(e){this.intl=e,this.insertUndividedMax=!1}function Ga(e){this.intl=e,this.insertUndividedMax=!1}function Wa(e){this.intl=e,this.insertUndividedMax=!1}function Ka(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}function Ua(){}function qa(){}function Za(){}function $a(e){var t=Ci.call(this)||this;return t.service=e,t}function Ya(e){var t=Si.call(this)||this;return t.service=e,t}function Xa(){return null!==Ei&&Ei.apply(this,arguments)||this}function Qa(){}function Ja(e){var t=Di.call(this)||this;return t.service=e,t}function eo(e){var t=xi.call(this)||this;return t.service=e,t}function to(){return null!==Vi&&Vi.apply(this,arguments)||this}function no(){}function io(){}function ao(){}function oo(e){var t=Ri.call(this)||this;return t.service=e,t}function ro(e){var t=Fi.call(this)||this;return t.service=e,t}function so(){return null!==Ai&&Ai.apply(this,arguments)||this}function co(){}function lo(e){var t=Li.call(this)||this;return t.service=e,t}function po(e){var t=zi.call(this)||this;return t.service=e,t}function uo(){return null!==Gi&&Gi.apply(this,arguments)||this}function ho(){}function bo(){}function mo(e,t,n,i,a,o,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=o,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.colSpan=0,this.subscriptions=new d.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)))}function go(e,t,n,i,a){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=a,this.navigate=!0,this.todayAvailable=!0,this.min=new Date($),this.max=new Date(Y),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new h.EventEmitter,this.prevButtonClick=new h.EventEmitter,this.nextButtonClick=new h.EventEmitter,this.getComponentClass=!0,this.subscriptions=new d.Subscription}(On=Oi=Oi||{})[On.Left=0]="Left",On[On.Right=1]="Right";var fo,yo,vo,_o,Oo,jo,ko,Co,wo,So,To,Eo,Do,Io,xo=(Object.defineProperty(er.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"current",{get:function(){return this._current},set:function(e){this._current=function(e,t,n){if(!e||!t||!n)return e;var i=C(e,t,n),a=i.candidateValue,o=i.minValue,i=i.maxValue;return a<o?J(e,t):i<a?J(e,n):e}(this.snapTime(Object(_.cloneDate)(e||Z),this.min),this.min,this.max),h.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(er.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")}),0<=e)&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-state-focused"))},enumerable:!0,configurable:!0}),er.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()},er.prototype.ngOnChanges=function(e){this.init()},er.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},er.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},er.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},er.prototype.handleAccept=function(){this.handleChange(this.mergeValue(Object(_.cloneDate)(this.value||Object(_.getDate)(I())),this.current))},er.prototype.handleNow=function(){this.current=I(),this.handleChange(this.current),this.cdr.markForCheck()},er.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},er.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},er.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},er.prototype.handleBlur=function(e){var t=v(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},er.prototype.containsElement=function(e){var t=this;return Boolean(ot(e,function(e){return e===t.element.nativeElement}))},er.prototype.partStep=function(e){return this.steps[e.type]||1},er.prototype.init=function(e){var i;e&&!F(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=vi(Aa(this.dateFormatParts))),e&&!F(e,"steps")||(this.snapTime=(i=La(this.steps),function(e,t){var n=Object(_.cloneDate)(e);return n.setHours.apply(n,i.map(function(e){return e(n,t)})),n})),e&&!F(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&T(I(),this.min,this.max)},er.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(_i,[]).map(function(e){return t===Oi.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},er.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(Object(_.cloneDate)(e))},er.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},er.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},er.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=vi(Aa(this.dateFormatParts)),this.cdr.markForCheck()},er.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)))})},er.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,e=-1!==[b.Keys.ArrowLeft,b.Keys.ArrowRight].indexOf(t);O(this.pickerService)&&e&&n||(t!==b.Keys.Enter||this.hasActiveButton()?t!==b.Keys.ArrowLeft&&t!==b.Keys.ArrowRight||this.focusList(t===b.Keys.ArrowLeft?Oi.Left:Oi.Right):this.handleAccept())},er.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},er.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},er.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},Object(i.__decorate)([Object(h.ViewChild)("accept",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],er.prototype,"accept",void 0),Object(i.__decorate)([Object(h.ViewChild)("cancel",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],er.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.ViewChild)("now",{static:!1}),Object(i.__metadata)("design:type",h.ElementRef)],er.prototype,"now",void 0),Object(i.__decorate)([Object(h.ViewChildren)(Ma),Object(i.__metadata)("design:type",h.QueryList)],er.prototype,"timeLists",void 0),Object(i.__decorate)([Object(h.ViewChildren)("listWrapper"),Object(i.__metadata)("design:type",h.QueryList)],er.prototype,"timeListWrappers",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-timeselector"),Object(i.__metadata)("design:type",Boolean)],er.prototype,"componentClass",void 0),Object(i.__decorate)([Object(h.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],er.prototype,"disabledClass",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],er.prototype,"format",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],er.prototype,"min",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],er.prototype,"max",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"cancelButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"setButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"nowButton",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Boolean)],er.prototype,"disabled",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],er.prototype,"steps",null),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",Date)],er.prototype,"value",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],er.prototype,"valueChange",void 0),Object(i.__decorate)([Object(h.Output)(),Object(i.__metadata)("design:type",h.EventEmitter)],er.prototype,"valueReject",void 0),Object(i.__decorate)([Object(h.Component)({changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[o.LocalizationService,{provide:o.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(i.__param)(7,Object(h.Optional)()),Object(i.__metadata)("design:paramtypes",[o.LocalizationService,h.ChangeDetectorRef,h.ElementRef,r.IntlService,fa,h.NgZone,h.Renderer2,xt])],er)),Po=(Io=o.ComponentMessages,Object(i.__extends)(Jo,Io),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"accept",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"acceptLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"cancelLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"now",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"nowLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],Jo.prototype,"toggle",void 0),Jo),Vo=(Eo=Po,Object(i.__extends)(Qo,Eo),Do=Qo,Do=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Po,useExisting:Object(h.forwardRef)(function(){return Do})}],selector:"[kendoTimePickerLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Qo)),Ro=(So=Po,Object(i.__extends)(Xo,So),To=Xo,Object.defineProperty(Xo.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),To=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Po,useExisting:Object(h.forwardRef)(function(){return To})}],selector:"kendo-timepicker-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Xo)),Bo=(Co=Po,Object(i.__extends)(Yo,Co),wo=Yo,wo=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Po,useExisting:Object(h.forwardRef)(function(){return wo})}],selector:"[kendoTimeSelectorLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Yo)),Fo=(jo=Po,Object(i.__extends)($o,jo),ko=$o,Object.defineProperty($o.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),ko=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Po,useExisting:Object(h.forwardRef)(function(){return ko})}],selector:"kendo-timeselector-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],$o)),t=[Vo,Ma,Ro,kn,Bo,Fo,xo],n=[ca,r.IntlModule,s.PopupModule,na,b.EventsModule],On=u.touchEnabled,On=[fa,Oa,wa,Da,Va,Ra,{provide:fn,useValue:On}],Mo=Object(i.__decorate)([Object(h.NgModule)({declarations:[t],exports:[t],imports:[p.CommonModule].concat(n),providers:On})],Zo),Ao=(Oo=o.ComponentMessages,Object(i.__extends)(qo,Oo),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"toggle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"dateTab",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"dateTabLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"timeTab",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"timeTabLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"accept",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"acceptLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"cancel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"cancelLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"today",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"now",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"nowLabel",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"prevButtonTitle",void 0),Object(i.__decorate)([Object(h.Input)(),Object(i.__metadata)("design:type",String)],qo.prototype,"nextButtonTitle",void 0),qo),Lo=(vo=Ao,Object(i.__extends)(Uo,vo),_o=Uo,Object.defineProperty(Uo.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),_o=Object(i.__decorate)([Object(h.Component)({providers:[{provide:Ao,useExisting:Object(h.forwardRef)(function(){return _o})}],selector:"kendo-datetimepicker-messages",template:""}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Uo)),No=(fo=Ao,Object(i.__extends)(Ko,fo),yo=Ko,yo=Object(i.__decorate)([Object(h.Directive)({providers:[{provide:Ao,useExisting:Object(h.forwardRef)(function(){return yo})}],selector:"[kendoDateTimePickerLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[o.LocalizationService])],Ko)),o=[wn,Lo,No],u=u.touchEnabled,zo=Object(i.__decorate)([Object(h.NgModule)({declarations:o.slice(),exports:o.concat([qi]),imports:[p.CommonModule,r.IntlModule,ca,ia,Mo,s.PopupModule,b.EventsModule,qi],providers:[{provide:fn,useValue:u}]})],Wo),u=[aa,ca,ha,Mo,ma,zo],Ho=Object(i.__decorate)([Object(h.NgModule)({exports:u,imports:u})],Go);function Go(){}function Wo(){}function Ko(e){var t=fo.call(this)||this;return t.service=e,t}function Uo(e){var t=vo.call(this)||this;return t.service=e,t}function qo(){return null!==Oo&&Oo.apply(this,arguments)||this}function Zo(){}function $o(e){var t=jo.call(this)||this;return t.service=e,t}function Yo(e){var t=Co.call(this)||this;return t.service=e,t}function Xo(e){var t=So.call(this)||this;return t.service=e,t}function Qo(e){var t=Eo.call(this)||this;return t.service=e,t}function Jo(){return null!==Io&&Io.apply(this,arguments)||this}function er(e,t,n,i,a,o,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=o,this.renderer=r,this.pickerService=s,this.componentClass=!0,this.format="t",this.min=Object(_.cloneDate)(X),this.max=Object(_.cloneDate)(Q),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new h.EventEmitter,this.valueReject=new h.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}},function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizedMessagesDirective",function(){return y}),n.d(t,"Messages",function(){return f}),n.d(t,"SharedDirectivesModule",function(){return _}),n.d(t,"LabelDirective",function(){return g}),n.d(t,"LabelModule",function(){return S}),n.d(t,"FloatingLabelModule",function(){return C}),n.d(t,"FloatingLabelComponent",function(){return k}),n.d(t,"LabelComponent",function(){return w}),n.d(t,"CustomMessagesComponent",function(){return v});function i(e){return"[object Function]"===Object.prototype.toString.call(e)}var a,o,r,s,c,l=n(0),d=n(1),p=n(3),u=n(4),h=n(9),t=n(6),b=n(10),m=n(5),g=(Object.defineProperty(F.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!Object(p.isDocumentAvailable)())return null;var e=this.getFocusableComponent()||{};return e instanceof HTMLElement&&!e.hasAttribute("id")&&this.renderer.setAttribute(e,"id","k-"+Object(p.guid)()),e.focusableId||e.id||null},enumerable:!0,configurable:!0}),F.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular(function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)})},F.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},F.prototype.setAriaLabelledby=function(){var e,t,n;!Object(p.isDocumentAvailable)()||(n=this.getFocusableComponent())&&n.focusableId&&((e=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}(this.label.nativeElement).querySelector("#"+n.focusableId))&&(n=(t=this.label.nativeElement).id||"k-"+Object(p.guid)(),t.getAttribute("id")||this.renderer.setAttribute(t,"id",n),this.renderer.setAttribute(e,"aria-labelledby",n)))},F.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",Object)],F.prototype,"for",void 0),Object(l.__decorate)([Object(d.HostBinding)("attr.for"),Object(l.__metadata)("design:type",String),Object(l.__metadata)("design:paramtypes",[])],F.prototype,"labelFor",null),Object(l.__decorate)([Object(d.HostBinding)("class.k-label"),Object(l.__metadata)("design:type",Boolean)],F.prototype,"labelClass",void 0),Object(l.__decorate)([Object(d.Directive)({selector:"label[for]"}),Object(l.__metadata)("design:paramtypes",[d.ElementRef,d.Renderer2,d.NgZone])],F)),f=(c=u.ComponentMessages,Object(l.__extends)(B,c),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",String)],B.prototype,"optional",void 0),B),y=(r=f,Object(l.__extends)(R,r),s=R,s=Object(l.__decorate)([Object(d.Directive)({providers:[{provide:f,useExisting:Object(d.forwardRef)(function(){return s})}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),Object(l.__metadata)("design:paramtypes",[u.LocalizationService])],R)),v=(a=f,Object(l.__extends)(V,a),o=V,Object.defineProperty(V.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),o=Object(l.__decorate)([Object(d.Component)({providers:[{provide:f,useExisting:Object(d.forwardRef)(function(){return o})}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),Object(l.__metadata)("design:paramtypes",[u.LocalizationService])],V)),n=[y,v],_=Object(l.__decorate)([Object(d.NgModule)({declarations:[n],exports:[n]})],P),O={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642584099,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"},j=(Object.defineProperty(x.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}),x),k=(Object.defineProperty(I.prototype,"labelPosition",{get:function(){return!this.empty||this.focused?"Out":"In"},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),I.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new j(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},I.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},I.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},I.prototype.textFor=function(e){return this.localization.get(e)},I.prototype.subscribe=function(e,t,n){e[t]instanceof d.EventEmitter&&(n=e[t].subscribe(n),this.subscription?this.subscription.add(n):this.subscription=n)},I.prototype.updateState=function(){function e(e){return!(0===e||!1===e||(!Array.isArray(e)||e.length)&&e)}var t,n=this.formControl;n?(t=n.valueAccessor,i(t.isEmpty)?this.empty=t.isEmpty():this.empty=e(n.value),this.invalid=n.invalid&&(n.touched||n.dirty)):this.empty=i(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()},I.prototype.setAriaLabelledby=function(e){var e=e.focusableId||e.id;e&&(e=this.elementRef.nativeElement.querySelector("#"+e),this.renderer.setAttribute(e,"aria-labelledby",this.labelId))},I.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;this.id&&t?this.id=t:this.id?e.focusableId=this.id:t?this.id=t:(t="k-"+Object(p.guid)(),e.focusableId=t,this.id=t)},I.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"))})},I.prototype.addHandlers=function(e){function t(e){return function(){n.focused=e,n.updateState(),n.empty&&Object(p.hasObservers)(n.positionChange)&&n.positionChange.emit(e?"Out":"In")}}var n=this;this.subscribe(e,"onFocus",t(!0)),this.subscribe(e,"onBlur",t(!1)),this.handleAutofill(e);function i(){return n.updateState()}i(),this.subscribe(e,"onValueChange",i)},I.prototype.validateSetup=function(){if(!this.formControl&&!this.kendoInput&&Object(d.isDevMode)())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},Object(l.__decorate)([Object(d.HostBinding)("class.k-floating-label-container"),Object(l.__metadata)("design:type",Boolean)],I.prototype,"hostClasses",void 0),Object(l.__decorate)([Object(d.HostBinding)("class.k-state-focused"),Object(l.__metadata)("design:type",Boolean),Object(l.__metadata)("design:paramtypes",[])],I.prototype,"focusedClass",null),Object(l.__decorate)([Object(d.HostBinding)("class.k-state-invalid"),Object(l.__metadata)("design:type",Boolean),Object(l.__metadata)("design:paramtypes",[])],I.prototype,"invalidClass",null),Object(l.__decorate)([Object(d.HostBinding)("attr.dir"),Object(l.__metadata)("design:type",String)],I.prototype,"direction",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",Object)],I.prototype,"labelCssStyle",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",Object)],I.prototype,"labelCssClass",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",String)],I.prototype,"id",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",String)],I.prototype,"text",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",Boolean)],I.prototype,"optional",void 0),Object(l.__decorate)([Object(d.Output)(),Object(l.__metadata)("design:type",d.EventEmitter)],I.prototype,"positionChange",void 0),Object(l.__decorate)([Object(d.ContentChild)(p.KendoInput,{static:!1}),Object(l.__metadata)("design:type",Object)],I.prototype,"kendoInput",void 0),Object(l.__decorate)([Object(d.ContentChild)(t.NgControl,{static:!1}),Object(l.__metadata)("design:type",t.NgControl)],I.prototype,"formControl",void 0),Object(l.__decorate)([Object(d.Component)({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[u.LocalizationService,{provide:u.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(l.__metadata)("design:paramtypes",[d.ElementRef,d.Renderer2,d.ChangeDetectorRef,u.LocalizationService])],I)),t=[k],C=Object(l.__decorate)([Object(d.NgModule)({declarations:t.slice(),exports:t.concat([_]),imports:[h.CommonModule,_]})],D),w=(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(p.guid)()),void(this.control=e);this.control=this.kendoInput}},E.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"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(l.__decorate)([Object(d.HostBinding)("attr.dir"),Object(l.__metadata)("design:type",String)],E.prototype,"direction",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",String)],E.prototype,"text",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",Object)],E.prototype,"for",void 0),Object(l.__decorate)([Object(d.Input)(),Object(l.__metadata)("design:type",Boolean)],E.prototype,"optional",void 0),Object(l.__decorate)([Object(d.ViewChild)(g,{static:!0}),Object(l.__metadata)("design:type",g)],E.prototype,"labelDirective",void 0),Object(l.__decorate)([Object(d.ContentChild)(p.KendoInput,{static:!0}),Object(l.__metadata)("design:type",Object)],E.prototype,"kendoInput",void 0),Object(l.__decorate)([Object(d.Component)({selector:"kendo-label",exportAs:"kendoLabel",providers:[u.LocalizationService,{provide:u.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(l.__metadata)("design:paramtypes",[d.ElementRef,d.Renderer2,u.LocalizationService])],E)),u=[g,w],S=Object(l.__decorate)([Object(d.NgModule)({imports:[h.CommonModule,_],declarations:u.slice(),exports:u.concat([C,_])})],T);function T(){}function E(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new m.Subscription,Object(b.validatePackage)(O),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}function D(){}function I(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=i,this.hostClasses=!0,this.positionChange=new d.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+Object(p.guid)(),this.autoFillStarted=!1,Object(b.validatePackage)(O),this.direction=i.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}function x(e,t){function n(e){return e instanceof m.Observable||e instanceof d.EventEmitter}n((this.component=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)}function P(){}function V(e){var t=a.call(this)||this;return t.service=e,t}function R(e){var t=r.call(this)||this;return t.service=e,t}function B(){return null!==c&&c.apply(this,arguments)||this}function F(e,t,n){var i=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e,t=i.getFocusableComponent();t&&(!(e=t).wrapper||"KENDO-UPLOAD"!==e.wrapper.tagName&&"KENDO-FILESELECT"!==e.wrapper.tagName||t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}},function(e,t){e.exports=b},function(e,t){e.exports=u},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(9),r=n(6),s=n(84),c=n(17),l=n(83),d=n(3),p=n(82),u=n(81),h=n(58),b=n(80),m=n(4),g=n(13),f=n(14),y=n(21),v=n(20),_=n(57),O=n(79),j=n(78),k=n(77),C=n(30),w=n(28),S=n(76),T=n(29),E=n(75),D=n(47),I=n(46),x=n(45),P=n(44),V=n(74),R=n(27),B=n(73),F=n(72),M=n(42),A=n(41),L=n(71),N=n(37),z=n(69),H=n(68),G=n(67),W=n(66),K=n(65),U=n(64),q=n(63),Z=n(62),$=n(61),Y=n(60),n=n(59),$=[o.CommonModule,r.ReactiveFormsModule,u.LabelModule,h.InputsModule,b.DateInputsModule,l.ButtonsModule,s.SplitterModule,c.TreeListModule,l.ButtonsModule,p.DialogModule,d.EventsModule,g.PopupModule,d.DraggableModule,s.TabStripModule,Z.GridModule,$.DropDownsModule],n=[v.GanttComponent,D.GanttFlatBindingDirective,I.GanttHierarchyBindingDirective,k.GanttTaskComponent,S.GanttSummaryTaskComponent,E.GanttMilestoneTaskComponent,_.GanttTimelineComponent,O.GanttTasksTableBodyComponent,j.GanttHeaderTableBodyComponent,w.GanttTaskContentTemplateDirective,C.GanttTaskTemplateDirective,T.GanttSummaryTaskTemplateDirective,R.ToolbarTemplateDirective,V.ToolbarComponent,B.ViewSelectorComponent,N.GanttColumnComponent,N.GanttColumnGroupComponent,N.GanttSpanColumnComponent,N.FilterMenuTemplateDirective,N.FilterCellTemplateDirective,N.CellTemplateDirective,N.EditTemplateDirective,N.ColumnMenuTemplateDirective,N.HeaderTemplateDirective,N.FooterTemplateDirective,x.GanttExpandableDirective,F.GanttDependencyDirective,M.DependencyDragCreateDirective,z.TimelineDayViewComponent,H.TimelineWeekViewComponent,G.TimelineMonthViewComponent,P.SelectableDirective,W.EditDialogComponent,K.CustomMessagesComponent,U.LocalizedMessagesDirective,q.GanttAddTaskComponent,A.DragValidationTooltipComponent,L.TimelineScrollableDirective,Y.DependenciesTableComponent,n.TaskFieldsComponent],f=i.__decorate([a.NgModule({imports:$.slice(),declarations:n.slice(),exports:n.slice(),entryComponents:[A.DragValidationTooltipComponent],providers:[{provide:m.L10N_PREFIX,useValue:"kendo.gantt"},{provide:y.TOUCH_ENABLED,useValue:f.touchEnabled}]})],X);function X(){}t.GanttModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditItem=function(t,e,n){e=e.find(function(e){return n.extractFromTask(e.data,"id")===n.extractFromTask(t,"id")});return i(e)};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}),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,a=n(3);(n=i=i||{})[n.Digit1=97]="Digit1",n[n.Digit2=98]="Digit2",n[n.Digit3=99]="Digit3",n[n.Digit4=100]="Digit4",t.isArrowUpDownKey=function(t){return[a.Keys.ArrowUp,a.Keys.ArrowDown].some(function(e){return t===e})},t.isNavigationKey=function(t){return[a.Keys.ArrowUp,a.Keys.ArrowDown,a.Keys.Home,a.Keys.End].some(function(e){return t===e})},t.isExpandCollapseKey=function(t,e){return e&&[a.Keys.ArrowLeft,a.Keys.ArrowRight].some(function(e){return t===e})},t.isViewDigitKey=function(t){return[a.Keys.Digit1,i.Digit1,a.Keys.Digit2,i.Digit2,a.Keys.Digit3,i.Digit3,a.Keys.Digit4,i.Digit4].some(function(e){return t===e})},t.getIndexFromViewDigitKeyCode=function(e){switch(e){case i.Digit1:case a.Keys.Digit1:return 0;case i.Digit2:case a.Keys.Digit2:return 1;case i.Digit3:case a.Keys.Digit3:return 2;case i.Digit4:case a.Keys.Digit4:return 3;default:return null}}},function(e,t){e.exports=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.preventDefault=function(){this.prevented=!0},a.prototype.isDefaultPrevented=function(){return this.prevented},a);function a(){this.prevented=!1}t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(0),a=(i=n(90).PreventableEvent,a.__extends(o,i),o);function o(e){var t=i.call(this)||this;return Object.assign(t,e),t}t.CellCloseEvent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.hasChildren=function(){return!1},t.fetchChildren=function(){return i.of([])},t.rowClassCallback=function(){return null},t.taskClassCallback=function(){return null},t.isSelected=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(17),c=n(15),l=n(36),d=n(25),p=n(56),n=n(34),d=(i=s.SpanColumnComponent,o.__extends(u,i),(a=u).prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},o.__decorate([r.ContentChildren(p.GanttColumnComponent),o.__metadata("design:type",r.QueryList)],u.prototype,"childColumns",void 0),o.__decorate([r.ContentChildren(l.CellTemplateDirective,{descendants:!1}),o.__metadata("design:type",r.QueryList)],u.prototype,"template",void 0),o.__decorate([r.ContentChildren(n.EditTemplateDirective,{descendants:!1}),o.__metadata("design:type",r.QueryList)],u.prototype,"editTemplate",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],u.prototype,"locked",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],u.prototype,"lockable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],u.prototype,"editable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],u.prototype,"hidden",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],u.prototype,"media",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"style",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"headerStyle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"footerStyle",void 0),o.__decorate([r.Input("class"),o.__metadata("design:type",Object)],u.prototype,"cssClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"headerClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"footerClass",void 0),a=o.__decorate([r.Component({selector:"kendo-gantt-span-column",template:"",providers:[{provide:d.GanttColumnBase,useExisting:r.forwardRef(function(){return a})}]}),o.__param(1,r.SkipSelf()),o.__param(1,r.Host()),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[c.OptionChangesService,d.GanttColumnBase])],u));function u(e,t){t=i.call(this,t)||this;return t.options=e,t.childColumns=new r.QueryList,t.template=new r.QueryList,t.editTemplate=new r.QueryList,t}t.GanttSpanColumnComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o=n(0),r=n(1),s=n(17),c=n(15),l=n(25),n=n(35),l=(i=s.ColumnGroupComponent,o.__extends(d,i),(a=d).prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},o.__decorate([r.ContentChildren(l.GanttColumnBase),o.__metadata("design:type",r.QueryList)],d.prototype,"children",void 0),o.__decorate([r.ContentChildren(n.HeaderTemplateDirective),o.__metadata("design:type",r.QueryList)],d.prototype,"headerTemplates",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],d.prototype,"locked",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],d.prototype,"lockable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],d.prototype,"hidden",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],d.prototype,"sortable",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],d.prototype,"media",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],d.prototype,"style",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],d.prototype,"headerStyle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],d.prototype,"footerStyle",void 0),o.__decorate([r.Input("class"),o.__metadata("design:type",Object)],d.prototype,"cssClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],d.prototype,"headerClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],d.prototype,"footerClass",void 0),a=o.__decorate([r.Component({selector:"kendo-gantt-column-group",template:"",providers:[{provide:l.GanttColumnBase,useExisting:r.forwardRef(function(){return a})}]}),o.__param(1,r.SkipSelf()),o.__param(1,r.Host()),o.__param(1,r.Optional()),o.__metadata("design:paramtypes",[c.OptionChangesService,l.GanttColumnBase])],d));function d(e,t){var n=i.call(this,t)||this;if(n.options=e,n.children=new r.QueryList,n.locked=!1,n.sortable=!0,t&&t.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent");return n}t.GanttColumnGroupComponent=l},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_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.packageMetadata={name:"@progress/kendo-angular-gantt",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642606197,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(20);t.GanttComponent=a.GanttComponent;a=n(85);t.GanttModule=a.GanttModule;a=n(46);t.GanttHierarchyBindingDirective=a.GanttHierarchyBindingDirective;a=n(47);t.GanttFlatBindingDirective=a.GanttFlatBindingDirective;a=n(45);t.GanttExpandableDirective=a.GanttExpandableDirective;a=n(42);t.DependencyDragCreateDirective=a.DependencyDragCreateDirective;a=n(30);t.GanttTaskTemplateDirective=a.GanttTaskTemplateDirective;a=n(28);t.GanttTaskContentTemplateDirective=a.GanttTaskContentTemplateDirective;a=n(29);t.GanttSummaryTaskTemplateDirective=a.GanttSummaryTaskTemplateDirective;a=n(27);t.ToolbarTemplateDirective=a.ToolbarTemplateDirective;a=n(44);t.SelectableDirective=a.SelectableDirective,i.__exportStar(n(51),t),i.__exportStar(n(37),t),function(e){for(var t in e)o(t,e[t])}(t)}],i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=98)}}});
|