@progress/kendo-angular-gantt 0.3.0-dev.202201111723 → 1.0.0
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 -29
- package/dist/es/common/touch-enabled.js +9 -0
- package/dist/es/dependencies/utils.js +34 -0
- package/dist/es/dragging/dependency-drag-create.directive.js +347 -0
- package/dist/es/dragging/drag-validation-tooltip.component.js +27 -0
- package/dist/es/editing/dependencies-table.component.js +1 -1
- package/dist/es/editing/edit-dialog.component.js +3 -3
- package/dist/es/editing/edit.service.js +4 -2
- package/dist/es/editing/task-fields.component.js +1 -1
- package/dist/es/editing/{util.js → utils.js} +0 -0
- package/dist/es/gantt.component.js +313 -28
- package/dist/es/gantt.module.js +23 -6
- package/dist/es/index.js +5 -0
- package/dist/es/main.js +1 -0
- package/dist/es/models/events/dependency-add-event.interface.js +4 -0
- package/dist/es/models/events/task-delete-event.interface.js +4 -0
- package/dist/es/models/view-item.interface.js +4 -0
- package/dist/es/navigation/navigation-models.js +4 -0
- package/dist/es/navigation/navigation.service.js +390 -0
- package/dist/es/navigation/utils.js +77 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rendering/gantt-milestone-task.component.js +12 -6
- package/dist/es/rendering/gantt-summary-task.component.js +27 -6
- package/dist/es/rendering/gantt-task-base.js +84 -22
- package/dist/es/rendering/gantt-task.component.js +13 -8
- package/dist/es/rendering/gantt-tasks-table-body.component.js +13 -5
- package/dist/es/scrolling/drag-scroll-settings.js +20 -0
- package/dist/es/scrolling/timeline-scroll.directive.js +89 -0
- package/dist/es/scrolling/timeline-scroll.service.js +39 -0
- package/dist/es/scrolling/utils.js +80 -0
- package/dist/es/timeline/gantt-timeline.component.js +50 -4
- package/dist/es/toolbar/toolbar.component.js +12 -13
- package/dist/es/toolbar/view-selector.component.js +1 -1
- package/dist/es/utils.js +153 -12
- package/dist/es2015/common/touch-enabled.d.ts +9 -0
- package/dist/es2015/common/touch-enabled.js +9 -0
- package/dist/es2015/dependencies/utils.d.ts +15 -0
- package/dist/es2015/dependencies/utils.js +34 -0
- package/dist/es2015/dragging/dependency-drag-create.directive.d.ts +72 -0
- package/dist/es2015/dragging/dependency-drag-create.directive.js +324 -0
- package/dist/es2015/dragging/drag-validation-tooltip.component.d.ts +29 -0
- package/dist/es2015/dragging/drag-validation-tooltip.component.js +76 -0
- package/dist/es2015/editing/dependencies-table.component.js +1 -1
- package/dist/es2015/editing/edit-dialog.component.d.ts +1 -1
- package/dist/es2015/editing/edit-dialog.component.js +12 -4
- package/dist/es2015/editing/edit.service.d.ts +2 -3
- package/dist/es2015/editing/edit.service.js +4 -2
- package/dist/es2015/editing/task-fields.component.js +1 -1
- package/dist/es2015/editing/{util.d.ts → utils.d.ts} +2 -2
- package/dist/es2015/editing/{util.js → utils.js} +0 -0
- package/dist/es2015/gantt.component.d.ts +112 -17
- package/dist/es2015/gantt.component.js +292 -30
- package/dist/es2015/gantt.module.js +23 -6
- package/dist/es2015/index.d.ts +5 -0
- package/dist/es2015/index.js +5 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +1 -0
- package/dist/es2015/main.js +1 -0
- package/dist/es2015/models/events/dependency-add-event.interface.d.ts +26 -0
- package/dist/es2015/models/events/dependency-add-event.interface.js +4 -0
- package/dist/es2015/models/events/task-click-event.interface.d.ts +3 -3
- package/dist/es2015/models/events/task-delete-event.interface.d.ts +21 -0
- package/dist/es2015/models/events/task-delete-event.interface.js +4 -0
- package/dist/es2015/models/events/task-edit-event.interface.d.ts +27 -10
- package/dist/es2015/models/models.d.ts +4 -0
- package/dist/es2015/models/view-item.interface.d.ts +35 -0
- package/dist/es2015/models/view-item.interface.js +4 -0
- package/dist/es2015/navigation/navigation-models.d.ts +34 -0
- package/dist/es2015/navigation/navigation-models.js +4 -0
- package/dist/es2015/navigation/navigation.service.d.ts +126 -0
- package/dist/es2015/navigation/navigation.service.js +355 -0
- package/dist/es2015/navigation/utils.d.ts +26 -0
- package/dist/es2015/navigation/utils.js +69 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/gantt-milestone-task.component.d.ts +3 -1
- package/dist/es2015/rendering/gantt-milestone-task.component.js +35 -8
- package/dist/es2015/rendering/gantt-summary-task.component.d.ts +5 -1
- package/dist/es2015/rendering/gantt-summary-task.component.js +47 -8
- package/dist/es2015/rendering/gantt-task-base.d.ts +20 -6
- package/dist/es2015/rendering/gantt-task-base.js +75 -22
- package/dist/es2015/rendering/gantt-task.component.d.ts +4 -2
- package/dist/es2015/rendering/gantt-task.component.js +47 -13
- package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +6 -3
- package/dist/es2015/rendering/gantt-tasks-table-body.component.js +27 -9
- package/dist/es2015/scrolling/drag-scroll-settings.d.ts +47 -0
- package/dist/es2015/scrolling/drag-scroll-settings.js +20 -0
- package/dist/es2015/scrolling/scroll-sync.service.d.ts +1 -1
- package/dist/es2015/scrolling/timeline-scroll.directive.d.ts +24 -0
- package/dist/es2015/scrolling/timeline-scroll.directive.js +78 -0
- package/dist/es2015/scrolling/timeline-scroll.service.d.ts +20 -0
- package/dist/es2015/scrolling/timeline-scroll.service.js +44 -0
- package/dist/es2015/scrolling/utils.d.ts +29 -0
- package/dist/es2015/scrolling/utils.js +80 -0
- package/dist/es2015/timeline/gantt-timeline.component.d.ts +29 -4
- package/dist/es2015/timeline/gantt-timeline.component.js +67 -5
- package/dist/es2015/toolbar/toolbar.component.d.ts +4 -5
- package/dist/es2015/toolbar/toolbar.component.js +12 -13
- package/dist/es2015/toolbar/view-selector.component.js +3 -1
- package/dist/es2015/utils.d.ts +77 -8
- package/dist/es2015/utils.js +153 -12
- package/dist/fesm2015/index.js +3033 -1367
- package/dist/fesm5/index.js +2447 -830
- package/dist/npm/common/touch-enabled.js +11 -0
- package/dist/npm/dependencies/utils.js +34 -0
- package/dist/npm/dragging/dependency-drag-create.directive.js +349 -0
- package/dist/npm/dragging/drag-validation-tooltip.component.js +29 -0
- package/dist/npm/editing/dependencies-table.component.js +1 -1
- package/dist/npm/editing/edit-dialog.component.js +3 -3
- package/dist/npm/editing/edit.service.js +4 -2
- package/dist/npm/editing/task-fields.component.js +1 -1
- package/dist/npm/editing/{util.js → utils.js} +0 -0
- package/dist/npm/gantt.component.js +315 -30
- package/dist/npm/gantt.module.js +22 -5
- package/dist/npm/index.js +10 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/models/events/dependency-add-event.interface.js +6 -0
- package/dist/npm/models/events/task-delete-event.interface.js +6 -0
- package/dist/npm/models/view-item.interface.js +6 -0
- package/dist/npm/navigation/navigation-models.js +6 -0
- package/dist/npm/navigation/navigation.service.js +392 -0
- package/dist/npm/navigation/utils.js +79 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/gantt-milestone-task.component.js +11 -5
- package/dist/npm/rendering/gantt-summary-task.component.js +26 -5
- package/dist/npm/rendering/gantt-task-base.js +84 -22
- package/dist/npm/rendering/gantt-task.component.js +12 -7
- package/dist/npm/rendering/gantt-tasks-table-body.component.js +13 -5
- package/dist/npm/scrolling/drag-scroll-settings.js +22 -0
- package/dist/npm/scrolling/timeline-scroll.directive.js +91 -0
- package/dist/npm/scrolling/timeline-scroll.service.js +41 -0
- package/dist/npm/scrolling/utils.js +83 -0
- package/dist/npm/timeline/gantt-timeline.component.js +49 -3
- package/dist/npm/toolbar/toolbar.component.js +10 -11
- package/dist/npm/toolbar/view-selector.component.js +1 -1
- package/dist/npm/utils.js +153 -12
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +23 -21
package/dist/cdn/main.js
CHANGED
|
@@ -2,32 +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
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-date-math"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@progress/kendo-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-treelist"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-angular-grid")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-common","@progress/kendo-date-math","rxjs","rxjs/operators","@angular/forms","@progress/kendo-common","@angular/common","@progress/kendo-licensing","@progress/kendo-angular-intl","@progress/kendo-angular-treelist","@progress/kendo-data-query","@progress/kendo-angular-layout","@progress/kendo-angular-buttons","@progress/kendo-angular-dialog","@progress/kendo-angular-grid"],t):"object"==typeof exports?exports.KendoAngularGantt=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-date-math"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@progress/kendo-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-treelist"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-angular-grid")):e.KendoAngularGantt=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-common"],e["@progress/kendo-date-math"],e.rxjs,e["rxjs/operators"],e["@angular/forms"],e["@progress/kendo-common"],e["@angular/common"],e["@progress/kendo-licensing"],e["@progress/kendo-angular-intl"],e["@progress/kendo-angular-treelist"],e["@progress/kendo-data-query"],e["@progress/kendo-angular-layout"],e["@progress/kendo-angular-buttons"],e["@progress/kendo-angular-dialog"],e["@progress/kendo-angular-grid"])}(window,(function(e,t,n,i,o,a,r,s,c,d,l,p,u,h,b,m,f){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=51)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return s})),n.d(t,"ComponentMessages",(function(){return c})),n.d(t,"L10N_PREFIX",(function(){return l})),n.d(t,"LocalizationService",(function(){return p})),n.d(t,"RTL",(function(){return d}));var i=n(0),o=n(1),a=n(5),r=n(6),s=function(){function e(){this.changes=new a.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),c=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(r.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),d=new o.InjectionToken("Kendo UI Right-to-Left token"),l=new o.InjectionToken("Localization key prefix"),p=function(){function e(e,t,n){var i=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new a.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(r.map)((function(e){var t=e.rtl;return void 0!==t?t:i._rtl})),Object(r.tap)((function(e){return i._rtl=e}))).subscribe((function(e){i.dictionary={},i.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var i=this.key(e),o=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;o=this.defaultValue(i,t)}this.dictionary[i]=o},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(l)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(d)),Object(i.__metadata)("design:paramtypes",[String,s,Boolean])],e)}()},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=d},function(e,t){e.exports=l},function(e,t,n){"use strict";n.d(t,"c",(function(){return pe})),n.d(t,"a",(function(){return de})),n.d(t,"b",(function(){return he}));var i=n(0),o=n(1),a="bottom",r="center",s="middle",c="left",d="right",l="top",p=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,c=e.margin;void 0===c&&(c={});var l=n.horizontal,p=n.vertical,u=o.horizontal,h=o.vertical,b=c.horizontal||0,m=c.vertical||0,f=t.top,g=t.left;return p===a&&(f+=t.height),p!==r&&p!==s||(f+=Math.round(t.height/2)),h===a&&(f-=i.height,m*=-1),h!==r&&h!==s||(f-=Math.round(i.height/2),m*=-1),l===d&&(g+=t.width),l!==r&&l!==s||(g+=Math.round(t.width/2)),u===d&&(g-=i.width,b*=-1),u!==r&&u!==s||(g-=Math.round(i.width/2),b*=-1),{top:f+m,left:g+b}};function u(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var b=function(e){return h(e).defaultView},m=function(e){return h(e).documentElement},f=0;function g(){if(!f&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),f=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return f}function v(e){var t=b(e),n=m(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=g()),i}var y=function(e){if(!e.getBoundingClientRect){var t=v(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||m(e)},O=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var a=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,a}(e)),{top:i,left:n,height:t.height,width:t.width}},j=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function k(e){var t=m(e),n=b(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var C=function(e){return e===(e.ownerDocument||{}).body?k(e):{x:e.scrollLeft,y:e.scrollTop}};var w=function(e,t){var n=b(e),i=n.getComputedStyle(e),o=O(e),a=t||_(e),r=e.ownerDocument,s=a!==r.body&&a!==r.documentElement,c={top:0,left:0};if("fixed"!==i.position&&s){var d=n.getComputedStyle(a);(c=O(a)).top+=parseInt(d.borderTopWidth,10),c.left+=parseInt(d.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},S=function(e,t){return e?C(e):function(e){var t=_(e);return t?C(t):{x:0,y:0}}(t)},I=function(e,t,n){void 0===n&&(n=1);var i=t?_(t):null,o=w(e,i),a=o.top,r=o.left,s=o.height,c=o.width,d=S(i,e),l=d.x,p=d.y,u=e.ownerDocument,h=i===u.body||i===u.documentElement?1:n;return{top:a+p*h,left:r+l*h,height:s,width:c}};function x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var E="fit",D="flip",T=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},F=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,a=e.anchorAlignPoint,d=e.elementAlignPoint,p=0,u=2*e.margin;if(d!==a&&!(d===r||d===s)&&!(a===r||a===s)){var h=a===l||a===c;t<0&&h?t+(p=n+i+u)+n>o&&(p=0):t>=0&&!h&&(t+n>o&&(p+=-(i+n+u)),t+p<0&&(p=0))}return p},P=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,a=e.collisions,r=e.viewPort,s=e.margin;void 0===s&&(s={});var c=i.top,d=i.left,l=i.height,p=i.width,u=r.height,h=r.width,b=s.horizontal||0,m=s.vertical||0,f=0,g=0,v=a.vertical===E,y=a.horizontal===E,_=a.vertical===D,O=a.horizontal===D;v&&(g+=T(c,l,u)),y&&(f+=T(d,p,h)),_&&(g+=F({margin:m,offset:c,size:l,anchorSize:t.height,viewPortSize:u,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),O&&(f+=F({margin:b,offset:d,size:p,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var j=_&&0!==g,k=O&&0!==f,C=v&&0!==g,w=y&&0!==f;return{flipped:k||j,fitted:C||w,flip:{horizontal:k,vertical:j},fit:{horizontal:w,vertical:C},offset:{left:f,top:g}}},R=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},V=function(e,t){for(var n,i,o=j(e),a=t;a&&(n=R(a),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)a=a.parentElement;return i};B=function(e){if(!N())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},M=!1;var B,A,M,N=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},L=n(2),z=n(5),H=n(6),K=n(13),G=n(10),W=n(9),U=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},$=function(){return"undefined"!=typeof window},q=/auto|scroll/,Z=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var Y=function(e){var t,n=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(t=e.apply(void 0,i),n=!0),t}}((function(){if(!Object(L.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})),X=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},Q=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],J=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return u(e,t)},e.prototype.align=function(e){return p(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return Q.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return $()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?O(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,a=i.top,r=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=O(n);return n.style.left=o,n.style.top=a,n.offsetHeight,n.style.transition=r,s},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?I(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return x(e,t)},e.prototype.restrictToView=function(e){return P(e)},e.prototype.scrollPosition=function(e){return k(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(L.isDocumentAvailable)()||!$())return t;for(var n=e.parentElement;n;)(q.test(Z(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?O(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!Y())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return v(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(L.isDocumentAvailable)()||!$())return null;var n=V(e,t);if(!n)return null;var i=[e].concat(j(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(L.isDocumentAvailable)()&&$()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),ee=new o.InjectionToken("Popup Document Scale"),te=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,a=e.margin,r=e.offset,s=e.positionMode,c=this.scale||1,d="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,r,c):this.relativeRect(t,n,r,c),l=X(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:d,elementAlign:o,elementRect:l,margin:a})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),a=U(this._dom.offset(e),n),r=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=r,s.y/=r);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=r,c.top/=r),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(X(a,i),c),s),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=U(this._dom.position(e,t,i),n);return X(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[J,Number])],e)}(),ne=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,i=e.element,o=e.anchorAlign,a=e.elementAlign,r=e.collisions,s=e.margin,c=this._dom,d=this.scale||1,l=c.offsetAtPoint(i,n),p=X(l,d),u=X(c.offset(t),d),h=U(u,n),b=e.viewPort||c.windowViewPort(i);b.width=b.width/d,b.height=b.height/d;var m=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:r,elementAlign:a,elementRect:p,margin:s,viewPort:b}),f=c.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:f}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(ee)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[J,Number])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(L.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(z.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(H.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[J,o.NgZone])],e)}(),oe=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(L.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(z.fromEvent)(e,"scroll").pipe(Object(H.auditTime)(1e3/60))}));t.subscription=z.merge.apply(void 0,o).subscribe((function(o){var a=o.target,r=i.filter((function(e){return e===a})).length>0,s=a===document,c=a===window;(r||s||c)&&e(t.isVisible(n,a))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[J,o.NgZone])],e)}(),ae={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},re=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var i=t.type||"slide",a=ae[i];if(a){var r=a(this.getDirection(n,t));this.playStates(e,r,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,a=this.animationBuilder.build([Object(K.c)(t.start),Object(K.b)(o+"ms ease-in",Object(K.c)(t.end))]),r=this.player=a.create(e);r.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),r.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[K.a])],e)}(),se={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1641276691,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"},ce={left:-1e4,top:0},de=function(){function e(e,t,n,i,a,r,s,c,d){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=a,this._scrollableService=r,this.animationService=s,this._renderer=c,this._zone=d,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=ce,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(G.validatePackage)(se),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=ce,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(z.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(L.isDocumentAvailable)()){var t,n,i,o,a,r,s=this.position(),c=s.flip,d=s.offset;(!this.currentOffset||(t=this.currentOffset,n=d,i=t.left,o=t.top,a=n.left,r=n.top,Math.abs(i-a)>=1||Math.abs(o-r)>=1))&&(this.currentOffset=d,Object(L.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:d,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(L.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(L.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",L.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[te,re,J,ne,ie,oe],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,te,J,ne,ie,oe,re,o.Renderer2,o.NgZone])],e)}(),le=new o.InjectionToken("Popup Container"),pe=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,i=t.nodes,o=this.appendPopup(i,e.appendTo),a=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var r=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=r)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:a.anchorViewportLeave,popupClose:a.close,popupElement:r,popupOpen:a.open,popupPositionChange:a.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(de,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(le)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),ue=[de],he=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ue],entryComponents:[ue],exports:[ue],imports:[W.CommonModule,L.ResizeSensorModule],providers:[pe]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return o}));
|
|
6
|
-
/**
|
|
7
|
-
* @license Angular v8.2.14
|
|
8
|
-
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
9
|
-
* License: MIT
|
|
10
|
-
*/
|
|
11
|
-
var i=function(){};function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function a(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function r(e){return{type:6,styles:e,offset:null}}function s(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
15
|
-
*
|
|
16
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
17
|
-
* found in the LICENSE file at https://angular.io/license
|
|
18
|
-
*/
|
|
19
|
-
function c(e){Promise.resolve(null).then(e)}
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
23
|
-
*
|
|
24
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
25
|
-
* found in the LICENSE file at https://angular.io/license
|
|
26
|
-
*/(function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;c((function(){return e._onFinish()}))},e.prototype._onStart=function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}})(),function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,i=0,o=0,a=this.players.length;0==a?c((function(){return t._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++n==a&&t._onFinish()})),e.onDestroy((function(){++i==a&&t._onDestroy()})),e.onStart((function(){++o==a&&t._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach((function(e){return e.init()}))},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))},e.prototype.pause=function(){this.players.forEach((function(e){return e.pause()}))},e.prototype.restart=function(){this.players.forEach((function(e){return e.restart()}))},e.prototype.finish=function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))},e.prototype.getPosition=function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e},e.prototype.beforeDestroy=function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}()
|
|
27
|
-
/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
30
|
-
*
|
|
31
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
32
|
-
* found in the LICENSE file at https://angular.io/license
|
|
33
|
-
*/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(8),r=n(57),s=n(58),c=n(16),d=function(){function e(){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS),this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS)}return Object.defineProperty(e.prototype,"taskFields",{get:function(){return this._taskFields},set:function(e){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyFields",{get:function(){return this._dependencyFields},set:function(e){this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),e.prototype.extractFromTask=function(e,t){return c.isPresent(this.taskFields)?a.getter(this.taskFields[t])(e):null},e.prototype.extractFromDependency=function(e,t){return c.isPresent(this.dependencyFields)?a.getter(this.dependencyFields[t])(e):null},e=i.__decorate([o.Injectable()],e)}();t.MappingService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(){this.viewChanges=new o.EventEmitter,this.columnChanges=new o.EventEmitter}return e.prototype.notifyColumnChanges=function(){this.columnChanges.emit()},e.prototype.notifyViewChanges=function(){this.viewChanges.emit()},e=i.__decorate([o.Injectable()],e)}();t.OptionChangesService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(2),a=n(3);t.isWorkDay=function(e,t,n){return e.getDay()>=t&&e.getDay()<=n},t.isWorkHour=function(e,t,n){return e.getHours()>=t&&e.getHours()<=n},t.isPresent=function(e){return null!=e},t.normalizeGanttData=function(e){return t.isPresent(e)?Array.isArray(e.data)?e.data:e:[]},t.isArray=function(e){return Array.isArray(e)},t.setTime=function(e,n,i,o,r){if(void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),!t.isPresent(e))return null;var s=a.cloneDate(e);return s.setHours(n),s.setMinutes(i),s.setSeconds(o),s.setMilliseconds(r),s},t.lastDayOfWeek=function(e,t){var n=a.addWeeks(e,1),i=a.firstDayInWeek(n,t);return a.addDays(i,-1)},t.scrollbarWidth=function(){if(o.isDocumentAvailable()){if(isNaN(i)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),i=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return i}},t.isColumnGroup=function(e){return e.isColumnGroup},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isString=function(e){return"string"==typeof e},t.getClosestTask=function(e,t){return o.closestInScope(e,o.matchesClasses("k-task"),t)},t.getClosestTaskIndex=function(e,n){var i=o.closestInScope(e,o.matchesClasses("k-task"),n);return t.isPresent(i)?Number(i.getAttribute("data-task-index")):null},t.isTask=function(e,n){var i=o.closestInScope(e,o.matchesClasses("k-task"),n);return t.isPresent(i)},t.isClearButton=function(e,n){var i=o.closestInScope(e,o.matchesClasses("k-task-actions"),n);return t.isPresent(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(14),s=function(){function e(e){this.mapper=e,this.notifier=new a.Subject,this.tasks=new Map}return Object.defineProperty(e.prototype,"taskChanges",{get:function(){return this.notifier.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyDomArgs",{get:function(){return{tasks:this.tasks,contentContainer:this.contentContainer,timelineRow:this.timelineRow}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.tasks.clear(),this.tasks=null,this.contentContainer=null},e.prototype.registerTimelineRow=function(e){this.timelineRow=e,this.notifyChanges()},e.prototype.registerContentContainer=function(e){this.contentContainer=e,this.notifyChanges()},e.prototype.registerTask=function(e,t){var n=this.mapper.extractFromTask(e,"id");this.tasks.set(n,t),this.notifyChanges()},e.prototype.unregisterTask=function(e){var t=this.mapper.extractFromTask(e,"id");this.tasks.delete(t),this.notifyChanges()},e.prototype.notifyChanges=function(){this.notifier.next(this.dependencyDomArgs)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.MappingService])],e)}();t.DependencyDomService=s},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(14),s=n(6),c=n(16),d=function(){function e(e){var t=this;this.mapper=e,this.showEditingDialog=new a.Subject,this.showConfirmationDialog=new a.Subject,this.editEvent=new a.Subject,this.addEvent=new a.Subject,this.updatedItems=[],this.deletedItems=[],this.itemIndex=function(e,n){return n.findIndex((function(n){return t.mapper.extractFromTask(n,"id")===t.mapper.extractFromTask(e,"id")}))}}return Object.defineProperty(e.prototype,"dependencies",{get:function(){return this.predecessors.concat(this.successors)},set:function(e){var t=this,n=this.mapper.extractFromTask(this.dataItem,"id");this.predecessors=e.filter((function(e){return t.mapper.extractFromDependency(e,"toId")===n})),this.successors=e.filter((function(e){return t.mapper.extractFromDependency(e,"fromId")===n}))},enumerable:!0,configurable:!0}),e.prototype.createEditDialog=function(e,t,n){this.dataItem=e,this.taskFormGroup=t,this.dependencies=n,this.showEditingDialog.next(!0)},e.prototype.closeEditDialog=function(){this.showEditingDialog.next(!1),this.dataItem=void 0,this.taskFormGroup=void 0,this.dependencies=[],this.updatedItems=[],this.deletedItems=[]},e.prototype.triggerEditEvent=function(e){this.editEvent.next({taskFormGroup:this.taskFormGroup,dataItem:this.dataItem,dependencies:{createdItems:this.getCreatedDependencies(),updatedItems:this.updatedItems,deletedItems:this.deletedItems},editResultType:e})},e.prototype.updateDependencies=function(e){if(!this.isNew(e)){var t=this.itemIndex(e,this.updatedItems);-1!==t?this.updatedItems.splice(t,1,e):this.updatedItems.push(e)}},e.prototype.getCreatedDependencies=function(){var e=this;return this.dependencies.filter((function(t){return null===e.mapper.extractFromDependency(t,"id")}))},e.prototype.deleteDependency=function(e){var t=this.itemIndex(e,this.updatedItems);-1!==t&&this.updatedItems.splice(t,1),this.isNew(e)||this.deletedItems.push(e)},e.prototype.loadTasks=function(e,t){var n=this;return void 0===t&&(t=!0),a.forkJoin(e.map((function(e){return n.getElementById(e)}))).pipe(s.map((function(e){return e.reduce((function(e,t){return e.concat(c.normalizeGanttData(t))}),[])})),s.expand((function(e){return e.some((function(e){return n.hasChildren(e)}))?n.loadTasks(e,!1):a.EMPTY})),s.reduce((function(e,t){return e.concat(t)}),t?e.slice():[]))},e.prototype.getElementById=function(e){var t=this.fetchChildren(e);return a.isObservable(t)?t:a.of(t)},e.prototype.isNew=function(e){return!c.isPresent(this.mapper.extractFromDependency(e,"id"))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.MappingService])],e)}();t.EditService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(18),r=(n(3),n(5)),s=n(10),c=n(52),d=n(2),l=n(25),p=n(55),u=n(22),h=n(43),b=n(45),m=n(44),f=n(30),g=n(17),v=n(14),y=n(15),_=n(19),O=n(4),j=n(16),k=n(59),C=n(31),w=n(32),S=n(33),I=n(34),x=n(23),E=n(60),D=n(35),T=function(){function e(e,t,n,a,d,l,u,h,b,m){var f=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=a,this.optionChangesService=d,this.dependencyDomService=l,this.editService=u,this.localizationService=h,this.hostElement=b,this.zone=m,this.hostClasses=!0,this.isSelected=p.isSelected,this.selectionChange=new o.EventEmitter,this.selectable=!1,this.dependencies=[],this.sortable=!1,this.sort=[],this.filterable=!1,this.workDayStart="08:00",this.workDayEnd="17:00",this.workWeekStart=1,this.workWeekEnd=5,this.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new o.EventEmitter,this.taskDblClick=new o.EventEmitter,this.cellDblClick=new o.EventEmitter,this.cellClose=new o.EventEmitter,this.taskDelete=new o.EventEmitter,this.rowCollapse=new o.EventEmitter,this.remove=new o.EventEmitter,this.cancel=new o.EventEmitter,this.save=new o.EventEmitter,this.taskAdd=new o.EventEmitter,this.sortChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.dataStateChange=new o.EventEmitter,this.treeListPaneCollapsedChange=new o.EventEmitter,this.timelinePaneCollapsedChange=new o.EventEmitter,this.timelinePaneSizeChange=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.columnResize=new o.EventEmitter,this.columnReorder=new o.EventEmitter,this.columnVisibilityChange=new o.EventEmitter,this.columnLockedChange=new o.EventEmitter,this.cellClick=new o.EventEmitter,this.taskClick=new o.EventEmitter,this.expandStateChange=new o.EventEmitter,this.showEditingDialog=!1,this.showConfirmationDialog=!1,this._columns=new o.QueryList,this._data=[],this._timelinePaneOptions=i.__assign({},k.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=i.__assign({},k.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=p.rowClassCallback,this._taskClass=p.taskClassCallback,this._activeView="week",this._toolbarSettings={position:"top",addTaskTool:"none",viewSelectorTool:"top"},this._fetchChildren=p.fetchChildren,this._hasChildren=p.hasChildren,this.rtl=!1,this.optionChangesSubscriptions=new r.Subscription,this.editServiceSubscription=new r.Subscription,s.validatePackage(c.packageMetadata),this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe((function(){f.loadTimelineData()}))),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe((function(){f.treeList.columns.notifyOnChanges()}))),this.editService.getSelectedItem=this.getFirstSelectedItem.bind(this),this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe((function(e){return f.showEditingDialog=e}))),this.editServiceSubscription.add(this.editService.showConfirmationDialog.subscribe((function(){return f.taskDelete.emit()}))),this.editServiceSubscription.add(this.editService.editEvent.subscribe((function(e){f[e.editResultType].emit({taskFormGroup:e.taskFormGroup,item:E.getEditItem(e.dataItem,f.treeList.view.data,f.mapper),dependencies:e.dependencies,sender:f}),f.showConfirmationDialog=f.showEditingDialog=!1,f.editService.dataItem=f.editService.taskFormGroup=null,f.updateView()}))),this.editServiceSubscription.add(this.editService.addEvent.subscribe((function(e){var t=f.getFirstSelectedItem();f.taskAdd.emit({actionType:e.actionType,selectedItem:t?E.getEditItem(t,f.treeList.view.data,f.mapper):null}),f.updateView()}))),this.localizationSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;f.rtl=t,f.direction=f.rtl?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"toolbarTemplate",{get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.updateTreeListGroupClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskModelFields",{set:function(e){this.mapper.taskFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyModelFields",{set:function(e){this.mapper.dependencyFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeView",{get:function(){var e=this;return this.views.find((function(t){return t.type===e._activeView}))?this._activeView:this.views.first.type},set:function(e){this._activeView=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=j.normalizeGanttData(e),this.loadTimelineData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbarSettings",{get:function(){return this._toolbarSettings},set:function(e){this._toolbarSettings={position:e.position||"top",addTaskTool:e.addTaskTool||"none",viewSelectorTool:e.viewSelectorTool||"top"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchChildren",{get:function(){return this._fetchChildren},set:function(e){this._fetchChildren=e,this.editService.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren},set:function(e){this._hasChildren=e,this.editService.hasChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timelinePaneOptions",{get:function(){return i.__assign({},this._timelinePaneOptions,{size:this.treeListPaneOptions.collapsed?"100%":this._timelinePaneOptions.size})},set:function(e){this._timelinePaneOptions.collapsed&&!e.collapsed&&this.dependencyDomService.notifyChanges(),this._timelinePaneOptions=i.__assign({},k.DEFAULT_TIMELINE_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeListPaneOptions",{get:function(){return this._treeListPaneOptions},set:function(e){this._treeListPaneOptions=i.__assign({},k.DEFAULT_TREELIST_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskClass",{get:function(){return this._taskClass},set:function(e){if(o.isDevMode()&&"function"!=typeof e)throw new Error("taskClass must be a function, but received "+JSON.stringify(e)+".");this._taskClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowClass",{get:function(){return this._rowClass},set:function(e){if(o.isDevMode()&&"function"!=typeof e)throw new Error("rowClass must be a function, but received "+JSON.stringify(e)+".");this._rowClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskIdField",{get:function(){return this.mapper.taskFields.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedTreeListItems",{get:function(){return j.isPresent(this.treeList)?this.treeList.view.data.map((function(e){return e.data})):[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterMenu",{get:function(){return!!this.filterable&&"menu"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewService",{get:function(){return this.views&&this.views.length?this.timelineViewService.service(this.activeView):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTaskSelected",{get:function(){return this.selectable?this.isSelected:p.isSelected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idGetter",{get:function(){if(j.isPresent(this.treeList))return this.treeList.idGetter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewTypes",{get:function(){return this.views.map((function(e){return e.type}))},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){d.anyChanged(["data","activeView","workWeekStart","workWeekEnd","workDayStart","workDayEnd"],e)&&this.loadTimelineData()},e.prototype.ngAfterViewInit=function(){this.updateTreeListMargin();var e=this.treeList.wrapper.nativeElement.querySelector("kendo-treelist-list > div");this.scrollSyncService.registerElement(e,"treelist")},e.prototype.ngAfterContentInit=function(){if(o.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-gantt>. Please, declare at least one view.");this.loadTimelineData(),this.updateTreeListGroupClass()},e.prototype.ngOnDestroy=function(){this.optionChangesSubscriptions.unsubscribe(),this.editServiceSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe()},e.prototype.autoFitColumn=function(e){j.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},e.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),j.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},e.prototype.reload=function(e,t){j.isPresent(this.treeList)&&this.treeList.reload(e,t)},e.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),j.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},e.prototype.updateView=function(){j.isPresent(this.treeList)&&this.treeList.updateView(),this.loadTimelineData(),this.dependencyDomService.notifyChanges()},e.prototype.editTask=function(e,t){var n=this;if(!this.showEditingDialog){var i=this.mapper.extractFromTask(e,"id"),o=this.dependencies.filter((function(e){return n.mapper.extractFromDependency(e,"toId")===i||n.mapper.extractFromDependency(e,"fromId")===i}));this.editService.createEditDialog(e,t,o)}},e.prototype.closeTaskDialog=function(){this.showEditingDialog&&this.editService.closeEditDialog()},e.prototype.openConfirmationDialog=function(){this.showConfirmationDialog=!0},e.prototype.editCell=function(e,t,n){this.treeList.editCell(e,t,n)},e.prototype.closeCell=function(){this.treeList.closeCell()},e.prototype.handleCellClose=function(e){this.cellClose.emit(Object.assign(e,{item:this.editItem,sender:this})),this.dependencyDomService.notifyChanges()},e.prototype.onTreeListCollapsedChange=function(e){this.treeListPaneCollapsedChange.emit(e),e||this.scrollSyncService.syncScrollTop("timeline","treelist")},e.prototype.onTimelineCollapsedChange=function(e){this.timelinePaneCollapsedChange.emit(e),e||(this.scrollSyncService.syncScrollTop("treelist","timeline"),this.dependencyDomService.notifyChanges())},e.prototype.loadTimelineData=function(){if(j.isPresent(this.viewService)){var e=this.getActiveViewOptions();this.viewService.options=i.__assign({workWeekStart:this.workWeekStart,workWeekEnd:this.workWeekEnd,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd},e),this.tableWidth=this.viewService.getTableWidth(this.data);var t=this.viewService.getSlots(this.data),n=t[0],o=t[1];this.timelineSlots=o,this.timelineGroupSlots=n}},e.prototype.showToolbar=function(e){return"none"!==this.toolbarSettings.position&&[e,"both"].indexOf(this.toolbarSettings.position)>-1},e.prototype.handleColumnVisibilityChange=function(e){this.columnVisibilityChange.emit(e),this.updateTreeListGroupClass()},e.prototype.onTimelinePaneSizeChange=function(e){this._timelinePaneOptions.size=e,this.timelinePaneSizeChange.emit(e)},e.prototype.handleTimelineRightClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(j.isTask(n,i)&&!j.isClearButton(n,i)&&d.hasObservers(this.taskClick)){var o=j.getClosestTaskIndex(n,i),a=this.renderedTreeListItems[o];this.zone.run((function(){return t.emitTaskClick(e,a,o)}))}},e.prototype.handleTimelineClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(j.isTask(n,i)&&!j.isClearButton(n,i)){var o=j.getClosestTaskIndex(n,i),a=this.renderedTreeListItems[o],r=this.getSelectionAction(e,a);(d.hasObservers(this.selectionChange)&&!this.isSameSelection(r,a)||d.hasObservers(this.taskClick))&&this.zone.run((function(){t.emitSelectionChange(a,r),t.emitTaskClick(e,a,o)}))}},e.prototype.handleTreeListDoubleClick=function(e){var t=this;j.isPresent(this.lastTreeListCellClick)&&e.target===this.lastTreeListCellClick.originalEvent.target&&(this.editItem=E.getEditItem(this.lastTreeListCellClick.dataItem,this.treeList.view.data,this.mapper),d.hasObservers(this.cellDblClick)&&this.zone.run((function(){t.cellDblClick.emit({column:t.lastTreeListCellClick.column,columnIndex:t.lastTreeListCellClick.columnIndex,dataItem:t.lastTreeListCellClick.dataItem,isEdited:t.lastTreeListCellClick.isEdited,originalEvent:t.lastTreeListCellClick.originalEvent,rowIndex:t.lastTreeListCellClick.rowIndex,type:"dblclick",sender:t})})))},e.prototype.handleTreeListSelectionChange=function(e){if(!j.isPresent(this.lastTreeListCellClick)||"contextmenu"!==this.lastTreeListCellClick.type){var t=e.items.map((function(e){return e.dataItem}))[0],n=e.action;this.emitSelectionChange(t,n)}},e.prototype.handleTreeListCellClick=function(e){this.lastTreeListCellClick=e,this.cellClick.emit({column:e.column,columnIndex:e.columnIndex,dataItem:e.dataItem,isEdited:e.isEdited,originalEvent:e.originalEvent,rowIndex:e.rowIndex,type:e.type,sender:this})},e.prototype.handleDeleteConfirmation=function(){this.editService.triggerEditEvent("remove")},e.prototype.handleTimelineMouseDown=function(e){var t=e.target,n=this.hostElement.nativeElement;j.isTask(t,n)&&!j.isClearButton(t,n)&&e.preventDefault()},e.prototype.handleTimelineDblClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(j.isTask(n,i)&&!j.isClearButton(n,i)&&d.hasObservers(this.taskDblClick)){var o=j.getClosestTaskIndex(n,i),a=this.renderedTreeListItems[o];this.zone.run((function(){return t.taskDblClick.emit({dataItem:a,originalEvent:e,sender:t,rowIndex:o,type:"dblclick"})}))}},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.emitTaskClick=function(e,t,n){this.taskClick.emit({originalEvent:e,dataItem:t,rowIndex:n,type:e.type,sender:this})},e.prototype.emitSelectionChange=function(e,t){this.isSameSelection(t,e)||(this.selectionChange.emit({action:t,items:[e],sender:this}),this.treeList.updateView())},e.prototype.updateTreeListGroupClass=function(e){(void 0===e&&(e=this.columns),j.isPresent(this.treeList))&&(j.isPresent(e)&&e.length>0&&e.some((function(e){return j.isColumnGroup(e)&&e.childrenArray.some((function(e){return e.isVisible}))}))?this.renderer.addClass(this.treeList.wrapper.nativeElement,"k-gantt-treelist-nested-columns"):this.renderer.removeClass(this.treeList.wrapper.nativeElement,"k-gantt-treelist-nested-columns"))},e.prototype.updateTreeListMargin=function(){var e=this.treeList.wrapper.nativeElement.querySelector(".k-treelist .k-grid-content");this.renderer.setStyle(e,"margin-right",-Math.abs(j.scrollbarWidth()-1)+"px")},e.prototype.getActiveViewOptions=function(){var e=this;if(this.views)return this.views.find((function(t){return t.type===e.activeView}))},e.prototype.isSameSelection=function(e,t){return"select"===e&&this.isSelected(t)},e.prototype.getSelectionAction=function(e,t){var n=e.ctrlKey,i=e.metaKey;return(n||i)&&this.isSelected(t)?"remove":"select"},e.prototype.getFirstSelectedItem=function(){var e=this.isSelected||p.isSelected;return(this.renderedTreeListItems||[]).find(e)},i.__decorate([o.ViewChild(a.TreeListComponent,{static:!0}),i.__metadata("design:type",a.TreeListComponent)],e.prototype,"treeList",void 0),i.__decorate([o.ContentChild(S.GanttTaskContentTemplateDirective,{static:!0}),i.__metadata("design:type",S.GanttTaskContentTemplateDirective)],e.prototype,"taskContentTemplate",void 0),i.__decorate([o.ContentChild(C.GanttTaskTemplateDirective,{static:!0}),i.__metadata("design:type",C.GanttTaskTemplateDirective)],e.prototype,"taskTemplate",void 0),i.__decorate([o.ContentChild(w.GanttSummaryTaskTemplateDirective,{static:!0}),i.__metadata("design:type",w.GanttSummaryTaskTemplateDirective)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.ContentChildren(I.ToolbarTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"toolbarTemplateChildren",void 0),i.__decorate([o.HostBinding("class.k-gantt"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([o.ContentChildren(l.GanttColumnBase),i.__metadata("design:type",o.QueryList),i.__metadata("design:paramtypes",[o.QueryList])],e.prototype,"columns",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"taskModelFields",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dependencyModelFields",null),i.__decorate([o.ContentChildren(x.ViewBase),i.__metadata("design:type",o.QueryList)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeView",null),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"toolbarSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"fetchChildren",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"sortable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"sort",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"workDayStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"workDayEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"timelinePaneOptions",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"treeListPaneOptions",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"taskClass",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"rowClass",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsAutoSize",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"columnMenu",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsReorderable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsResizable",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"rowExpand",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskDblClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellDblClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellClose",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskDelete",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"rowCollapse",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"remove",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"save",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskAdd",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"sortChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"dataStateChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"treeListPaneCollapsedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"timelinePaneCollapsedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"timelinePaneSizeChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnResize",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnReorder",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnVisibilityChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"columnLockedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"taskClick",void 0),e=t=i.__decorate([o.Component({selector:"kendo-gantt",exportAs:"kendoGantt",providers:[D.GanttLocalizationService,O.LocalizationService,{provide:a.DataBoundTreeComponent,useExisting:o.forwardRef((function(){return t}))},{provide:a.ExpandableTreeComponent,useExisting:o.forwardRef((function(){return t}))},u.TimelineViewService,h.TimelineDayViewService,b.TimelineWeekViewService,m.TimelineMonthViewService,f.ScrollSyncService,g.DependencyDomService,v.MappingService,y.OptionChangesService,_.EditService],template:'\n <ng-container kendoGanttLocalizedMessages\n i18n-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 [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 [rows]="renderedTreeListItems"\n [slots]="timelineSlots"\n [groupSlots]="timelineGroupSlots"\n [tableWidth]="tableWidth"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate?.templateRef"\n [taskTemplate]="taskTemplate?.templateRef"\n [summaryTaskTemplate]="summaryTaskTemplate?.templateRef"\n [taskClass]="taskClass"\n [dependencies]="dependencies"\n [hasChildren]="hasChildren"\n [isTaskSelected]="isTaskSelected"\n [kendoEventsOutsideAngular]="{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }"\n [scope]="this"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'bottom\')"\n [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)="showConfirmationDialog = false;">\n <span>{{ getText(\'confirmationDialogContent\') }}</span>\n <kendo-dialog-actions layout="normal">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleDeleteConfirmation()">{{ getText(\'deleteButtonText\') }}</button>\n <button kendoButton (click)="showConfirmationDialog = false;">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[u.TimelineViewService,f.ScrollSyncService,o.Renderer2,v.MappingService,y.OptionChangesService,g.DependencyDomService,_.EditService,O.LocalizationService,o.ElementRef,o.NgZone])],e)}();t.GanttComponent=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.locked=!1,t}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t}(n(18).ColumnBase);t.GanttColumnBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(43),r=n(44),s=n(45),c={day:a.TimelineDayViewService,week:s.TimelineWeekViewService,month:r.TimelineMonthViewService},d=function(){function e(e){this.injector=e,this.viewChange=new o.EventEmitter}return e.prototype.service=function(e){var t=c[e];return t?this.injector.get(t):null},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.Injector])],e)}();t.TimelineViewService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(2),r=function(){function e(e,t){this.optionChangesService=e,this.dependencyDomService=t,this.slotWidth=100}return e.prototype.ngOnChanges=function(e){a.anyChanged(["slotWidth"],e)&&(this.optionChangesService.notifyColumnChanges(),this.dependencyDomService.notifyChanges())},i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"slotWidth",void 0),e}();t.ViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.FF=0]="FF",e[e.FS=1]="FS",e[e.SF=2]="SF",e[e.SS=3]="SS"}(t.DependencyType||(t.DependencyType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21);t.GanttColumnBase=i.GanttColumnBase;var o=n(38);t.GanttColumnComponent=o.GanttColumnComponent;var a=n(53);t.GanttColumnGroupComponent=a.GanttColumnGroupComponent;var r=n(54);t.GanttSpanColumnComponent=r.GanttSpanColumnComponent;var s=n(26);t.CellTemplateDirective=s.CellTemplateDirective;var c=n(27);t.HeaderTemplateDirective=c.HeaderTemplateDirective;var d=n(42);t.FooterTemplateDirective=d.FooterTemplateDirective;var l=n(39);t.ColumnMenuTemplateDirective=l.ColumnMenuTemplateDirective;var p=n(40);t.FilterCellTemplateDirective=p.FilterCellTemplateDirective;var u=n(41);t.FilterMenuTemplateDirective=u.FilterMenuTemplateDirective;var h=n(28);t.EditTemplateDirective=h.EditTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttCellTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.CellTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttHeaderTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.HeaderTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttEditTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.EditTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),o=n(16),a=n(3);t.DAY_FORMAT="E d/MM",t.HOUR_FORMAT="HH:mm aa",t.MONTH_FORMAT="MMM";var r=function(){function e(e,t){this.intlService=e,this.mapper=t,this._viewStart=0}return Object.defineProperty(e.prototype,"viewStart",{get:function(){return this._viewStart},enumerable:!0,configurable:!0}),e.prototype.getRange=function(e){if(!e||!e.length)return{start:new Date,end:new Date};var t=i.orderBy(e,[{field:this.mapper.taskFields.start,dir:"asc"}]),n=i.orderBy(e,[{field:this.mapper.taskFields.end,dir:"desc"}]),o=this.intlService.firstDay(),a=this.mapper.extractFromTask(t[0],"start")||new Date,r=this.mapper.extractFromTask(n[0],"end")||new Date;o===r.getDay()&&r.setDate(r.getDate()+7);var s=this.getStartOffset(a),c=this.getEndOffset(r);return this._viewStart=Number(s),{start:new Date(s),end:new Date(c)}},e.prototype.getHours=function(e,n){for(var i=[],a=this.intlService.parseDate(this.options.workDayStart).getHours(),r=this.intlService.parseDate(this.options.workDayEnd).getHours(),s=new Date(e),c=new Date(n);s<c;){var d=new Date(s),l=o.isWorkHour(d,a,r);d.setHours(d.getHours()+1),i.push({start:s,end:d,isWorking:l,text:this.intlService.formatDate(s,t.HOUR_FORMAT),span:1}),s=d}return i},e.prototype.getDays=function(e,n){for(var i=[],r=new Date(e),s=new Date(n);r<=s;){var c=a.getDate(a.addDays(r,1)),d=o.isWorkDay(r,this.options.workWeekStart,this.options.workWeekEnd),l=s<c?s:c;i.push({start:r,end:l,isWorking:d,text:this.intlService.formatDate(r,t.DAY_FORMAT),span:1}),r=c}return i},e.prototype.getWeeks=function(e,n){for(var i=this.intlService.firstDay(),r=[],s=new Date(e),c=new Date(n);s<=c;){var d=o.lastDayOfWeek(s,i),l=d>c?c:d,p=this.getDays(s,l),u=p.length,h=this.intlService.formatDate(a.firstDayInWeek(a.getDate(s),i),t.DAY_FORMAT),b=this.intlService.formatDate(a.addDays(l,-1),t.DAY_FORMAT);u>0&&r.push({start:p[0].start,end:p[u-1].end,text:h+" - "+b,span:u}),s=a.firstDayInWeek(a.addWeeks(l,1))}return r},e.prototype.getMonths=function(e,n){for(var i=[],o=new Date(e),r=new Date(n);o<r;){var s=a.lastDayOfMonth(o),c=r<s?r:s,d=this.getDays(o,c),l=d.length,p=a.firstDayOfMonth(a.getDate(o)),u=this.intlService.formatDate(p,t.MONTH_FORMAT);l>0&&i.push({start:d[0].start,end:d[l-1].end,span:l,text:u}),o=a.firstDayOfMonth(a.addMonths(c,1))}return i},e}();t.TimelineBaseViewService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(6),s=function(){function e(e){var t=this;this.ngZone=e,this.changes=new a.Subject,this.elements=[],this.subscriptions=new a.Subscription,this.subscriptions.add(this.changes.subscribe((function(e){t.scroll(e)})))}return e.prototype.registerElement=function(e,t){var n=this;this.elements.push({element:e,sourceType:t}),"timeline"!==t&&"treelist"!==t||this.ngZone.runOutsideAngular((function(){var i=a.fromEvent(e,"scroll").pipe(r.map((function(e){var n=e.target;return{scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,sourceType:t}}))),o="timeline"===t?function(e,t){return e.scrollTop===t.scrollTop&&e.scrollLeft===t.scrollLeft}:function(e,t){return e.scrollTop===t.scrollTop};n.subscriptions.add(i.pipe(r.distinctUntilChanged(o)).subscribe((function(e){return n.changes.next(e)})))}))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.elements=null},e.prototype.syncScrollTop=function(e,t){var n=this.elements.find((function(t){return t.sourceType===e})),i=this.elements.find((function(e){return e.sourceType===t}));this.ngZone.onStable.pipe(r.take(1)).subscribe((function(){return i.element.scrollTop=n.element.scrollTop}))},e.prototype.resetTimelineScrollLeft=function(){this.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollLeft=0},e.prototype.scroll=function(e){var t=this,n=e.scrollTop,i=e.scrollLeft,o=e.sourceType;this.ngZone.runOutsideAngular((function(){if("timeline"===o){if(t.elements.find((function(e){return"header"===e.sourceType})).element.scrollLeft=i,!t.syncingTimeline)t.syncingTreeList=!0,t.elements.find((function(e){return"treelist"===e.sourceType})).element.scrollTop=n;t.syncingTimeline=!1}if("treelist"===o){if(!t.syncingTreeList)t.syncingTimeline=!0,t.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollTop=n;t.syncingTreeList=!1}}))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone])],e)}();t.ScrollSyncService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttTaskTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.GanttTaskTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttSummaryTaskTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.GanttSummaryTaskTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttTaskContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.GanttTaskContentTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e,this._position="top"}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),i.__decorate([o.Input("position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([o.Directive({selector:"[kendoGanttToolbarTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ToolbarTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=function(){function e(e){this.localizationService=e}return e.prototype.get=function(e){return this.localizationService.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.GanttLocalizationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(3),r=n(5),s=n(16),c={day:a.MS_PER_HOUR,week:a.MS_PER_DAY,month:7*a.MS_PER_DAY},d=function(){function e(e,t,n,i,o){var a=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=o,this.wrapperClass=!0,this.viewChangesSubscription=new r.Subscription,this.viewChangesSubscription.add(this.optionChangesService.viewChanges.subscribe((function(){a.cdr.markForCheck()})))}return Object.defineProperty(e.prototype,"slotUnitDuration",{get:function(){return c[this.activeView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewService",{get:function(){return this.timelineViewService.service(this.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slotWidth",{get:function(){return this.viewService.options.slotWidth},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){s.isPresent(e.dataItem)?(s.isPresent(e.dataItem.previousValue)&&this.dependencyDomService.unregisterTask(e.dataItem.previousValue),this.dependencyDomService.registerTask(this.dataItem,this.taskElement.nativeElement)):s.isPresent(e.activeView)&&this.dependencyDomService.notifyChanges()},e.prototype.ngOnDestroy=function(){s.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.viewChangesSubscription.unsubscribe()},Object.defineProperty(e.prototype,"taskWidth",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"end")-this.mapper.extractFromTask(this.dataItem,"start"))/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskOffset",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"start")-this.viewService.viewStart)/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"completionOverlayWidth",{get:function(){var e=this.taskWidth*this.mapper.extractFromTask(this.dataItem,"completionRatio");return s.isNumber(e)?e:0},enumerable:!0,configurable:!0}),i.__decorate([o.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClass",void 0),i.__decorate([o.ViewChild("task",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"taskElement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),e}();t.GanttTaskBase=d},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return rn})),n.d(t,"ColorInputComponent",(function(){return Lt})),n.d(t,"ContrastValidationComponent",(function(){return Jt})),n.d(t,"ContrastComponent",(function(){return en})),n.d(t,"FocusOnDomReadyDirective",(function(){return Qt})),n.d(t,"ColorGradientLocalizationService",(function(){return Nt})),n.d(t,"ColorPaletteLocalizationService",(function(){return Ut})),n.d(t,"ColorPickerLocalizationService",(function(){return Mt})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return Yt})),n.d(t,"ColorPickerMessages",(function(){return Zt})),n.d(t,"ColorPaletteService",(function(){return Wt})),n.d(t,"MaskingService",(function(){return Ue})),n.d(t,"NumericTextBoxMessages",(function(){return Ve})),n.d(t,"RadioButtonModule",(function(){return cn})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return ot})),n.d(t,"RangeSliderMessages",(function(){return nt})),n.d(t,"SHARED_DIRECTIVES",(function(){return _t})),n.d(t,"SliderCustomMessagesComponent",(function(){return et})),n.d(t,"SliderMessages",(function(){return Qe})),n.d(t,"SliderBase",(function(){return me})),n.d(t,"SlidersCommonModule",(function(){return Xe})),n.d(t,"SwitchCustomMessagesComponent",(function(){return ct})),n.d(t,"Messages",(function(){return rt})),n.d(t,"TextFieldsBase",(function(){return kt})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return gt})),n.d(t,"TextBoxMessages",(function(){return ft})),n.d(t,"SliderComponent",(function(){return fe})),n.d(t,"RangeSliderComponent",(function(){return ve})),n.d(t,"LabelTemplateDirective",(function(){return be})),n.d(t,"SwitchComponent",(function(){return ye})),n.d(t,"TextBoxContainerComponent",(function(){return ke})),n.d(t,"TextBoxDirective",(function(){return Ce})),n.d(t,"TextAreaDirective",(function(){return _e})),n.d(t,"NumericTextBoxComponent",(function(){return Re})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Be})),n.d(t,"MaskedTextBoxComponent",(function(){return qe})),n.d(t,"InputsModule",(function(){return mn})),n.d(t,"SliderTicksComponent",(function(){return Ye})),n.d(t,"SliderModule",(function(){return tt})),n.d(t,"RangeSliderModule",(function(){return at})),n.d(t,"SwitchModule",(function(){return dt})),n.d(t,"NumericTextBoxModule",(function(){return pt})),n.d(t,"MaskedTextBoxModule",(function(){return ut})),n.d(t,"TextBoxModule",(function(){return jt})),n.d(t,"TextAreaModule",(function(){return It})),n.d(t,"ColorPickerComponent",(function(){return Gt})),n.d(t,"ColorPaletteComponent",(function(){return qt})),n.d(t,"ColorGradientComponent",(function(){return Ht})),n.d(t,"ColorPickerModule",(function(){return on})),n.d(t,"ActiveColorClickEvent",(function(){return Et})),n.d(t,"CheckBoxDirective",(function(){return an})),n.d(t,"RadioButtonDirective",(function(){return sn})),n.d(t,"HintComponent",(function(){return un})),n.d(t,"ErrorComponent",(function(){return ln})),n.d(t,"FormFieldComponent",(function(){return hn})),n.d(t,"FormFieldModule",(function(){return bn})),n.d(t,"TextBoxComponent",(function(){return mt})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return bt})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return ht})),n.d(t,"TextAreaComponent",(function(){return wt})),n.d(t,"TextAreaSuffixComponent",(function(){return St})),n.d(t,"InputSeparatorComponent",(function(){return yt})),n.d(t,"SharedModule",(function(){return Ot})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return Xt})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return lt})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return vt})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return Je})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return it})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return st}));var i=n(0),o=n(1),a=n(7),r=n(5),s=n(6),c=n(4),d=n(2),l=n(10),p=n(8),u=n(11),h=n(9),b=n(12),m=function(){};var f=null,g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v={get browser(){return"undefined"==typeof window||f?f:f=function(e){var t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},n={};for(var i in t)if(t.hasOwnProperty(i)){var o=e.match(t[i]);if(o){n[i]=!0,n[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||o[2],10);break}}return n}(window.navigator.userAgent)}}.browser,y=function(e){var t=Object.keys(g);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return y=function(e){return n.exec(e)},n.exec(e)},_=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(e){return this.toBytes().toHex(e)},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(e){return"#"+this.toHex(e)},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return v.msie&&v.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===x(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new j(e.r,e.g,e.b,e.a)),e},t}(m),O=function(e){function t(t,n,i,o){e.call(this),this.r=t,this.g=n,this.b=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,o=this.b,a=Math.min(n,i,o),r=Math.max(n,i,o),s=r-a,c=r;return 0===s?new C(0,0,c,this.a):(0!==r?(t=s/r,e=n===r?(i-o)/s:i===r?2+(o-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new C(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,o=this.b,a=Math.max(n,i,o),r=Math.min(n,i,o),s=(a+r)/2;if(a===r)e=t=0;else{var c=a-r;switch(t=s>.5?c/(2-a-r):c/(a+r),a){case n:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-n)/c+2;break;case o:e=(n-i)/c+4}}return new w(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new j(255*this.r,255*this.g,255*this.b,this.a)},t}(_),j=function(e){function t(t,n,i,o){e.call(this,Math.round(t),Math.round(n),Math.round(i),o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(e){var t=k(this.r,2)+k(this.g,2)+k(this.b,2);return e&&e.alpha&&(t+=k(Math.round(255*this.a),2)),t},t.prototype.toBytes=function(){return this},t}(O);function k(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var C=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.v=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,o=this.s,a=this.v;if(0===o)e=t=n=a;else{i/=60;var r=Math.floor(i),s=i-r,c=a*(1-o),d=a*(1-o*s),l=a*(1-o*(1-s));switch(r){case 0:e=a,t=l,n=c;break;case 1:e=d,t=a,n=c;break;case 2:e=c,t=a,n=l;break;case 3:e=c,t=d,n=a;break;case 4:e=l,t=c,n=a;break;default:e=a,t=c,n=d}}return new O(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(_),w=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.l=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,o=this.s/100,a=this.l/100;if(0===o)e=t=n=a;else{var r=a<.5?a*(1+o):a+o-a*o,s=2*a-r;e=S(s,r,i+1/3),t=S(s,r,i),n=S(s,r,i-1/3)}return new O(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(_);function S(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function I(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function x(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof _)return e;var o=e.toLowerCase();if(n=y(o))return(o="transparent"===n[1]?new O(1,1,1,0):x(g[n[1]],t)).match=[n[1]],o;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),I(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),I(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(o))?i=new j(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(o))?i=new j(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(o))?i=new O(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(o))&&(i=new O(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+o);return i}var E=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var o=t.formats,a=this.resolveColor(n),r=0;r<o.length;r++){var s=o[r].re,c=o[r].process,d=s.exec(a);if(d){var l=c(d);i.r=l[0],i.g=l[1],i.b=l[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new j(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new O(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new C(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new w(e,t,n,null!=i?i:1)},t}(m);E.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)]}}],E.namedColors=g;var D=E,T=function(e){return null!=e},F=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},P=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},R=function(e,t,n){return!T(e)||isNaN(e)||e<=t?t:e>=n?n:e},V=function(e){return Math.min(e,20)},B=function(e){return(String(e).split(".")[1]||"").length},A=function(e,t){return Math.max(B(e),B(t))},M=function(e,t){var n=V(t);return parseFloat(e.toFixed(n))},N=function(e,t){var n=A(e,t);return M(e+t,n)},L=function(e,t){return N(e,-t)},z=function(e,t){var n=B(e)+B(t);return M(e*t,n)},H=function(e,t){if(0===t)return NaN;var n=A(e,t),i=Math.pow(10,n);return i*e/(i*t)},K=function(e,t){return Math.abs(L(e,z(t,Math.floor(H(e,t)))))},G=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},W=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},U=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(L(t,e)),o=Math.floor(H(i,n));return N(o,1)},$=function(e){var t=e.handleWidth,n=e.trackWidth,i=e.min,o=e.max,a=e.reverse,r=e.value,s=Math.floor(t/2),c=n/Math.abs(o-i),d=T(r)?c*(r-i):i;return a&&(d=n-d),Math.floor(d-s)},q=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s,c=n&&r?z(a,r):a,d=L(e,o),l=K(d,c);return s=L(d,0===l?c:l),ee(N(s,o),o,i)},Z=function(e,t,n){var i=t.max,o=t.min,a=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s=n&&r?z(a,r):a,c=L(e,o),d=K(c,s),l=N(L(c,d),s);return ee(N(l,o),o,i)},Y=function(e){return e.id.indexOf("k-start-handle")>-1},X=function(e,t,n){return n>e?e:n<t?t:n},Q=function(e,t,n){return n?[X(e,t,n[0]),X(e,t,n[1])]:[t,t]},J=function(e){return e},ee=function(e,t,n){return Math.max(Math.min(e,n),t)},te=function(e,t,n){var i,o,a=n.min,r=n.max,s=n.vertical,c=n.rtl,d=(i=t.getBoundingClientRect(),o=document.documentElement,{left:i.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),top:i.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}),l=(s?e.pageY-d.top:e.pageX-d.left)*((r-a)/(s?t.clientHeight:t.clientWidth)),p=c||s?r-l:a+l,u=B(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,o=t.max,a=ee(e,i,o);if(e!==a)return a;var r=q(e,t),s=Z(e,t);return(e-i)%n==0?e:s-e<=(s-r)/2?s:r}(p=M(p,u+1),n)},ne=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},ie=function(e){return Z(e.value,e)},oe=function(e){return q(e.value,e)},ae=function(e){return Z(e.value,e,!0)},re=function(e){return q(e.value,e,!0)},se=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},ce=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[e]=t+"px"},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=this.elementSize(this.wrapper),n=W(t,this.elementOffset(this.track)),i=G(this.props),o=this.wrapper.parentElement;o.style[e]=n>i?t-(n-i)+"px":t+(i-n)+"px"},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?G(this.props):W(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=U(t,n,i),a=this.trackWidth(),r=a/L(n,t),s=[],c=0,d=0,l=0;l<o;l++){d=+(d+=0===l||l===o-1?i/2*r:i*r).toFixed(2)-.01;var p=Math.round(d-c);s.push(p),c+=p}return c>=a&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,a=t.vertical?"bottom":"left",r=this.trackWidth(),s=X(n,i,this.props.value);this.handlePosition=$({min:i,max:n,reverse:o,value:s,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.handlePosition+"px")},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical?"height":"width",a=Math.floor(e.offsetWidth/2),r=this.handlePosition+a;i&&(r=this.trackWidth()-r),this.renderer.setStyle(t,o,r+"px")},t}(ce),le=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function pe(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var ue=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},he={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1637576485,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},be=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),me=function(){function e(e,t,n,i,a,s){var c=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=a,this.hostElement=s,this.title=J,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new r.Subscription,this.ifEnabled=function(e,t){c.isDisabled||e.call(c,t)},Object(l.validatePackage)(he),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[d.Keys.ArrowLeft]=t?ie:oe,e[d.Keys.ArrowRight]=t?oe:ie,e[d.Keys.ArrowDown]=oe,e[d.Keys.ArrowUp]=ie,e[d.Keys.PageUp]=ae,e[d.Keys.PageDown]=re,e[d.Keys.Home]=function(e){return e.min},e[d.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(o.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(o.ContentChild)(be,{static:!1}),Object(i.__metadata)("design:type",be)],e.prototype,"labelTemplate",void 0),e}(),fe=function(e){function t(t,n,i,o,a,r){var s=e.call(this,t,n,i,o,a,r)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=a,s.hostElement=r,s.focusableId="k-"+Object(d.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!ne(t)&&!ne(t.parentNode)){var n=te(e,s.track.nativeElement,s.getProps());s.changeValue(n)}pe(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var a=o(t);s.changeValue(X(n,i,a)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(q(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(Z(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(d.hasObservers)(s.onBlur)||P(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return T(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,pe(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,pe(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;Object(d.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(d.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(te(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;F(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(Object(d.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,a,this.hostElement.nativeElement]);var r=this.getProps(),s=new de(r,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(o),s.positionSelection(o,i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(r.fromEvent)(e,"mousedown"),o=Object(r.fromEvent)(e,"mouseup"),a=Object(r.fromEvent)(e,"mouseout"),c=i.pipe(Object(s.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(s.concatMap)((function(){return Object(r.interval)(150).pipe(Object(s.startWith)(-1),Object(s.takeUntil)(Object(r.merge)(o,a)))}))).subscribe((function(){n.isFocused||pe(n.draghandle,"focus"),t()}));n.subscriptions.add(c)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:X(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===d.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(o.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <span\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n role="presentation"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </span>\n <span\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.aria-label]="currentValue"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </span>\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(me),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,o=t.reverse,a=t.vertical?"bottom":"left",r=this.trackWidth(),s=Y(e)?Q(n,i,this.props.value)[0]:Q(n,i,this.props.value)[1];Y(e)?(this.startHandlePosition=$({min:i,max:n,reverse:o,value:s,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.startHandlePosition+"px")):(this.endHandlePosition=$({min:i,max:n,reverse:o,value:s,trackWidth:r,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,a,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,a=o?"height":"width",r=o?"bottom":i?"right":"left",s=Math.floor(e.offsetWidth/2),c=Math.abs(this.endHandlePosition-this.startHandlePosition),d=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,a,c+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(d)-s+"px":parseFloat(d)+s+"px")},t}(ce),ve=function(e){function t(t,n,o,a,r,s){var c=e.call(this,t,n,o,a,r,s)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=a,c.changeDetector=r,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(d.guid)(),c.endHandleId="k-end-handle-"+Object(d.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=te(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],a=i[1];t<=o?(n=[t,a],c.activeHandle="startHandle"):o<t&&t<a?t<(o+a)/2?(n=[t,a],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=a&&(n=[o,t],c.activeHandle="endHandle"),pe("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,o=t.min,a=c.keyBinding[e.keyCode];if(!c.isDisabled&&a){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var r=Y(e.target),s=a(Object(i.__assign)({},t,{value:r?c.value[0]:c.value[1]}));r?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var d=X(n,o,s),l=r?[d,c.value[1]]:[c.value[0],d];c.changeValue(l),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(d.hasObservers)(c.onBlur)||P(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,pe(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,pe("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(d.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&se(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(d.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var o=e.pageX<this.lastHandlePosition.x,a=e.pageX>this.lastHandlePosition.x,r=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([te(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],te(e,t.track.nativeElement,t.getProps())])},d=function(){return t.changeValue([te(e,t.track.nativeElement,t.getProps()),te(e,t.track.nativeElement,t.getProps())])},l=Y(this.draggedHandle),p=this.vertical,u=!p,h=p&&r||(this.reverse?u&&a:u&&o);this.value[0]===this.value[1]?h?l?s():d():l?d():c():l?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){se(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,F(t[0],n[0])&&F(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(d.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,a=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,a,this.hostElement.nativeElement]);var r=this.getProps(),s=new ge(r,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(o),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:Q(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===d.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(me),ye=function(){function e(e,t,n,i,a,r){var s=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=a,this.ngZone=r,this.focusableId="k-"+Object(d.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){s.focused=!0,Object(d.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()}))},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(d.hasObservers)(s.onBlur)||P(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()}))},Object(l.validatePackage)(he),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return p.browser&&p.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(s.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(a.NgControl,null),this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==d.Keys.Space&&t!==d.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.setHostClasses=function(e){e?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSwitch",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #wrapper\n class="k-switch-container"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ click: clickHandler, keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n <span class="k-switch-handle" [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,c.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}(),_e=function(){function e(e,t,n,i,a,r){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=a,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=r?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(d.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(r.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(r.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(a.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(d.hasObservers)(this.onValueChange)||Object(d.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(d.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(d.hasObservers)(this.onBlur)||P(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(o.Optional)()),Object(i.__param)(5,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}(),Oe=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof r.Observable||e instanceof o.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),je=function(e){return"[object Function]"===Object.prototype.toString.call(e)},ke=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=i?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;if(this.formControl||this.kendoInput){var t=new Oe(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(t){return function(){e.focused=t,e.updateState()}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}));var i=function(){return e.updateState()};if(i(),this.subscribe(t,"onValueChange",i),this.id&&t.focusableId)this.id=t.focusableId;else if(this.id)t.focusableId=this.id;else if(t.focusableId)this.id=t.focusableId;else{var a="_"+Object(d.guid)();t.focusableId=a,this.id=a}}else if(Object(o.isDevMode)())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions=[]},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof o.EventEmitter){var i=e[t].subscribe(n);this._subscriptions.push(i)}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;je(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=je(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox-container"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostClasses",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-wrapper"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"textareaElementClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"floatingLabel",void 0),Object(i.__decorate)([Object(o.ContentChild)(d.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChild)(_e,{static:!1}),Object(i.__metadata)("design:type",_e)],e.prototype,"textarea",void 0),Object(i.__decorate)([Object(o.ContentChild)(a.NgControl,{static:!1}),Object(i.__metadata)("design:type",a.NgControl)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,Boolean])],e)}(),Ce=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClass=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoTextBox]",providers:[{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}(),we=/[eE][\-+]?([0-9]+)/,Se=function(e){return e>=0?Math.floor(e):Math.ceil(e)},Ie=function(e){},xe=function(e){return!isNaN(e)&&null!==e};function Ee(e,t){var n=t-String(e).length,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i}var De;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(De||(De={}));var Te,Fe=["min","max","step","decimals"],Pe={decimals:null,max:null,min:null,step:1},Re=function(){function e(e,t,n,i,a,r,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=a,this.changeDetector=r,this.hostElement=s,this.focusableId="k-"+Object(d.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=De,this.arrowDirection=De.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){c.arrowPress(De.Up,e)},this.decreasePress=function(e){c.arrowPress(De.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==De.None&&(c.arrowDirection=De.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===d.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var o=c.intl.parseNumber(i),a=c.restrictDecimals(o);if(c.autoCorrect){var r=c.limitInputValue(a);a=r.value,t=r.selectionStart,n=r.selectionEnd}o!==a||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(a),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(a),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(d.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(d.hasObservers)(c.onBlur)||P(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===d.Keys.ArrowDown?t=-1:e.keyCode===d.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled&&c.changeValueOnScroll){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(l.validatePackage)(he),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},e.prototype.ngOnChanges=function(e){var t,n;Object(d.anyChanged)(Fe,e,!1)&&this.parseOptions(Fe.filter((function(t){return e[t]}))),this.verifySettings(),Object(d.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!T(n)||!T(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):Ie,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!T(t)||!T(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):Ie,this.ngValidatorChange()),Object(d.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(d.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){pe(this.numericInput,"focus")},e.prototype.blur=function(){pe(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.numericWrap){var t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement;e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){var n,i,o;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,o=n.which&&3===n.which,i||o))||(p.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;F(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=this.previousSelection,a=o.start,r=o.end;t.value=e=e.substring(0,a)+this.decimalSeparator+e.substring(r),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,o,a,r;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,o=t.decimals,a=t.min,"."===(r=t.separator)&&(r="\\"+r),n=0===o?"\\d*":"(?:(?:\\d+("+r+"\\d*)?)|(?:"+r+"\\d*))?",new RegExp("^"+(i&&null!==a&&a>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=N(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&pe(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(xe(this.max)&&e>this.max&&(t=this.max),xe(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,a=e,r=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,c=this.min,d=this.max,l=xe(d),p=xe(c),u=void 0,h=void 0,b=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};if(l&&e>d?e>0?h=!0:u=d:p&&e<c&&(e>0?u=c:h=!0),u){var m=this.tryPadValue(e,u);m&&Se(e)!==Se(u)&&(b=m,r=!0)}else h&&this.inputValue&&n!==o.length&&(b=parseFloat(o.substr(0,n)+o.substr(n+s)));a=this.limitValue(b),r=(r||a!==b)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:r?String(a).length:i,selectionStart:n,value:a}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=Ee(e,i),a=Ee(e,i+1);return this.isInRange(o)?n=o:this.isInRange(a)&&(n=a),n},e.prototype.isInRange=function(e){return!xe(e)||(!xe(this.min)||this.min<=e)&&(!xe(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,o=String(e);if(t||we.test(o))n=M(e,i);else{var a=o.split("."),r=a[1];r&&r.length>i&&(r=r.substr(0,i),n=parseFloat(a[0]+"."+r))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=we.exec(t);return n&&(t=e.toFixed(V(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var a=parseFloat(i),r=!isNaN(a);if(Object(o.isDevMode)()&&!r&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=r?a:Pe[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,o=this.elementValue,a=o.substring(0,i);if(this.setInputValue(),a.length){var r=(e=a,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(o,r);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericWrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericWrap",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"widgetClasses",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoNumericTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:a.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[u.IntlService,o.Renderer2,c.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}(),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(c.ComponentMessages),Be=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Ve,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Ve);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Te||(Te={}));var Ae=function(){function e(e,t,n){void 0===n&&(n=Te.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Me=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),Ne=function(e){return(e||"").split("")},Le=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Me?this.parse(e):this.parse(new Me(Ne(e),Ne(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===Te.Literal},e}(),ze=function(e,t){return new Le((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new Ae(t.literal(i),n)):new Ae(o?t.mask(o):t.literal(i),n)}))},He=function(e){var t=e.prompt,n=e.promptPlaceholder;return new Le((function(e){var i=e.next().char;return new Ae(i===t?n:i,e)}))},Ke=function(e){return new Le((function(t){var n=t.next().char;return new Ae(e?n:"",t)}))},Ge=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new Le((function(e){return new Ae(t,e)}))));var t},We=function(e){return new Le((function(t){for(var n=new Ae([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ue=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,a=e.promptPlaceholder,r=void 0===a?" ":a,s=e.rules,c=void 0===s?{}:s,d=e.includeLiterals,l=void 0!==d&&d;this.mask=n,this.prompt=o,this.promptPlaceholder=r,this.rules=c,this.includeLiterals=l,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Ge(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(Ge(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(Ge(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",a=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return Ge(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=r.concat(e).concat(s).join("")})),{selection:a,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",a=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return Ge(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){a=i.adjustPosition(e,a),o=e.concat(r).join("")})),{selection:a,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",a=n,r=e.slice(0,n);return Ge(this.unmaskTokens).run(r,t).chain((function(e){a=e.join("").length;var n=t.slice(a);return Ge(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:a,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new Le((function(e){return e.peek().char===t?(e.eat(),new Ae(t,e,Te.Literal)):new Ae(t,e,Te.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new Le((function(i){for(;!i.eof();){var o=i.peek(),a=o.char,r=o.control;if(a===r&&r===t)return i.eat(),new Ae(t,i,Te.Mask);if(e.test(a))return i.eat(),new Ae(a,i,Te.Mask);if(a===n)return i.eat(),new Ae(t,i,Te.Mask);i.eat_input()}return i.eat(),new Ae(t,i,Te.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new Le((function(e){return e.eof()?new Ae("",e):(e.peek().char===t&&e.eat(),new Ae(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new Le((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,a=i.control;if(o===n&&a===n)return t.eat(),new Ae(o,t);if(e.test(o))return t.eat(),new Ae(o,t);t.eat_input()}return t.eat(),new Ae("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return Ke(n)},mask:function(n){return He({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Ke(!1)},mask:function(t){return He({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;We(ze(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),We(ze(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),We(ze(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),We(ze(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),$e=Promise.resolve(null),qe=function(){function e(e,t,n,i,a,r,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=a,this.changeDetector=r,this.focusableId="k-"+Object(d.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(d.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(d.hasObservers)(c.onBlur)||P(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(l.validatePackage)(he),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(a.NgControl,null)},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,o=i[0],a=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var r=this.maskedValue.length-a,s=n.length-r;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,a)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(d.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(d.anyChanged)(["promptPlaceholder","includeLiterals"],e)?$e.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&pe(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=T(e);if(t&&"string"!=typeof e){if(Object(o.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(o.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoMaskedTextBox",providers:[Ue,{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{multi:!0,provide:a.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-textbox"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(o.Optional)()),Object(i.__param)(6,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Ue,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}(),Ze=function(e){this.value=e,this.classes={"k-tick":!0}},Ye=function(){function e(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,o,a,r,s,c=U(this.min,this.max,this.step),d=this.largeStep,l={max:this.max,min:this.min,smallStep:this.step},p=[],u=0;u<c;u++)p.push(new Ze((e=u,n=void 0,i=void 0,o=void 0,a=void 0,r=void 0,s=void 0,n=(t=l).max,i=t.min,o=t.smallStep,a=t.reverse,r=t.vertical,s=N(i,z(e,o)),r||a?Math.abs(L(s,n)):s))),d&&u%d==0&&(p[u].large=!0,p[u].classes["k-tick-large"]=!0);(this.rtl||this.vertical)&&(p=p.reverse()),p.length>0&&(Object.assign(p[0].classes,this.endTickClasses(!0)),Object.assign(p[p.length-1].classes,this.endTickClasses(!1))),this.ticks=p},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(o.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(o.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Boolean])],e)}(),Xe=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ye,be],exports:[be,Ye,d.DraggableModule,d.EventsModule,d.ResizeSensorModule],imports:[h.CommonModule,d.DraggableModule,d.EventsModule,d.ResizeSensorModule]})],e)}(),Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(c.ComponentMessages),Je=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Qe,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Qe),et=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Qe,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Qe),tt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[fe,et,Je],exports:[fe,et,be,Je],imports:[h.CommonModule,Xe]})],e)}(),nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(c.ComponentMessages),it=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:nt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(nt),ot=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:nt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(nt),at=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ve,ot,it],exports:[ve,ot,it,be],imports:[h.CommonModule,Xe]})],e)}(),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(c.ComponentMessages),st=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:rt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(rt),ct=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:rt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(rt),dt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ye,ct,st],exports:[ye,ct,st],imports:[h.CommonModule,d.EventsModule,d.ResizeSensorModule]})],e)}(),lt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Ve,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Ve),pt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[lt,Re,Be],exports:[Re,Be],imports:[h.CommonModule,d.EventsModule]})],e)}(),ut=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[qe],exports:[qe],imports:[h.CommonModule,d.EventsModule]})],e)}(),ht=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),bt=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),mt=function(){function e(e,t,n,i,a,r){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=a,this.hostElement=r,this.focusableId="k-"+Object(d.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new o.EventEmitter,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(d.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(d.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(d.hasObservers)(s.inputBlur)||P(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t,n,i=(n=navigator.userAgent,(Object(p.detectDesktopBrowser)(n).safari||Object(p.detectMobileOS)(n)&&"mobilesafari"===Object(p.detectMobileOS)(n).browser)&&(t=e.target.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(t))?e.data:e.target.value);s.updateValue(i)},this.ngChange=function(e){},this.ngTouched=function(){},Object(l.validatePackage)(he),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(ue(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===d.Keys.Tab})))}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&pe(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;F(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.ContentChild)(ht,{static:!1}),Object(i.__metadata)("design:type",ht)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(bt,{static:!1}),Object(i.__metadata)("design:type",bt)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input\n class="k-input"\n #input\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"/>\n <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)"\n >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],e)}(),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(c.ComponentMessages),gt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:ft,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ft),vt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:ft,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ft),yt=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),_t=[yt,_e],Ot=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[_t],exports:[_t]})],e)}(),jt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ce,ke,mt,ht,bt,gt,vt],exports:[Ce,ke,mt,ht,bt,d.EventsModule,gt,vt,_t],imports:[h.CommonModule,d.EventsModule,Ot]})],e)}(),kt=function(){function e(e,t,n,i,a,s){var c=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=a,this.hostElement=s,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.subscriptions=new r.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){c.changeDetector.markForCheck(),(Object(d.hasObservers)(c.inputBlur)||P(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),Ct={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},wt=function(e){function t(t,n,i,a,r,s){var c=e.call(this,t,n,i,a,r,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=a,c.injector=r,c.hostElement=s,c.focusableId="k-"+Object(d.guid)(),c.hostClass=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(d.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(d.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(l.validatePackage)(he),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(ue(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===d.Keys.Tab})))}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.NgControl,null),Object(d.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(r.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(T(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;F(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return Ct[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focus"):this.renderer.removeClass(t,"k-state-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&pe(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n})),multi:!0},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(kt),St=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),It=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[wt,St],exports:[wt,d.EventsModule,St,_t],imports:[h.CommonModule,d.EventsModule,Ot]})],e)}(),xt=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Et=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),Dt=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(T(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),T(g[e]))return e;x(e,t)&&(e=x(e,t).toHex());var n=Object.keys(g).find((function(t){return g[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property shoud be set to 'hex' or 'rgba' ");return n}(e,n);var i=x(e.trim(),n);if(T(i))return"hex"===t?i.toCss():i.toCssRgba()}},Tt=function(e,t){void 0===t&&(t=!0);var n=x(e,t);return T(n)?n.toBytes():{}},Ft=function(e){var t=R(e.h,0,359.9),n=R(e.s,0,1),i=R(e.v,0,1),o=R(e.a,0,1);return D.fromHSV(t,n,i,o).toCssRgba()},Pt=function(e){return Ft({h:e,s:1,v:1,a:1})};var Rt=function(e,t){var n=R(e.r,0,255),i=R(e.g,0,255),o=R(e.b,0,255),a=R(e.a,0,1),r=R(t.r,0,255),s=R(t.g,0,255),c=R(t.b,0,255);return{r:Math.round((1-a)*r+a*n),g:Math.round((1-a)*s+a*i),b:Math.round((1-a)*c+a*o)}},Vt=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},Bt=function(e,t){return n=Vt(Rt(e,t)),i=Vt(Rt(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},At={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}},Mt=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean])],t)}(c.LocalizationService),Nt=function(e){function t(t,n,i,o){var a=e.call(this,t,n,i)||this;return a.colorPickerLocalization=o,a}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Mt)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Mt])],t)}(c.LocalizationService),Lt=function(){function e(e,t,n){this.localization=e,this.host=t,this.renderer=n,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new r.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(d.isDocumentAvailable)()||!T(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return T(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){T(e.value)&&!this.isFocused&&(this.hex=Dt(this.value,"hex"),this.rgba=Tt(this.value),this.rgba.a=Dt(this.value,"rgba")?this.rgba.a:1)},e.prototype.handleRgbaValueChange=function(){var e,t,n,i,o,a=(e=this.rgba,t=R(e.r,0,255),n=R(e.g,0,255),i=R(e.b,0,255),o=R(e.a,0,1),D.fromBytes(t,n,i,o).toCssRgba());this.rgbaInputValid&&a!==this.value&&(this.value=a,this.rgba=Tt(this.value),this.hex=Dt(a,"hex"),this.valueChange.emit(a))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=Dt(e,"rgba");T(t)&&t!==this.value&&(this.value=t,this.rgba=Tt(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=Tt(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=Dt(this.value,"hex")},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient-inputs"),Object(o.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(o.ViewChild)("opacityInput",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button class="k-colorgradient-toggle-mode k-button k-icon-button k-flat" #toggleFormatButton>\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <input *ngIf="formatView === \'hex\'"\n #hexInput\n class="k-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n [placeholder]="textFor(\'hexInputPlaceholder\')"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'redInputPlaceholder\')"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'greenInputPlaceholder\')"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'blueInputPlaceholder\')"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [placeholder]="textFor(\'alphaInputPlaceholder\')"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,o.ElementRef,o.Renderer2])],e)}(),zt=0,Ht=function(){function e(e,t,n,i,a){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=a,this.hostClasses=!0,this.id="k-colorgradient-"+zt++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new o.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new r.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=a.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Dt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(d.isDocumentAvailable)()||!T(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(T(this.hsva)&&T(this.hsva.a))return 100*this.hsva.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return"string"==typeof this.contrastTool&&""!==this.contrastTool},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){Object(d.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(d.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.host.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!T(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Ft(this.hsva)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,o=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":o=-5;break;case"ArrowDown":o=5}var a=parseInt(n.style.top,10)+o,r=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",a+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run((function(){return t.moveDragHandle(r,a)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=e.clientX-this.gradientRect.left,i=e.clientY-this.gradientRect.top;this.ngZone.run((function(){return t.moveDragHandle(n,i)}))}},e.prototype.handleHueSliderChange=function(e){this.handleValueChange(Ft(this.hsva)),this.backgroundColor=Pt(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(Ft(this.hsva))},e.prototype.handleInputsValueChange=function(e){var t=Dt(e,this.format);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,T(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=Dt(this.value,this.format);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=R(t,0,this.gradientRect.height),o=R(e,0,this.gradientRect.width);this.setDragHandleElementPosition(n,o),this.hsva.s=o/this.gradientRect.width,this.hsva.v=1-n/this.gradientRect.height,this.updateValues.next(Ft(this.hsva)),this.setAlphaSliderBackground(Ft(Object(i.__assign)({},this.hsva,{a:1})))},e.prototype.updateUI=function(){if(Object(d.isDocumentAvailable)()){this.hsva=this.value?function(e,t){void 0===t&&(t=!0);var n=x(e,t);return T(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1};var e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width;this.setDragHandleElementPosition(e,t),this.backgroundColor=Pt(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(T(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=Dt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,o;i=e.host.nativeElement,o=t.relatedTarget,(!i||!o||i!==o&&!i.contains(o))&&((n=e.host)&&n.nativeElement&&le(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(Ft(e.hsva))}))})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),a=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,o,a)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(s.throttleTime)(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"contrastTool",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientDragHandle",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",Lt)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(o.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",fe)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorgradient",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Nt,{provide:c.LocalizationService,useExisting:Nt},{provide:c.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-hexInputPlaceholder="kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-flat k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [(value)]="hsva.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity && format === \'rgba\'"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-align-self-end {\n height: 140px;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,c.LocalizationService])],e)}(),Kt=0,Gt=function(){function e(e,t,n,i){var a=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=i,this.hostClasses=!0,this.focusableId="k-colorpicker-"+Kt++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.activeColorClick=new o.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(l.validatePackage)(he),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Dt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return T(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&At[t]?At[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Dt(this.value,this.format))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},e.prototype.handleActiveColorClick=function(){this.focus();var e=new Et(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){T(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},e.prototype.blur=function(){this.wrapper.nativeElement.blur()},e.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},e.prototype.reset=function(){T(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=T(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e,t){var n=Dt(e,this.format),i=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),i&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},e.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),n=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||n||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){e.keyCode!==d.Keys.ArrowDown&&e.keyCode!==d.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===d.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===d.Keys.Tab){var t=this.colorGradient?this.colorGradient.gradientDragHandle.nativeElement:this.palette.nativeElement,n=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(e.shiftKey){if(e.target===t)return e.preventDefault(),void n.focus()}else if(e.target===n)return e.preventDefault(),void t.focus()}},e.prototype.isEmpty=function(){return!1},e.prototype.toggleWithEvents=function(e){var t=this,n=this.isOpen===e;if(!(this.disabled||this.readonly||n)){var i=new xt;e?this.open.emit(i):this.close.emit(i),i.isDefaultPrevented()||this.toggle(e),e&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.colorGradient&&t.colorGradient.gradientDragHandle.nativeElement.focus()}))}))}},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.wrapper.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-colorpicker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"view",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("palette",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(o.ViewChild)("colorGradient",{static:!1}),Object(i.__metadata)("design:type",Ht)],e.prototype,"colorGradient",void 0),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Mt,{provide:c.LocalizationService,useExisting:Mt},{provide:c.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorGradient="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradient="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha">\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.aria-disabled]="disabled"\n [attr.aria-label]="value"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background-color]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="handleWrapperClick()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <kendo-colorgradient #colorGradient\n *ngIf="view === \'gradient\' || view === \'combo\'"\n [value]="value"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [clearButton]="gradientSettings.clearButton"\n [delay]="gradientSettings.delay"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event, false)"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette\n #palette\n *ngIf="view === \'palette\' || view === \'combo\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="value"\n (blur)="handlePopupBlur($event)"\n (cellSelection)="handleValueChange($event, true)"\n (mousedown)="$event.preventDefault()"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorpalette>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[b.c,o.ChangeDetectorRef,c.LocalizationService,o.NgZone])],e)}(),Wt=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],T(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(T(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(T(e)&&T(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(T(e)&&T(e.row)&&T(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Ut=function(e){function t(t,n,i,o){var a=e.call(this,t,n,i)||this;return a.colorPickerLocalization=o,a}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(c.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Mt)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Mt])],t)}(c.LocalizationService),$t=0,qt=function(){function e(e,t,n,i,a){var r=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=a,this.id="k-colorpalette-"+$t++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=a.changes.subscribe((function(e){var t=e.rtl;r.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Dt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;T(e)||(e="office"),"string"==typeof e&&T(At[e])&&(this.columns=this.columns||At[e].columns,e=At[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return Dt(e,t.format,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case d.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case d.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case d.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case d.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case d.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=Dt(e,this.format,!1);this.cellSelection.emit(n),this.value!==n&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n),this.setHostElementAriaLabel()),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId=this.selectedCell.row+"-"+this.selectedCell.col)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,T(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.setRows=function(){T(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=Dt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(T(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(o.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorpalette",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:d.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Wt,Ut,{provide:c.LocalizationService,useExisting:Ut},{provide:c.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="rowIndex + \'-\' + colIndex"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,Wt,o.ChangeDetectorRef,o.Renderer2,c.LocalizationService])],e)}(),Zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),t}(c.ComponentMessages),Yt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Zt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Zt),Xt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Zt,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Zt),Qt=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),Jt=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){return this.type+": "+this.ratio.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"ratio",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),en=function(){function e(e){this.localization=e,this.aaRatio=4.5,this.aaaRatio=7}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioMessage",{get:function(){return this.localization.get("contrastRatio")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=this.aaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=this.aaaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Bt(Tt(this.value),Tt(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioMessage}}: {{formatedRatio}}</span>\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </div>\n <div kendoContrastValidation\n type="AA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),tn=[Gt,qt,Ht,Xt,Yt],nn=[Lt,Qt,en,Jt],on=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[tn,nn],exports:[tn],imports:[tt,pt,h.CommonModule,b.b,d.DraggableModule]})],e)}(),an=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoCheckBox]"})],e)}(),rn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[an],exports:[an],imports:[h.CommonModule]})],e)}(),sn=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoRadioButton]"})],e)}(),cn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[sn],exports:[sn],imports:[h.CommonModule]})],e)}(),dn=0,ln=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+dn++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),pn=0,un=function(){function e(){this.align="start",this.id="kendo-hint-"+pn++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),hn=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,Object(l.validatePackage)(he),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(o.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof a.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(d.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ContentChildren)(a.NgControl,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList),Object(i.__metadata)("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(o.ContentChildren)(a.NgControl,{read:o.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(o.ContentChild)(d.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChildren)(ln,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(o.ContentChildren)(un,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,c.LocalizationService,o.ElementRef])],e)}(),bn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[un,ln,hn],exports:[un,ln,hn],imports:[h.CommonModule]})],e)}(),mn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[It,jt,tt,at,dt,pt,ut,on,rn,cn,bn],imports:[h.CommonModule]})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(18),r=n(15),s=n(21),c=n(26),d=n(39),l=n(40),p=n(41),u=n(42),h=n(27),b=n(28),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.headerTemplates=new o.QueryList,i.columnMenuTemplates=new o.QueryList,i.filter="text",i.filterable=!0,i.editor="text",i.editable=!0,i.locked=!1,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([o.ContentChildren(h.HeaderTemplateDirective,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([o.ContentChild(u.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",u.FooterTemplateDirective)],t.prototype,"footerTemplate",void 0),i.__decorate([o.ContentChildren(d.ColumnMenuTemplateDirective),i.__metadata("design:type",o.QueryList)],t.prototype,"columnMenuTemplates",void 0),i.__decorate([o.ContentChild(c.CellTemplateDirective,{static:!1}),i.__metadata("design:type",c.CellTemplateDirective)],t.prototype,"template",void 0),i.__decorate([o.ContentChild(b.EditTemplateDirective,{static:!1}),i.__metadata("design:type",b.EditTemplateDirective)],t.prototype,"editTemplate",void 0),i.__decorate([o.ContentChild(l.FilterCellTemplateDirective,{static:!1}),i.__metadata("design:type",l.FilterCellTemplateDirective)],t.prototype,"filterCellTemplate",void 0),i.__decorate([o.ContentChild(p.FilterMenuTemplateDirective,{static:!1}),i.__metadata("design:type",p.FilterMenuTemplateDirective)],t.prototype,"filterMenuTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"filterable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"editor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-column",template:"",providers:[{provide:s.GanttColumnBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__param(1,o.SkipSelf()),i.__param(1,o.Host()),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(a.ColumnComponent);t.GanttColumnComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttColumnMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ColumnMenuTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttFilterCellTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FilterCellTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttFilterMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FilterMenuTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoGanttFooterTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.FooterTemplateDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(11),r=n(29),s=n(14),c=n(16),d=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){return c.setTime(e,e.getHours()-1)},t.prototype.getEndOffset=function(e){return c.setTime(e,e.getHours()+1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){for(var t=[],n=this.getRange(e),i=n.start,o=n.end,a=this.getDays(i,o),r=[],s=0;s<a.length;s++){var c=a[s],d=this.getHours(c.start,c.end);c.span=d.length,r.push.apply(r,d)}return t.push(a,r),t},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.IntlService,s.MappingService])],t)}(r.TimelineBaseViewService);t.TimelineDayViewService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(11),r=n(3),s=n(14),c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){var t=this.intlService.firstDay(),n=r.firstDayInWeek(r.getDate(e),t);return r.addWeeks(r.getDate(n),-1)},t.prototype.getEndOffset=function(e){var t=this.intlService.firstDay(),n=r.addDays(r.firstDayInWeek(r.getDate(e),t),6);return r.addWeeks(r.getDate(n),1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,o=n.end,a=this.getMonths(i,o),r=this.getWeeks(i,o);return t.push(a,r),t},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.IntlService,s.MappingService])],t)}(n(29).TimelineBaseViewService);t.TimelineMonthViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(11),r=n(3),s=n(14),c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){return r.addDays(r.getDate(e),-1)},t.prototype.getEndOffset=function(e){return r.addDays(r.getDate(e),1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,o=n.end,a=this.getWeeks(i,o),r=this.getDays(i,o);return t.push(a,r),t},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.IntlService,s.MappingService])],t)}(n(29).TimelineBaseViewService);t.TimelineWeekViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([o.Input("kendoGanttFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([o.Directive({selector:"[kendoGanttFlatBinding]",exportAs:"kendoGanttFlatBinding"})],t)}(n(18).FlatBindingDirective);t.GanttFlatBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([o.Input("kendoGanttHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([o.Directive({selector:"[kendoGanttHierarchyBinding]",exportAs:"kendoGanttHierarchyBinding"})],t)}(n(18).HierarchyBindingDirective);t.GanttHierarchyBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"expandBy",void 0),t=i.__decorate([o.Directive({exportAs:"kendoGanttExpandable",selector:"[kendoGanttExpandable]"})],t)}(n(18).ExpandableDirective);t.GanttExpandableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(8),r=n(20),s=n(16),c=function(){function e(e){this.gantt=e,this.selectedKeysChange=new o.EventEmitter,this.state=new Set,this.isSelected=this.isSelected.bind(this),this.selectionChange=this.selectionChange.bind(this),this.selectable=!0}return Object.defineProperty(e.prototype,"selectable",{set:function(e){e?(this.gantt.isSelected=this.isSelected,this.subscribeSelection()):(this.gantt.isSelected=function(){return!1},this.unsubscribeSelection()),this.gantt.selectable=e,this.gantt.updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{set:function(e){if(!s.isPresent(e)||e!==this.lastChange){var t=(e||[]).slice(0,1);this.state=new Set(t),this.gantt.updateView()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemKey",{set:function(e){s.isString(e)?this._keyGetter=a.getter(e):this._keyGetter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyGetter",{get:function(){return this._keyGetter||this.gantt.idGetter},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.unsubscribeSelection()},e.prototype.isSelected=function(e){return this.state.has(this.keyGetter(e))},e.prototype.selectionChange=function(e){var t=this,n=e.action,i=e.items;this.state.clear(),"select"===n&&i.forEach((function(e){return t.state.add(t.keyGetter(e))})),this.emitSelectedItemsChange()},e.prototype.emitSelectedItemsChange=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},e.prototype.subscribeSelection=function(){this.unsubscribeSelection(),this.selectionSubscription=this.gantt.selectionChange.subscribe(this.selectionChange)},e.prototype.unsubscribeSelection=function(){this.selectionSubscription&&(this.selectionSubscription.unsubscribe(),this.selectionSubscription=null)},i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"selectable",null),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"itemKey",null),e=i.__decorate([o.Directive({exportAs:"kendoGanttSelectable",selector:"[kendoGanttSelectable]"}),i.__metadata("design:paramtypes",[r.GanttComponent])],e)}();t.SelectableDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingGeneralTabTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingPredecessorsTabTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingSuccessorsTabTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesAddButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesRemoveButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesGridNameColumnTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesGridTypeColumnTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"deleteButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskDeleteLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogCloseTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogCloseTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"addTaskText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"addChildText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"addAboveText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"addBelowText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"saveButtonText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"titleFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"startFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"endFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"completionRatioFieldInputLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogContent",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"dayViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"weekViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"monthViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"yearViewText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"noRecords",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterEqOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotEqOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNullOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotNullOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsEmptyOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotEmptyOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterStartsWithOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterContainsOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotContainsOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterEndsWithOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterGteOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterGtOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterLteOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterLtOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsTrue",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsFalse",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterBooleanAll",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOrEqualOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOrEqualOperator",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterFilterButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterClearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterAndLogic",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filterOrLogic",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"loading",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columnMenu",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columns",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"lock",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"unlock",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortAscending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortDescending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortedAscending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDescending",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDefault",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columnsApply",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"columnsReset",void 0),t}(n(4).ComponentMessages);t.Messages=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(20);t.GanttComponent=o.GanttComponent;var a=n(61);t.GanttModule=a.GanttModule;var r=n(47);t.GanttHierarchyBindingDirective=r.GanttHierarchyBindingDirective;var s=n(46);t.GanttFlatBindingDirective=s.GanttFlatBindingDirective;var c=n(48);t.GanttExpandableDirective=c.GanttExpandableDirective;var d=n(31);t.GanttTaskTemplateDirective=d.GanttTaskTemplateDirective;var l=n(33);t.GanttTaskContentTemplateDirective=l.GanttTaskContentTemplateDirective;var p=n(32);t.GanttSummaryTaskTemplateDirective=p.GanttSummaryTaskTemplateDirective;var u=n(34);t.ToolbarTemplateDirective=u.ToolbarTemplateDirective;var h=n(49);t.SelectableDirective=h.SelectableDirective,i.__exportStar(n(87),t),i.__exportStar(n(25),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-gantt",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1641921322,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(18),r=n(15),s=n(21),c=n(27),d=function(e){function t(t,n){var i=e.call(this,n)||this;if(i.options=t,i.children=new o.QueryList,i.locked=!1,i.sortable=!0,n&&n.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent");return i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([o.ContentChildren(s.GanttColumnBase),i.__metadata("design:type",o.QueryList)],t.prototype,"children",void 0),i.__decorate([o.ContentChildren(c.HeaderTemplateDirective),i.__metadata("design:type",o.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"sortable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-column-group",template:"",providers:[{provide:s.GanttColumnBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__param(1,o.SkipSelf()),i.__param(1,o.Host()),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(a.ColumnGroupComponent);t.GanttColumnGroupComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(18),r=n(15),s=n(26),c=n(21),d=n(38),l=n(28),p=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.childColumns=new o.QueryList,i.template=new o.QueryList,i.editTemplate=new o.QueryList,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([o.ContentChildren(d.GanttColumnComponent),i.__metadata("design:type",o.QueryList)],t.prototype,"childColumns",void 0),i.__decorate([o.ContentChildren(s.CellTemplateDirective,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"template",void 0),i.__decorate([o.ContentChildren(l.EditTemplateDirective,{descendants:!1}),i.__metadata("design:type",o.QueryList)],t.prototype,"editTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([o.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-span-column",template:"",providers:[{provide:c.GanttColumnBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__param(1,o.SkipSelf()),i.__param(1,o.Host()),i.__param(1,o.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,c.GanttColumnBase])],t)}(a.SpanColumnComponent);t.GanttSpanColumnComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.hasChildren=function(){return!1},t.fetchChildren=function(){return i.of([])},t.rowClassCallback=function(){return null},t.taskClassCallback=function(){return null},t.isSelected=function(){return!1}},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_DEPENDENCY_MODEL_FIELDS=Object.freeze({toId:"toId",fromId:"fromId",id:"id",type:"type"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TASK_MODEL_FIELDS=Object.freeze({id:"id",start:"start",end:"end",title:"title",completionRatio:"completionRatio",children:"children"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TREELIST_PANE_SETTINGS=Object.freeze({collapsible:!0,collapsed:!1}),t.DEFAULT_TIMELINE_PANE_SETTINGS=Object.freeze({collapsible:!0,collapsed:!1,size:"50%",resizable:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditItem=function(e,t,n){var o=t.find((function(t){return n.extractFromTask(t.data,"id")===n.extractFromTask(e,"id")}));return i(o)};var i=function(e){return{dataItem:e.data,parent:e.parent.data?i(e.parent):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(9),r=n(62),s=n(18),c=n(63),d=n(2),l=n(64),p=n(20),u=n(65),h=n(66),b=n(67),m=n(68),f=n(31),g=n(33),v=n(69),y=n(32),_=n(70),O=n(46),j=n(47),k=n(48),C=n(49),w=n(71),S=n(34),I=n(72),x=n(73),E=n(25),D=n(75),T=n(76),F=n(77),P=n(78),R=n(7),V=n(79),B=n(37),A=n(80),M=n(81),N=n(4),L=n(82),z=n(83),H=n(84),K=n(90),G=n(85),W=n(86),U=[a.CommonModule,R.ReactiveFormsModule,V.LabelModule,B.InputsModule,A.DateInputsModule,c.ButtonsModule,r.SplitterModule,s.TreeListModule,c.ButtonsModule,l.DialogModule,d.EventsModule,r.TabStripModule,H.GridModule,K.DropDownsModule],$=[p.GanttComponent,O.GanttFlatBindingDirective,j.GanttHierarchyBindingDirective,m.GanttTaskComponent,v.GanttSummaryTaskComponent,_.GanttMilestoneTaskComponent,u.GanttTimelineComponent,h.GanttTasksTableBodyComponent,b.GanttHeaderTableBodyComponent,g.GanttTaskContentTemplateDirective,f.GanttTaskTemplateDirective,y.GanttSummaryTaskTemplateDirective,S.ToolbarTemplateDirective,w.ToolbarComponent,I.ViewSelectorComponent,E.GanttColumnComponent,E.GanttColumnGroupComponent,E.GanttSpanColumnComponent,E.FilterMenuTemplateDirective,E.FilterCellTemplateDirective,E.CellTemplateDirective,E.EditTemplateDirective,E.ColumnMenuTemplateDirective,E.HeaderTemplateDirective,E.FooterTemplateDirective,k.GanttExpandableDirective,x.GanttDependencyDirective,D.TimelineDayViewComponent,T.TimelineWeekViewComponent,F.TimelineMonthViewComponent,C.SelectableDirective,P.EditDialogComponent,M.CustomMessagesComponent,L.LocalizedMessagesDirective,z.GanttAddTaskComponent,G.DependenciesTableComponent,W.TaskFieldsComponent],q=function(){function e(){}return e=i.__decorate([o.NgModule({imports:U.slice(),declarations:$.slice(),exports:$.slice(),providers:[{provide:N.L10N_PREFIX,useValue:"kendo.gantt"}]})],e)}();t.GanttModule=q},function(e,t){e.exports=h},function(e,t){e.exports=b},function(e,t){e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(6),s=n(30),c=n(17),d=n(16),l=n(2),p=function(){function e(e,t,n,i){var o=this;this.scrollSyncService=e,this.dependencyDomService=t,this.renderer=n,this.zone=i,this.hostClass=!0,this.dependencies=[],this.subscriptions=new a.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(r.filter((function(e){return d.isPresent(e.timelineRow)})),r.switchMap((function(e){return o.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){var t=e.timelineRow,n=l.isDocumentAvailable()?t.getBoundingClientRect().height:0;o.renderer.setStyle(o.timelineColumns.nativeElement,"height",(o.rows||[]).length*n+"px")})))}return e.prototype.ngAfterViewInit=function(){var e=this.timelineHeaderWrap.nativeElement,t=this.timelineContent.nativeElement;this.scrollSyncService.registerElement(t,"timeline"),this.scrollSyncService.registerElement(e,"header"),this.dependencyDomService.registerContentContainer(this.tasksContainer.nativeElement)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isNonWorking=function(e){return e.hasOwnProperty("isWorking")&&!e.isWorking},i.__decorate([o.ViewChild("timelineContent",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"timelineContent",void 0),i.__decorate([o.ViewChild("timelineColumns",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"timelineColumns",void 0),i.__decorate([o.ViewChild("timelineHeaderWrap",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"timelineHeaderWrap",void 0),i.__decorate([o.ViewChild("tasksContainer",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"tasksContainer",void 0),i.__decorate([o.HostBinding("class.k-gantt-timeline"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tableWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),e=i.__decorate([o.Component({selector:"kendo-gantt-timeline",template:'\n <div class="k-timeline k-grid k-widget">\n <div class="k-grid-header">\n <div #timelineHeaderWrap class="k-grid-header-wrap">\n <table\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttHeaderTableBody\n [groupSlots]="groupSlots"\n [slots]="slots">\n </tbody>\n </table>\n </div>\n </div>\n <div #timelineContent class="k-grid-content">\n <div class="k-gantt-tables">\n <table\n class="k-gantt-rows"\n [style.width.px]="tableWidth"\n role="presentation"\n >\n <tbody>\n <tr *ngFor="let item of rows; let i = index;"\n [class.k-alt]="i % 2"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class="k-gantt-columns"\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <colgroup>\n <col *ngFor="let item of slots">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor="let item of slots"\n [class.k-nonwork-hour]="isNonWorking(item)"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class="k-gantt-tasks"\n role="presentation"\n style="border-collapse: collapse;"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]="rows"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [summaryTaskTemplate]="summaryTaskTemplate"\n [taskClass]="taskClass"\n [hasChildren]="hasChildren"\n [isTaskSelected]="isTaskSelected"\n >\n </tbody>\n </table>\n </div>\n <svg class="k-gantt-dependencies-svg">\n <polyline\n *ngFor="let dependency of dependencies"\n kendoGanttDependency\n [dependency]="dependency"\n />\n </svg>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[s.ScrollSyncService,c.DependencyDomService,o.Renderer2,o.NgZone])],e)}();t.GanttTimelineComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(3),r=n(17),s=n(16),c=n(14),d=function(){function e(e,t){this.dependencyDomService=e,this.mapper=t}return Object.defineProperty(e.prototype,"timelineRow",{set:function(e){s.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isMileStone=function(e){return!this.hasChildren(e)&&a.isEqual(this.mapper.extractFromTask(e,"start"),this.mapper.extractFromTask(e,"end"))},i.__decorate([o.ViewChild("timelineRow",{static:!1}),i.__metadata("design:type",o.ElementRef),i.__metadata("design:paramtypes",[o.ElementRef])],e.prototype,"timelineRow",null),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),e=i.__decorate([o.Component({selector:"[kendoGanttTasksTableBody]",template:'\n <tr #timelineRow *ngFor="let item of rows; let index = index">\n <td>\n <kendo-gantt-milestone-task\n *ngIf="isMileStone(item); else task"\n [dataItem]="item"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [isSelected]="isTaskSelected"\n [index]="index"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="hasChildren(item)"\n [dataItem]="item"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [isSelected]="isTaskSelected"\n [index]="index"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!hasChildren(item)"\n [dataItem]="item"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [isSelected]="isTaskSelected"\n [index]="index"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,c.MappingService])],e)}();t.GanttTasksTableBodyComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=function(){function e(){}return i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),e=i.__decorate([o.Component({selector:"[kendoGanttHeaderTableBody]",template:'\n <tr>\n <td *ngFor="let item of groupSlots" [attr.colspan]="item.span" class="k-header">{{ item.text }}</td>\n </tr>\n\n <tr>\n <td *ngFor="let item of slots" [attr.colspan]="item.span" class="k-header" [attr.title]="item.text">{{ item.text }}</td>\n </tr>\n '})],e)}();t.GanttHeaderTableBodyComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(14),r=n(17),s=n(15),c=n(22),d=n(36),l=n(19),p=function(e){function t(t,n,i,o,a,r){var s=e.call(this,t,n,i,o,a)||this;return s.editService=r,s}var n;return i.__extends(t,e),n=t,t.prototype.onTaskDelete=function(){this.editService.dataItem=this.dataItem,this.editService.showConfirmationDialog.next()},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"taskContentTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"taskTemplate",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-task",providers:[{provide:d.GanttTaskBase,useExisting:o.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-single"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [attr.data-task-index]="index"\n [class.k-state-selected]="isSelected(dataItem)"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\n >\n </div>\n <div class="k-task-content">\n <div class="k-task-template">\n <ng-container *ngIf="!taskContentTemplate; else taskContent">\n {{ mapper.extractFromTask(dataItem, \'title\') }}\n </ng-container>\n <ng-template\n #taskContent\n [ngTemplateOutlet]="taskContentTemplate"\n [ngTemplateOutletContext]="{ $implicit: dataItem }"\n >\n </ng-template>\n </div>\n <span class="k-task-actions">\n <span\n (click)="onTaskDelete()"\n class="k-link k-task-delete">\n <span class="k-icon k-i-close"></span>\n </span>\n </span>\n </div>\n </ng-container>\n <ng-template\n *ngIf="taskTemplate"\n [ngTemplateOutlet]="taskTemplate"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n '}),i.__metadata("design:paramtypes",[a.MappingService,c.TimelineViewService,r.DependencyDomService,s.OptionChangesService,o.ChangeDetectorRef,l.EditService])],t)}(d.GanttTaskBase);t.GanttTaskComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(14),r=n(17),s=n(15),c=n(22),d=n(36),l=function(e){function t(t,n,i,o,a){var r=e.call(this,t,n,i,o,a)||this;return r.summaryWrapperClass=!0,r}var n;return i.__extends(t,e),n=t,i.__decorate([o.HostBinding("class.k-summary-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"summaryWrapperClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"template",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-summary-task",providers:[{provide:d.GanttTaskBase,useExisting:o.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [attr.data-task-index]="index"\n [class.k-state-selected]="isSelected(dataItem)"\n >\n <div *ngIf="!template; else summaryTemplate"\n class="k-task-summary-progress"\n [style.width.px]="taskWidth">\n <div\n class="k-task-summary-complete"\n [style.width.px]="completionOverlayWidth"\n >\n </div>\n </div>\n <ng-template\n #summaryTemplate\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n '}),i.__metadata("design:paramtypes",[a.MappingService,c.TimelineViewService,r.DependencyDomService,s.OptionChangesService,o.ChangeDetectorRef])],t)}(d.GanttTaskBase);t.GanttSummaryTaskComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(14),r=n(17),s=n(15),c=n(22),d=n(36),l=function(e){function t(t,n,i,o,a){var r=e.call(this,t,n,i,o,a)||this;return r.milestoneWrapperClass=!0,r}var n;return i.__extends(t,e),n=t,i.__decorate([o.HostBinding("class.k-milestone-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"milestoneWrapperClass",void 0),t=n=i.__decorate([o.Component({selector:"kendo-gantt-milestone-task",providers:[{provide:d.GanttTaskBase,useExisting:o.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [style.left.px]="taskOffset"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.data-task-index]="index"\n >\n </div>\n '}),i.__metadata("design:paramtypes",[a.MappingService,c.TimelineViewService,r.DependencyDomService,s.OptionChangesService,o.ChangeDetectorRef])],t)}(d.GanttTaskBase);t.GanttMilestoneTaskComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(20),r=n(30),s=function(){function e(e,t){this.gantt=e,this.scrollSyncService=t,this.context={}}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this.context.position=this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbarTemplateRef",{get:function(){return this.gantt.toolbarTemplate?this.gantt.toolbarTemplate.templateRef:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderTemplate",{get:function(){var e=this.gantt.toolbarTemplate,t=e?e.position:null;return e&&("both"===t||t===this.position)},enumerable:!0,configurable:!0}),e.prototype.onViewChange=function(e){this.gantt.activeView=e,this.gantt.loadTimelineData(),this.gantt.activeViewChange.emit(e),this.scrollSyncService.resetTimelineScrollLeft()},i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showAddTask",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewSelector",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([o.Component({selector:"kendo-gantt-toolbar",template:'\n <ng-container *ngIf="!renderTemplate">\n <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)="onViewChange($event)"></kendo-gantt-view-selector>\n </ng-container>\n <ng-template\n *ngIf="renderTemplate"\n [ngTemplateOutlet]="toolbarTemplateRef"\n [ngTemplateOutletContext]="context"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[a.GanttComponent,r.ScrollSyncService])],e)}();t.ToolbarComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=function(){function e(e){this.localizationService=e,this.hostClass=!0,this.activeView="week",this.activeViewChange=new o.EventEmitter}return e.prototype.onClick=function(e){e!==this.activeView&&this.activeViewChange.emit(e)},e.prototype.getViewTypeText=function(e){return this.localizationService.get(e+"ViewText")},i.__decorate([o.HostBinding("class.k-gantt-views-wrapper"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),e=i.__decorate([o.Component({selector:"kendo-gantt-view-selector",template:'\n <select class="k-dropdown k-views-dropdown"\n [value]="activeView"\n (change)="activeViewChange.emit($event.target.value)">\n <option *ngFor="let view of views" [value]="view">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class="k-gantt-views" selection="single">\n <button *ngFor="let view of views"\n kendoButton\n type="button"\n [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '}),i.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.ViewSelectorComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(5),r=n(6),s=n(14),c=n(17),d=n(16),l=n(74),p=n(2),u=function(){function e(e,t,n,i,o){var s=this;this.polyline=e,this.zone=t,this.renderer=n,this.mapper=i,this.dependencyDomService=o,this.subscriptions=new a.Subscription,this.subscriptions.add(o.taskChanges.pipe(r.switchMap((function(e){return s.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){return s.updatePoints(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){d.isPresent(e.dependency)&&this.updatePoints(this.dependencyDomService.dependencyDomArgs)},e.prototype.updatePoints=function(e){var t=e.timelineRow,n=e.contentContainer,i=e.tasks;if(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"))){var o=l.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"fromId")),n),a=l.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"toId")),n),r=p.isDocumentAvailable()?t.getBoundingClientRect().height:0,s=l.dependencyCoordinates(o,a,r,this.dependency.type,10,4);this.drawPoints(s)}else this.clearPoints()},e.prototype.clearPoints=function(){this.renderer.setAttribute(this.polyline.nativeElement,"points","")},e.prototype.drawPoints=function(e){if(d.isPresent(e)&&0!==e.length){var t=e.map((function(e){return e.left+","+e.top})).join(" ");this.renderer.setAttribute(this.polyline.nativeElement,"points",t)}else this.clearPoints()},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dependency",void 0),e=i.__decorate([o.Directive({selector:"[kendoGanttDependency]"}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,s.MappingService,c.DependencyDomService])],e)}();t.GanttDependencyDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24);t.getOffsetRelativeToParent=function(e,t){for(var n={top:0,left:0},i=e;i&&i!==t;)n.top+=i.offsetTop,n.left+=i.offsetLeft,i=i.offsetParent;return n},t.getElementRect=function(e,n){var i=t.getOffsetRelativeToParent(e,n),o=i.top,a=i.left;return{top:o+e.offsetHeight/2,left:a,right:a+e.offsetWidth}},t.dependencyCoordinates=function(e,t,n,a,r,s){var c,d,l=[],p=Math.floor(n/2),u=e.top<t.top;if(a===i.DependencyType.FF||a===i.DependencyType.SS){var h=a===i.DependencyType.SS?"left":"right";c=e.top,d=e[h],l.push({top:c,left:d}),d=Math["left"===h?"min":"max"](e[h],t[h]),d="left"===h?d-r:d+r,l.push({top:c,left:d}),c=t.top,l.push({top:c,left:d}),d="left"===h?t[h]-s:t[h]+s,l.push({top:c,left:d}),l.push.apply(l,o(c,d,"left"!==h,s))}else{var b=a===i.DependencyType.SF?"left":"right",m=a===i.DependencyType.SF?"right":"left",f=a===i.DependencyType.SF?e[b]-2*r<t[m]:e[b]+2*r>t[m];c=e.top,d=e[b],l.push({top:c,left:d}),d="left"===b?d-r:d+r,l.push({top:c,left:d}),f&&(c=u?c+p:c-p,l.push({top:c,left:d}),d="left"===b?t[m]+r:t[m]-r,l.push({top:c,left:d})),c=t.top,l.push({top:c,left:d}),d="left"===m?t[m]-s:t[m]+s,l.push({top:c,left:d}),l.push.apply(l,o(c,d,"left"!==m,s))}return l};var o=function(e,t,n,i){return n?a(e,t,i):r(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},r=function(e,t,n){var i=[];return i.push({top:e+n/2,left:t}),i.push({top:e,left:t+n-1}),i.push({top:e-n/2,left:t}),i.push({top:e,left:t}),i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(17),r=n(23),s=n(15),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="day",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Component({selector:"kendo-gantt-timeline-day-view",template:"",providers:[{provide:r.ViewBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,a.DependencyDomService])],t)}(r.ViewBase);t.TimelineDayViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(17),r=n(23),s=n(15),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="week",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Component({selector:"kendo-gantt-timeline-week-view",template:"",providers:[{provide:r.ViewBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,a.DependencyDomService])],t)}(r.ViewBase);t.TimelineWeekViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(17),r=n(23),s=n(15),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="month",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Component({selector:"kendo-gantt-timeline-month-view",template:"",providers:[{provide:r.ViewBase,useExisting:o.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,a.DependencyDomService])],t)}(r.ViewBase);t.TimelineMonthViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=n(14),s=n(24),c=n(19),d=function(){function e(e,t,n,i){this.mapper=e,this.editService=t,this.cdr=n,this.localizationService=i}return e.prototype.ngOnInit=function(){var e=this;this.editService.loadTasks(this.data).subscribe((function(t){e.loadedTasks=t}))},Object.defineProperty(e.prototype,"predecessors",{get:function(){return this.editService.predecessors},set:function(e){this.editService.predecessors=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"successors",{get:function(){return this.editService.successors},set:function(e){this.editService.successors=e},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.getDependencyType=function(e){return s.DependencyType[e]},e.prototype.handleEditingResult=function(e){this.editService.triggerEditEvent(e)},e.prototype.onTaskDelete=function(){this.editService.showConfirmationDialog.next()},i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),e=i.__decorate([o.Component({selector:"kendo-gantt-edit-dialog",template:'\n <kendo-dialog\n [title]="getText(\'taskEditingDialogTitle\')"\n [width]="575"\n [height]="470"\n (close)="handleEditingResult(\'cancel\')">\n <kendo-dialog-messages\n [closeTitle]="getText(\'taskEditingDialogCloseTitle\')"></kendo-dialog-messages>\n\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 kendoButton (click)="onTaskDelete()">{{ getText(\'deleteButtonText\') }}</button>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleEditingResult(\'save\')">{{ getText(\'saveButtonText\') }}</button>\n <button kendoButton (click)="handleEditingResult(\'cancel\')">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[r.MappingService,c.EditService,o.ChangeDetectorRef,a.LocalizationService])],e)}();t.EditDialogComponent=d},function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizedMessagesDirective",(function(){return h})),n.d(t,"Messages",(function(){return u})),n.d(t,"SharedDirectivesModule",(function(){return f})),n.d(t,"LabelDirective",(function(){return p})),n.d(t,"LabelModule",(function(){return w})),n.d(t,"FloatingLabelModule",(function(){return j})),n.d(t,"FloatingLabelComponent",(function(){return _})),n.d(t,"LabelComponent",(function(){return k})),n.d(t,"CustomMessagesComponent",(function(){return b}));var i=n(0),o=n(1),a=n(2),r=n(4),s=n(9),c=n(7),d=n(10),l=n(5),p=function(){function e(e,t,n){var i=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=i.getFocusableComponent();e&&(function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)}(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!Object(a.isDocumentAvailable)())return null;var e,t=this.getFocusableComponent()||{};return function(e){return e instanceof HTMLElement}(t)&&(e="id",!t.hasAttribute(e))&&this.renderer.setAttribute(t,"id","k-"+Object(a.guid)()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(Object(a.isDocumentAvailable)()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,i=n.id||"k-"+Object(a.guid)();n.getAttribute("id")||this.renderer.setAttribute(n,"id",i),this.renderer.setAttribute(t,"aria-labelledby",i)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.for"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"labelFor",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-label"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"labelClass",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"label[for]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.NgZone])],e)}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"optional",void 0),t}(r.ComponentMessages),h=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:u,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),Object(i.__metadata)("design:paramtypes",[r.LocalizationService])],t)}(u),b=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:u,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),Object(i.__metadata)("design:paramtypes",[r.LocalizationService])],t)}(u),m=[h,b],f=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[m],exports:[m]})],e)}(),g={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635940028,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},v=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof l.Observable||e instanceof o.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),y=function(e){return"[object Function]"===Object.prototype.toString.call(e)},_=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=i,this.hostClasses=!0,this.positionChange=new o.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+Object(a.guid)(),this.autoFillStarted=!1,Object(d.validatePackage)(g),this.direction=i.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new v(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof o.EventEmitter){var i=e[t].subscribe(n);this.subscription?this.subscription.add(i):this.subscription=i}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;y(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=y(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+Object(a.guid)();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&Object(a.hasObservers)(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var i=function(){return t.updateState()};i(),this.subscribe(e,"onValueChange",i)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(Object(o.isDevMode)())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},Object(i.__decorate)([Object(o.HostBinding)("class.k-floating-label-container"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssStyle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ContentChild)(a.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChild)(c.NgControl,{static:!1}),Object(i.__metadata)("design:type",c.NgControl)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,r.LocalizationService])],e)}(),O=[_],j=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:O.slice(),exports:O.concat([f]),imports:[s.CommonModule,f]})],e)}(),k=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new l.Subscription,Object(d.validatePackage)(g),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select");if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+Object(a.guid)()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(o.ViewChild)(p,{static:!0}),Object(i.__metadata)("design:type",p)],e.prototype,"labelDirective",void 0),Object(i.__decorate)([Object(o.ContentChild)(a.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-label",exportAs:"kendoLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,r.LocalizationService])],e)}(),C=[p,k],w=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({imports:[s.CommonModule,f],declarations:C.slice(),exports:C.concat([j,f])})],e)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"CalendarCommonModule",(function(){return xn})),n.d(t,"CALENDAR_RANGE_VALIDATORS",(function(){return Pt})),n.d(t,"CALENDAR_VALUE_ACCESSOR",(function(){return Ft})),n.d(t,"KENDO_INPUT_PROVIDER",(function(){return Rt})),n.d(t,"KForOf",(function(){return jn})),n.d(t,"KForOfContext",(function(){return On})),n.d(t,"HeaderComponent",(function(){return Sn})),n.d(t,"HorizontalViewListComponent",(function(){return an})),n.d(t,"CalendarMessages",(function(){return Rn})),n.d(t,"MultiViewCalendarCustomMessagesComponent",(function(){return Fn})),n.d(t,"Messages",(function(){return Dn})),n.d(t,"RANGE_CALENDAR_RANGE_VALIDATORS",(function(){return ln})),n.d(t,"RANGE_CALENDAR_VALUE_ACCESSOR",(function(){return dn})),n.d(t,"NavigationComponent",(function(){return pt})),n.d(t,"BusViewService",(function(){return xe})),n.d(t,"CenturyViewService",(function(){return ue})),n.d(t,"DecadeViewService",(function(){return me})),n.d(t,"DisabledDatesService",(function(){return ft})),n.d(t,"CalendarDOMService",(function(){return Ye})),n.d(t,"MonthViewService",(function(){return ve})),n.d(t,"NavigationService",(function(){return bt})),n.d(t,"ScrollSyncService",(function(){return vt})),n.d(t,"SelectionService",(function(){return gt})),n.d(t,"WeekNamesService",(function(){return on})),n.d(t,"YearViewService",(function(){return Oe})),n.d(t,"TemplatesModule",(function(){return En})),n.d(t,"CellTemplateDirective",(function(){return yt})),n.d(t,"CenturyCellTemplateDirective",(function(){return kt})),n.d(t,"DecadeCellTemplateDirective",(function(){return jt})),n.d(t,"HeaderTitleTemplateDirective",(function(){return wt})),n.d(t,"MonthCellTemplateDirective",(function(){return _t})),n.d(t,"NavigationItemTemplateDirective",(function(){return St})),n.d(t,"WeekNumberCellTemplateDirective",(function(){return Ct})),n.d(t,"YearCellTemplateDirective",(function(){return Ot})),n.d(t,"ViewListComponent",(function(){return ut})),n.d(t,"ViewComponent",(function(){return In})),n.d(t,"PickerService",(function(){return It})),n.d(t,"DateInputMessages",(function(){return zn})),n.d(t,"DatePickerMessages",(function(){return Wn})),n.d(t,"DateRangeInput",(function(){return gn})),n.d(t,"DateRangePopupTemplateDirective",(function(){return un})),n.d(t,"DateTimePickerCustomMessagesComponent",(function(){return no})),n.d(t,"LocalizedMessagesDirective",(function(){return io})),n.d(t,"Messages$1",(function(){return to})),n.d(t,"TimePickerMessages",(function(){return Wi})),n.d(t,"TimePickerCustomMessagesComponent",(function(){return $i})),n.d(t,"TimeSelectorCustomMessagesComponent",(function(){return Zi})),n.d(t,"DayPeriodService",(function(){return Fi})),n.d(t,"TimePickerDOMService",(function(){return ii})),n.d(t,"HoursService",(function(){return di})),n.d(t,"MillisecondsService",(function(){return Ii})),n.d(t,"MinutesService",(function(){return mi})),n.d(t,"SecondsService",(function(){return Oi})),n.d(t,"TimeListComponent",(function(){return Bi})),n.d(t,"TimeSelectorComponent",(function(){return Gi})),n.d(t,"TOUCH_ENABLED",(function(){return Wt})),n.d(t,"ScrollerService",(function(){return tt})),n.d(t,"DEFAULT_SCROLLER_FACTORY",(function(){return it})),n.d(t,"SCROLLER_FACTORY_TOKEN",(function(){return nt})),n.d(t,"VirtualizationComponent",(function(){return ct})),n.d(t,"VirtualizationModule",(function(){return Mn})),n.d(t,"CalendarComponent",(function(){return Vt})),n.d(t,"DateInputComponent",(function(){return Kt})),n.d(t,"DatePickerComponent",(function(){return $t})),n.d(t,"TimePickerComponent",(function(){return en})),n.d(t,"DateTimePickerComponent",(function(){return nn})),n.d(t,"MultiViewCalendarComponent",(function(){return pn})),n.d(t,"DateRangeComponent",(function(){return fn})),n.d(t,"DateRangePopupComponent",(function(){return mn})),n.d(t,"DateRangeEndInputDirective",(function(){return vn})),n.d(t,"DateRangeStartInputDirective",(function(){return yn})),n.d(t,"DateRangeSelectionDirective",(function(){return _n})),n.d(t,"CalendarModule",(function(){return Nn})),n.d(t,"CalendarsModule",(function(){return Ln})),n.d(t,"DateInputModule",(function(){return Gn})),n.d(t,"DatePickerModule",(function(){return Zn})),n.d(t,"DateInputsModule",(function(){return co})),n.d(t,"TimePickerModule",(function(){return eo})),n.d(t,"DateTimePickerModule",(function(){return ro})),n.d(t,"MultiViewCalendarModule",(function(){return Pn})),n.d(t,"DateRangeModule",(function(){return Qn})),n.d(t,"DateRangeService",(function(){return bn})),n.d(t,"CalendarCustomMessagesComponent",(function(){return Bn})),n.d(t,"DateInputCustomMessagesComponent",(function(){return Kn})),n.d(t,"DatePickerCustomMessagesComponent",(function(){return $n})),n.d(t,"PreventableEvent",(function(){return Gt})),n.d(t,"CalendarLocalizedMessagesDirective",(function(){return Vn})),n.d(t,"MultiViewCalendarLocalizedMessagesDirective",(function(){return Tn})),n.d(t,"DateInputLocalizedMessagesDirective",(function(){return Hn})),n.d(t,"DatePickerLocalizedMessagesDirective",(function(){return Un})),n.d(t,"TimePickerLocalizedMessagesDirective",(function(){return Ui})),n.d(t,"TimeSelectorLocalizedMessagesDirective",(function(){return qi}));var i,o=n(0),a=n(1),r=n(7),s=n(4),c=n(3),d=n(2),l=n(10),p=n(11),u=n(5),h=n(6),b=n(12),m=n(9),f=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"};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(i||(i={}));var v,y,_,O,j,k,C={start:null,end:null},w=new Date(1980,0,1),S=new Date(1900,0,1),I=new Date(2099,11,31),x=new Date(1980,0,1),E=new Date(1980,0,1,23,59,59),D=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},T=function(e){return e.preventDefault()},F=function(e){return e.relatedTarget||document.activeElement},P=function(e){return null!=e},R=function(e){return null!=e},V=function(e){return function(t,n){var i=Object(c.cloneDate)(t);return i[e](n),i}},B=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},A=function(e,t,n){return{candidateValue:B(w,e),maxValue:Object(c.addDays)(B(w,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:B(w,t)}},M=V("setFullYear"),N=V("setHours"),L=V("setMinutes"),z=V("setSeconds"),H=V("setMilliseconds"),K=function(e,t,n){void 0===n&&(n=1);for(var i=[],o=e;o<t;o+=n)i.push(o);return i},G=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},W=function(e,t,n){if(!e||!t||!n)return!0;var i=A(e,t,n),o=i.candidateValue,a=i.minValue,r=i.maxValue;return a<=o&&o<=r},U=function(e,t){return!R(e)||!R(t)||e<=t},$=function(e,t,n){return e?t&&e<t?Object(c.cloneDate)(t):n&&e>n?Object(c.cloneDate)(n):e:e},q=function(){return new Date},Z=function(){return Object(c.getDate)(new Date)},Y=function(e){},X=function(){return"undefined"!=typeof window},Q=function(e,t){return e.slice(t).concat(e.slice(0,t))},J=function(e){return function(t,n,i){void 0===n&&(n=""),void 0===i&&(i={});var o=document.createElement(e);return o.className=n,Object.keys(i).map((function(e){return o.style[e]=i[e]})),"string"==typeof t?o.innerHTML=t||"":(t||[]).forEach((function(e){return e&&o.appendChild(e)})),o}},ee=function(e,t){return void 0!==e[t]},te=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},ne=function(e){return void 0===e&&(e=[]),e&&e[e.length-1]},ie=function(e,t){var n=t||C,i=n.start,o=n.end;return!(!i||!o)&&(i<e&&e<o)},oe=function(e,t){return e||t},ae=function(e){return{start:e,end:e}},re=function(e,t){var n=e||C,i=n.start,o=n.end,a=t||C,r=a.start,s=a.end;return Object(c.isEqual)(i,r)&&Object(c.isEqual)(o,s)},se=function(e,t){return t=t||[],(e=e||[]).length===t.length&&e.every((function(e,n){return Object(c.isEqual)(e,t[n])}))},ce=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},de=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},le=[[]],pe=((v={})[i.Left]=function(e){return Object(c.addDecades)(e,-1)},v[i.Up]=function(e){return Object(c.addDecades)(e,-5)},v[i.Right]=function(e){return Object(c.addDecades)(e,1)},v[i.Down]=function(e){return Object(c.addDecades)(e,5)},v[i.PrevView]=function(e){return Object(c.addCenturies)(e,-1)},v[i.NextView]=function(e){return Object(c.addCenturies)(e,1)},v[i.FirstInView]=function(e){return Object(c.firstDecadeOfCentury)(e)},v[i.LastInView]=function(e){return Object(c.lastDecadeOfCentury)(e)},v),ue=function(){function e(){this.dateRange=function(e,t){if(!P(e)||!P(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addDecades)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return K(0,t).map((function(t){return Object(c.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,o=e.isActiveView,a=e.max,r=e.min,s=e.selectedDates,d=e.selectionRange,l=void 0===d?C:d,p=e.viewDate;if(!p)return le;var u=K(0,4),h=Object(c.firstDecadeOfCentury)(p),b=Object(c.lastDecadeOfCentury)(p),m=Z();return K(0,3).map((function(e){var d=Object(c.addDecades)(h,4*e);return u.map((function(e){var p=t.normalize(Object(c.addDecades)(d,e),r,a),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,a)||u)return null;var f=t.isEqual(p,l.start),g=t.isEqual(p,l.end),v=!f&&!g&&ie(p,l);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:o&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&t.isEqual(p,b),isRangeSplitStart:v&&t.isEqual(p,h),isToday:t.isEqual(p,m),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(c.firstYearOfDecade)(e).getFullYear()===Object(c.firstYearOfDecade)(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=Object(c.firstYearOfDecade)(e).getFullYear(),o=!t||Object(c.firstYearOfDecade)(t).getFullYear()<=i,a=!n||i<=Object(c.firstYearOfDecade)(n).getFullYear();return o&&a},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=Object(c.firstYearOfDecade)(Object(c.firstDecadeOfCentury)(e));return Object(c.createDate)(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastDecadeOfCentury)(e),n=Object(c.lastYearOfDecade)(t),i=Object(c.lastMonthOfYear)(n);return Object(c.lastDayOfMonth)(i)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=pe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(c.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(c.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(c.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(c.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var o=n-i;return Object(c.addCenturies)(e,-1*o)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(o.__decorate)([Object(a.Injectable)()],e)}(),he=[[]],be=((y={})[i.Left]=function(e){return Object(c.addYears)(e,-1)},y[i.Up]=function(e){return Object(c.addYears)(e,-5)},y[i.Right]=function(e){return Object(c.addYears)(e,1)},y[i.Down]=function(e){return Object(c.addYears)(e,5)},y[i.PrevView]=function(e){return Object(c.addDecades)(e,-1)},y[i.NextView]=function(e){return Object(c.addDecades)(e,1)},y[i.FirstInView]=function(e){return Object(c.firstYearOfDecade)(e)},y[i.LastInView]=function(e){return Object(c.lastYearOfDecade)(e)},y),me=function(){function e(){this.dateRange=function(e,t){if(!P(e)||!P(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addYears)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addDecades)(e,t)},e.prototype.datesList=function(e,t){return K(0,t).map((function(t){return Object(c.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,o=e.isActiveView,a=e.max,r=e.min,s=e.selectedDates,d=e.selectionRange,l=void 0===d?C:d,p=e.viewDate;if(!p)return he;var u=K(0,4),h=Object(c.firstYearOfDecade)(p),b=Object(c.lastYearOfDecade)(p),m=Z();return K(0,3).map((function(e){var d=Object(c.addYears)(h,4*e);return u.map((function(e){var p=t.normalize(Object(c.addYears)(d,e),r,a),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,a)||u)return null;var f=t.isEqual(p,l.start),g=t.isEqual(p,l.end),v=!f&&!g&&ie(p,l);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:o&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&t.isEqual(p,b),isRangeSplitStart:v&&t.isEqual(p,h),isToday:t.isEqual(p,m),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),o=!t||t.getFullYear()<=i,a=!n||i<=n.getFullYear();return o&&a},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=Object(c.firstYearOfDecade)(e);return Object(c.createDate)(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastYearOfDecade)(e),n=Object(c.lastMonthOfYear)(t);return Object(c.lastDayOfMonth)(n)},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.move=function(e,t){var n=be[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear()+" - "+Object(c.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInDecades)(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var o=n-i;return Object(c.addDecades)(e,-1*o)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(o.__decorate)([Object(a.Injectable)()],e)}(),fe=[[]],ge=((_={})[i.Left]=function(e){return Object(c.addDays)(e,-1)},_[i.Up]=function(e){return Object(c.addWeeks)(e,-1)},_[i.Right]=function(e){return Object(c.addDays)(e,1)},_[i.Down]=function(e){return Object(c.addWeeks)(e,1)},_[i.PrevView]=function(e){return Object(c.addMonths)(e,-1)},_[i.NextView]=function(e){return Object(c.addMonths)(e,1)},_[i.FirstInView]=function(e){return Object(c.firstDayOfMonth)(e)},_[i.LastInView]=function(e){return Object(c.lastDayOfMonth)(e)},_),ve=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!P(e)||!P(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addDays)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addMonths)(e,t)},e.prototype.datesList=function(e,t){return K(0,t).map((function(t){return Object(c.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,o=e.isActiveView,a=e.max,r=e.min,s=e.selectedDates,d=e.selectionRange,l=void 0===d?C:d,p=e.viewDate,u=e.isDateDisabled,h=void 0===u?function(){return!1}:u;if(!p)return fe;var b=Object(c.firstDayOfMonth)(p),m=Object(c.getDate)(b),f=Object(c.lastDayOfMonth)(p),g=Object(c.getDate)(f),v=Object(c.dayOfWeek)(b,this._intlService.firstDay(),-1),y=K(0,7),_=Z();return K(0,6).map((function(e){var d=Object(c.addDays)(v,7*e);return y.map((function(e){var p=t.normalize(Object(c.addDays)(d,e),r,a),u=Object(c.getDate)(p),v=u<m||u>g;if(p<r||p>a)return null;var y=t.isEqual(p,l.start),O=t.isEqual(p,l.end),j=!y&&!O&&ie(p,l);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:o&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:t.isWeekend(p),isRangeStart:y,isRangeMid:j,isRangeEnd:O,isRangeSplitStart:j&&t.isEqual(p,b),isRangeSplitEnd:j&&t.isEqual(p,f),isToday:t.isEqual(p,_),title:t.cellTitle(p),value:p,isDisabled:h(p),isOtherMonth:v}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(c.getDate)(e).getTime()===Object(c.getDate)(t).getTime()},e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(Object(c.addMonths)(t[t.length-1],1));return n<=e&&e<i},e.prototype.isInRange=function(e,t,n){var i=Object(c.getDate)(e),o=!t||Object(c.getDate)(t)<=i,a=!n||i<=Object(c.getDate)(n);return o&&a},e.prototype.beginningOfPeriod=function(e){return e?Object(c.createDate)(e.getFullYear(),e.getMonth(),1):e},e.prototype.lastDayOfPeriod=function(e){return Object(c.lastDayOfMonth)(e)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ge[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return void 0===e&&(e={}),7+(e.prependCell?1:0)},e.prototype.skip=function(e,t){return Object(c.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInMonths)(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var o=n-i;return Object(c.addMonths)(e,-1*o)}return e},e.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,i=t.end,o=e.getDay();return i<n?o<=i||n<=o:n<=o&&o<=i},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),ye=[[]],_e=((O={})[i.Left]=function(e){return Object(c.addMonths)(e,-1)},O[i.Up]=function(e){return Object(c.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},O[i.Right]=function(e){return Object(c.addMonths)(e,1)},O[i.Down]=function(e){return Object(c.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},O[i.PrevView]=function(e){return Object(c.addYears)(e,-1)},O[i.NextView]=function(e){return Object(c.addYears)(e,1)},O[i.FirstInView]=function(e){return Object(c.firstMonthOfYear)(e)},O[i.LastInView]=function(e){return Object(c.lastMonthOfYear)(e)},O),Oe=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!P(e)||!P(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addMonths)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addYears)(e,t)},e.prototype.datesList=function(e,t){return K(0,t).map((function(t){return Object(c.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,o=e.isActiveView,a=e.max,r=e.min,s=e.selectedDates,d=e.selectionRange,l=void 0===d?C:d,p=e.viewDate;if(!p)return ye;var u=this.abbrMonthNames(),h=Object(c.firstMonthOfYear)(p),b=Object(c.lastMonthOfYear)(p),m=h.getFullYear(),f=K(0,4),g=Z();return K(0,3).map((function(e){var d=Object(c.addMonths)(h,4*e);return f.map((function(e){var p=t.normalize(Object(c.addMonths)(d,e),r,a),f=m<p.getFullYear();if(!t.isInRange(p,r,a)||f)return null;var v=t.isEqual(p,l.start),y=t.isEqual(p,l.end),_=!v&&!y&&ie(p,l);return{formattedValue:u[p.getMonth()],id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:o&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:v,isRangeMid:_,isRangeEnd:y,isRangeSplitEnd:_&&t.isEqual(p,b),isRangeSplitStart:_&&t.isEqual(p,h),isToday:t.isEqual(p,g),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=Object(c.createDate)(e.getFullYear(),e.getMonth(),1),o=!t||Object(c.createDate)(t.getFullYear(),t.getMonth(),1)<=i,a=!n||i<=Object(c.createDate)(n.getFullYear(),n.getMonth(),1);return o&&a},e.prototype.beginningOfPeriod=function(e){return e?Object(c.createDate)(e.getFullYear(),0,1):e},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastMonthOfYear)(e);return Object(c.lastDayOfMonth)(t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=_e[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInYears)(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var o=n-i;return Object(c.addYears)(e,-1*o)}return e},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}();!function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(j||(j={}));var je,ke,Ce,we,Se,Ie=((k={})[j.month]=ve,k[j.year]=Oe,k[j.decade]=me,k[j.century]=ue,k),xe=function(){function e(e){this.injector=e,this.viewChanged=new a.EventEmitter,this.bottom=j.month,this.top=j.century}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e){var t=Ie[e];return t?this.injector.get(t):null},e.prototype.moveDown=function(e){this.move(e,-1)},e.prototype.moveUp=function(e){this.move(e,1)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t){var n=this.clamp(function(e,t){var n=j[j[e+t]];return void 0!==n?n:e}(e,t));n!==e&&this.viewChanged.emit({view:n})},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[a.Injector])],e)}(),Ee=J("div"),De=J("ul"),Te=J("li"),Fe=J("td"),Pe=J("th"),Re=J("tr"),Ve=J("tbody"),Be=J("thead"),Ae=J("table"),Me=function(e,t){return new Array(e).fill("1").map(t)},Ne=function(e){return Ee(e,"k-flex k-content k-calendar-content k-scrollable")},Le=function(){return d.isDocumentAvailable?(je||(je=Ee([Ne([De([Te("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),je):null},ze=function(e,t,n){var i,o=e.cells,a=e.rows;return function(){return d.isDocumentAvailable?(i||(i=function(e,t,n){return Ee([Ee('\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?Ae([Be([Re([Pe("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Ne([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),Ae([Ve([Re([Pe("1","k-calendar-th")],"k-calendar-tr")].concat(Me(e,(function(){return Re(Me(t,(function(e){return Fe('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(a,o),t,n)),i):null}},He=function(e){return e.querySelector(".k-scrollable")},Ke=function(e){return He(e).classList.add("k-scrollable-horizontal"),e},Ge=ze({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),We=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Ue=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),$e=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},qe=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},Ze=function(e){return e.querySelector("tbody")},Ye=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;Object(d.isDocumentAvailable)()&&(this.hostContainer=e,this.batch(Ge(),(function(e){var n=Ze(e);t.calendarHeight=$e(e),t.monthViewHeight=$e(n),t.headerHeight=$e(n.children[0]),t.scrollableContentHeight=$e(He(e))})),this.batch(Ke(Ge()),(function(e){var n=Ze(e);t.calendarWidth=qe(e),t.monthViewWidth=qe(n),t.scrollableContentWidth=qe(He(e))})),this.batch(We(),(function(e){t.yearViewHeight=$e(Ze(e)),t.scrollableYearContentHeight=$e(He(e))})),this.batch(Ke(We()),(function(e){t.yearViewWidth=qe(Ze(e))})),this.batch(Ue(),(function(e){t.decadeViewHeight=$e(Ze(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(Ke(Ue()),(function(e){t.decadeViewWidth=qe(Ze(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(Le(),(function(e){t.navigationItemHeight=$e(e.querySelector("li"))})))},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case j.month:return this["month"+n];case j.year:return this["year"+n];case j.decade:return this["decade"+n];case j.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){if(P(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},e=Object(o.__decorate)([Object(a.Injectable)()],e)}(),Xe=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,o=0;o<e;o++)this.offsets.push(i),i+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){if(!(e<0)){var t=this.offsets.reduce((function(t,n,i){return void 0!==t?t:n===e?i:n>e?i-1:void 0}),void 0);return void 0===t?this.total-1:t}},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}(),Qe=function(e){return Math.max(e,0)},Je=function(e){this.offset=e},et=function(e){this.skip=e},tt=function(){function e(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,i,o,a,r){var s=this;void 0===o&&(o=0),void 0===a&&(a=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=o,this.bottomOffset=a,this.direction=r;var c=new u.ReplaySubject(2),d=this.rowsForHeight(o),l=Qe(t-d);return c.next(new Je(this.rowOffset(l))),d&&c.next(new et(l)),this.subscription=new u.Observable((function(e){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe((function(t){return s.onScroll(t,e)}))})).subscribe((function(e){return c.next(e)})),c},e.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},e.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,o=e.offsetHeight,a=e.offsetWidth,r="vertical"===this.direction?i:n,s="vertical"===this.direction?o:a;if(this.lastScroll!==r){var c=this.lastScroll>=r;this.lastScroll=r;var d=this.rowHeightService.index(Qe(r-this.topOffset)),l=this.rowHeightService.index(Qe(r+s-this.bottomOffset));if(!c&&l>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=d,t.next(new Je(this.rowOffset(d))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new et(this.firstLoaded))),c&&d<=this.firstLoaded){var p=Math.floor(.3*this.take);this.firstLoaded=Qe(d-p),t.next(new Je(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new et(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},e}(),nt=new a.InjectionToken("dateinputs-scroll-service-factory");function it(e){return new tt(e)}!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(Se||(Se={}));var ot,at=((ke={})[Se.Forward]=function(e){return function(t){return t+e}},ke[Se.Backward]=function(e){return function(t){return t-e}},ke),rt=((Ce={})[Se.Forward]=function(e){return function(t){return Math.min(t,e)}},Ce[Se.Backward]=function(e){return function(t){return Math.max(t,e)}},Ce),st=((we={})[Se.Forward]=function(e){return function(t){return t<e}},we[Se.Backward]=function(e){return function(t){return t>e}},we),ct=function(){function e(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.scrollChange=new a.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new u.Subject,this.scroller=e(this.dispatcher)}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},e.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.containerScrollSubscription=e.scroll$().pipe(Object(h.map)((function(e){return e.target}))).subscribe((function(t){e.dispatcher.next(t),e.emitActiveIndex()}))}))},e.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},e.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},e.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},e.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},e.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},e.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),o=i+this.rowHeightService.height(e);return i>=t&&o<=n},e.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},e.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},e.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular((function(){t.resolvedPromise.then((function(){t.scrollTo(t.rowHeightService.offset(e))}))}))},e.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},e.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n=this.rowHeightService.offset(e),i=this.getContainerScrollDirection(n),o=this.scrollRange(n,i),a=o.start,r=o.end;if(a!==r){var s=this.scrollStep(a,r),c=at[i](s),d=rt[i](r),l=st[i](c(r));this.zone.runOutsideAngular((function(){t.animationSubscription=Object(u.combineLatest)(Object(u.of)(a),Object(u.interval)(0,u.animationFrameScheduler)).pipe(Object(h.map)((function(e){return e[0]})),Object(h.scan)(c),Object(h.takeWhile)(l),Object(h.map)(d)).subscribe((function(e){return t.scrollTo(e)}))}))}},e.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i,o,a,r=this.containerMaxScroll(),s=t===Se.Backward?1:-1,c=(i=n,o=e,a=this.maxScrollDifference,Math.min(Math.abs(o-i),a)),d=Math.min(e,r);return{start:Math.min(Math.max(d+s*c,0),r),end:d}},e.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},e.prototype.scroll$=function(){return Object(d.isDocumentAvailable)()?Object(u.fromEvent)(this.container.nativeElement,"scroll"):u.EMPTY},e.prototype.initServices=function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe((function(t){t instanceof et?e.pageChange.emit(t):e.scrollChange.emit(t)}))},e.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Xe(this.total,e,0)},e.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},e.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},e.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?Se.Backward:Se.Forward},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"itemHeight",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"itemWidth",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"topOffset",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"bottomOffset",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"maxScrollDifference",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"scrollDuration",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"skip",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"take",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"total",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeIndexChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"scrollChange",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-flex"),Object(a.HostBinding)("class.k-content"),Object(a.HostBinding)("class.k-calendar-content"),Object(a.HostBinding)("class.k-scrollable"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-scrollable-horizontal"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=Object(o.__decorate)([Object(a.Component)({providers:[{provide:nt,useValue:it}],selector:"kendo-virtualization",template:'\n <ng-content></ng-content>\n <div\n class="k-scrollable-placeholder"\n [class.k-scrollable-horizontal-placeholder]="direction === \'horizontal\'"\n [ngStyle]="totalVertexLength"\n ></div>\n '}),Object(o.__param)(0,Object(a.Inject)(nt)),Object(o.__metadata)("design:paramtypes",[Object,a.ElementRef,a.Renderer2,a.NgZone])],e)}(),dt=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},lt=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},pt=function(){function e(e,t,n,i,o){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=o,this.min=new Date(S),this.max=new Date(I),this.focusedDate=new Date,this.valueChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}return Object.defineProperty(e.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=j[this.activeView];var t=$(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n;this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),(e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.handleDateChange=function(e){var t=dt(e.target,(function(e){return e.hasAttribute("data-date-index")}),this.list.nativeElement);if(t){var n=parseInt(t.getAttribute("data-date-index"),10),i=this.dates[n];this.valueChange.emit(Object(c.cloneDate)(i))}},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.intlChange=function(){this.activeView===j.month&&this.cdr.markForCheck()},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(o.__decorate)([Object(a.ViewChild)(ct,{static:!1}),Object(o.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(o.__decorate)([Object(a.ViewChild)("list",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"list",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-navigation"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(o.__metadata)("design:paramtypes",[xe,Ye,p.IntlService,a.ChangeDetectorRef,a.Renderer2])],e)}(),ut=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=o,this.isActive=!0,this.min=new Date(S),this.max=new Date(I),this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.todayButtonClick=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===j.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===j.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===j.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===j.century},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=ee(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var t,n,i=ee(e,"activeView"),o=this.focusedDate,a=$(this.service.viewDate(o,this.max,this.minViewsToRender),this.min,this.max),r=this.service.total(this.min,this.max),s=this.total&&this.total!==r||!this.service.isInArray(o,this.dates);this.skip=this.service.skip(a,this.min),this.total=r,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),s&&(this.dates=this.service.datesList(a,this.getTake(this.skip))),t=this.activeDate,n=o,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=Object(c.cloneDate)(o));var d=ee(e,"focusedDate")||i;(s||d||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(o,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.setActiveDate=function(e){var t=this.service.addToDate(this.min,e);this.activeDate=t,this.activeDateChange.emit(t),this.cdr.detectChanges()},e.prototype.isMonthView=function(){return this.activeView===j.month},e.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},e.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},e.prototype.getScrollableHeight=function(){return this.activeView===j.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.getWeekNames=function(){var e=Q(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},e.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),Object(o.__decorate)([Object(a.ViewChild)(ct,{static:!1}),Object(o.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(o.__decorate)([Object(a.ViewChild)("list",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"list",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-vstack"),Object(a.HostBinding)("class.k-calendar-view"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-monthview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-yearview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-decadeview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-centuryview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table class="k-calendar-table" #list>\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}),Object(o.__metadata)("design:paramtypes",[xe,a.ChangeDetectorRef,p.IntlService,Ye,a.Renderer2])],e)}(),ht={33:i.PrevView,34:i.NextView,35:i.LastInView,36:i.FirstInView,37:i.Left,38:i.Up,39:i.Right,40:i.Down,"meta+38":i.UpperView,"meta+40":i.LowerView},bt=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return ht[t]},e.prototype.move=function(e,t,n){var o=this.bus.service(n);return o?t===i.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===i.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):o.move(e,t):e},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[xe])],e)}(),mt=function(){return!1},ft=function(){function e(){this.changes=new u.Subject,this.isDateDisabled=mt}return e.prototype.initialize=function(e){if("function"==typeof e)this.isDateDisabled=function(t){return e(Object(c.getDate)(t))};else if(i=e,Array.isArray(i)&&i.length>0&&i.every((function(e){return"number"==typeof e}))){var t=new Set(e);this.isDateDisabled=function(e){return t.has(e.getDay())}}else if(function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return e instanceof Date}))}(e)){var n=new Set(e.map((function(e){return Object(c.getDate)(e).getTime()})));this.isDateDisabled=function(e){return n.has(Object(c.getDate)(e).getTime())}}else this.isDateDisabled=mt,this.notifyInvalidInput(e);var i;this.notifyServiceChange()},e.prototype.notifyInvalidInput=function(e){if(P(e)&&Object(a.isDevMode)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},e.prototype.notifyServiceChange=function(){this.changes.next()},e=Object(o.__decorate)([Object(a.Injectable)()],e)}(),gt=function(){function e(e){this.bus=e}return e.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,o=e.activeViewEnum,a=e.rangePivot,r=e.selectedDates.slice();if("multiple"===i)if(n.ctrlKey||n.metaKey)this.isDateSelected(r,t)?r=r.filter((function(e){return!Object(c.isEqual)(e,t)})):r.push(t),a=t;else if(n.shiftKey){var s=[a||t,t].filter((function(e){return P(e)})).sort((function(e,t){return e.getTime()-t.getTime()})),d=s[0],l=s[1];r=this.bus.service(o).dateRange(d,l),a=t>r[0]?r[0]:ne(r)}else r=[t],a=t;else r=[t],a=t;return{selectedDates:r,rangePivot:a}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return Object(c.isEqual)(e,t)}))},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[xe])],e)}(),vt=function(){function e(e,t){this.dom=e,this.zone=t}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t){var n=this;this.unsubscribe(),e&&t&&(this.navigator=e,this.view=t,this.zone.runOutsideAngular((function(){var i,o;n.navSubscription=e.scroll$().subscribe((function(e){o?o=!1:(i=!0,n.scrollSiblingOf(e.target))})),n.viewSubscription=t.scroll$().subscribe((function(e){i?i=!1:(o=!0,n.scrollSiblingOf(e.target))}))})))},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e.prototype.destroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[Ye,a.NgZone])],e)}(),yt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),_t=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarMonthCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Ot=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarYearCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),jt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarDecadeCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),kt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarCenturyCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),Ct=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarWeekNumberCellTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),wt=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarHeaderTitleTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),St=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoCalendarNavigationItemTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),It=function(){this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.sameDateSelected=new a.EventEmitter,this.dateCompletenessChange=new a.EventEmitter},xt=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}},Et=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}},Dt="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Tt=function(e){return e?e.virtualization:null},Ft={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return Vt}))},Pt={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return Vt}))},Rt={provide:d.KendoInput,useExisting:Object(a.forwardRef)((function(){return Vt}))},Vt=function(){function e(e,t,n,i,o,r,s,c,p,u,h,b,m){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=o,this.cdr=r,this.ngZone=s,this.injector=c,this.scrollSyncService=p,this.disabledDatesService=u,this.localization=h,this.selectionService=b,this.pickerService=m,this.id=Object(d.guid)(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new a.EventEmitter,this.navigate=new a.EventEmitter,this.activeViewDateChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.isActive=!1,this.cellUID=Object(d.guid)(),this.selectedDates=[],this._min=new Date(S),this._max=new Date(I),this._focusedDate=Z(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,Object(l.validatePackage)(g),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!Object(c.isEqual)(this._focusedDate,e)){var t=this.bus.service(this.activeViewEnum),n=t.lastDayOfPeriod(this.activeViewDate);t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)}this._focusedDate=e||Z(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(I)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return P(e)})).map((function(e){return Object(c.cloneDate)(e)})):Object(c.cloneDate)(e);var t=[].concat(e).filter((function(e){return P(e)})).map((function(e){return Object(c.cloneDate)(e)}));if(!se(t,this.selectedDates)){var n=ne(t);this.rangePivot=Object(c.cloneDate)(n),this.focusedDate=Object(c.cloneDate)(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-"+this.type),this.renderer.addClass(this.element.nativeElement,"k-calendar-"+e),this._type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=j[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return j[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return j[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.viewChangeSubscription=this.bus.viewChanged.subscribe((function(t){var n=t.view;return e.handleActiveViewChange(j[n])})),this.control=this.injector.get(r.NgControl,null),this.element&&this.ngZone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),te(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=$(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?xt(this.min):Y,this.maxValidateFn=this.rangeValidation?Et(this.max):Y,this.onValidatorChange())},e.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},e.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Tt(this.navigationView),Tt(this.monthView)))},e.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},e.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.containsElement=function(e){var t=this;return Boolean(lt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.handleNavigation=function(e){if(!this.disabled){var t=e?new Date(Object(c.cloneDate)(e).setDate(1)):this.focusedDate;this.focusedDate=$(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;a.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Object(u.from)(this.resolvedPromise).subscribe((function(){e.detectChanges()})))},e.prototype.handleMultiViewCalendarValueChange=function(e,t){var n=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:n,focusedDate:t})},e.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),o=n.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!se(o,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run((function(){t.selectedDates=o.map((function(e){return Object(c.cloneDate)(e)})),t.value=t.parseSelectionToValue(o),t.onControlChange(t.parseSelectionToValue(o)),t.valueChange.emit(t.parseSelectionToValue(o)),t.cdr.markForCheck()})):this.emitSameDate())},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case j.month:return this.monthCellTemplate||this.cellTemplate;case j.year:return this.yearCellTemplate;case j.decade:return this.decadeCellTemplate;case j.century:return this.centuryCellTemplate;default:return null}},e.prototype.emitNavigate=function(e){var t=j[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitEvent=function(e,t){Object(d.hasObservers)(e)&&this.ngZone.run((function(){e.emit(t)}))},e.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},e.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:ne(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},e.prototype.verifyChanges=function(){if(Object(a.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Dt+" 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 "+Dt+" for possible resolution.")}},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",T),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},e.prototype.handleBlur=function(e){var t=this;this.isActive=!1,!this.pickerService&&D(this.control)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):(this.emitBlur(e),this.detectChanges())},e.prototype.handleFocus=function(){this.isActive=!0,a.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Object(c.cloneDate)(this.focusedDate),this.detectChanges()),this.focus())},e.prototype.handleKeydown=function(e){var t=-1!==[d.Keys.ArrowUp,d.Keys.ArrowRight,d.Keys.ArrowDown,d.Keys.ArrowLeft].indexOf(e.keyCode);if(!(P(this.pickerService)&&t&&e.altKey)){var n=$(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(c.isEqual)(this.focusedDate,n)||(this.focusedDate=n,this.detectChanges(),e.preventDefault()),e.keyCode===d.Keys.Enter&&this.performSelection(this.focusedDate,e)}},e.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},e.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},e.prototype.setAriaActivedescendant=function(){if(P(this.element)){var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(c.cloneDate)(ne(e)):e.map((function(e){return Object(c.cloneDate)(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],e.prototype,"type",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(a.HostBinding)("class.k-week-number"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewDateChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!0}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("cellTemplate"),Object(o.__metadata)("design:type",yt),Object(o.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!0}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("monthCellTemplate"),Object(o.__metadata)("design:type",_t),Object(o.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!0}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("yearCellTemplate"),Object(o.__metadata)("design:type",Ot),Object(o.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!0}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("decadeCellTemplate"),Object(o.__metadata)("design:type",jt),Object(o.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!0}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("centuryCellTemplate"),Object(o.__metadata)("design:type",kt),Object(o.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!0}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.Input)("weekNumberTemplate"),Object(o.__metadata)("design:type",Ct),Object(o.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!0}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.Input)("headerTitleTemplate"),Object(o.__metadata)("design:type",wt),Object(o.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(St,{static:!0}),Object(o.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(o.__decorate)([Object(a.Input)("navigationItemTemplate"),Object(o.__metadata)("design:type",St),Object(o.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(o.__decorate)([Object(a.ViewChild)(pt,{static:!1}),Object(o.__metadata)("design:type",pt)],e.prototype,"navigationView",void 0),Object(o.__decorate)([Object(a.ViewChild)(ut,{static:!1}),Object(o.__metadata)("design:type",ut)],e.prototype,"monthView",void 0),Object(o.__decorate)([Object(a.HostBinding)("attr.id"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(o.__decorate)([Object(a.HostBinding)("attr.role"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(o.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(o.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[xe,Ft,Pt,Rt,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.calendar"},bt,vt,gt],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplate?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplate?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="navigate.emit($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}),Object(o.__param)(12,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[xe,Ye,a.ElementRef,bt,a.Renderer2,a.ChangeDetectorRef,a.NgZone,a.Injector,vt,ft,s.LocalizationService,gt,It])],e)}(),Bt=function(){return function(e,t){return!P(e.value)&&t?{incompleteDate:!0}:null}};!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None"}(ot||(ot={}));var At=/year|month|<day>/,Mt=/hour|minute|second|millisecond/,Nt=/d|M|H|h|m|s/,Lt=function(e){return e.replace(/^0*/,"")},zt=function(){this.symbols=""},Ht=function(){function e(e,t,n,i,o){if(void 0===o&&(o=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=o,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Object(c.getDate)(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},Object(l.validatePackage)(g),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=Object(c.cloneDate)(i);else{this.value=Object(c.getDate)(new Date);for(var a=this.dateFormatString(this.value,this.format).symbols,r=0;r<a.length;r++)this.setExisting(a[r],!1)}}return e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some((function(e){return"yy"===e.pattern}))},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return Object(c.cloneDate)(this.value)},e.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=Object(c.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(c.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.shouldNormalizeCentury()&&(n=this.normalizeCentury(n)),n.getFullYear()>0&&(this.setExisting(e,!0),this.value=n)},e.prototype.parsePart=function(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};for(var i=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),a=o.symbols,r=!1,s="",d="",l="",p=0;p<i.length;p++)a[p]===e?(d+=this.getExisting(e)?i[p]:"0",r=!0):r?l+=i[p]:s+=i[p];var u=d.length-3,h=null,b=this.matchMonth(t),m=this.matchDayPeriod(t,e),f="0"===t,g=(this.leadingZero||{})[e]||0;f?0!==parseInt(n?t:d+t,10)||this.isAbbrMonth(o.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(p=Math.max(0,u);p<=d.length;p++){var v=n?t:d.substring(p)+t;if("S"===e&&n)v=Array(a.match(/S+(\1)/)[0].length).join("0")+v;var y=parseInt(v,10);if(!(h=this.intl.parseDate(s+v+l,this.format))&&!isNaN(y)&&!isNaN(parseInt(t,10))){if("M"===e&&!b){var _=y-1;_>-1&&_<12&&((h=Object(c.cloneDate)(this.value)).setMonth(_),h.getMonth()!==_&&(h=Object(c.lastDayOfMonth)(Object(c.addMonths)(h,-1))))}"y"===e&&(h=Object(c.createDate)(parseInt(v,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&h.getDate()!==this.value.getDate()&&(h=Object(c.lastDayOfMonth)(Object(c.addMonths)(h,-1))))}if(h){var O=this.partPattern(o.partMap,e).pattern,j=this.intl.parseDate(""+s+this.peek(v,O)+l,this.format),k=this.patternLength(O)||O.length,C=g+(Lt(v)||t).length>=k,w=null===j||C;return this.shouldNormalizeCentury()&&(h=this.normalizeCentury(h)),this.value=h,this.setExisting(e,!0),{value:this.value,switchToNext:w}}}return b&&(h=this.intl.parseDate(s+b+l,this.format))?(this.value=h,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(h=this.intl.parseDate(s+m+l,this.format))?(this.value=h,{value:this.value,switchToNext:!0}):(f&&this.setExisting(e,!1),{value:null,switchToNext:!1})},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},e.prototype.setLeadingZero=function(e){this.leadingZero=e},e.prototype.normalizeCentury=function(e){if(!P(e))return e;var t=function(e){return!P(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))}(e),n=this.getNormalizedCenturyBase(t);return M(e,n+t)},e.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.peek=function(e,t){var n=Lt(e)+"0";return function(e){return new Array(Math.max(e,0)).fill("0").join("")}(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.matchDayPeriod=function(e,t){var n=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.allDayPeriods=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("dayperiod"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.patternLength=function(e){return"y"===e[0]?4:Nt.test(e)?2:0},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],o=[],a=0;a<n.length;a++)for(var r=this.intl.formatDate(e,{pattern:n[a].pattern}).length;r>0;)i.push(this.symbols[n[a].pattern[0]]||"_"),o.push(n[a]),r--;var s=new zt;return s.symbols=i.join(""),s.partMap=o,s},e.prototype.merge=function(e,t){for(var n="",i="",o=t.symbols,a=o.length-1;a>=0;a--)if(-1===this.knownParts.indexOf(o[a])||this.getExisting(o[a]))n=e[a]+n,i=o[a]+i;else{for(var r=o[a];a>=0&&r===o[a];)a--;for(a++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[a])+n;i.length<n.length;)i=o[a]+i}return[n,i]},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},e}(),Kt=function(){function e(e,t,n,i,o,r,s,c){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=o,this.injector=r,this.localization=s,this.pickerService=c,this.focusableId="k-"+Object(d.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new a.EventEmitter,this.valueUpdate=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.arrow=ot,this.arrowDirection=ot.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Y,this.maxValidator=Y,this.incompleteValidator=Y,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!G(e,this.min,this.max)||(this._value=Object(c.cloneDate)(e),this.valueUpdate.emit(Object(c.cloneDate)(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrap&&!P(this.pickerService)){var t=this.wrap.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},e.prototype.containsElement=function(e){var t=this;return Boolean(lt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?xt(this.min):Y,this.maxValidator=this.rangeValidation?Et(this.max):Y,this.incompleteValidator=this.incompleteDateValidation?Bt():Y,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&Object(c.isEqual)(this.value,this.kendoDate.getDateObject());(e.format||!t||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Object(c.cloneDate)(e),this.updateElementValue(this.isActive)},e.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Object(c.cloneDate)(e),this.notify())},e.prototype.notify=function(){var e=this;this.ngZone.run((function(){e.onControlChange(Object(c.cloneDate)(e.value)),e.valueChange.emit(Object(c.cloneDate)(e.value))}))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},e.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},e.prototype.handleButtonClick=function(e){this.arrowDirection=ot.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t,n,i,o=this.caret(),a=this.currentFormat[o[0]],r=(this.steps||{})[this.symbolsMap[a]]||1;if("S"===a&&!this.steps.millisecond){var s=(n=this.inputFormat,(i=n&&n.match(/S+(\1)/))?i[0].length:0);t=s,r=Math.pow(10,3-t)}this.kendoDate.modifyPart(a,e*r),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(a),this.updateIncompleteValidationStatus()},e.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(e>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var o=i;o>=0&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[i];)o+=e;return i>o&&(o+1!==t[0]||i+1!==t[1])?(this.caret(o+1,i+1),this.resetSegmentValue=!0,!0):i<o&&(i!==t[0]||o!==t[1])&&(this.caret(i,o),this.resetSegmentValue=!0,!0)},e.prototype.selectDateSegment=function(e){for(var t=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t&&(t=i));t<0&&(t=0),this.caret(0,0),this.caret(t,n)},e.prototype.handleClick=function(){if(this.hasMousedown=!1,this.isActive){var e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=P(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,n=!e&&t?0:this.caret()[0];this.selectNearestSegment(n)}},e.prototype.handleDragAndDrop=function(e){e.preventDefault()},e.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},e.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,Object(d.hasObservers)(this.onFocus)?this.ngZone.run((function(){t.emitFocus(e)})):this.emitFocus(e)},e.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Object(d.hasObservers)(this.onBlur)||D(this.ngControl)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):this.emitBlur(e)},e.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,n=new Ht(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return n.setLeadingZero(this.isActive?t:null),n},e.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){return e[t.pattern[0]]=t.type,e}),{})},e.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),o=!this.isActive&&P(this.placeholder)&&!this.kendoDate.hasValue(),a=this.inputElement;this.currentFormat=i[1],this.currentValue=o?"":i[0],this.renderer.setProperty(a,"value",this.currentValue),a.placeholder!==this.placeholder&&this.renderer.setProperty(a,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},e.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],o=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==o.selectionStart&&(n&&(Object(d.isDocumentAvailable)()&&document.activeElement!==o&&o.focus(),o.setSelectionRange(e,t)),i=[o.selectionStart,o.selectionEnd])}catch(e){i=[]}return i}},e.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},e.prototype.verifyRange=function(){if(Object(a.isDevMode)()&&!U(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},e.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=$(e,this.min,this.max);this.autoCorrect&&!Object(c.isEqual)(e,t)&&(this.kendoDate=this.getKendoDate(t))},e.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){var n=e.date,i=e.time;return{date:n||At.test(t.type),time:i||Mt.test(t.type)}}),{date:!1,time:!1})},e.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},e.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;P(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var t=+e!=+this.value;this.writeValue(e),t&&this.notify()},e.prototype.bindEvents=function(){var e=this.element.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))},e.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},e.prototype.handlePaste=function(){this.paste=!0},e.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==d.Keys.Tab)if(e.keyCode!==d.Keys.Backspace){switch(e.keyCode){case d.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case d.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case d.Keys.ArrowRight:this.switchDateSegment(1);break;case d.Keys.ArrowLeft:this.switchDateSegment(-1);break;case d.Keys.Home:this.selectNearestSegment(0);break;case d.Keys.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}else this.backspace=!0;else this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault()},e.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(e,t,n,i){var o=i+e.length-n.length,a=e[o],r=e.substring(0,i+e.length-n.length),s=n.substring(0,i),c=[];if(r===s&&i>0)return c.push([t[i-1],s[i-1]]),c;if(0===r.indexOf(s)&&(0===s.length||t[s.length-1]!==t[s.length])){var d="";1===s.length&&c.push([t[0],s[0]]);for(var l=s.length;l<r.length;l++)t[l]!==d&&"_"!==t[l]&&(d=t[l],c.push([d,""]));return c}if(0===s.indexOf(r)||"_"===t[i-1]){var p=t[0];for(l=Math.max(0,r.length-1);l<t.length;l++)if("_"!==t[l]){p=t[l];break}return[[p,s[i-1]]]}return" "===s[s.length-1]||s[s.length-1]===a&&"_"===t[o]?[[t[i-1],"_"]]:[[t[i-1],s[i-1]]]}(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1],n=!1;if(!t){for(var i=0;i<e.length;i++)n=this.kendoDate.parsePart(e[i][0],e[i][1],this.resetSegmentValue).switchToNext;var o=this.kendoDate.getDateObject();this.value&&o&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(B(this.value,o)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),e.length&&"_"!==e[0][0]&&this.selectDateSegment(e[0][0]),(n||t)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}},e.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(P(this.ngControl)&&!P(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))):P(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"hasPopup",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueUpdate",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.ViewChild)("dateInput",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"dateInput",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrap",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrap",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-dateinput"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"wrapperClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:s.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:d.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},s.LocalizationService],selector:"kendo-dateinput",template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <span class="k-dateinput-wrap" #wrap>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-select" (mousedown)="$event.preventDefault()">\n <span\n class="k-link k-link-increase"\n [class.k-state-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n class="k-link k-link-decrease"\n (click)="handleButtonClick(-1)"\n [class.k-state-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(o.__param)(7,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[a.ChangeDetectorRef,p.IntlService,a.Renderer2,a.ElementRef,a.NgZone,a.Injector,s.LocalizationService,It])],e)}(),Gt=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Wt=new a.InjectionToken("dateinputs-touch-enabled"),Ut=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}},$t=function(){function e(e,t,n,i,o,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=o,this.renderer=r,this.injector=s,this.pickerService=p,this.disabledDatesService=u,this.touchEnabled=h,this.focusableId="k-"+Object(d.guid)(),this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=Object(c.cloneDate)(S),this.max=Object(c.cloneDate)(I),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(d.guid)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesValidateFn=Y,this.incompleteValidator=Y,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],Object(l.validatePackage)(g),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(c.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&Object(d.hasObservers)(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?xt(this.min):Y,this.maxValidateFn=this.rangeValidation?Et(this.max):Y,this.disabledDatesValidateFn=this.disabledDatesValidation?Ut(this.disabledDatesService.isDateDisabled):Y,this.incompleteValidator=this.incompleteDateValidation?Bt():Y,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(c.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.calendar||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(Object(c.cloneDate)(e)),this.valueChange.emit(Object(c.cloneDate)(e))},e.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),e.prototype.mergeTime=function(e){return this.value&&e?B(e,this.value):e},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n===d.Keys.Escape&&(this.show=!1),t&&(n!==d.Keys.ArrowDown||this.show||(this.show=!0),n===d.Keys.ArrowUp&&(this.show=!1)),n===d.Keys.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)},e.prototype.togglePopup=function(e){var t=new Gt;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this._show)if(this._show=e,e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()&&!U(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),X()&&(this.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(d.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleBlur=function(e){var t=this,n=e&&F(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(Object(d.hasObservers)(this.onBlur)||this.show&&Object(d.hasObservers)(this.close)||D(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},e.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},Object(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrapper",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!1}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("cellTemplate"),Object(o.__metadata)("design:type",yt),Object(o.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!1}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("monthCellTemplate"),Object(o.__metadata)("design:type",_t),Object(o.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!1}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("yearCellTemplate"),Object(o.__metadata)("design:type",Ot),Object(o.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!1}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("decadeCellTemplate"),Object(o.__metadata)("design:type",jt),Object(o.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("centuryCellTemplate"),Object(o.__metadata)("design:type",kt),Object(o.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!1}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.Input)("weekNumberTemplate"),Object(o.__metadata)("design:type",Ct),Object(o.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!1}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.Input)("headerTitleTemplate"),Object(o.__metadata)("design:type",wt),Object(o.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(St,{static:!1}),Object(o.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(o.__decorate)([Object(a.Input)("navigationItemTemplate"),Object(o.__metadata)("design:type",St),Object(o.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-datepicker"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:d.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},s.LocalizationService,It,ft,{provide:s.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-calendar"></span>\n </span>\n </span>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n '}),Object(o.__param)(9,Object(a.Optional)()),Object(o.__param)(9,Object(a.Inject)(Wt)),Object(o.__metadata)("design:paramtypes",[a.NgZone,s.LocalizationService,a.ChangeDetectorRef,b.c,a.ElementRef,a.Renderer2,a.Injector,It,ft,Boolean])],e)}(),qt="dayperiod",Zt="hour",Yt="millisecond",Xt="minute",Qt="second",Jt=new RegExp(Zt+"|"+Xt+"|"+Qt+"|"+Yt+"|"+qt+"|literal"),en=function(){function e(e,t,n,i,o,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=o,this.renderer=r,this.injector=s,this.pickerService=p,this.intl=u,this.touchEnabled=h,this.focusableId="k-"+Object(d.guid)(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(d.guid)(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=Y,this.incompleteValidator=Y,this._min=Object(c.cloneDate)(x),this._max=Object(c.cloneDate)(E),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],Object(l.validatePackage)(g),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=Object(c.cloneDate)(e||x)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=Object(c.cloneDate)(e||E)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(c.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&Object(d.hasObservers)(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngOnChanges=function(e){var t,n;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(t=this.min,n=this.max,function(e){if(!t||!n||!e.value)return null;var i={timeRangeError:{maxValue:n,minValue:t,value:e.value}};return W(e.value,t,n)?null:i}):Y,this.incompleteValidator=this.incompleteDateValidation?Bt():Y,this.onValidatorChange()),e.format&&this.verifyFormat()},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n!==d.Keys.Escape?t&&(n===d.Keys.ArrowUp&&(this.show=!1),n!==d.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(c.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.timeSelector||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.handleChange=function(e){var t=this;if(Object(c.isEqual)(this.value,e))return this.focusInput(),void(this.show=!1);this.value=Object(c.cloneDate)(e),this.zone.run((function(){t.focusInput(),t.show=!1,t.onControlChange(Object(c.cloneDate)(e)),t.valueChange.emit(Object(c.cloneDate)(e))}))},e.prototype.handleReject=function(){this.show=!1},e.prototype.handleInputChange=function(e){var t=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(t)},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.normalizeTime=function(e){return B(w,e)},e.prototype.mergeTime=function(e){return this.value&&e?B(this.value,e):e},e.prototype.togglePopup=function(e){var t=new Gt;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this.isOpen)if(this._show=e,this.cdr.markForCheck(),e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},e.prototype.verifyFormat=function(){if(Object(a.isDevMode)()&&this.intl.splitDateFormat(this.format).some((function(e){return!Jt.test(e.type)})))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),X()&&(this.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(d.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&F(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(Object(d.hasObservers)(this.onBlur)||this.show&&Object(d.hasObservers)(this.close)||D(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},Object(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!1}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!1}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrapper",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-timepicker"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:d.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.timepicker"},It],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-clock"></span>\n </span>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n </span>\n <ng-container #container></ng-container>\n '}),Object(o.__param)(9,Object(a.Optional)()),Object(o.__param)(9,Object(a.Inject)(Wt)),Object(o.__metadata)("design:paramtypes",[a.NgZone,s.LocalizationService,a.ChangeDetectorRef,b.c,a.ElementRef,a.Renderer2,a.Injector,It,p.IntlService,Boolean])],e)}(),tn=new RegExp(Zt+"|"+Xt+"|"+Qt+"|"+qt+"|literal"),nn=function(){function e(e,t,n,i,o,r,s,p,h,b){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=o,this.host=r,this.touchEnabled=s,this.localization=p,this.disabledDatesService=h,this.renderer=b,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+Object(d.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=Object(c.cloneDate)(x),this.timeSelectorMax=Object(c.cloneDate)(E),this.calendarValue=null,this.calendarMin=Object(c.cloneDate)(S),this.calendarMax=de(I),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=ce(S,x),this._max=ce(I,E),this._isActive=!1,this.onControlTouched=Y,this.onControlChange=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesValidateFn=Y,this.incompleteValidator=Y,this.subscriptions=new u.Subscription,Object(l.validatePackage)(g)}var t;return t=e,Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(c.cloneDate)(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;var t=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){P(e)&&(this._min=Object(c.cloneDate)(e),this.calendarMin=Object(c.getDate)(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){P(e)&&(this._max=Object(c.cloneDate)(e),this.calendarMax=de(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return P(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),this._isActive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return P(this.calendar)||P(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(P(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(Object(h.tap)(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cdr.markForCheck()}))),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),X()&&this.subscriptions.add(this.ngZone.runOutsideAngular((function(){return Object(u.fromEvent)(window,"blur").subscribe(e.handleCancel.bind(e))})))},e.prototype.ngOnChanges=function(e){(P(e.min)||P(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?xt(this.min):Y,this.maxValidateFn=this.rangeValidation?Et(this.max):Y,this.disabledDatesValidateFn=this.disabledDatesValidation?Ut(this.disabledDatesService.isDateDisabled):Y,this.incompleteValidator=this.incompleteDateValidation?Bt():Y,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())},e.prototype.blur=function(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()},e.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((P(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.isEmpty=function(){return!P(this.value)&&this.input.isEmpty()},e.prototype.handleIconClick=function(e){var t=this;if(!this.disabled&&!this.readonly){e.preventDefault();var n=!this.isOpen||Object(d.hasObservers)(this.close);this.run(n,(function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))}},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(d.hasObservers)(this.onFocus)&&this.ngZone.run((function(){return e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this;if(this.isActive&&!this.focusTargetInComponent(e)){this.isActive=!1;var n=this.host.nativeElement.classList.contains("ng-untouched")||Object(d.hasObservers)(this.onBlur)||this.isOpen&&Object(d.hasObservers)(this.close);this.run(n,(function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))}},e.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(Object(c.isEqual)(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},e.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},e.prototype.handleAccept=function(){var e=this;if(this.isOpen){var t=ce(this.calendar.value,this.timeSelector.current),n=!Object(c.isEqual)(this.value,t)||Object(d.hasObservers)(this.close);this.run(n,(function(){e.handleValueChange(t),e.togglePopup(!1)}))}},e.prototype.handleCancel=function(){var e=this;if(this.isOpen){var t=Object(d.hasObservers)(this.close);this.run(t,(function(){return e.togglePopup(!1)}))}},e.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},e.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},e.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e,i=n.keyCode,o=n.altKey;switch(i){case o&&d.Keys.ArrowUp:case d.Keys.Escape:this.handleCancel();break;case!this.isOpen&&o&&d.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case o&&d.Keys.ArrowRight:this.changeActiveTab("time");break;case o&&d.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&P(this.calendarValue)&&d.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},e.prototype.handleTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey,o=t.target,a=P(o.nextElementSibling)&&!o.nextElementSibling.disabled;n!==d.Keys.Tab||i||a||(this.input.focus(),this.handleCancel())},e.prototype.handleBackTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey;n===d.Keys.Tab&&i&&this.input.focus()},e.prototype.preventMouseDown=function(e){e.preventDefault()},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()&&P(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},e.prototype.verifyMinMaxRange=function(){if(Object(a.isDevMode)()&&!U(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")},e.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce((function(e,t){return e+t.pattern}),"")||"t"},e.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},e.prototype.timeFormatPartFilter=function(e,t,n){var i=t>=1&&n[t-1];return i&&"literal"===e.type?tn.test(i.type):tn.test(e.type)},e.prototype.togglePopup=function(e){if(e!==this.isOpen){var t=new Gt;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus())}},e.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.openPopup=function(){var e=this;this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);var t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:"k-datetime-container "+(this.popupSettings.popupClass||""),anchorAlign:{vertical:"bottom",horizontal:t},popupAlign:{vertical:"top",horizontal:t}}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.handleCancel()}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleValueChange=function(e){Object(c.isEqual)(this.value,e)||(this.value=Object(c.cloneDate)(e),this.onControlChange(Object(c.cloneDate)(e)),this.valueChange.emit(Object(c.cloneDate)(e)))},e.prototype.focusTargetInComponent=function(e){if(!P(e))return!1;var t=e.relatedTarget||document.activeElement,n=P(this.popupRef)&&this.popupRef.popupElement.contains(t),i=this.wrapper.nativeElement.contains(t);return n||i},e.prototype.setTimeSelectorMinMax=function(e){var t=P(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.min));this.timeSelectorMin=Object(c.cloneDate)(t?this.min:x);var n=P(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.max));this.timeSelectorMax=Object(c.cloneDate)(n?this.max:E)},e.prototype.setCalendarValue=function(e){var t=P(e)&&G(e,this.calendarMin,this.calendarMax);this.calendarValue=t?Object(c.getDate)(e):null},e.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},e.prototype.run=function(e,t){e?this.ngZone.run((function(){return t()})):t()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))},Object(o.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(a.HostBinding)("class.k-datetimepicker"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(o.__decorate)([Object(a.ViewChild)("wrapper",{static:!0}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],e.prototype,"defaultTab",null),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!1}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!1}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!1}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!1}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!1}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!1}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!1}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("popupTemplate",{read:a.TemplateRef,static:!0}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=Object(o.__decorate)([Object(a.Component)({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:a.ChangeDetectionStrategy.OnPush,providers:[It,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:d.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <span\n #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n </kendo-dateinput>\n <span class="k-select"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-link k-link-date">\n <span\n class="k-icon"\n [class.k-i-calendar]="activeTab === \'date\'"\n [class.k-i-clock]="activeTab === \'time\'"\n >\n </span>\n </span>\n </span>\n </span>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-date-tab"\n [class.k-state-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-tab"\n [class.k-state-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-time-accept k-button k-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n '}),Object(o.__param)(6,Object(a.Inject)(Wt)),Object(o.__metadata)("design:paramtypes",[b.c,p.IntlService,a.ChangeDetectorRef,It,a.NgZone,a.ElementRef,Boolean,s.LocalizationService,ft,a.Renderer2])],e)}(),on=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=Q(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),an=function(){function e(e,t,n,i,o,r){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=o,this.renderer=r,this.activeView=j.month,this.isActive=!0,this.min=new Date(S),this.max=new Date(I),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===j.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===j.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===j.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===j.century},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(this.initService(),(0===this.weekNames.length||e.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service){this.views=this.views||2;var t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views));this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max);var i=ee(e,"activeView"),o=this.views>0&&ee(e,"views");!i&&this.isInDates(t)&&!o&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=Object(c.cloneDate)(this.dates[0]),this.activeDateChange.emit(this.activeDate))}},e.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},e.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},e.prototype.initService=function(){this.service=this.bus.service(this.activeView)},e.prototype.isMonthView=function(){return this.activeView===j.month},e.prototype.getCaptionTitle=function(e){return this.service.title(e)},e.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},e.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,o=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),r=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===i.NextView?this.nextAnimationDate=Object(c.cloneDate)(this.dates[0]):this.prevAnimationDate=Object(c.cloneDate)(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach((function(e){t.renderer.setStyle(e,"width",r+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")}));var s=o.getBoundingClientRect(),d=parseFloat(getComputedStyle(n).columnGap),l=e===i.NextView?"translateX(0)":"translateX(-"+(s.width+d)+"px)",p=e===i.NextView?"translateX(-"+(s.width+d)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:l},{transform:p}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){t.renderer.removeStyle(n,"width"),t.renderer.removeStyle(n,"overflow"),n.querySelectorAll("table").forEach((function(e){t.renderer.removeStyle(e,"width")})),t.animation=null,t.nextAnimationDate=null,t.prevAnimationDate=null,t.cdr.detectChanges()})},e.prototype.navigate=function(e){this.animateNavigation&&Object(d.isDocumentAvailable)()&&P(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),n=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(n)&&(this.dates=n),this.activeDate=Object(c.cloneDate)(this.dates[0]),this.focusedDate=Object(c.cloneDate)(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Object(c.cloneDate)(t)},e.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},e.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");if(t){var n=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(t,"min-width",n+"px")}},e.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},e.prototype.clampDate=function(e){return $(e,this.min,this.max)},e.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},e.prototype.isListInRange=function(e){var t=this.service.beginningOfPeriod(this.min),n=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return t<=e[0]&&e[e.length-1]<n},e.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},e.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-view"),Object(a.HostBinding)("class.k-hstack"),Object(a.HostBinding)("class.k-align-items-start"),Object(a.HostBinding)("class.k-justify-content-center"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-monthview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-yearview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-decadeview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-centuryview"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-horizontal",template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n class="k-content k-calendar-content k-calendar-table"\n [ngClass]="class"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames" class="k-calendar-th">{{name}}</th>\n </tr>\n </thead>\n <tbody\n class="k-calendar-tbody"\n kendoCalendarView\n role="rowgroup"\n direction="horizontal"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [selectionRange]="selectionRange"\n [activeRangeEnd]="activeRangeEnd"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (cellEnter)="cellEnter.emit($event)"\n (cellLeave)="cellLeave.emit($event)"\n >\n </tbody>\n </table>\n </ng-template>\n\n \x3c!-- When Next is clicked a placeholder table is rendered before the Main Table --\x3e\n <ng-template\n *ngIf="nextAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: nextAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n\n <ng-template\n *kFor="let date of dates"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: date\n }"\n >\n </ng-template>\n\n \x3c!-- When Prev is clicked a placeholder table is rendered after the Main Table --\x3e\n <ng-template\n *ngIf="prevAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: prevAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n '}),Object(o.__metadata)("design:paramtypes",[xe,p.IntlService,on,a.ChangeDetectorRef,a.ElementRef,a.Renderer2])],e)}(),rn=function(){return null},sn=function(e){return P(e)?function(t){if(!(P(t)&&P(t.start)&&P(t.end))||t.start>t.end)return null;var n=function(e,t,n){if(!(e&&t&&n)||e>t)return[];for(var i=[],o=e;o<=t;)n(o)&&i.push(o),o=Object(c.addDays)(o,1);return i}(t.start,t.end,e),i={disabledDatesInRange:n};return n.length?i:null}:rn},cn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",dn={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return pn}))},ln={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return pn}))},pn=function(){function e(e,t,n,o,r,s,c,l){this.bus=e,this.element=t,this.navigator=n,this.renderer=o,this.cdr=r,this.zone=s,this.disabledDatesService=c,this.selectionService=l,this.id=Object(d.guid)(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new a.EventEmitter,this.navigate=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.cellUID=Object(d.guid)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=i.PrevView,this.nextView=i.NextView,this.selectedDates=[],this._min=new Date(S),this._max=new Date(I),this._focusedDate=Z(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesRangeValidateFn=Y,this.subscriptions=new u.Subscription,this.setClasses(t.nativeElement)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||Z()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(I)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return P(e)})).map((function(e){return Object(c.cloneDate)(e)})):Object(c.cloneDate)(e);var t=[].concat(e).filter((function(e){return P(e)})).map((function(e){return Object(c.cloneDate)(e)}));if(!se(t,this.selectedDates)){var n=ne(t);this.rangePivot=Object(c.cloneDate)(n),this.focusedDate=Object(c.cloneDate)(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=j[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return j[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return j[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){this.onControlTouched(),this.isActive=!1,this.isHovered=!1},e.prototype.handleFocus=function(){this.isActive=!0},e.prototype.handleMouseEnter=function(){this.isHovered=!0},e.prototype.handleMouseLeave=function(){this.isHovered=!1},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleClick=function(){this.isActive||this.focus()},e.prototype.keydown=function(e){e.keyCode===d.Keys.Enter&&this.performSelection(this.focusedDate,e);var t=$(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(c.isEqual)(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.bus.viewChanged.subscribe((function(t){var n=t.view;e.activeView=j[n],e.activeViewChange.emit(e.activeView),e.cdr.detectChanges(),e.updateButtonState()})))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),te(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=$(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?xt(this.min):Y,this.maxValidateFn=this.rangeValidation?Et(this.max):Y,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?sn(this.disabledDatesService.isDateDisabled):Y,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.updateButtonState()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate;var o=!n&&se(i,this.selectedDates);this.disabled||o||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map((function(e){return Object(c.cloneDate)(e)})),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},e.prototype.handleTodayButtonClick=function(e){var t=e.focusedDate,n=this.bus.service(this.activeViewEnum).isInArray(t,this.viewList.dates),i=!this.bus.canMoveDown(this.activeViewEnum);!n&&i&&this.emitNavigate(t),this.handleDateChange(e)},e.prototype.setActiveDate=function(e){this.activeDate=Object(c.cloneDate)(e),this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case j.month:return this.monthCellTemplate||this.cellTemplate;case j.year:return this.yearCellTemplate;case j.decade:return this.decadeCellTemplate;case j.century:return this.centuryCellTemplate;default:return null}},e.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=j[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitCellEvent=function(e,t){Object(d.hasObservers)(e)&&this.zone.run((function(){e.emit(t)}))},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:ne(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},e.prototype.verifyChanges=function(){if(Object(a.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+cn+" for possible resolution.");if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every((function(e){return e instanceof Date})))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check "+cn+" for possible resolution.")}},e.prototype.updateButtonState=function(){var e=this;this.resolvedPromise.then((function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()}))},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(c.cloneDate)(ne(e)):e.map((function(e){return Object(c.cloneDate)(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date),Object(o.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.ContentChild)(yt,{static:!0}),Object(o.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("cellTemplate"),Object(o.__metadata)("design:type",yt),Object(o.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(_t,{static:!0}),Object(o.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("monthCellTemplate"),Object(o.__metadata)("design:type",_t),Object(o.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ot,{static:!0}),Object(o.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("yearCellTemplate"),Object(o.__metadata)("design:type",Ot),Object(o.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(jt,{static:!0}),Object(o.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("decadeCellTemplate"),Object(o.__metadata)("design:type",jt),Object(o.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(kt,{static:!0}),Object(o.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(o.__decorate)([Object(a.Input)("centuryCellTemplate"),Object(o.__metadata)("design:type",kt),Object(o.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(Ct,{static:!0}),Object(o.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(o.__decorate)([Object(a.Input)("weekNumberTemplate"),Object(o.__metadata)("design:type",Ct),Object(o.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(o.__decorate)([Object(a.ContentChild)(wt,{static:!0}),Object(o.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(o.__decorate)([Object(a.Input)("headerTitleTemplate"),Object(o.__metadata)("design:type",wt),Object(o.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(o.__decorate)([Object(a.ViewChild)(an,{static:!1}),Object(o.__metadata)("design:type",an)],e.prototype,"viewList",void 0),Object(o.__decorate)([Object(a.HostBinding)("attr.id"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(o.__decorate)([Object(a.HostBinding)("attr.role"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(o.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(o.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(o.__decorate)([Object(a.HostBinding)("attr.aria-activedescendant"),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),Object(o.__decorate)([Object(a.HostListener)("blur"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleBlur",null),Object(o.__decorate)([Object(a.HostListener)("focus"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleFocus",null),Object(o.__decorate)([Object(a.HostListener)("mouseenter"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),Object(o.__decorate)([Object(a.HostListener)("mouseleave"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),Object(o.__decorate)([Object(a.HostListener)("mousedown",["$event"]),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Object]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleMousedown",null),Object(o.__decorate)([Object(a.HostListener)("click"),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"handleClick",null),Object(o.__decorate)([Object(a.HostListener)("keydown",["$event"]),Object(o.__metadata)("design:type",Function),Object(o.__metadata)("design:paramtypes",[Object]),Object(o.__metadata)("design:returntype",void 0)],e.prototype,"keydown",null),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[xe,dn,ln,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},bt,gt],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplate?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || isHovered"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n (valueChange)="handleDateChange($event)"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n >\n </kendo-calendar-horizontal>\n '}),Object(o.__metadata)("design:paramtypes",[xe,a.ElementRef,bt,a.Renderer2,a.ChangeDetectorRef,a.NgZone,ft,gt])],e)}(),un=function(){function e(e){this.templateRef=e}return e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangePopupTemplate]"}),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),hn=function(e){return e&&e.isActive||!1},bn=function(){function e(){this.activeRangeEnd$=new u.BehaviorSubject(null),this.focusedDate$=new u.BehaviorSubject(null),this.endInput$=new u.BehaviorSubject(null),this.startInput$=new u.BehaviorSubject(null),this.dateRangePopup$=new u.BehaviorSubject(null),this.range$=new u.BehaviorSubject(C)}return Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),e.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},e.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},e.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},e.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},e.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=hn(e),n=hn(this.startInput$.value),i=hn(this.endInput$.value);return t||n||i||function(e){return e&&e.hasActiveContent()}(e)||!1},e.prototype.registerStartInput=function(e){this.startInput$.next(e)},e.prototype.registerEndInput=function(e){this.endInput$.next(e)},e.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},e.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},e.prototype.setFocusedDate=function(e){Object(c.isEqual)(this.focusedDate$.value,e)||this.focusedDate$.next(e)},e.prototype.setRange=function(e){void 0===e&&(e=C),this.range$.next(e)},e=Object(o.__decorate)([Object(a.Injectable)()],e)}(),mn=function(){function e(e,t,n,i,o){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=o,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.cancel=new a.EventEmitter,this.popupUID=Object(d.guid)(),this.calendarSubscriptions=new u.Subscription,this.popupSubscriptions=new u.Subscription,this.resolvedPromise=Promise.resolve()}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){if(this._show!==e){var t=new Gt;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},e.prototype.ngAfterViewInit=function(){var e=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),X()&&this.zone.runOutsideAngular((function(){return e.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(e.handleWindowBlur.bind(e))}))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.calendarSubscriptions.unsubscribe(),this.activateSubscription&&this.activateSubscription.unsubscribe(),this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe()},e.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular((function(){e.activateSubscription=Object(u.merge)(e.contentCalendar.changes,e.viewCalendar.changes).pipe(Object(h.filter)((function(e){return e&&e.first})),Object(h.map)((function(e){return e.first}))).subscribe((function(e){return setTimeout((function(){return e.focus()}))}))})))},e.prototype.focus=function(){this.calendar&&this.calendar.focus()},e.prototype.hasActiveContent=function(){return!(!Object(d.isDocumentAvailable)()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},e.prototype.toggle=function(e){var t=this;this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},e.prototype.handleWindowBlur=function(){var e=this;this.show&&(Object(d.hasObservers)(this.close)?this.zone.run((function(){return e.show=!1})):this.show=!1)},e.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},e.prototype.handleKeydown=function(e){var t=this,n=e.altKey,i=e.keyCode;(i===d.Keys.Escape||n&&i===d.Keys.ArrowUp)&&this.zone.run((function(){return t.cancelPopup()}))},e.prototype.subscribeFocusBlur=function(e){var t=this;if(this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e){var n=e.element.nativeElement;this.blurSubscription=Object(u.fromEvent)(n,"blur").subscribe((function(){return t.onBlur.emit()})),this.focusSubscription=Object(u.fromEvent)(n,"focus").subscribe((function(){return t.onFocus.emit()}))}},e.prototype.addPopupSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];P(this.popupSubscriptions)||(this.popupSubscriptions=new u.Subscription),t.map((function(t){return e.popupSubscriptions.add(t)}))},Object.defineProperty(e.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype._toggle=function(e){var t=this;if(this._show=e,this.popupRef&&this.destroyPopup(),this._show){var n=this.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:n},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:n},positionMode:"absolute"});var i=this.popupRef,o=i.popupElement,a=i.popupAnchorViewportLeave;o.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular((function(){return Object(u.fromEvent)(o,"keydown").subscribe(t.handleKeydown.bind(t))})),Object(u.fromEvent)(o,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),a.subscribe((function(){return t.cancelPopup()})))}},e.prototype.destroyPopup=function(){P(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),P(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},Object(o.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!1}),Object(o.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(o.__decorate)([Object(a.ViewChild)("defaultTemplate",{static:!1}),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"defaultTemplate",void 0),Object(o.__decorate)([Object(a.ContentChild)(un,{static:!1}),Object(o.__metadata)("design:type",un)],e.prototype,"contentTemplate",void 0),Object(o.__decorate)([Object(a.ViewChildren)(pn),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"viewCalendar",void 0),Object(o.__decorate)([Object(a.ContentChildren)(pn),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"contentCalendar",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"anchor",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"appendTo",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(a.Output)("blur"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(o.__decorate)([Object(a.Output)("focus"),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),e=Object(o.__decorate)([Object(a.Component)({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),Object(o.__param)(4,Object(a.Optional)()),Object(o.__param)(4,Object(a.Inject)(s.RTL)),Object(o.__metadata)("design:paramtypes",[b.c,bn,a.ChangeDetectorRef,a.NgZone,Boolean])],e)}(),fn=function(){function e(){this.showDefault=!1,Object(l.validatePackage)(g)}return Object.defineProperty(e.prototype,"hasContentPopup",{get:function(){return this.contentPopup.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe((function(){e.showDefault=!e.hasContentPopup}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(o.__decorate)([Object(a.ContentChildren)(mn),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"contentPopup",void 0),e=Object(o.__decorate)([Object(a.Component)({providers:[bn],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),Object(o.__metadata)("design:paramtypes",[])],e)}(),gn=function(){function e(e,t,n,i,o,a){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=o,this.zone=a,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new u.Subscription,this.subscriptions=new u.Subscription}return Object.defineProperty(e.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return P(e)&&P(e.calendar)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe((function(){return e.deactivate()})),this.input.onFocus.pipe(Object(h.filter)((function(){return!e.popupCalendarActivated}))).subscribe((function(){return e.activate()})),this.input.valueUpdate.subscribe((function(t){return e.updateRange(t,"change")})),this.dateRangeService.activeRangeEnd$.subscribe((function(){e.navigateCalendarOnFocus&&e.focusActiveDate(),e.toggleActiveClass(e.isActiveEnd)})),this.dateRangeService.dateRangePopup$.subscribe((function(t){return e.initPopup(t)})),this.dateRangeService.range$.subscribe((function(t){return e.updateInputValue(t)})),Object(u.fromEvent)(this.element.nativeElement,"click").subscribe((function(){return e.activate()})),Object(u.fromEvent)(this.element.nativeElement,"keydown").subscribe((function(t){return e.togglePopup(t||{})}))].map((function(t){return e.subscriptions.add(t)}))},e.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},e.prototype.initPopup=function(e){var t=this;e?(e.anchor||(e.anchor=this.element.nativeElement),[e.cancel.subscribe((function(){return t.isActiveEnd&&t.input.focus()})),e.onFocus.subscribe((function(){return t.toggleActiveClass(t.isActiveEnd)})),e.onBlur.subscribe((function(){return t.deactivate()}))].map((function(e){return t.popupSubscriptions.add(e)}))):this.unsubscribePopup()},e.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new u.Subscription},e.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},e.prototype.deactivate=function(){var e=this;this.zone.runOutsideAngular((function(){setTimeout((function(){e.updateRange(e.input.value,"blur"),e.dateRangeService.hasActiveComponent()||(e.toggleActiveClass(!1),e.zone.run((function(){return e.dateRangeService.deactivatePopup()})))}))}))},e.prototype.updateRange=function(e,t){var n=this.getRange(e,t);n&&(this.focusActiveDate(),this.dateRangeService.setRange(n))},e.prototype.togglePopup=function(e){var t=e.altKey,n=e.keyCode;n===d.Keys.Escape?this.dateRangeService.cancelPopup():t&&n===d.Keys.ArrowDown&&this.dateRangeService.activatePopup()},e.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(Object(c.cloneDate)(this.input.value))},e.prototype.toggleActiveClass=function(e){var t=e?"addClass":"removeClass",n=this.element.nativeElement;n&&n.querySelector&&this.renderer[t](n.querySelector(".k-dateinput-wrap"),"k-state-focused")},e}(),vn=function(e){function t(t,n,i,o,a){var r=e.call(this,"end",t,n,i,o,a)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,o=n.max;if(!G(e,i,o))return null;var a=(this.rangeService.selectionRange||C).start;return this.autoCorrectOn===t&&P(e)&&e<a?ae(e):{start:a,end:Object(c.cloneDate)(e)}},t.prototype.updateInputValue=function(e){var t=(e||C).end,n=this.dateInput,i=n.min,o=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&G(t,i,o)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangeEndInput]"}),Object(o.__metadata)("design:paramtypes",[bn,Kt,a.ElementRef,a.Renderer2,a.NgZone])],t)}(gn),yn=function(e){function t(t,n,i,o,a){var r=e.call(this,"start",t,n,i,o,a)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,o=n.max;if(!G(e,i,o))return null;var a=(this.rangeService.selectionRange||C).end;return this.autoCorrectOn===t&&a&&e>a?ae(e):{start:Object(c.cloneDate)(e),end:a}},t.prototype.updateInputValue=function(e){var t=(e||C).start,n=this.dateInput,i=n.min,o=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&G(t,i,o)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangeStartInput]"}),Object(o.__metadata)("design:paramtypes",[bn,Kt,a.ElementRef,a.Renderer2,a.NgZone])],t)}(gn),_n=function(){function e(e,t,n,i,o){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=o,this.autoCorrectOn="change",this.activeRangeEndChange=new a.EventEmitter,this.selectionRangeChange=new a.EventEmitter,this.calendarSubscriptions=new u.Subscription,this.dateRangeService=this.dateRangeService||new bn,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}return Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),re(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarRange",{get:function(){return this.selectionRange||C},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.calendar,n=this.dateRangeService;t.min=oe(n.min,t.min),t.max=oe(n.max,t.max),this.addSubscriptions(t.cellEnter.subscribe((function(t){return e.handleHover(t)})),t.valueChange.subscribe((function(t){return e.handleChange(t)})),n.focusedDate$.subscribe((function(e){Object(c.isEqual)(t.focusedDate,e)||(t.focusedDate=e)})),n.activeRangeEnd$.subscribe((function(n){t.activeRangeEnd!==n&&(t.activeRangeEnd=n,e.activeRangeEndChange.emit(n),e.cdr.markForCheck())})),n.range$.subscribe((function(t){e.isEqualCalendarRange(t)||e.acceptAndEmit(t),e.updateFocusedDate(t)})),Object(u.fromEvent)(this.element.nativeElement,"blur").subscribe((function(){return e.handleBlur()})))},e.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},e.prototype.addSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map((function(t){return e.calendarSubscriptions.add(t)}))},e.prototype.isEqualCalendarRange=function(e){return re(this.calendar.selectionRange,e)},e.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,n=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==n&&n<t&&this.dateRangeService.setRange(ae(t))},e.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",o=n?ae(e):this.updateRange(e);re(t.selectionRange,o)||(this.acceptAndEmit(o),t.setActiveRangeEnd(i),t.setRange(o))},e.prototype.handleHover=function(e){if(!this.hasCompleteRange()){var t=this.calendarRange,n=t.start,i=t.end,o=this.calendar.activeRangeEnd;(n&&"end"===o||i&&"start"===o)&&this.setSelectionRange(this.updateRange(e))}},e.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||C,t=e.start,n=e.end;return Boolean(t)&&Boolean(n)},e.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&e>n:null!==i&&e<i},e.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},e.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:i,end:e}},e.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},e.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"autoCorrectOn",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String),Object(o.__metadata)("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=Object(o.__decorate)([Object(a.Directive)({selector:"[kendoDateRangeSelection]"}),Object(o.__param)(4,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[pn,a.ChangeDetectorRef,a.ElementRef,a.Renderer2,bn])],e)}(),On=function(){function e(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),jn=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(this._differ||!t)return;try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+(((n=t).name||typeof n)+"'."))}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){if(Object(d.isDocumentAvailable)()){var t=this._viewContainer.length,n=this.kForOf.length,i={};e.forEachOperation((function(e,t,n){null!==n&&(i[n]=e.item)}));for(var o=t;o<n;o++)this._viewContainer.createEmbeddedView(this._template,new On(null,this.kForOf,-1,-1),o);for(o=this._viewContainer.length;o>n;o--)this._viewContainer.remove(o-1);for(o=0;o<this._viewContainer.length;o++){var a=this._viewContainer.get(o);a.context.index=o,a.context.count=length,a.context.$implicit=i[o]||null}}},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"kForOf",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Function)],e.prototype,"kForTrackBy",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef),Object(o.__metadata)("design:paramtypes",[a.TemplateRef])],e.prototype,"kForTemplate",null),e=Object(o.__decorate)([Object(a.Directive)({selector:"[kFor][kForOf]"}),Object(o.__metadata)("design:paramtypes",[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers])],e)}();var kn,Cn,wn,Sn=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=o,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(S),this.max=new Date(I),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new a.EventEmitter,this.prevButtonClick=new a.EventEmitter,this.nextButtonClick=new a.EventEmitter,this.getComponentClass=!0,this.subscriptions=new u.Subscription}return e.prototype.ngOnInit=function(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))},e.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=j[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit($(Z(),this.min,this.max)))},e.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},e.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},e.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},e.prototype.getTitle=function(){if(!this.currentDate)return"";var e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t);return t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)},e.prototype.setTodayAvailability=function(){var e=Z(),t=G(e,Object(c.getDate)(this.min),Object(c.getDate)(this.max)),n=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!n,this.cdr.markForCheck()},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"currentDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"rangeLength",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"prevButtonClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"nextButtonClick",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-calendar-header"),Object(a.HostBinding)("class.k-hstack"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=Object(o.__decorate)([Object(a.Component)({selector:"kendo-calendar-header",template:'\n <span class="k-button k-flat k-title k-calendar-title" [class.k-state-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-flat k-icon-button k-prev-view"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-state-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-flat k-icon-button k-next-view"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-right"></span>\n </button>\n </span>\n '}),Object(o.__metadata)("design:paramtypes",[xe,a.ChangeDetectorRef,s.LocalizationService,p.IntlService,ft])],e)}(),In=function(){function e(e,t,n,i,o,r,s){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=o,this.renderer=r,this.disabledDatesService=s,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.colSpan=0,this.subscriptions=new u.Subscription,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===j.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.isHorizontal=function(){return"horizontal"===this.direction},e.prototype.isMonthView=function(){return this.activeView===j.month},e.prototype.shouldRenderCellContent=function(e){return P(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},e.prototype.firstDate=function(e){var t=this.firstWeekDateContext(e);return t?t.value:null},e.prototype.getWeekNumber=function(e){return this.weekNumber?Object(c.weekInYear)(e,this.intl.firstDay()):null},e.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;var n=Object(c.weekInYear)(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:Object(c.cloneDate)(t.value)}},e.prototype.getStyles=function(e){var t,n=e.isRangeEnd,i=e.isRangeStart,o="end"===this.activeRangeEnd&&n,a="start"===this.activeRangeEnd&&i;return t={"k-range-end":!e.isOtherMonth&&n,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-state-active":a||o,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||i||n),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(t).reduce((function(e,n){return t[n]?e.concat(n):e}),[]).join(" ")},e.prototype.tableCellIndex=function(e,t){return e+":"+t},e.prototype.handleWeekNumberClick=function(e){var t=this,n=e.map((function(e){return e.value})).filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.weekNumberCellClick.emit(n)},e.prototype.firstWeekDateContext=function(e){if(!this.weekNumber)return null;for(var t=0,n=this.shouldRenderCellContent(e[t])?e[t]:null;!n&&t<e.length;){var i=e[++t];n=this.shouldRenderCellContent(i)?i:null}return n},e.prototype.updateData=function(){var e=ne(this.selectedDates)||Z(),t=B(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:t,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},e.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(e,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(e,"click",this.clickHandler.bind(this)))},e.prototype.clickHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index"),i=this.cellByIndex(n);if(!i.isDisabled){var o=e.ctrlKey,a=e.metaKey,r=e.shiftKey;this.cellClick.emit({date:i.value,modifiers:{ctrlKey:o,metaKey:a,shiftKey:r}})}}},e.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},e.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==n&&this.emitCellLeave();var i=this.cellByIndex(n).value;this.cellEnter.emit(i),this.currentCellIndex=n}else this.currentCellIndex&&this.emitCellLeave()},e.prototype.closestCell=function(e){return dt(e.target,(function(e){return e.hasAttribute("data-cell-index")}),this.element.nativeElement)},e.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},e.prototype.cellByIndex=function(e){var t=e.split(":"),n=t[0],i=t[1];return this.data[n][i]},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"viewDate",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"viewIndex",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),e=Object(o.__decorate)([Object(a.Component)({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}),Object(o.__metadata)("design:paramtypes",[xe,p.IntlService,a.ChangeDetectorRef,a.ElementRef,a.NgZone,a.Renderer2,ft])],e)}(),xn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[jn,Sn,In],exports:[jn,Sn,In],imports:[m.CommonModule,d.EventsModule]})],e)}(),En=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[yt,_t,Ot,jt,kt,Ct,wt,St],exports:[yt,_t,Ot,jt,kt,Ct,wt,St]})],e)}(),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),Tn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Dn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Dn),Fn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Dn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Dn),Pn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[an,Tn,Fn,pn],exports:[an,Tn,Fn,pn,xn,En],imports:[m.CommonModule,xn,p.IntlModule,En,b.b],providers:[bt,ue,me,ve,Oe,on]})],e)}(),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),Vn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Rn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Rn),Bn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Rn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Rn),An=[ct],Mn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[An],exports:[An],imports:[m.CommonModule]})],e)}(),Nn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[Vt,pt,Bn,Vn,ut],exports:[Vt,pt,Bn,Vn,ut,xn,En],imports:[m.CommonModule,xn,Pn,p.IntlModule,En,Mn,d.EventsModule,d.ResizeSensorModule],providers:[Ye,ue,me,ve,Oe,on]})],e)}(),Ln=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({exports:[Nn,Pn],imports:[Nn,Pn]})],e)}(),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(s.ComponentMessages),Hn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:zn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Kn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:zn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Gn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[Kt,Kn,Hn],exports:[Kt,Kn,Hn],imports:[m.CommonModule,p.IntlModule,d.EventsModule]})],e)}(),Wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),Un=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Wn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Wn),$n=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Wn,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Wn),qn=f.touchEnabled,Zn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[$t,$n,Un],exports:[$t,$n,Un,En],imports:[m.CommonModule,Gn,Nn,p.IntlModule,b.b,En,d.EventsModule],providers:[{provide:Wt,useValue:qn}]})],e)}(),Yn=[fn,mn,un,_n,yn,vn],Xn=[Pn,Gn,b.b,d.EventsModule],Qn=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[Yn],exports:[Yn],imports:[m.CommonModule,Xn]})],e)}(),Jn=J("div"),ei=J("ul"),ti=J("li"),ni=Object(d.isDocumentAvailable)()?Jn([Jn([Jn([ei([ti("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,ii=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(Object(d.isDocumentAvailable)()){var t=e&&e.querySelector(".k-time-list-container")||document.body,n=t.appendChild(ni);this.timeListHeight=n.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=n.querySelector("li").getBoundingClientRect().height,t.removeChild(n)}},e.prototype.isActive=function(e){return!(!Object(d.isDocumentAvailable)()||!e)&&(e.nativeElement||e)===document.activeElement},e=Object(o.__decorate)([Object(a.Injectable)()],e)}(),oi=(kn=24,function(e){return e%kn}),ai=function(e,t){return oi(24+e-t)},ri=function(e){return function(t,n){return!n||Object(c.getDate)(t).getTime()===Object(c.getDate)(n).getTime()?t:N(t,e)}},si=ri(0),ci=ri(23),di=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return N(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,o=e.insertUndividedMax,a=void 0===o?this.insertUndividedMax:o,r=e.min,s=void 0===r?this.min:r,c=e.max,d=void 0===c?this.max:c,l=e.part,p=e.step,u=void 0===p?this.step:p;this.boundRange=i,this.insertUndividedMax=a,this.toListItem=function(e){var n=N(w,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=s,this.max=d,this.step=u},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return oi(t+e*n)}),r=K(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[si(e,n),ci(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(ai(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(N(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return ai(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),li=function(e){return function(t){return t%e}}(60),pi=function(e,t){return li(60+e-t)},ui=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:L(t,e)}},hi=ui(0),bi=ui(59),mi=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return L(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,o=e.min,a=void 0===o?this.min:o,r=e.max,s=void 0===r?this.max:r,c=e.part,d=e.step,l=void 0===d?this.step:d;this.insertUndividedMax=i,this.toListItem=function(e){var n=L(w,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=a,this.max=s,this.step=l},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return li(t+e*n)}),r=K(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[hi(e,n),bi(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(pi(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(L(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return pi(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),fi=function(e){return function(t){return t%e}}(60),gi=function(e,t){return fi(60+e-t)},vi=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()?t:z(t,e)}},yi=vi(0),_i=vi(59),Oi=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return z(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,o=e.min,a=void 0===o?this.min:o,r=e.max,s=void 0===r?this.max:r,c=e.part,d=e.step,l=void 0===d?this.step:d;this.insertUndividedMax=i,this.toListItem=function(e){var n=z(w,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=a,this.max=s,this.step=l},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return fi(t+e*n)}),r=K(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[yi(e,n),_i(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return gi(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(gi(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(z(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),ji=function(e){return function(t){return t%e}}(1e3),ki=function(e,t){return ji(1e3+e-t)},Ci=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()&&t.getSeconds()===n.getSeconds()?t:H(t,e)}},wi=Ci(0),Si=Ci(999),Ii=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return H(e,t.getMilliseconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,o=e.min,a=void 0===o?this.min:o,r=e.max,s=void 0===r?this.max:r,c=e.step,d=void 0===c?this.step:c;this.insertUndividedMax=i,this.toListItem=function(e){var n=H(w,e);return{text:t.intl.formatDate(n,"SSS"),value:n}},this.min=a,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,o=this.range(e)[0],a=(t=o,n=this.step,function(e){return ji(t+e*n)}),r=K(0,this.countFromMin(e)).map((function(e){return i.toListItem(a(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[wi(e,n),Si(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return ki(e.getMilliseconds(),this.min.getMilliseconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMilliseconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(ki(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(H(this.max,this.lastMillisecond(e)))},e.prototype.lastMillisecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMilliseconds(),i.getMilliseconds()]},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),xi=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t),n},Ei=function(e){return null!==e&&e<12},Di=function(e,t,n){return!t&&!n||e>=t&&e<=n},Ti=function(e,t,n){return!t&&!n||e>=t||e<=n},Fi=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=Ei(n),o=Ei(t.getHours());if(i&&o||!i&&!o)return e;var a=this.normalizedRange(),r=a[0],s=a[1],c=void 0===s?24:s,d=n+(o?-12:12);return xi(e,Math.min(Math.max(r,d),c||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,o=void 0===i?this.max:i,a=e.part,r=void 0===a?this.part:a;this.min=n,this.max=o,this.part=r},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],o=this.normalizedRange(),a=o[0],r=o[1],s=this.intl.dateFormatNames(t);return Ei(a)&&i.push({text:s.am,value:xi(this.min,a)}),null!==(n=r)&&(!n||n>11)&&i.push({text:s.pm,value:xi(this.min,Math.max(12,r))}),this.min.getHours()!==a?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?Ti:Di)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e=Object(o.__decorate)([Object(a.Injectable)(),Object(o.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Pi=function(){return null},Ri={35:function(e,t){return e[e.length-1]},36:function(e,t){return e[0]},38:function(e,t){return e[t-1]},40:function(e,t){return e[t+1]}},Vi=((Cn={})[qt]=Fi,Cn[Zt]=di,Cn[Xt]=mi,Cn[Qt]=Oi,Cn[Yt]=Ii,Cn),Bi=function(){function e(e,t,n,i,o){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=o,this.min=Object(c.cloneDate)(w),this.max=Object(c.cloneDate)(E),this.step=1,this.disabled=!1,this.valueChange=new a.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Vi[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=this.service.limitRange(this.min,this.max,t),o=i[0],a=i[1];(this.service.isRangeChanged(o,a)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:o,max:a}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},e.prototype.ngOnInit=function(){var e=this;this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;var t="translateY("+this.topOffset+"px)";this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.scrollOnce((function(t){return e.virtualization.scrollToIndex(t)}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.scrollOnce((function(t){var n=e.animateToIndex?"animateToIndex":"scrollToIndex";e.virtualization[n](t),e.animateToIndex=!0}))},e.prototype.handleChange=function(e){var t=this.service.apply(this.value,e.value);this.value.getTime()!==t.getTime()&&(this.indexToScroll=this.data.indexOf(e),this.value=t,this.valueChange.emit(t))},e.prototype.handleItemClick=function(e){var t=dt(e.target,(function(e){return e.hasAttribute("data-timelist-item-index")}),this.element.nativeElement);if(t){var n=t.getAttribute("data-timelist-item-index");this.handleChange(this.data[n])}},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),o=Math.abs(Math.ceil(e)-i);if(t===n&&o<2)return i;var a=t>n;return a&&o>=this.bottomThreshold||!a&&o>this.topThreshold?this.virtualization.itemOffset(n+1):i},e.prototype.hasMissingValue=function(e){var t=e.previousValue,n=e.currentValue,i=t&&!this.service.valueInList(t),o=n&&!this.service.valueInList(n);return i||o},e.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},e.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},e.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},e.prototype.textHasChanged=function(e){var t=e.previousValue,n=e.currentValue;if(!t||!n)return!1;var i=this.data[this.selectedIndex(t)],o=this.data[this.selectedIndex(n)];return i&&o&&i.text!==o.text},e.prototype.handleKeyDown=function(e){var t=(Ri[e.keyCode]||Pi)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},e.prototype.bindEvents=function(){var e=this;this.scrollSubscription=this.virtualization.scroll$().pipe(Object(h.debounceTime)(100),Object(h.map)((function(e){return e.target.scrollTop})),Object(h.map)((function(t){return e.itemOffset(t)})),Object(h.map)((function(t){return e.virtualization.itemIndex(t)}))).subscribe((function(t){e.virtualization.scrollToIndex(t),e.handleChange(e.data[t])}));var t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",(function(){return!e.isActive&&e.focus()})),this.renderer.listen(t,"click",(function(){return e.focus()})),this.renderer.listen(t,"blur",(function(){return e.isActive=!1})),this.renderer.listen(t,"focus",(function(){return e.isActive=!0})),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))},Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"part",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.ViewChild)(ct,{static:!0}),Object(o.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(o.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(o.__metadata)("design:type",Number),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"tabIndex",null),Object(o.__decorate)([Object(a.HostBinding)("class.k-time-list"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),e=Object(o.__decorate)([Object(a.Component)({selector:"kendo-timelist",template:'\n <kendo-virtualization\n [skip]="skip"\n [take]="total"\n [total]="total"\n [itemHeight]="itemHeight"\n [maxScrollDifference]="listHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n class="k-time-container"\n role="presentation"\n tabindex="-1"\n >\n <ul [ngStyle]="style" class="k-reset"\n [kendoEventsOutsideAngular]="{\n click: handleItemClick\n }"\n [scope]="this"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index">\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(o.__metadata)("design:paramtypes",[a.ElementRef,a.Injector,ii,a.Renderer2,a.NgZone])],e)}(),Ai=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},Mi=function(e,t){return Ai(e,t)&&e.getSeconds()===t.getSeconds()},Ni=[{type:Zt,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Xt,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return Ai(e,t)?t.getMinutes():0}},{type:Qt,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Mi(e,t)?t.getSeconds():0}},{type:Yt,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return function(e,t){return Mi(e,t)&&e.getMilliseconds()===t.getMilliseconds()}(e,t)?t.getMilliseconds():0}}],Li=function(e){return function(t){return e.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(t)))}}(Ni),zi=function(e){return function(t){return e.map((function(e){var n=t[e.type];return n?function(e,t,n){return function(i,o){var a=e(i),r=t(i,o),s=a-r;if(s<0)return r;var c=s%n;return a-c+(c>n/2?n:0)}}(e.getter,e.minGetter,n):e.getter}))}}(Ni),Hi=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},Ki=function(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(wn||(wn={}));var Gi=function(){function e(e,t,n,i,o,r,s,d){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=o,this.zone=r,this.renderer=s,this.pickerService=d,this.componentClass=!0,this.format="t",this.min=Object(c.cloneDate)(x),this.max=Object(c.cloneDate)(E),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new a.EventEmitter,this.valueReject=new a.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current=function(e,t,n){if(!e||!t||!n)return e;var i=A(e,t,n),o=i.candidateValue,a=i.minValue,r=i.maxValue;return o<a?B(e,t):o>r?B(e,n):e}(this.snapTime(Object(c.cloneDate)(e||w),this.min),this.min,this.max),a.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;if(this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach((function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")})),e>=0)){var n=this.listIndex(e),i=this.timeListWrappers.toArray()[n];i&&this.renderer.addClass(i.nativeElement,"k-state-focused")}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cdr.markForCheck()}))),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},e.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},e.prototype.handleAccept=function(){this.handleChange(this.mergeValue(Object(c.cloneDate)(this.value||Object(c.getDate)(q())),this.current))},e.prototype.handleNow=function(){this.current=q(),this.handleChange(this.current),this.cdr.markForCheck()},e.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},e.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},e.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},e.prototype.handleBlur=function(e){var t=F(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},e.prototype.containsElement=function(e){var t=this;return Boolean(lt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.partStep=function(e){return this.steps[e.type]||1},e.prototype.init=function(e){var t;e&&!ee(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hi(Li(this.dateFormatParts))),e&&!ee(e,"steps")||(this.snapTime=(t=zi(this.steps),function(e,n){var i=Object(c.cloneDate)(e);return i.setHours.apply(i,t.map((function(e){return e(i,n)}))),i})),e&&!ee(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&W(q(),this.min,this.max)},e.prototype.focusList=function(e){this.timeLists.length&&this.timeLists.reduce(Ki,[]).map((function(t){return e===wn.Right?t.next:t.prev})).map((function(e){return e&&e.focus()}))},e.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(Object(c.cloneDate)(e))},e.prototype.hasActiveButton=function(){var e=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce((function(t,n){return t||e.dom.isActive(n)}),!1)},e.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},e.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hi(Li(this.dateFormatParts)),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.element.nativeElement,"keydown",e.handleKeydown.bind(e)))}))},e.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,i=-1!==[d.Keys.ArrowLeft,d.Keys.ArrowRight].indexOf(t);P(this.pickerService)&&i&&n||(t!==d.Keys.Enter||this.hasActiveButton()?t!==d.Keys.ArrowLeft&&t!==d.Keys.ArrowRight||this.focusList(t===d.Keys.ArrowLeft?wn.Left:wn.Right):this.handleAccept())},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},Object(o.__decorate)([Object(a.ViewChild)("accept",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"accept",void 0),Object(o.__decorate)([Object(a.ViewChild)("cancel",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"cancel",void 0),Object(o.__decorate)([Object(a.ViewChild)("now",{static:!1}),Object(o.__metadata)("design:type",a.ElementRef)],e.prototype,"now",void 0),Object(o.__decorate)([Object(a.ViewChildren)(Bi),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"timeLists",void 0),Object(o.__decorate)([Object(a.ViewChildren)("listWrapper"),Object(o.__metadata)("design:type",a.QueryList)],e.prototype,"timeListWrappers",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-timeselector"),Object(o.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),Object(o.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(o.__metadata)("design:type",Boolean),Object(o.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"setButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Object),Object(o.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(o.__decorate)([Object(a.Output)(),Object(o.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueReject",void 0),e=Object(o.__decorate)([Object(a.Component)({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.timeselector"}],selector:"kendo-timeselector",template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n class="k-button k-flat k-time-now" type="button"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel" type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-time-accept k-button k-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n '}),Object(o.__param)(7,Object(a.Optional)()),Object(o.__metadata)("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,a.ElementRef,p.IntlService,ii,a.NgZone,a.Renderer2,It])],e)}(),Wi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"toggle",void 0),t}(s.ComponentMessages),Ui=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Wi,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Wi),$i=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Wi,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Wi),qi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:Wi,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Wi),Zi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:Wi,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Wi),Yi=[Ui,Bi,$i,en,qi,Zi,Gi],Xi=[Gn,p.IntlModule,b.b,Mn,d.EventsModule],Qi=f.touchEnabled,Ji=[ii,di,mi,Oi,Ii,Fi,{provide:Wt,useValue:Qi}],eo=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:[Yi],exports:[Yi],imports:[m.CommonModule].concat(Xi),providers:Ji})],e)}(),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"dateTab",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"dateTabLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"timeTab",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"timeTabLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(o.__decorate)([Object(a.Input)(),Object(o.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),no=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(o.__decorate)([Object(a.Component)({providers:[{provide:to,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(to),io=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(o.__extends)(t,e),n=t,t=n=Object(o.__decorate)([Object(a.Directive)({providers:[{provide:to,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),Object(o.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(to),oo=[nn,no,io],ao=f.touchEnabled,ro=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({declarations:oo.slice(),exports:oo.concat([En]),imports:[m.CommonModule,p.IntlModule,Gn,Nn,eo,b.b,d.EventsModule,En],providers:[{provide:Wt,useValue:ao}]})],e)}(),so=[Ln,Gn,Zn,eo,Qn,ro],co=function(){function e(){}return e=Object(o.__decorate)([Object(a.NgModule)({exports:so,imports:so})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=n(50),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([o.Component({providers:[{provide:r.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-gantt-messages",template:""}),i.__metadata("design:paramtypes",[a.LocalizationService])],t)}(r.Messages);t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=n(50),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([o.Directive({providers:[{provide:r.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"[kendoGanttLocalizedMessages]"}),i.__metadata("design:paramtypes",[a.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(4),r=n(19),s=function(){function e(e,t,n){this.localizationService=e,this.editService=t,this.ngZone=n,this.data=[{text:this.getText("addChildText"),type:"addChild"},{text:this.getText("addAboveText"),type:"addAbove"},{text:this.getText("addBelowText"),type:"addBelow"}],this.icon="plus"}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.handleOpen=function(e){this.editService.getSelectedItem()||e.preventDefault()},e.prototype.handleMouseClick=function(){var e=this;this.editService.getSelectedItem()||this.ngZone.run((function(){e.editService.addEvent.next({selectedItem:null,actionType:"addTask"})}))},e.prototype.handleItemClick=function(e){this.editService.addEvent.next({actionType:e.type,selectedItem:null})},i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),e=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,r.EditService,o.NgZone])],e)}();t.GanttAddTaskComponent=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(7),r=n(14),s=n(35),c=n(24),d=n(19),l=function(){function e(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()}return Object.defineProperty(e.prototype,"taskId",{get:function(){return this.editService.dataItem.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyIdField",{get:function(){return"predecessor"===this.dependencyType?"fromId":"toId"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(0===this.formGroups.controls.length){var t=this.mapper.dependencyFields;this.dependencies.forEach((function(n){var i,o=new a.FormGroup(((i={})[t.id]=new a.FormControl(e.mapper.extractFromDependency(n,"id")),i[t.fromId]=new a.FormControl(e.mapper.extractFromDependency(n,"fromId"),a.Validators.required),i[t.toId]=new a.FormControl(e.mapper.extractFromDependency(n,"toId"),a.Validators.required),i[t.type]=new a.FormControl(e.mapper.extractFromDependency(n,"type"),a.Validators.required),i));e.formGroups.push(o)}))}this.formGroups.valueChanges.subscribe((function(t){e.formGroups.controls.forEach((function(t){t.dirty&&e.editService.updateDependencies(t.value)})),e.dependenciesChange.emit(t)}))},e.prototype.getFormControl=function(e,t){return this.formGroups.controls.find((function(t,n){return n===e})).get(this.mapper.dependencyFields[t])},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.getDependencyTypes=function(){return Object.keys(c.DependencyType).filter((function(e){return"number"==typeof c.DependencyType[e]})).map((function(e){return{type:e,id:c.DependencyType[e]}}))},e.prototype.addHandler=function(){var e,t=this.mapper.dependencyFields,n=new a.FormGroup(((e={})[t.id]=new a.FormControl,e[t.fromId]=new a.FormControl("toId"===this.dependencyIdField?this.taskId:null,a.Validators.required),e[t.toId]=new a.FormControl("fromId"===this.dependencyIdField?this.taskId:null,a.Validators.required),e[t.type]=new a.FormControl(null,a.Validators.required),e));this.formGroups.push(n)},e.prototype.removeHandler=function(){var e=this.selectedKeys[0],t=this.formGroups.at(e).value;this.editService.deleteDependency(t),this.formGroups.removeAt(e)},i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"tasks",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"dependencyType",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"dependenciesChange",void 0),e=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,d.EditService,s.GanttLocalizationService])],e)}();t.DependenciesTableComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),a=n(14),r=n(35),s=n(19),c=function(){function e(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n}return Object.defineProperty(e.prototype,"formGroup",{get:function(){return this.editService.taskFormGroup},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){return this.localizationService.get(e)},e=i.__decorate([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,s.EditService,r.GanttLocalizationService])],e)}();t.TaskFieldsComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24);t.DependencyType=i.DependencyType;var o=n(88);t.CellCloseEvent=o.CellCloseEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return i.__extends(t,e),t}(n(89).PreventableEvent);t.CellCloseEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";n.r(t),n.d(t,"PopupComponent",(function(){return p.a})),n.d(t,"AUTOCOMPLETE_VALUE_ACCESSOR",(function(){return kn})),n.d(t,"COMBOBOX_VALUE_ACCESSOR",(function(){return Qn})),n.d(t,"TOUCH_ENABLED",(function(){return jn})),n.d(t,"DataService",(function(){return pn})),n.d(t,"DisabledItemsService",(function(){return un})),n.d(t,"FilterInputDirective",(function(){return Li})),n.d(t,"FilterableComponent",(function(){return gn})),n.d(t,"ListItemDirective",(function(){return vn})),n.d(t,"CustomMessagesComponent",(function(){return Ai})),n.d(t,"LocalizedMessagesDirective",(function(){return Bi})),n.d(t,"Messages",(function(){return Vi})),n.d(t,"NavigationService",(function(){return bn})),n.d(t,"SearchBarComponent",(function(){return nn})),n.d(t,"SelectionService",(function(){return dn})),n.d(t,"TagListComponent",(function(){return Ri})),n.d(t,"NoDataTemplateDirective",(function(){return mn})),n.d(t,"TagTemplateDirective",(function(){return oi})),n.d(t,"DROPDOWNLIST_VALUE_ACCESSOR",(function(){return ti})),n.d(t,"BaseCheckDirective",(function(){return Wi})),n.d(t,"CheckAllDirective",(function(){return $i})),n.d(t,"CheckDirective",(function(){return Ui})),n.d(t,"MultiSelectTreeSummaryTagDirective",(function(){return Yi})),n.d(t,"AutoCompleteComponent",(function(){return Cn})),n.d(t,"ComboBoxComponent",(function(){return Jn})),n.d(t,"DropDownListComponent",(function(){return ni})),n.d(t,"MultiSelectComponent",(function(){return ci})),n.d(t,"MultiColumnComboBoxComponent",(function(){return bi})),n.d(t,"ComboBoxColumnComponent",(function(){return pi})),n.d(t,"ColumnCellTemplateDirective",(function(){return di})),n.d(t,"ColumnHeaderTemplateDirective",(function(){return li})),n.d(t,"DropDownTreeComponent",(function(){return Oi})),n.d(t,"MultiSelectTreeComponent",(function(){return xi})),n.d(t,"DropDownTreeFlatBindingDirective",(function(){return Ei})),n.d(t,"DropDownTreeHierarchyBindingDirective",(function(){return Di})),n.d(t,"MultiSelectTreeFlatBindingDirective",(function(){return Ti})),n.d(t,"MultiSelectTreeHierarchyBindingDirective",(function(){return Fi})),n.d(t,"DropDownTreesExpandDirective",(function(){return Pi})),n.d(t,"DropDownTreesModule",(function(){return Qi})),n.d(t,"NodeTemplateDirective",(function(){return mi})),n.d(t,"ItemTemplateDirective",(function(){return on})),n.d(t,"GroupTemplateDirective",(function(){return sn})),n.d(t,"FixedGroupTemplateDirective",(function(){return cn})),n.d(t,"CustomItemTemplateDirective",(function(){return ii})),n.d(t,"HeaderTemplateDirective",(function(){return an})),n.d(t,"FooterTemplateDirective",(function(){return rn})),n.d(t,"ValueTemplateDirective",(function(){return ei})),n.d(t,"TemplateContextDirective",(function(){return Gi})),n.d(t,"GroupTagTemplateDirective",(function(){return ai})),n.d(t,"SelectableDirective",(function(){return Ki})),n.d(t,"SummaryTagDirective",(function(){return Ji})),n.d(t,"FilterDirective",(function(){return Ni})),n.d(t,"DropDownsModule",(function(){return po})),n.d(t,"MultiSelectModule",(function(){return lo})),n.d(t,"SharedModule",(function(){return Zi})),n.d(t,"AutoCompleteModule",(function(){return to})),n.d(t,"ComboBoxModule",(function(){return oo})),n.d(t,"DropDownListModule",(function(){return ro})),n.d(t,"SharedDirectivesModule",(function(){return Hi})),n.d(t,"ListComponent",(function(){return yn})),n.d(t,"PreventableEvent",(function(){return fn})),n.d(t,"RemoveTagEvent",(function(){return ri}));var i=n(0),o=n(1),a=n(2),r=n(7),s=n(10),c=n(8),d=n(4),l=n(5),p=n(12),u=n(6),h=n(13),b=n(9),m=function(e,t){return function(n){return t(e(n))}},f=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},g=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},v=function(){},y=function(e){return e.preventDefault()},_=/touch/;function O(e){return e.type.match(_)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var j=function(e){var t=this,n=e.press;void 0===n&&(n=v);var i=e.drag;void 0===i&&(i=v);var o=e.release;void 0===o&&(o=v);var a=e.mouseOnly;void 0===a&&(a=!1),this._pressHandler=m(O,n),this._dragHandler=m(O,i),this._releaseHandler=m(O,o),this._ignoreMouse=!1,this._mouseOnly=a,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(f(t.document,"mousemove",t._mousemove),f(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){g(t.document,"mousemove",t._mousemove),g(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(f(t.document,"pointermove",t._pointermove),f(t.document,"pointerup",t._pointerup),f(t.document,"pointercancel",t._pointerup),f(t.document,"contextmenu",y),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(g(t.document,"pointermove",t._pointermove),g(t.document,"pointerup",t._pointerup),g(t.document,"pointercancel",t._pointerup),g(t.document,"contextmenu",y),t._releaseHandler(e))}},k={document:{configurable:!0}};j.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},k.document.get=function(){return this._element?this._element.ownerDocument:document},j.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},j.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?f(e,"pointerdown",this._pointerdown):(f(e,"mousedown",this._mousedown),this._mouseOnly||(f(e,"touchstart",this._touchstart),f(e,"touchmove",this._touchmove),f(e,"touchend",this._touchend)))},j.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return g(e,"pointerdown",this._pointerdown),g(this.document,"pointermove",this._pointermove),g(this.document,"pointerup",this._pointerup),g(this.document,"contextmenu",y),void g(this.document,"pointercancel",this._pointerup);g(e,"mousedown",this._mousedown),this._mouseOnly||(g(e,"touchstart",this._touchstart),g(e,"touchmove",this._touchmove),g(e,"touchend",this._touchend))},j.prototype._usePointers=function(){return!this._mouseOnly&&j.supportPointerEvent()},j.prototype.update=function(e){var t=e.press;void 0===t&&(t=v);var n=e.drag;void 0===n&&(n=v);var i=e.release;void 0===i&&(i=v);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=m(O,t),this._dragHandler=m(O,n),this._releaseHandler=m(O,i),this._mouseOnly=o},j.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(j.prototype,k),j.default=j;var C,w,S,I=j,x=n(37),E={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"},D=function(){function e(){this.changes=new o.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}(),T=function(){return!1},F=function(){return"none"},P=function(){return!1},R=function(){return!0},V=function(){return!1},B=function(){return!0},A=function(e,t){return t},M=function(){function e(){this.changes=new l.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),N=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),L=function(){function e(){this.changes=new l.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),z=/^(?:a|input|select|option|textarea|button|object)$/i,H=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},K=function(e,t){if(!document.documentElement.contains(e))return null;for(var n=e;null!==n&&1===n.nodeType;){if(H(n,t))return n;n=n.parentElement||n.parentNode}return null},G=function(){},W=function(e){return null!=e},U=function(e){return null==e},$=function(e){return Array.isArray(e)},q=function(e){return"boolean"==typeof e},Z=function(e){return Object(a.isDocumentAvailable)()?e.closest?e.closest("li.k-treeview-item"):K(e,"li.k-treeview-item"):null},Y=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return z.test(t)&&(o=!e.disabled&&!i),o}return!1},X=function(e){if(!Object(a.isDocumentAvailable)())return null;for(var t=e;t&&!H(t,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)t=t.parentNode;return t?H(t,".k-in:not(.k-treeview-load-more-button)"):void 0},Q=function(e){return W(K(e,".k-in.k-treeview-load-more-button"))},J=function(e,t){return Boolean(function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}(e,(function(e){return e===t})))},ee=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},te=function(e){return e?e.getAttribute("data-treeindex"):""},ne=function(e){return(e||{}).index},ie=function(e,t){return!W(e)&&!W(t)||W(e)&&W(t)&&e.item.dataItem===t.item.dataItem},oe=function(e){return W(e)?e.item.dataItem:e},ae=function(e){return e&&Array.isArray(e)&&0!==e.length},re=function(e,t,n,i,o){var a=n.operator,r=n.ignoreCase,s=n.mode;void 0===o&&(o=0);var c="string"==typeof i?i:i[o];e.forEach((function(e){var n=("string"==typeof a?le(c,a,r):a)(e.dataItem,t);e.isMatch=n,e.visible=n,e.containsMatches=!1,n&&se(e.parent),e.children&&e.children.length>0&&("strict"!==s&&n?ce(e.children):re(e.children,t,{operator:a,ignoreCase:r,mode:s},i,o+1))}))},se=function(e){W(e)&&(e.containsMatches=!0,e.visible=!0,W(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 e.indexOf(t)>=0},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 e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},le=function(e,t,n){return function(i,o){return function(e,t){return function(n,i){return t?e(n.toLowerCase(),i.toLowerCase()):e(n,i)}}(de[t],n)(Object(c.getter)(e)(i),o)}},pe=function(e,t){return[e,t].filter((function(e){return W(e)})).join("_")},ue=function(e,t){if(!W(e)||0===e.children.length)return[];var n=e.children;return W(t)&&(n=n.filter(t)),n.forEach((function(e){return n=n.concat(ue(e,t))})),n},he=function(e,t){if(e.length!==t.length)return!1;var n=new Set(t);return e.every((function(e){return n.has(e)}))},be=function(e){return e||{}},me=function(e){return be(e).children||[]},fe=function(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(n.visible)return n}return null},ge=function(){function e(){this.ib=new N,this.nodes=[]}return e.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(e){return e.visible}))},e.prototype.lastVisibleNode=function(){for(var e=fe(this.nodes);W(e)&&me(e).length>0;){var t=me(e),n=fe(t);if(!W(n))return e;e=n}return e},e.prototype.closestNode=function(e){var t=be(this.findNode(e)).prev||this.firstVisibleNode();return be(t).index===e?this.visibleSibling(t,1):t},e.prototype.firstFocusableNode=function(){return this.nodes.find((function(e){return!e.disabled&&e.visible}))},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findVisibleChild=function(e){var t=this.findNode(e);return me(t).find((function(e){return e.visible}))},e.prototype.findVisiblePrev=function(e){var t=e.index,n=this.findParent(t),i=this.ib.lastLevelIndex(t),o=this.container(n).slice(0,i).every((function(e){return!e.visible}));if(0===i||o)return n;var a=this.findNode(t),r=this.visibleSibling(a,-1);if(r)for(var s=this.container(r);s.length>0&&s.some((function(e){return e.visible}));)r=fe(s),s=this.container(r);return r},e.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)},e.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);if(r||1===a){var s={id:e,children:[],index:t,parent:r,disabled:n,loadMoreButton:i,visible:o};this.insert(s,r)}},e.prototype.unregisterItem=function(e,t){var n=this.find(t,this.nodes);if(n&&n.id===e){var i=this.container(n.parent);i.splice(i.indexOf(n),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return W(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),o=n===this.ib.level(e),a=t.find((function(e){return e&&e.index===i}));return a?o?a:this.find(e,a.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.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];W(a);){if(a.visible)return a;a=i[o+=t]}return this.visibleSibling(n,t)},e}(),ve=function(){function e(e){var t,n=this;this.localization=e,this.expands=new l.Subject,this.moves=new l.Subject,this.checks=new l.Subject,this.selects=new l.Subject,this.loadMore=new l.Subject,this.navigable=!0,this.actions=((t={})[a.Keys.ArrowUp]=function(){return n.activate(n.model.findVisiblePrev(n.focusableItem))},t[a.Keys.ArrowDown]=function(){return n.activate(n.model.findVisibleNext(n.focusableItem))},t[a.Keys.ArrowLeft]=function(){return!n.isLoadMoreButton&&n.expand({expand:n.localization.rtl,intercept:n.localization.rtl?n.moveToFirstVisibleChild:n.moveToParent})},t[a.Keys.ArrowRight]=function(){return!n.isLoadMoreButton&&n.expand({expand:!n.localization.rtl,intercept:n.localization.rtl?n.moveToParent:n.moveToFirstVisibleChild})},t[a.Keys.Home]=function(){return n.activate(n.model.firstVisibleNode())},t[a.Keys.End]=function(){return n.activate(n.model.lastVisibleNode())},t[a.Keys.Enter]=function(){return n.handleEnter()},t[a.Keys.Space]=function(){return n.handleSpace()},t),this.isFocused=!1,this._model=new ge,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return ne(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(ne(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&ne(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){W(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return ne(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var a=this.model.findNode(t);W(a)&&(this.model.unregisterItem(a.id,a.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,i,o)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,n=e.intercept,i=ne(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(ne(this.activeItem))),!0)},e.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(ne(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[d.LocalizationService])],e)}(),ye=function(){function e(){this.changes=new l.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),_e=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewNodeTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Oe=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),je=function(){function e(){}return e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),ke=function(){function e(){}return e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Ce=function(){function e(){this.changes=new l.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),we=/\d+$/,Se=function(){function e(){this.map=new Map}return e.prototype.reset=function(){this.map.clear()},e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(ne(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.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}))))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var n=this.item(t.index),i=parseInt(we.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var n=t.item(e.index),i=n.item,o=n.parent,a=n.children;return{children:t.mapChildren(a),item:i,parent:o}}))},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),Ie=[M,N,Se,L,ye,ve,Ce,D,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.treeview"},{provide:je,useExisting:Object(o.forwardRef)((function(){return xe}))},{provide:ke,useExisting:Object(o.forwardRef)((function(){return xe}))}],xe=function(){function e(e,t,n,i,a,r,c,d,p,u,h){var b=this;this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=i,this.nodeChildrenService=a,this.selectionService=r,this.treeViewLookupService=c,this.ngZone=d,this.renderer=p,this.dataChangeNotification=u,this.localization=h,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return b.data},this.childrenLoaded=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.expand=new o.EventEmitter,this.collapse=new o.EventEmitter,this.nodeDragStart=new o.EventEmitter,this.nodeDrag=new o.EventEmitter,this.filterStateChange=new o.EventEmitter,this.nodeDrop=new o.EventEmitter,this.nodeDragEnd=new o.EventEmitter,this.addItem=new o.EventEmitter,this.removeItem=new o.EventEmitter,this.checkedChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.nodeClick=new o.EventEmitter,this.nodeDblClick=new o.EventEmitter,this.trackBy=A,this.isDisabled=P,this.isVisible=B,this.navigable=!0,this.children=function(){return Object(l.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 l.BehaviorSubject([]),this._animate=!0,this.subscriptions=new l.Subscription,this.domSubscriptions=[],Object(s.validatePackage)(E)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||T},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"isExpanded",{get:function(){return this._isExpanded||R},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||V},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),Object(a.anyChanged)(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){Object(a.hasObservers)(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()}))},e.prototype.blur=function(){if(Object(a.isDocumentAvailable)()){var e=ee(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){var t=e||ne(this.navigationService.focusableItem);this.navigationService.activateIndex(t);var n=ee(this.element);n&&n.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},e.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)))},e.prototype.focusHandler=function(e){var t,n=this;H(e.target,".k-treeview-item")?t=e.target:Y(e.target)||(t=Z(e.target)),t&&(this.navigationService.activateIndex(te(e.target)),!this.isActive&&Object(a.hasObservers)(this.onFocus)&&this.ngZone.run((function(){n.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!H(e.target,".k-treeview-item")||e.relatedTarget&&H(e.relatedTarget,".k-treeview-item")&&J(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,Object(a.hasObservers)(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,n=e.target;if(("contextmenu"!==e.type||Object(a.hasObservers)(this.nodeClick))&&("click"!==e.type||Object(a.hasObservers)(this.nodeClick)||Object(a.hasObservers)(this.selectionChange)||Q(n))&&("dblclick"!==e.type||Object(a.hasObservers)(this.nodeDblClick))&&!Y(n)&&(X(n)||Q(n))&&J(n,this.element.nativeElement)){var i=te(Z(n));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run((function(){var n=t.treeViewLookupService.itemLookup(i);if("click"===e.type){if(t.navigationService.model.findNode(i).loadMoreButton)return void t.navigationService.notifyLoadMore(i);t.navigationService.selectIndex(i)}("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:n.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(Object(o.isDevMode)()&&!W(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/.")},e.prototype.registerLookupItems=function(e,t){var n=this;if(void 0===t&&(t=null),W(e)&&0!==e.length){var i=ne(t),o=e.map((function(e,t){return function(e,t,n){return W(e)?{dataItem:e,index:pe(n,t)}:null}(e,t,i)}));W(t)&&this.treeViewLookupService.registerChildren(i,o),o.forEach((function(e){n.treeViewLookupService.registerItem(e,t),n.hasChildren(e.dataItem)&&n.children(e.dataItem).subscribe((function(t){return n.registerLookupItems(t,e)}))}))}},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-treeview"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"classNames",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"direction",null),Object(i.__decorate)([Object(o.ViewChild)("assetsContainer",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"assetsContainer",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(o.HostBinding)("@.disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"animate",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"childrenLoaded",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"expand",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"collapse",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeDragStart",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterStateChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeDrop",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeDragEnd",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"addItem",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"removeItem",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"checkedChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeClick",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeDblClick",void 0),Object(i.__decorate)([Object(o.ContentChild)(_e,{static:!1}),Object(i.__metadata)("design:type",_e)],e.prototype,"nodeTemplateQuery",void 0),Object(i.__decorate)([Object(o.Input)("nodeTemplate"),Object(i.__metadata)("design:type",_e),Object(i.__metadata)("design:paramtypes",[_e])],e.prototype,"nodeTemplateRef",null),Object(i.__decorate)([Object(o.ContentChild)(Oe,{static:!1}),Object(i.__metadata)("design:type",Oe)],e.prototype,"loadMoreButtonTemplateQuery",void 0),Object(i.__decorate)([Object(o.Input)("loadMoreButtonTemplate"),Object(i.__metadata)("design:type",Oe),Object(i.__metadata)("design:paramtypes",[Oe])],e.prototype,"loadMoreButtonTemplateRef",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"trackBy",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"nodes",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"hasChildren",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isChecked",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isExpanded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isSelected",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isVisible",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"navigable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"children",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"filter",void 0),e=Object(i.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:Ie,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(i.__metadata)("design:paramtypes",[o.ElementRef,o.ChangeDetectorRef,M,ve,ye,Ce,Se,o.NgZone,o.Renderer2,D,d.LocalizationService])],e)}(),Ee=function(){function e(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 l.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(l.of)([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!(!W(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return W(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(W(this.pageSize)){var e=this.pageSize>0?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(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return W(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=$(this.textField)?this.textField[0]:this.textField;return Object(c.getter)(t)(e)},e.prototype.ngOnDestroy=function(){W(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),W(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Object(u.filter)((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(Object(u.catchError)((function(){return n.loadingService.notifyLoaded(t),l.EMPTY})),Object(u.tap)((function(){return n.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return $(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){W(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,W(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(u.finalize)((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var n=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(n)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(n))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,n){return{dataItem:e,index:t.nodeIndex(n)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){W(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)},Object(i.__decorate)([Object(o.HostBinding)("class.k-group"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kGroupClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"checkboxes",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"expandIcons",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"touchActions",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"trackBy",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"nodes",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"parentDataItem",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"parentIndex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"loadMoreService",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isChecked",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isExpanded",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isVisible",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isSelected",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"children",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),e=Object(i.__decorate)([Object(o.Component)({animations:[Object(h.e)("toggle",[Object(h.d)("void => *",[Object(h.c)({height:0}),Object(h.b)("0.1s ease-in",Object(h.c)({height:"*"}))]),Object(h.d)("* => void",[Object(h.c)({height:"*"}),Object(h.b)("0.1s ease-in",Object(h.c)({height:0}))])])],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(i.__metadata)("design:paramtypes",[M,L,N,Se,ve,ye,D,o.ChangeDetectorRef])],e)}(),De=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new o.EventEmitter,this.subscriptions=new l.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(u.filter)((function(){return n.options.checkChildren&&n.treeView.loadOnDemand})),Object(u.tap)((function(e){return i.push(e)})),Object(u.switchMap)((function(){return n.zone.onStable.pipe(Object(u.take)(1))}))).subscribe((function(){return n.addCheckedItemsChildren(i)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!W(this.checkable)||"string"==typeof this.checkable)return e;var t=q(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=this.checkedKeys.filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,n){var i=t.key,o=t.result;return e===(i+=n)||o?{result:!0}:{key:i+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var n=this.options,i=n.mode,o=n.checkParents;return"multiple"===i&&o&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return W(this.checkKey)?"string"==typeof this.checkKey&&W(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.checkActions[i]||G;n&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var n=e.treeView.itemLookup(t.item.index);e.check(n)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(W(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=this.itemKey(e.item);if(W(n)){var i=new Set(this.checkedKeys),o=[n];if(this.options.checkChildren){var a=ue(e,(function(e){var n=e.item;return t.treeView.isVisible(n.dataItem,n.index)&&!t.treeView.isDisabled(n.dataItem,n.index)})).map((function(e){var n=e.item;return t.itemKey(n)}));o.push.apply(o,a)}var r=!i.has(n);o.forEach((function(e){r?i.add(e):i.delete(e)})),this.checkedKeys=Array.from(i)}}},e.prototype.checkParents=function(e){var t=this;if(W(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)}},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(W(e)&&0!==e.length){var n=this.checkedKeys.length,i=new Set(this.checkedKeys);e.forEach((function(e){var n=t.itemKey(e.item);i.has(n)&&e.children.forEach((function(n){t.treeView.isDisabled(e.item.dataItem,e.item.index)||t.treeView.isDisabled(n.dataItem,n.index)||i.add(t.itemKey(n))}))})),n!==i.size&&(this.checkedKeys=Array.from(i),this.zone.run((function(){return t.notify()})))}},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isChecked",null),Object(i.__decorate)([Object(o.Input)("checkBy"),Object(i.__metadata)("design:type",Object)],e.prototype,"checkKey",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),Object(i.__decorate)([Object(o.Input)("kendoTreeViewCheckable"),Object(i.__metadata)("design:type",Object)],e.prototype,"checkable",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewCheckable]"}),Object(i.__metadata)("design:paramtypes",[xe,o.NgZone])],e)}(),Te=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.Input)("kendoTreeViewDisable"),Object(i.__metadata)("design:type",Object)],e.prototype,"disableKey",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"disabledKeys",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewDisable]"}),Object(i.__metadata)("design:paramtypes",[xe,o.ChangeDetectorRef])],e)}(),Fe={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},Pe=function(){function e(e){var t=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new o.EventEmitter,this.subscriptions=new l.Subscription,this._expandedKeys=[],this.originalExpandedKeys=[],this.isFiltered=!1,this.updateExpandedNodes=function(e,n,i){(n.containsMatches||n.isMatch&&i&&ae(n.children))&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),ae(n.children)&&n.children.forEach((function(n){t.updateExpandedNodes(e,n,i)}))},this.getEveryExpandKey=function(e,n){ae(n.children)&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),ae(n.children)&&n.children.forEach((function(n){t.getEveryExpandKey(e,n)}))},this.subscriptions.add(Object(l.merge)(this.component.expand.pipe(Object(u.map)((function(e){return Object(i.__assign)({expand:!0},e)}))),this.component.collapse.pipe(Object(u.map)((function(e){return Object(i.__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,n){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterExpandSettings",{get:function(){var e=q(this.expandOnFilter)?{enabled:this.expandOnFilter}:Object(i.__assign)({},this.expandOnFilter,{enabled:!0});return Object.assign({},Fe,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.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},e.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,i=e.expand,o=this.itemKey({index:t,dataItem:n}),a=this.expandedKeys.indexOf(o),r=!1;a>-1&&!i?(this.expandedKeys.splice(a,1),r=!0):-1===a&&i&&(this.expandedKeys.push(o),r=!0),r&&this.expandedKeysChange.emit(this.expandedKeys)},e.prototype.handleAutoExpand=function(e){var t=this,n=e.nodes,i=e.matchCount,o=e.term;if(this.filterExpandSettings.enabled){var a=this.filterExpandSettings,r=a.maxAutoExpandResults,s=a.expandMatches,c=a.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=this.expandedKeys.slice()),this.isFiltered&&!o||-1!==r&&i>r){switch(c){case"initial":he(this.expandedKeys,this.originalExpandedKeys)||(this.expandedKeys=this.originalExpandedKeys,this.expandedKeysChange.emit(this.expandedKeys));break;case"all":this.expandedKeys=n.reduce((function(e,n){return t.getEveryExpandKey(e,n),e}),[]),this.expandedKeysChange.emit(this.expandedKeys);break;case"unchanged":break;case"none":default:0!==this.expandedKeys.length&&(this.expandedKeys=[],this.expandedKeysChange.emit(this.expandedKeys))}this.isFiltered=!1}else{var d=n.reduce((function(e,n){return t.updateExpandedNodes(e,n,s),e}),[]);he(this.expandedKeys,d)||(this.expandedKeys=d,this.expandedKeysChange.emit(this.expandedKeys)),this.isFiltered=!0}}},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isExpanded",null),Object(i.__decorate)([Object(o.Input)("expandBy"),Object(i.__metadata)("design:type",Object)],e.prototype,"expandKey",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"expandOnFilter",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"expandedKeysChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewExpandable]"}),Object(i.__metadata)("design:paramtypes",[ke])],e)}(),Re=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new o.EventEmitter,this.subscriptions=new l.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!W(this.selection)||"string"==typeof this.selection)return e;var t=q(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.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},e.prototype.select=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.selectActions[i]||G;n&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),i=n>-1;W(t)&&(i?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"isSelected",null),Object(i.__decorate)([Object(o.Input)("selectBy"),Object(i.__metadata)("design:type",Object)],e.prototype,"selectKey",void 0),Object(i.__decorate)([Object(o.Input)("kendoTreeViewSelectable"),Object(i.__metadata)("design:type",Object)],e.prototype,"selection",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-multiselectable"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewSelectable]"}),Object(i.__metadata)("design:paramtypes",[xe])],e)}();!function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(C||(C={})),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(w||(w={})),function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(S||(S={}));var Ve,Be,Ae,Me=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Ne=function(e){function t(t,n){var i=e.call(this)||this;return i.isValid=!0,Object.assign(i,t),i.originalEvent=n,i}return Object(i.__extends)(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(Me),Le=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return Object(i.__extends)(t,e),t}(Me),ze=(Ve=function(){if(!Object(a.isDocumentAvailable)()||!W(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},Ae=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ae||(Be=Ve.apply(void 0,e),Ae=!0),Be});var He,Ke=function(e,t,n,i,o){if(W(e)&&W(t)&&W(i)&&W(o)){var a=K(t,".k-mid");if(W(a)){var r=function(e){if(!W(e))return null;var t=".k-in:not(.k-treeview-load-more-button)";return H(e,t)?e:e.querySelector(t)}(a),s=J(a,Z(e));if(W(r)&&r!==e&&!s){var c=r.getBoundingClientRect(),d=c.height/(X(t)?4:2),l=n-o.top,p=c.top-o.top;return l<p+d?w.Before:l>=p+c.height-d?w.After:w.Over}}}},Ge=function(e,t){if(!W(e)||!W(t))return null;var n=Z(t),i=te(n),o=e.itemLookup(i);return W(o)&&W(o.item.dataItem)?o:null},We=function(e,t,n){W(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)},Ue=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},$e=function(e){return Object(a.isDocumentAvailable)()&&W(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},qe=function(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("_"),s=i.length-1,c=Number(i[s]),d=Number(n[s]);return a===r&&d>c?(n[s]=String(d-1),n.join("_")):e},Ze=new RegExp("(auto|scroll)"),Ye=function(e){return Math.floor(e.scrollTop)<=0},Xe=function(e){return Math.ceil(e.scrollTop)>=e.scrollHeight-e.clientHeight},Qe=function(e,t,n){if(W(e)&&Object(a.isDocumentAvailable)())for(var i=e.scrollTop,o=t,r=0;i===e.scrollTop&&(n!==S.Up||!Ye(e))&&(n!==S.Down||!Xe(e))&&r<20;)e.scrollTop+=o*n,o+=1,r+=1},Je=function(e,t,n){if(W(e.loadMoreService)){var i=e.getNodePageSize(t);e.setNodePageSize(n,i)}},et=function(e,t){if(W(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n+1)}},tt=function(e,t){if(W(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n-1)}},nt=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,i=e.dropPosition,o=e.sourceTree,a=e.destinationTree,r=Object.assign({},oe(t));if(i===w.Over){Ue(n,a);var s=this.childrenFor(oe(n)),d=W(a.loadMoreService)?Math.min(a.loadMoreService.getGroupSize(oe(n)),s.length):s.length;s.splice(d,0,r),Object(c.setter)(this.hierarchyBinding.childrenField)(oe(n),s),this.movedItemNewIndex=pe(n.item.index,d)}else{var l=this.getParentNodes(n,a),p=i===w.After?1:0;d=l.indexOf(oe(n))+p;l.splice(d,0,r);var u=n.parent?n.parent.item.index:null;this.movedItemNewIndex=pe(u,d)}var h=i===w.Over?oe(n):oe(n.parent);et(a,h),Je(a,oe(t),r),o===a||a.loadOnDemand||a.preloadChildNodes(),o!==a&&(a.changeDetectorRef.detectChanges(),a.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=this.getParentNodes(t,n),a=o.indexOf(oe(t));if(o.splice(a,1),We(t.parent,o,n),tt(n,oe(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var r=qe(this.movedItemNewIndex,t.item.index);i.focus(r)}},e.prototype.getParentNodes=function(e,t){return W(e.parent)?this.childrenFor(oe(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return Object(c.getter)(this.hierarchyBinding.childrenField)(e)||[]},e}(),it=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case C.Add:return"k-i-plus";case C.InsertTop:return"k-i-insert-up";case C.InsertBottom:return"k-i-insert-down";case C.InsertMiddle:return"k-i-insert-middle";case C.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},Object(i.__decorate)([Object(o.HostBinding)("class.k-header"),Object(o.HostBinding)("class.k-drag-clue"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("style.position"),Object(i.__metadata)("design:type",String)],e.prototype,"posistionStyle",void 0),e=Object(i.__decorate)([Object(o.Component)({changeDetection:o.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(i.__metadata)("design:paramtypes",[o.ChangeDetectorRef])],e)}(),ot=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!W(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(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){W(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,n){void 0===n&&(n=0),this.element.style.left=e+n+"px",this.element.style.top=t+n+"px"},e}(),at=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return Object(i.__extends)(t,e),t.prototype.initialize=function(e,t){W(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(it);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),e.prototype.ngOnDestroy.call(this)},t.prototype.move=function(t,n){e.prototype.move.call(this,t,n,10)},t.prototype.animateDragClueToElementPosition=function(e){var t=this;if(W(e)&&W(this.element.animate)){var n=e.getBoundingClientRect(),i=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(n.left-i.left)+"px, "+(n.top-i.top)+"px)"}],200),this.returnAnimation.onfinish=function(){return t.hide()}}else this.hide()},t.prototype.cancelReturnAnimation=function(){W(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},t.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&ie(t,i.sourceItem)&&ie(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},t.prototype.scrollIntoView=function(e){var t=e.step,n=e.interval;this.cancelScroll();var i=function(e){for(;W(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,n=Ze.test(getComputedStyle(e).overflowY);if(t&&n)return e;e=e.parentNode}return e}(this.element);if(W(i)){var o=i.getBoundingClientRect(),a=this.element.getBoundingClientRect(),r=Math.max(o.top,0),s=r+a.height,c=r+Math.min(o.bottom,i.clientHeight);a.top<s?this.scrollInterval=setInterval((function(){return Qe(i,t,S.Up)}),n):a.bottom>c&&(this.scrollInterval=setInterval((function(){return Qe(i,t,S.Down)}),n))}},t.prototype.cancelScroll=function(){W(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.ComponentFactoryResolver])],t)}(ot),rt=function(){function e(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return e.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},Object(i.__decorate)([Object(o.HostBinding)("class.k-drop-hint-container"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("style.position"),Object(i.__metadata)("design:type",String)],e.prototype,"position",void 0),Object(i.__decorate)([Object(o.HostBinding)("style.pointer-events"),Object(i.__metadata)("design:type",String)],e.prototype,"pointerEvents",void 0),e=Object(i.__decorate)([Object(o.Component)({changeDetection:o.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(i.__metadata)("design:paramtypes",[o.ChangeDetectorRef])],e)}(),st=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return Object(i.__extends)(t,e),t.prototype.initialize=function(e,t){W(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(rt);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.updateDropHintData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&ie(t,i.sourceItem)&&ie(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.ComponentFactoryResolver])],t)}(ot),ct=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewDragClueTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),dt=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewDropHintTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),lt={enabled:!0,step:1,interval:1},pt=function(){function e(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}return Object.defineProperty(e.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},lt,e)},enumerable:!0,configurable:!0}),e.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)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=e.originalEvent;X(t.target)&&(this.draggedItem=K(t.target,".k-in"),this.pendingDragStartEvent=t)},e.prototype.handleDrag=function(e){var t=this,n=e.originalEvent,i=e.clientX,o=e.clientY;if(this.shouldInitiateDragStart({clientX:i,clientY:o})&&this.initiateDragStart(),W(this.draggedItem)&&!W(this.pendingDragStartEvent)){var r=$e(n);Object(a.hasObservers)(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(n,r)}));var s=this.getTargetTreeView(r),c=Ke(this.draggedItem,r,o,s,this.containerOffset),d=K(r,".k-mid"),l=function(e,t){if(!W(e)||!W(t))return C.Invalid;switch(e){case w.Over:return C.Add;case w.Before:return W(Z(t).previousElementSibling)?C.InsertMiddle:C.InsertTop;case w.After:return W(Z(t).nextElementSibling)?C.InsertMiddle:C.InsertBottom;default:return C.Invalid}}(c,r),p=Ge(this.treeview,this.draggedItem),u=Ge(s,r);this.updateDropHintState(c,d,l,p,u),this.updateDragClueState(l,i,o,p,u),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},e.prototype.handleRelease=function(e){var t=this,n=e.originalEvent,i=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!W(this.draggedItem)||W(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var o=$e(n),r=this.treeview,s=this.getTargetTreeView(o),c=Ke(this.draggedItem,o,i,this.getTargetTreeView(o),this.containerOffset),d=Ge(r,this.draggedItem),l=Ge(s,o);W(l)&&W(c)?this.zone.run((function(){return t.notifyDrop({sourceItem:d,destinationItem:l,dropPosition:c,sourceTree:r,destinationTree:s},n)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),Object(a.hasObservers)(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:d,destinationItem:l,originalEvent:n})})),this.dropHintService.hide(),this.draggedItem=null},e.prototype.updateDropHintState=function(e,t,n,i,o){if(W(t)&&e!==w.Over&&W(e)){var a=t.getBoundingClientRect(),r=e===w.Before?a.top:a.top+a.height;this.dropHintService.updateDropHintData(n,i,o),this.dropHintService.move(a.left-this.containerOffset.left,r-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.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()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new I({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)}))},e.prototype.notifyDragStart=function(e,t){var n=Ge(this.treeview,t),i=new Le({sourceItem:n,originalEvent:e});return this.treeview.nodeDragStart.emit(i),i},e.prototype.notifyDrag=function(e,t){var n={sourceItem:Ge(this.treeview,this.draggedItem),destinationItem:Ge(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(n)},e.prototype.notifyDrop=function(e,t){var n=new Ne(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)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.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 W(e)&&e.element.nativeElement===n}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},e.prototype.shouldInitiateDragStart=function(e){return!!W(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},e.prototype.initiateDragStart=function(){var e=this;if(Object(a.hasObservers)(this.treeview.nodeDragStart)&&this.zone.run((function(){return e.notifyDragStart(e.pendingDragStartEvent,$e(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||!ze())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var n=t.getBoundingClientRect();return{left:n.left-t.scrollLeft,top:n.top-t.scrollTop}}return{left:0,top:0}}(this.draggedItem),this.pendingDragStartEvent=null},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"allowCopy",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"startDragAfter",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"autoScroll",void 0),Object(i.__decorate)([Object(o.ContentChild)(ct,{static:!1}),Object(i.__metadata)("design:type",ct)],e.prototype,"dragClueTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(dt,{static:!1}),Object(i.__metadata)("design:type",dt)],e.prototype,"dropHintTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("style.user-select"),Object(o.HostBinding)("style.-ms-user-select"),Object(o.HostBinding)("style.-moz-user-select"),Object(o.HostBinding)("style.-webkit-user-select"),Object(i.__metadata)("design:type",String)],e.prototype,"userSelectStyle",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewDragAndDrop]",providers:[at,st]}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,xe,at,st])],e)}(),ut={operator:"contains",ignoreCase:!0,mode:"lenient"},ht=function(){function e(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=ut}return Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=Object(i.__assign)({},ut,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),e.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&re(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),W(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},e.prototype.updateVisibleNodes=function(e){var t=this;e.forEach((function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)}))},e.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach((function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"filterSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"filter",null),e}(),bt=new N,mt=function(e,t,n,i){return void 0===n&&(n=null),void 0===i&&(i=""),ae(e)?e.map((function(e,o){var a=bt.nodeIndex(o.toString(),i),r={dataItem:e,index:a,parent:n,visible:!0};return r.children=mt(Object(c.getter)(t)(e),t,r,a),r})):[]},ft=function(e){function t(t,n){var i=e.call(this,t)||this;i.component=t,i.dragAndDropDirective=n,i.loadOnDemand=!0,i.originalData=[];var o=!W(i.dragAndDropDirective);return i.component.isVisible=o?function(e){return i.visibleNodes.has(e)}:B,i}return Object(i.__extends)(t,e),Object.defineProperty(t.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(t.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=mt(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;W(this.childrenField)&&(this.component.children=function(t){return Object(l.of)(Object(c.getter)(e.childrenField)(t))},this.component.hasChildren=function(t){var n=Object(c.getter)(e.childrenField)(t);return Boolean(n&&n.length)},this.component.editService=new nt(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&W(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},t.prototype.ngOnChanges=function(e){Object(a.isChanged)("childrenField",e,!1)&&(this.nodes=this.originalData),Object(a.anyChanged)(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&W(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"childrenField",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],t.prototype,"nodes",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],t.prototype,"isVisible",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewHierarchyBinding]"}),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[je,pt])],t)}(ht),gt=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(Object(u.filter)((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(Object(u.filter)((function(t){return t.index===e.index})),Object(u.tap)((function(t){!t.expand&&e.loading&&(e.loading=!1)})),Object(u.filter)((function(e){return e.expand})),Object(u.switchMap)((function(e){return Object(l.of)(e).pipe(Object(u.delay)(100),Object(u.takeUntil)(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(i.__decorate)([Object(o.HostBinding)("class.k-i-loading"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"loading",null),Object(i.__decorate)([Object(o.Input)("kendoTreeViewLoading"),Object(i.__metadata)("design:type",String)],e.prototype,"index",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewLoading]"}),Object(i.__metadata)("design:paramtypes",[M,L,o.ChangeDetectorRef])],e)}(),vt=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,i=e.dropPosition,o=e.sourceTree,a=e.destinationTree,r=Object.assign({},oe(t));if(i===w.Over){Ue(n,a);var s=Object(c.getter)(this.flatBinding.idField)(oe(n));Object(c.setter)(this.flatBinding.parentIdField)(r,s);var d=this.getLastVisibleChildNodeIndex(a,this.flatBinding.originalData,oe(n))+1;this.flatBinding.originalData.splice(d,0,r),this.rebindData();var l=this.fetchChildNodes(oe(n),a).indexOf(r);this.movedItemNewIndex=pe(n.item.index,l)}else{var p=i===w.After?1:0;d=this.flatBinding.originalData.indexOf(oe(n))+p;this.flatBinding.originalData.splice(d,0,r);var u=Object(c.getter)(this.flatBinding.parentIdField)(oe(n));Object(c.setter)(this.flatBinding.parentIdField)(r,u),this.rebindData();var h=n.parent?n.parent.item.index:null;l=(n.parent?this.fetchChildNodes(oe(n.parent),a):a.nodes).indexOf(r);this.movedItemNewIndex=pe(h,l)}o!==a&&this.addChildNodes(r,o);var b=i===w.Over?oe(n):oe(n.parent);et(a,b),Je(a,oe(t),r),o===a||a.loadOnDemand||a.preloadChildNodes(),o!==a&&(a.changeDetectorRef.detectChanges(),a.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=oe(t),a=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(a,1),n!==i&&this.removeChildNodes(o,n),this.rebindData();var r=t.parent?t.parent.children:[];if(We(t.parent,r,n),tt(n,oe(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var s=qe(this.movedItemNewIndex,t.item.index);i.focus(s)}},e.prototype.addChildNodes=function(e,t){var n,i=this.fetchAllDescendantNodes(e,t);(n=this.flatBinding.originalData).push.apply(n,i)},e.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(t,1)}))},e.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},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var n=[];return t.children(e).pipe(Object(u.take)(1)).subscribe((function(e){return n=n.concat(e||[])})),n},e.prototype.getLastVisibleChildNodeIndex=function(e,t,n){if(!W(e.loadMoreService)||!e.hasChildren(n))return t.length;var i=e.loadMoreService.getGroupSize(n),o=this.fetchChildNodes(n,e).slice(0,i),a=o[o.length-1];return t.indexOf(a)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}(),yt=function(e,t,n){return t.filter((function(t){return e(t)===n}))},_t=new N,Ot=function(e,t,n,i,o,a){return void 0===o&&(o=null),void 0===a&&(a=""),ae(e)?e.map((function(e,r){var s=_t.nodeIndex(r.toString(),a),d={dataItem:e,index:s,parent:o,visible:!0};return d.children=Ot(yt(Object(c.getter)(n),t||[],Object(c.getter)(i)(e)),t,n,i,d,s),d})):[]},jt=function(e){function t(t){var n=e.call(this,t)||this;return n.component=t,n.loadOnDemand=!0,n.originalData=[],n.component.isVisible=function(e){return n.visibleNodes.has(e)},n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"nodes",{set:function(e){if(this.originalData=e||[],n=this.parentIdField,U(n)||0===n.trim().length)this.component.nodes=this.originalData.slice(0);else{var t=Object(c.getter)(this.parentIdField);this.component.nodes=this.originalData.filter(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}(U,t)),this.filterData=Ot(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}var n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;if(W(this.parentIdField)&&W(this.idField)){var t=function(t){return yt(Object(c.getter)(e.parentIdField),e.originalData||[],Object(c.getter)(e.idField)(t))};this.component.hasChildren=function(e){return t(e).length>0},this.component.children=function(e){return Object(l.of)(t(e))},this.component.editService=new vt(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&W(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}},t.prototype.ngOnChanges=function(e){Object(a.isChanged)("parentIdField",e,!1)&&(this.nodes=this.originalData),Object(a.anyChanged)(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&W(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],t.prototype,"nodes",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"parentIdField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"idField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],t.prototype,"isVisible",null),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewFlatDataBinding]"}),Object(i.__metadata)("design:paramtypes",[je])],t)}(ht),kt=function(e,t){return{dataItem:t,index:e}},Ct=0,wt=function(){function e(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=Ct++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return kt(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?kt(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.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()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;Object(a.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(a.anyChanged)(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},e.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}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(Object(u.filter)((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var n=t.expand;return e.expand(n)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,n=e.index,i=e.parentDataItem,o=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||o)){var a=(n||{}).previousValue||this.index;this.lookupService.replaceItem(a,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&W(t)&&W(i)&&(this.navigationService.unregisterItem(this.id,i),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.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)},e.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)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){W(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"dataItem",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"parentDataItem",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"parentIndex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"checkable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"expandable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"isChecked",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"isVisible",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewItem]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,M,ve,Ce,Se,o.Renderer2,N])],e)}(),St=function(){function e(e,t,n,i){var o=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=V,this.subscriptions=new l.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Object(u.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))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"dataItem",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"initialSelection",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isSelected",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewItemContent]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,ve,Ce,o.Renderer2])],e)}(),It=[function(){function e(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+Object(a.guid)(),this.tabindex=0,this.checkStateChange=new o.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},Object(i.__decorate)([Object(o.HostBinding)("class.k-checkbox-wrapper"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"classWrapper",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"isChecked",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"node",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"index",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"labelText",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"checkStateChange",void 0),e=Object(i.__decorate)([Object(o.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(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef])],e)}()],xt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[It],exports:[It]})],e)}(),Et=function(){function e(e){this.treeview=e,this.subscriptions=new l.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!W(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)},e.prototype.handleRemove=function(e){if(!W(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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"editService",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewDragAndDropEditing]"}),Object(i.__metadata)("design:paramtypes",[xe])],e)}(),Dt="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",Tt=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=Object(a.guid)(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()){if(!W(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+Dt+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(W(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+Dt+".");if(W(e)&&!W(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 "+Dt+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var n=e||this.rootLevelId,i=t>0?t:0;this.pageSizes.set(n,i)},e.prototype.getTotalNodesCount=function(e,t){return W(e)&&W(this.totalField)?e[this.totalField]:!W(e)&&W(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},Object(i.__decorate)([Object(o.Input)("kendoTreeViewLoadMore"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"pageSize",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"totalRootNodes",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"totalField",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTreeViewLoadMore]"}),Object(i.__metadata)("design:paramtypes",[xe])],e)}(),Ft=[xe,Ee,wt,St,_e,De,Te,Pe,Re,ft,gt,jt,pt,ct,it,dt,rt,Et,Tt,Oe],Pt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ft],exports:[Ft],imports:[b.CommonModule,xt,x.InputsModule],entryComponents:[it,rt]})],e)}(),Rt=[xe,_e,De,Te,Pe,Re,ft,jt,pt,ct,dt,Et,Tt,Oe],Vt=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[Rt],imports:[Pt]})],e)}(),Bt={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"},At=function(e){return null!=e},Mt=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},Nt=function(e){return Array.isArray(e)},Lt=function(e){return At(e)&&"object"==typeof e},zt=function(e){return"string"==typeof e&&0===e.length},Ht=function(e,t,n){var i=function(e,t){return Nt(e)&&e.filter((function(e){return Lt(e)&&At(Wt(e,t))}))}(e,n)||[];return(function(e,t,n){return void 0===t&&(t=[]),e.map((function(e){return t.find((function(t){return Wt(t,n)===e}))})).filter((function(e){return void 0!==e}))}(e,t,n)||[]).concat(i)},Kt=function(e){return Nt(e)&&e.every((function(e){return Lt(e)}))},Gt=function(e,t,n){var i=t.map((function(e){return At(e)&&At(Wt(e,n))?Wt(e,n):e}));return e.reduce((function(e,t){var o=At(t)&&At(Wt(t,n))?Wt(t,n):t,a=i.indexOf(o);return-1!==a&&e.push(a),e}),[])},Wt=function(e,t){return At(e)?At(t)&&Lt(e)?Object(c.getter)(t)(e):e:null},Ut=function(e,t,n){if(!At(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},$t=function(e,t){return!!At(e)&&t.every((function(t){return e.hasOwnProperty(t)}))},qt=function(e){return e.className.includes("ng-untouched")},Zt=function(e){},Yt=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},Xt=function(e,t){void 0===t&&(t=0);var n=Number(e);return isNaN(n)?t:n},Qt=function(e,t,n){return e.nativeElement.contains(t)||n&&n.popupElement.contains(t)},Jt=function(e){return(e||"").split("_").length-1},en=function(e,t){if(!At(e)||0===e.children.length)return[];var n=e.children;return At(t)&&(n=n.filter((function(e){return t(e.item)}))),n.forEach((function(e){return n=n.concat(en(e,t))})),n},tn=function(e,t){var n=e.dataItem,i=e.index,o=e.level,a=Array.isArray(t)?t:[t],r=At(o)?o:Jt(i),s=a[Math.min(r,a.length-1)];return Object(c.getter)(s)(n)},nn=function(){function e(e,t){this.localization=e,this.valueChange=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onClick=new o.EventEmitter,this.onNavigate=new o.EventEmitter,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=e.rtl?"rtl":"ltr",this.renderer=t}return Object.defineProperty(e.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngOnChanges=function(e){var t,n,i;if(this.input&&(e.userInput||e.suggestedText)){t=e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue;var o=this.input.nativeElement.selectionStart,a=t.length===o;this.writeInputValue(this.suggestedText?(n=this.userInput,i=this.suggestedText,n.concat(i.substr(i.toLowerCase().indexOf(n.toLowerCase())+n.length))):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):a?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(o,o),this._previousValue=this.userInput}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.writeInputValue=function(e){Object(a.isDocumentAvailable)()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(Object(a.isDocumentAvailable)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},e.prototype.handleInput=function(e){var t=e.target.value;t!==this.userInput&&(this._previousValue=t,this.valueChange.emit(t))},e.prototype.handleFocus=function(e){this.onFocus.emit(e)},e.prototype.handleBlur=function(e){this.onBlur.emit(e)},e.prototype.handleKeydown=function(e){var t=e.keyCode;[a.Keys.ArrowUp,a.Keys.ArrowDown,a.Keys.ArrowLeft,a.Keys.ArrowRight,a.Keys.Enter,a.Keys.Escape,a.Keys.Delete,a.Keys.Backspace,a.Keys.Home,a.Keys.End].indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){Object(a.isDocumentAvailable)()&&this.input.nativeElement.focus()},e.prototype.blur=function(){Object(a.isDocumentAvailable)()&&this.input.nativeElement.blur()},e.prototype.setInputSize=function(){var e=function(e){return e?e.length:0},t=this.input.nativeElement,n=e(this.placeholder),i=e(this.value),o=Math.max(n,i,1);this.renderer.setAttribute(t,"size",o.toString())},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"listId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tagListId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeDescendant",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"noDataLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabIndex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"popupOpen",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"userInput",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"suggestedText",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onClick",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onNavigate",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-searchbar"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"searchBarClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"placeholder",null),e=Object(i.__decorate)([Object(o.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(i.__metadata)("design:paramtypes",[d.LocalizationService,o.Renderer2])],e)}(),on=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),an=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),rn=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),sn=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListGroupTemplate],[kendoComboBoxGroupTemplate],[kendoMultiColumnComboBoxGroupTemplate],[kendoAutoCompleteGroupTemplate],[kendoMultiSelectGroupTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),cn=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),dn=function(){function e(){this.onSelect=new o.EventEmitter,this.onChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.total=0,this.selectedIndices=[]}return e.prototype.getTotal=function(){return this.total},e.prototype.isSelected=function(e){return At(this.selectedIndices.find((function(t){return t===e})))},e.prototype.isFocused=function(e){return e===this.focused},e.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},e.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:At(e)}))},e.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},e.prototype.unselect=function(e){if(this.isSelected(e)){var t=this.selectedIndices.indexOf(e);this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}},e.prototype.change=function(e){var t=At(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:t})},e.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(e.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),e=Object(i.__decorate)([Object(o.Injectable)()],e)}();!function(e){e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.Tab=4]="Tab",e[e.Esc=5]="Esc",e[e.Delete=6]="Delete",e[e.Backspace=7]="Backspace",e[e.Home=8]="Home",e[e.End=9]="End",e[e.Up=10]="Up",e[e.Down=11]="Down",e[e.Left=12]="Left",e[e.Right=13]="Right"}(He||(He={}));var ln,pn=function(){function e(){this.grouped=!1,this.groupIndices=[]}return Object.defineProperty(e.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(e.prototype,"itemsCount",{get:function(){return At(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter((function(e){return!e.header})):this.data).length:0},enumerable:!0,configurable:!0}),e.prototype.isGrouped=function(e){return At(e)&&0!==e.length&&At(e[0])&&$t(e[0],["aggregates","field","items","value"])},e.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},e.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},e.prototype.indexOf=function(e,t){void 0===t&&(t=0);var n=function(t){return t===e};return this.grouped&&(n=function(t){return t.value===e}),this.findIndex(n,t)},e.prototype.findIndex=function(e,t){void 0===t&&(t=0);var n=-1;if(this.grouped){n=(i=this._flatData.filter((function(e){return!e.header&&e.offsetIndex>=t}))).findIndex(e),n=i[n]?i[n].offsetIndex:-1}else{var i,o=(i=this.data.slice(t)).findIndex(e);n=-1!==o?o+t:-1}return n},e.prototype.closestGroup=function(e){for(var t=e;t>=0;t--)if(this._flatData[t].header)return this._flatData[t]},e.prototype.find=function(e){var t=this.findIndex(e);return this.itemAt(t)},e.prototype.flatIndex=function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var t=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));return t?t.index:-1},e.prototype.itemAt=function(e){var t;if(0===this.itemsCount)return t;if(this.grouped){var n=this._flatData.find((function(t){return!t.header&&t.offsetIndex===e}));n&&(t=n.value)}else t=this.data[e];return t},e.prototype.groupAt=function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find((function(t){return t.header&&t.index===e}))},e.prototype.groupField=function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null},e.prototype.itemGroup=function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var t=this.groupField();return t?Wt(e,t):void 0}},e.prototype.flatten=function(e,t,n,i){void 0===t&&(t=void 0),void 0===n&&(n=0),void 0===i&&(i=0);var o=[];At(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},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),un=function(){function e(e){this.dataService=e,this.itemDisabled=null}return e.prototype.isIndexDisabled=function(e){if(this.itemDisabled){var t=this.dataService.itemAt(e);if(At(t))return this.itemDisabled({dataItem:t,index:e});if(At(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e.prototype.isItemDisabled=function(e){if(this.itemDisabled){var t=this.dataService.indexOf(e);if(-1!==t)return this.itemDisabled({dataItem:e,index:t});if(At(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[pn])],e)}(),hn=function(e,t){this.index=e,this.originalEvent=t},bn=function(){function e(e,t){this.disabledItemsService=e,this.selectionService=t,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.enter=new o.EventEmitter,this.tab=new o.EventEmitter,this.esc=new o.EventEmitter,this.up=new o.EventEmitter,this.right=new o.EventEmitter,this.down=new o.EventEmitter,this.left=new o.EventEmitter,this.delete=new o.EventEmitter,this.backspace=new o.EventEmitter,this.home=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.process=function(e){var t,n=e.originalEvent.keyCode,i=e.originalEvent.altKey,o=He.Undefined;i&&n===a.Keys.ArrowDown?o=He.Open:i&&n===a.Keys.ArrowUp?o=He.Close:n===a.Keys.Enter?o=He.Enter:n===a.Keys.Escape?o=He.Esc:n===a.Keys.Tab?o=He.Tab:n===a.Keys.ArrowUp?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=He.Up):n===a.Keys.ArrowLeft?(t=this.next({current:e.current,start:e.min,end:e.max,step:-1}),o=He.Left):n===a.Keys.ArrowDown?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=He.Down):n===a.Keys.ArrowRight?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=He.Right):n===a.Keys.Home?(t=this.isDisabled(0)?e.current:0,o=He.Home):n===a.Keys.End?(t=this.isDisabled(e.max)?e.current:e.max,o=He.End):n===a.Keys.Delete?o=He.Delete:n===a.Keys.Backspace&&(o=He.Backspace);var r=new hn(t,e.originalEvent);return o!==He.Undefined&&this[He[o].toLowerCase()].emit(r),o},e.prototype.next=function(e){var t=e.current,n=e.start,i=e.end,o=e.step,a=At(t)?this.clampIndex(t+o,n,i):n,r=this.firstFocusableIndex(a,n,i,o);if(At(r))return r;if(this.selectionService.isSelected(t)&&t>=n)return t;var s=-1*o;return this.firstFocusableIndex(a,n,i,s)},e.prototype.clampIndex=function(e,t,n){return!At(e)||e<t?t:e>n?n:e},e.prototype.firstFocusableIndex=function(e,t,n,i){for(;t<=e&&e<=n;){if(!this.isDisabled(e))return e;e+=i}},e.prototype.isDisabled=function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[un,dn])],e)}(),mn=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListNoDataTemplate],[kendoDropDownTreeNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoMultiColumnComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate],[kendoMultiSelectTreeNoDataTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),fn=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),gn=function(){},vn=function(){function e(e){this.element=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:'"li[role=option], li[role=group]"'}),Object(i.__metadata)("design:paramtypes",[o.ElementRef])],e)}(),yn=function(){function e(e,t,n,i,a,r,s){var c=this;this.dataService=e,this.wrapper=t,this.selectionService=n,this.disabledItemsService=i,this.cdr=a,this.zone=r,this.renderer=s,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},this.onClick=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.listResize=new o.EventEmitter,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=Object(l.merge)(this.selectionService.onSelect.pipe(Object(u.map)((function(e){return e.indices[0]}))),this.selectionService.onFocus).pipe(Object(u.switchMap)((function(e){return c.zone.onStable.pipe(Object(u.take)(1),Object(u.map)((function(){return e})))}))).subscribe(this.scrollToItem.bind(this))}return Object.defineProperty(e.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(e.prototype,"pageSize",{get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowY",{get:function(){if(At(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){Object(a.isChanged)("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),Object(a.isChanged)("virtual",e,!1)&&this.setOverflow()},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.scrollSubscription=Object(l.fromEvent)(e.content.nativeElement,"scroll").pipe(Object(u.auditTime)(100),Object(u.tap)(e.prefetchData.bind(e)),Object(u.tap)(e.findCurrentGroup.bind(e))).subscribe((function(){e.lastScrollTop=e.content.nativeElement.scrollTop}))})),this.setOverflow()},e.prototype.ngAfterViewChecked=function(){if(this.virtual&&this.positionItems(),this.items&&this.scrollToFocused){this.scrollToFocused=!1;var e=this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused;this.scrollToItem(e)}this.dataService.grouped&&this.findCurrentGroup()},e.prototype.ngOnDestroy=function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},e.prototype.onCheckedChange=function(e,t){var n=e.target.checked;n&&!this.selectionService.isSelected(t)&&this.selectionService.add(t),!n&&this.selectionService.isSelected(t)&&this.selectionService.unselect(t)},e.prototype.isChecked=function(e){var t=this.virtual?e+this.virtual.skip:e;return this.selectionService.isSelected(t)},e.prototype.firstVisibleItem=function(){var e=this,t=this.content.nativeElement,n=t.getBoundingClientRect(),i=Array.prototype.slice.call(t.querySelectorAll(".k-state-disabled"));i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","auto")}));var o=document.elementFromPoint(n.left+1,n.top+1);return i.forEach((function(t){return e.renderer.setStyle(t,"pointer-events","none")})),function(e,t){for(var n=e;null!==n&&1===n.nodeType;){if(Yt(n,t))return n;n=n.parentElement||n.parentNode}return null}(o,"li")},e.prototype.findCurrentGroup=function(){if(this.dataService.grouped){var e=this.firstVisibleItem();if(e){var 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)))}else this.currentGroup=void 0;this.cdr.detectChanges()}else this.currentGroup=void 0},e.prototype.prefetchData=function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),t=this.content.nativeElement.scrollTop,n=Math.trunc(t/this.virtual.itemHeight),i=t>this.lastScrollTop,o=n+e>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1,a=this.pageSize-(this.lastLoaded-this.startFrom),r=this.lastLoaded-this.pageSize+e>=n-a;i&&o&&this.changePage(n),!i&&r&&this.changePage(n-this.pageSize+e+1)}},e.prototype.changePage=function(e){var t=this;this.zone.run((function(){var n=t.pageSize+e;n>t.virtual.total&&(e--,n=t.virtual.total),e<0&&(e=0),t.startFrom=e,t.lastLoaded=n,t.pageChange.emit({skip:e,take:t.pageSize})}))},e.prototype.index=function(e,t){return e>0?this.dataService.groupIndices[e-1]+t:t},e.prototype.getText=function(e){return Wt(e,this.textField)},e.prototype.getValue=function(e){return Wt(e,this.valueField)},e.prototype.isDisabled=function(e){return At(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)},e.prototype.scrollToItem=function(e){var t=e;this.dataService.grouped&&(t=this.dataService.flatIndex(e),t+=this.firstGroupHeaderInTargetedPage(t)?-1:0);if(this.virtual&&t>-1)this.scrollToIndex(t);else{var n=this.items.toArray();At(n[t])&&-1!==t&&this.scroll(n[t].element)}},e.prototype.scrollToIndex=function(e){var t=this.content.nativeElement,n=t.scrollTop,i=e*this.virtual.itemHeight,o=this.virtual.itemHeight,a=t.clientHeight,r=i+o;n>i?n=i:r>n+a&&(n=r-a),t.scrollTop=n},e.prototype.scroll=function(e){if(e){var t=e.nativeElement,n=this.content.nativeElement,i=t.offsetTop,o=t.offsetHeight,a=n.scrollTop,r=n.clientHeight,s=i+o;a>i?a=i:s>a+r&&(a=s-r),n.scrollTop=a}},e.prototype.hasScrollbar=function(){return!!(At(this.items)&&this.items.length&&At(this.list)&&At(this.content))&&(At(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)},e.prototype.setOverflow=function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}},e.prototype.hasVirtualScrollbar=function(){var e=this.content.nativeElement.offsetHeight,t=this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight;return this.virtualContainer&&t>e},e.prototype.positionItems=function(){var e=this;this.items.forEach((function(t,n){var i=(n+e.startFrom)*e.virtual.itemHeight;e.renderer.setStyle(t.element.nativeElement,"transform","translateY("+i+"px")}))},e.prototype.firstGroupHeaderInTargetedPage=function(e){return!At(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"selected",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"focused",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"height",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",on)],e.prototype,"template",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",sn)],e.prototype,"groupTemplate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",cn)],e.prototype,"fixedGroupTemplate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"show",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"optionPrefix",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"multipleSelection",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"virtual",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"listClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"checkboxes",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onClick",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"listResize",void 0),Object(i.__decorate)([Object(o.ViewChildren)(vn),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"items",void 0),Object(i.__decorate)([Object(o.ViewChild)("content",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"content",void 0),Object(i.__decorate)([Object(o.ViewChild)("list",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"list",void 0),Object(i.__decorate)([Object(o.ViewChild)("virtualContainer",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"virtualContainer",void 0),e=Object(i.__decorate)([Object(o.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(i.__metadata)("design:paramtypes",[pn,o.ElementRef,dn,un,o.ChangeDetectorRef,o.NgZone,o.Renderer2])],e)}(),_n={pageSize:50,itemHeight:28},On=function(e,t){var n=Object.assign({},_n,t);return!0===e?n:e?Object(i.__assign)({pageSize:_n.pageSize},e):null},jn=new o.InjectionToken("dropdowns-touch-enabled"),kn={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return Cn}))},Cn=function(){function e(e,t,n,i,a,r,c,d,p,u,h){this.localization=e,this.dataService=t,this.popupService=n,this.selectionService=i,this.navigationService=a,this.disabledItemsService=r,this._zone=c,this.cdr=d,this.renderer=p,this.hostElement=u,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-"+Mt(),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.open=new o.EventEmitter,this.opened=new o.EventEmitter,this.close=new o.EventEmitter,this.closed=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.widgetClasses=!0,this.listBoxId=Mt(),this.optionPrefix=Mt(),this.onChangeCallback=Zt,this.onTouchedCallback=Zt,this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new l.Subject,this._isFocused=!1,Object(s.validatePackage)(Bt),this.direction=e.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}var t;return t=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=0;Object(a.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(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return At(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=At(e)?e:!t._open;t._toggle(n)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!At(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+Wt(e,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.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&&this.dataService.itemsCount>0&&(this.suggestedText=Wt(this.dataService.itemAt(0),this.valueField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=On(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})},e.prototype.reset=function(){this.value=""},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;At(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.verifySettings=function(e){if(Object(o.isDevMode)()&&At(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/")},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=Wt(this.dataService.itemAt(n),this.valueField)))},e.prototype.navigate=function(e){this.isOpen&&this.selectionService.focus(e)},e.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(!(this.disabled||this.readonly||isNaN(t))){var n=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:e});n!==He.Undefined&&n!==He.Backspace&&n!==He.Delete&&n!==He.Home&&n!==He.End&&n!==He.Left&&n!==He.Right&&(n===He.Enter&&this.isOpen||n!==He.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,n=this.selectionService.focused;if(this.isOpen&&e.originalEvent.preventDefault(),n>=0)t=Wt(this.dataService.itemAt(n),this.valueField);else{var i=this.suggest&&this.suggestedText&&this.data.length&&Wt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();t=this.isOpen&&i?this.suggestedText:this.searchbar.value}this.change(t)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null},e.prototype.searchBarChange=function(e){var t=At(this.text)?this.text.length:0;this.backspacePressed=e.length<t,this.text=e,this.togglePopup(e.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(a.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e,t,n=this,i=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==i?(e=this.dataService.itemAt(i),t=Wt(e,this.valueField)||""):t=this.searchbar.value;var o=t===this.searchbar.value,r=t.toLowerCase()===this.searchbar.value.toLowerCase();!o&&r&&this.selectionService.resetSelection([]),this.isFocused=!1;var s=this.value!==this.text;Object(a.hasObservers)(this.onBlur)||Object(a.hasObservers)(this.close)||qt(this.wrapper)||s?this._zone.run((function(){s&&n.change(n.searchbar.value),n.onBlur.emit(),n.onTouchedCallback(),n.togglePopup(!1)})):this.togglePopup(!1)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)},e.prototype.subscribeEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&(this.valueChangeSubscription=this.valueChangeSubject.subscribe((function(t){var n=e.value!==t;e.value=t,e.text=t,n&&e.emitChange(t)})),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=Object(l.merge)(this.navigationService.up,this.navigationService.down).subscribe((function(t){return e.navigate(t.index)})),this.closeSubscription=this.navigationService.close.subscribe((function(){return e.togglePopup(!1)})),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!Qt(e.hostElement,n,e.popupRef)&&e._zone.run((function(){return e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){Object(a.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())},e.prototype.handleItemChange=function(e){var t=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),At(t)){var n=Wt(this.dataService.itemAt(t),this.valueField);this.change(n)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=Wt(this.dataService.itemAt(t),this.valueField))},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:i,anchorAlign:n});var o=this.popupRef.popupElement,a=this.width,r=a.min,s=a.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=s,o.style.height=this.height,o.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)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new fn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=Wt(n.value,t.valueField);return(i=At(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=Wt(n,t.valueField);return(i=At(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"highlightFirst",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"suggest",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)("tabIndex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"opened",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"closed",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ContentChild)(on,{static:!1}),Object(i.__metadata)("design:type",on)],e.prototype,"template",void 0),Object(i.__decorate)([Object(o.ContentChild)(an,{static:!1}),Object(i.__metadata)("design:type",an)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(rn,{static:!1}),Object(i.__metadata)("design:type",rn)],e.prototype,"footerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mn,{static:!1}),Object(i.__metadata)("design:type",mn)],e.prototype,"noDataTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(sn,{static:!1}),Object(i.__metadata)("design:type",sn)],e.prototype,"groupTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(cn,{static:!1}),Object(i.__metadata)("design:type",cn)],e.prototype,"fixedGroupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)(nn,{static:!0}),Object(i.__metadata)("design:type",nn)],e.prototype,"searchbar",void 0),Object(i.__decorate)([Object(o.ViewChild)("optionsList",{static:!1}),Object(i.__metadata)("design:type",yn)],e.prototype,"optionsList",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-autocomplete"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoAutoComplete",providers:[kn,pn,dn,bn,un,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.autocomplete"},{provide:gn,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],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(i.__param)(10,Object(o.Optional)()),Object(i.__param)(10,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[d.LocalizationService,pn,p.c,dn,bn,un,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.ElementRef,Boolean])],e)}(),wn="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",Sn="Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",In="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection",xn="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",En="Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection",Dn="Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values",Tn="Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values",Fn="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Pn="Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Rn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding",Vn="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth",Bn="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",An="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Mn="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection",Nn="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",Ln="Expected virtual.itemHeight of type number.",zn="Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/",Hn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration",Kn="defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem",Gn="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",Wn="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection",Un="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",$n="Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values",qn="Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values",Zn="Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem",Yn="Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding",Xn="Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth",Qn={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return Jn}))},Jn=function(){function e(e,t,n,i,a,r,c,d,p,h,b){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=a,this.dataService=r,this.zone=c,this.cdr=d,this.renderer=p,this.hostElement=h,this.touchEnabled=b,this.selected=[],this.focusableId="k-"+Mt(),this.allowCustom=!1,this.valueNormalizer=function(e){return e.pipe(Object(u.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 o.EventEmitter,this.selectionChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.open=new o.EventEmitter,this.opened=new o.EventEmitter,this.close=new o.EventEmitter,this.closed=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=Mt(),this.optionPrefix=Mt(),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 l.Subject,this.valueSubject=new l.Subject,this.clearValueSubject=new l.Subject,this.subs=new l.Subscription,Object(s.validatePackage)(Bt),this.direction=e.rtl?"rtl":"ltr",this.data=[]}var t;return t=e,Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=At(e)?e.toString():""},enumerable:!0,configurable:!0}),e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},Object.defineProperty(e.prototype,"activeDescendant",{get:function(){if(!this.isOpen||!At(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(e?Wt(e,this.valueField):"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.data.length)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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){if(this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){var t=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=t}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=Wt(this.dataService.itemAt(0),this.textField))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return At(this._valuePrimitive)?this._valuePrimitive:!At(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=On(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupWidth",{get:function(){var e=0;Object(a.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(e.prototype,"popupHeight",{get:function(){var e=this.popupSettings.height;return At(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()},e.prototype.createValueStream=function(){var e=this,t=this.valueSubject.pipe(Object(u.filter)((function(t){var n=Wt(e.value,e.valueField),i=Wt(t,e.valueField),o=Wt(t,e.textField);return!(!At(e.value)&&!At(i))&&(At(o)&&(o=o.toString()),n!==i||e.text!==o||(e.clearFilter(),!1))})),Object(u.map)((function(t){var n=Wt(t,e.valueField);return{dataItem:t,text:Wt(t,e.textField),value:e.valuePrimitive?n:t}}))),n=Object(u.partition)((function(){return e.allowCustom}))(this.customValueSubject.pipe(Object(u.throttleTime)(300))),i=n[0].pipe(Object(u.tap)((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),Object(u.filter)((function(){var t=e.text!==Wt(e.value,e.valueField);return e.loading=t,e.disabled=t,t||e.clearFilter(),t})),this.valueNormalizer,Object(u.map)((function(t){return{custom:!0,dataItem:t,text:e.text,value:t}}))),o=n[1].pipe(Object(u.map)((function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}}))),a=this.clearValueSubject.pipe(Object(u.map)((function(){return{dataItem:void 0,text:void 0,value:void 0}})));this.valueSubscription&&this.valueSubscription.unsubscribe();var r=Object(l.merge)(t,i,o,a);this.valueSubscription=r.pipe(Object(u.catchError)((function(){var t=void 0!==Wt(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,t&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),Object(l.of)(null)}))).subscribe((function(t){var n=Wt(e.dataItem,e.valueField)!==Wt(t.dataItem,e.valueField);if(e.dataItem=t.dataItem,e.value=t.value,e.text=t.text,e.loading=!1,e.disabled=!1,e.clearFilter(),t.custom&&(e.selectionService.focused=-1),n){var i=t.custom?void 0:e.dataItem;e.selectionChange.emit(i)}e.emitValueChange()}))},e.prototype.attachStreams=function(){var e=this;Object(a.isDocumentAvailable)()&&(this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()}))),this.subs.add(Object(l.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Object(u.filter)((function(e){return At(e.index)}))).subscribe((function(t){return e.navigate(t.index)}))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe((function(){return e.togglePopup(!1)}))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(Object(u.tap)((function(t){e.isOpen&&t.originalEvent.preventDefault()}))).subscribe(this.handleEnter.bind(this))),this.subs.add(Object(l.merge)(this.selectionService.onChange,this.selectionService.onSelect.pipe(Object(u.filter)((function(t){return!e.isOpen})))).pipe(Object(u.tap)((function(t){e._filtering=!1,e.togglePopup(!1)})),Object(u.map)((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){e.change(t)}))),this.subs.add(this.selectionService.onSelect.pipe(Object(u.filter)((function(t){return e.isOpen})),Object(u.tap)((function(t){return e._filtering=!1})),Object(u.map)((function(t){return e.dataService.itemAt(t.indices[0])}))).subscribe((function(t){var n=Wt(t,e.valueField)!==Wt(e.dataItem,e.valueField);e.updateState({dataItem:t}),n&&e.selectionChange.emit(t)}))))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),At(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(a.isChanged)("valueNormalizer",e)&&this.createValueStream(),Object(a.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=e>=0&&e<this.data.length;At(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(-1)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=At(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0,this.clearState(),this.resetSelection()},e.prototype.isEmpty=function(){var e=!At(this.text)||zt(this.text),t=!At(this.value)||zt(this.value);return e&&t},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){if(this.isOpen){var e=this.popupRef.popupElement,t=this.popupWidth,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()){if(!0===this.valuePrimitive&&At(this.value)&&"object"==typeof this.value)throw new Error(Mn);if(!1===this.valuePrimitive&&At(this.value)&&"object"!=typeof this.value)throw new Error(An);if(!At(this.valueField)!=!At(this.textField))throw new Error(Nn);if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error(Ln)}},e.prototype.setState=function(){if(!this._filtering){var e=this.value,t=this.valueField,n=this.findDataItem({valueField:t,value:e});At(n.index)&&-1!==n.index?(this.updateState({dataItem:n.dataItem,confirm:!0}),this.resetSelection(n.index)):At(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))}},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=Wt(t,this.textField),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!At(e)||e<0;this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=e},e.prototype.firstFocusableIndex=function(e){var t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.findIndexPredicate=function(e){var t=this;return this.dataService.grouped?function(n){var i=Wt(n.value,t.textField);return(i=At(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}:function(n){var i=Wt(n,t.textField);return(i=At(i)?i.toString().toLowerCase():"").startsWith(e.toLowerCase())}},e.prototype.findDataItem=function(e){var t=this,n=e.valueField,i=e.value,o={dataItem:null,index:-1},a=this.dataService.findIndex((function(e){var o=t.dataService.grouped?e.value:e;return Wt(o,n)===Wt(i,n)}));return o.dataItem=this.dataService.itemAt(a),o.index=a,o},e.prototype.search=function(e,t){var n;void 0===t&&(t=0),n=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),t):-1,this.disabledItemsService.isIndexDisabled(n)?n+1<this.dataService.itemsCount?this.search(e,n+1):this.selectionService.focus(-1):(this.selectionService.focus(n),this.suggest&&(this.suggestedText=Wt(this.dataService.itemAt(n),this.textField)))},e.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},e.prototype.navigate=function(e){0!==this.dataService.itemsCount&&(this.text=Wt(this.dataService.itemAt(e),this.textField),this.selectionService.select(e))},e.prototype.handleNavigate=function(e){var t=At(this.selectionService.selected[0]),n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly&&e.keyCode!==a.Keys.Home&&e.keyCode!==a.Keys.End){t||(e.keyCode===a.Keys.ArrowDown?i=-1:e.keyCode===a.Keys.ArrowUp&&(i=1));var o=this.navigationService.process({current:i+n,max:this.dataService.itemsCount-1,min:0,originalEvent:e});o!==He.Undefined&&o!==He.Left&&o!==He.Right&&o!==He.Backspace&&o!==He.Delete&&(o===He.Enter&&this.isOpen||o!==He.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(){var e=this.text,t=this.selectionService.focused,n=At(t)&&-1!==t,i=Wt(this._previousDataItem,this.textField)||"",o=Wt(this.dataService.itemAt(t),this.textField),a=e!==i;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&a&&(e===o||this.useSuggestion()?this.selectionService.change(t):this.change(e,!0)),this.allowCustom||(n?this.selectionService.change(t):a&&this.change(e,!0))},e.prototype.handleBlur=function(){var e=this;this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;var t=Wt(this.dataItem,this.valueField)!==Wt(this.value,this.valueField),n=this.searchbar.value,i=n!==(Wt(this.dataItem,this.textField)||""),o=t||i;o||Object(a.hasObservers)(this.onBlur)||Object(a.hasObservers)(this.close)||qt(this.hostElement.nativeElement)?this.zone.run((function(){o&&(At(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)},e.prototype.handleEscape=function(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)},e.prototype.handleNavigationOpen=function(){this.restoreItemFocus(),this.togglePopup(!0)},e.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)},e.prototype.handleFocus=function(){var e=this;this.isFocused=!0,Object(a.hasObservers)(this.onFocus)&&this.zone.run((function(){return e.onFocus.emit()}))},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.change=function(e,t){void 0===t&&(t=!1),t?this.customValueSubject.next(e):this.valueSubject.next(e)},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem},e.prototype.selectClick=function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)},Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},Object.defineProperty(e.prototype,"focusedItemText",{get:function(){var e=this.selectionService.focused;if(!At(e)||-1===e)return null;var t=Wt(this.dataService.itemAt(e),this.textField);return At(t)?t.toString():""},enumerable:!0,configurable:!0}),e.prototype.restoreItemFocus=function(){!(At(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))},e.prototype.useSuggestion=function(){if(!this.suggest||!At(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),t=Wt(e,this.textField);return!!At(t)&&this.searchbar.value.toLowerCase()===t.toLowerCase()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:n,popupAlign:i});var o=this.popupRef.popupElement,a=this.popupWidth,r=a.min,s=a.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=s,o.style.height=this.popupHeight,o.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)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new fn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))},e.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()}))}))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&this.touchEnabled&&this.zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target,i=Qt(e.hostElement,n,e.popupRef);e.isFocused&&!i?e.zone.run((function(){return e.blur()})):e.isOpen&&!i&&e.zone.run((function(){return e.togglePopup(!1)}))}))}))},e.prototype.attachSelectClickHandler=function(){var e=this.select.nativeElement,t=c.pointers?"pointerdown":"click";this.selectClickDisposeHandler=this.renderer.listen(e,t,this.selectClick.bind(this))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"allowCustom",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"valueNormalizer",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"suggest",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)("tabIndex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"opened",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"closed",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ContentChild)(on,{static:!1}),Object(i.__metadata)("design:type",on)],e.prototype,"template",void 0),Object(i.__decorate)([Object(o.ContentChild)(an,{static:!1}),Object(i.__metadata)("design:type",an)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(rn,{static:!1}),Object(i.__metadata)("design:type",rn)],e.prototype,"footerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mn,{static:!1}),Object(i.__metadata)("design:type",mn)],e.prototype,"noDataTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(sn,{static:!1}),Object(i.__metadata)("design:type",sn)],e.prototype,"groupTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(cn,{static:!1}),Object(i.__metadata)("design:type",cn)],e.prototype,"fixedGroupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)(nn,{static:!0}),Object(i.__metadata)("design:type",nn)],e.prototype,"searchbar",void 0),Object(i.__decorate)([Object(o.ViewChild)("optionsList",{static:!1}),Object(i.__metadata)("design:type",yn)],e.prototype,"optionsList",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("select",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"select",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-combobox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-combobox-clearable"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"clearable",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoComboBox",providers:[Qn,pn,dn,bn,un,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.combobox"},{provide:gn,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],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(i.__param)(10,Object(o.Optional)()),Object(i.__param)(10,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[d.LocalizationService,p.c,dn,bn,un,pn,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.ElementRef,Boolean])],e)}(),ei=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),ti={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return ni}))},ni=function(){function e(e,t,n,i,a,r,c,d,p,u,h){this.localization=e,this.popupService=t,this.selectionService=n,this.navigationService=i,this.disabledItemsService=a,this.dataService=r,this._zone=c,this.renderer=d,this.hostElement=p,this.cdr=u,this.touchEnabled=h,this.focusableId="k-"+Mt(),this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.open=new o.EventEmitter,this.opened=new o.EventEmitter,this.close=new o.EventEmitter,this.closed=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=Mt(),this.optionPrefix=Mt(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.word="",this.last="",this.filterFocused=new o.EventEmitter,this.filterBlurred=new o.EventEmitter,this.wrapperFocused=new o.EventEmitter,this.wrapperBlurred=new o.EventEmitter,this.selectionSubscription=new l.Subscription,this._open=!1,this._popupSettings={animate:!0},Object(s.validatePackage)(Bt),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"width",{get:function(){var e=Object(a.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(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return At(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetTabIndex",{get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaOwns",{get:function(){if(this.isOpen)return this.listBoxId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){if(At(this.dataItem))return this.optionPrefix+"-"+Wt(this.dataItem,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.prototype,"value",{get:function(){return this._value},set:function(e){At(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=On(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return At(this._valuePrimitive)?this._valuePrimitive:!At(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.blurComponent=function(){this.wrapperBlurred.emit()},e.prototype.blurFilterInput=function(){this.filterBlurred.emit()},e.prototype.focusComponent=function(){var e=this;this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,Object(a.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.keydown=function(e){var t=At(this.defaultItem)?-1:0,n=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,i=0;if(!this.disabled&&!this.readonly){var o=e.keyCode===a.Keys.Home||e.keyCode===a.Keys.End;if(!(this.filterable&&this.isFocused&&this.isOpen)||!o){var r=At(this.selectionService.selected[0]),s=At(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);r&&!s||(e.keyCode===a.Keys.ArrowDown||e.keyCode===a.Keys.ArrowRight?i=-1:e.keyCode!==a.Keys.ArrowUp&&e.keyCode!==a.Keys.ArrowLeft||(i=1));var c=e,d=this.navigationService.process({current:n+i,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:c}),l=d===He.Left||d===He.Right;d===He.Undefined||d===He.Tab||d===He.Backspace||d===He.Delete||l&&this.filterable||d===He.Enter||c.preventDefault()}}},e.prototype.keypress=function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)},e.prototype.click=function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.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}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.assignAriaDescribedBy()},e.prototype.isEmpty=function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)},e.prototype.onFilterFocus=function(){this.filterFocused.emit()},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(a.isChanged)("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Object(a.anyChanged)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.focusItemAt=function(e){var t=(At(this.defaultItem)?-1:0)<=e&&e<this.data.length;At(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=At(e)?e:!t._open;t._toggle(n)}))},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.triggerPopupEvents=function(e){var t=new fn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.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(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.value=void 0},e.prototype.writeValue=function(e){this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"isDisabledDefaultItem",{get:function(){return this.disabledItemsService.isItemDisabled(this.defaultItem)},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.getDefaultItemText=function(){return Wt(this.defaultItem,this.textField)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var o=this.popupRef.popupElement,a=this.width,r=a.min,s=a.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=s,o.style.height=this.height,o.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)}))},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.updateState=function(e){var t=e.dataItem,n=e.confirm,i=void 0!==n&&n;this.dataItem=t,this.text=Wt(t,this.textField),i&&(this._previousDataItem=t)},e.prototype.clearState=function(){this.text=void 0,this.dataItem=void 0},e.prototype.resetSelection=function(e){var t=!At(e);this.selectionService.resetSelection(t?[]:[e]),this.selectionService.focused=t?this.firstFocusableIndex(0):e},e.prototype.onSelectionChange=function(e){var t=e.dataItem;this.updateState({dataItem:t}),this.selectionChange.emit(t),this.assignAriaDescribedBy()},e.prototype.subscribeEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&(this.selectionSubscription.add(this.selectionService.onSelect.pipe(Object(u.filter)((function(t){return e.isOpen})),Object(u.map)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add(Object(l.merge)(this.selectionService.onSelect.pipe(Object(u.filter)((function(t){return!e.isOpen}))),this.selectionService.onChange).pipe(Object(u.map)(this.itemFromEvent.bind(this)),Object(u.tap)((function(t){return e.togglePopup(!1)}))).subscribe((function(t){var n=t.dataItem,i=t.value;t.newSelection&&e.onSelectionChange({dataItem:n});var o=!At(n)&&e._previousDataItem,a=i!==Wt(e.value,e.valueField);o?(e.updateState({dataItem:e._previousDataItem}),e.resetSelection()):a&&(e.value=e.valuePrimitive?i:n,e._previousDataItem=n,e.emitChange(e.value)),e.clearFilter()}))),this.navigationSubscription=Object(l.merge)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(Object(u.skipWhile)((function(){return e.filterable}))),this.navigationService.right.pipe(Object(u.skipWhile)((function(){return e.filterable}))),this.navigationService.home,this.navigationService.end).pipe(Object(u.filter)((function(e){return!isNaN(e.index)}))).subscribe((function(t){return e.selectionService.select(t.index)})),this.openSubscription=this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.closeSubscription=this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.enterSubscription=this.navigationService.enter.pipe(Object(u.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(u.concatMap)((function(){return Object(l.interval)(10).pipe(Object(u.take)(1),Object(u.takeUntil)(e.wrapperFocused))}))).subscribe((function(){e.wrapperBlurred.emit()})),this._zone.runOutsideAngular((function(){e.componentBlurredSubscription=Object(l.merge)(e.wrapperBlurred.pipe(Object(u.concatMap)((function(){return Object(l.interval)(10).pipe(Object(u.take)(1),Object(u.takeUntil)(e.filterFocused))}))),e.navigationService.tab).pipe(Object(u.tap)((function(t){return t instanceof hn&&e.focus()})),Object(u.filter)((function(){return e.isFocused}))).subscribe((function(){return e.componentBlur()}))})))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!Qt(e.hostElement,n,e.popupRef)&&e._zone.run((function(){e.filterFocused&&e.togglePopup(!1),e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){Object(a.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())},e.prototype.itemFromEvent=function(e){var t=e.indices[0],n=this.dataService.itemAt(t);n=At(n)?n:this.currentOrDefault(t);var i=Wt(n,this.valueField);return{dataItem:n,index:t,newSelection:e.newSelection,value:i}},e.prototype.currentOrDefault=function(e){return At(this.dataItem)&&-1!==e?this.dataItem:this.defaultItem},e.prototype.firstFocusableIndex=function(e){var t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(e)?e<t?this.firstFocusableIndex(e+1):void 0:e},e.prototype.handleEnter=function(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)},e.prototype.handleEscape=function(){At(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()},e.prototype.clearFilter=function(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error(Kn);if(!0===this.valuePrimitive&&At(this.value)&&"object"==typeof this.value)throw new Error(Wn);if(!1===this.valuePrimitive&&At(this.value)&&"object"!=typeof this.value)throw new Error(Gn);if(!At(this.valueField)!=!At(this.textField))throw new Error(Un)}},e.prototype.componentBlur=function(){var e=this;this.isFocused=!1;var t=At(this.selectionService.selected[0])&&Wt(this.value,this.valueField)!==Wt(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||Object(a.hasObservers)(this.close)||Object(a.hasObservers)(this.onBlur)||Object(a.hasObservers)(this.filterChange)||qt(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)},e.prototype.onMouseDown=function(e){"input"!==e.target.tagName.toLowerCase()&&e.preventDefault()},e.prototype.onKeyPress=function(e){if(0!==e.which&&e.keyCode!==a.Keys.Enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.word+=t,this.last=t,this.search()}},e.prototype.search=function(){var e=this;clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout((function(){e.word=""}),this.delay),this.selectNext())},e.prototype.selectNext=function(){var e,t,n,i=this,o=this.dataService.filter((function(e){return At(e)&&!e.header&&!i.disabledItemsService.isItemDisabled(e)})).map((function(e){return i.dataService.grouped?{item:e.value,itemIndex:e.offsetIndex}:{item:e,itemIndex:i.dataService.indexOf(e)}})),a=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(this.word,this.last),r=o.length,s=!isNaN(this.selectionService.selected[0]),c=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(n={item:this.defaultItem,itemIndex:-1},r+=1,c+=1),o=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(o,c+=a&&s?1:0,n),t=0;t<r;t++){e=Wt(o[t].item,this.textField);var d=Boolean(a&&Ut(e,this.last,this.ignoreCase)),l=Boolean(Ut(e,this.word,this.ignoreCase));if(d||l){t=o[t].itemIndex;break}}t!==r&&this.navigate(t)},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.navigate=function(e){this.selectionService.select(e)},e.prototype.findDataItem=function(e){var t,n=e.valueField,i=e.value,o={dataItem:null,index:-1},a=function(e){return Wt(e,n)};t=this.dataService.grouped?function(e){return a(e.value)===a(i)}:function(e){return a(e)===a(i)};var r=this.dataService.findIndex(t);return o.dataItem=this.dataService.itemAt(r),o.index=r,o},e.prototype.setState=function(){var e=this.value,t=this.valueField,n=this.textField,i=this.valuePrimitive;if(this.defaultItem){var o=Wt(this.defaultItem,t),a=Wt(e,t);if(!At(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)))}var r=this.findDataItem({valueField:t,value:e}),s=!(i&&n);r.dataItem?(this.updateState({dataItem:r.dataItem,confirm:!0}),this.resetSelection(r.index)):At(e)&&s?(this.updateState({dataItem:e}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())},e.prototype.handleFilter=function(e){this.filterChange.emit(e.target.value)},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.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()}))}))},e.prototype.assignAriaDescribedBy=function(){var e=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=Mt();var t=(this.valueLabelId+" "+e).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"defaultItem",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"ignoreCase",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)("tabIndex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"opened",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"closed",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ContentChild)(on,{static:!1}),Object(i.__metadata)("design:type",on)],e.prototype,"itemTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(sn,{static:!1}),Object(i.__metadata)("design:type",sn)],e.prototype,"groupTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(cn,{static:!1}),Object(i.__metadata)("design:type",cn)],e.prototype,"fixedGroupTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(ei,{static:!1}),Object(i.__metadata)("design:type",ei)],e.prototype,"valueTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(an,{static:!1}),Object(i.__metadata)("design:type",an)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(rn,{static:!1}),Object(i.__metadata)("design:type",rn)],e.prototype,"footerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mn,{static:!1}),Object(i.__metadata)("design:type",mn)],e.prototype,"noDataTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("optionsList",{static:!1}),Object(i.__metadata)("design:type",yn)],e.prototype,"optionsList",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-dropdown"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoDropDownList",providers:[ti,pn,dn,bn,un,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.dropdownlist"},{provide:gn,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],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(i.__param)(10,Object(o.Optional)()),Object(i.__param)(10,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[d.LocalizationService,p.c,dn,bn,un,pn,o.NgZone,o.Renderer2,o.ElementRef,o.ChangeDetectorRef,Boolean])],e)}(),ii=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectCustomItemTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),oi=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),ai=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectGroupTagTemplate],[kendoMultiSelectTreeGroupTagTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),ri=function(e){function t(t){var n=e.call(this)||this;return n.dataItem=t,n}return Object(i.__extends)(t,e),t}(fn),si={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return ci}))},ci=function(){function e(e,t,n,i,a,r,c,d,p,h,b,m){var f=this;this.localization=e,this.popupService=t,this.dataService=n,this.selectionService=i,this.navigationService=a,this.disabledItemsService=r,this.cdr=c,this.differs=d,this.renderer=p,this.hostElement=h,this._zone=b,this.touchEnabled=m,this.listBoxId=Mt(),this.tagListId=Mt(),this.tagPrefix="tag-"+Mt(),this.optionPrefix="option-"+Mt(),this.focusedTagIndex=void 0,this.focusableId="k-"+Mt(),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(u.map)((function(e){var t=function(t){return"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},n=f.value.find(t);if(n)return n;var i=f.dataService.find(t);return i||e})))},this.filterChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.opened=new o.EventEmitter,this.close=new o.EventEmitter,this.closed=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.removeTag=new o.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 l.Subject,this.observableSubscriptions=new l.Subscription,Object(s.validatePackage)(Bt),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}var t;return t=e,e.prototype.focusItemAt=function(e){var t=(this.allowCustom?-1:0)<=0&&e<this.data.length;At(e)&&t&&!this.disabledItemsService.isIndexDisabled(e)?this.selectionService.focus(e):this.selectionService.focus(null)},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.onSearchBarFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(a.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onSearchBarBlur=function(){var e=this;this.isFocused&&(this.isFocused=!1,Object(a.hasObservers)(this.onBlur)||Object(a.hasObservers)(this.filterChange)||Object(a.hasObservers)(this.close)||qt(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()))},e.prototype.wrapperMousedown=function(e){var t=this.searchbar.input.nativeElement;if(0===e.button){if(this.isFocused&&this.isOpen&&e.target===t)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==e.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),e.preventDefault()}},e.prototype.onMouseDown=function(e){e.preventDefault()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,n=t.min,i=t.max;e.style.minWidth=n,e.style.width=i}},Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.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(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.selectedDataItems.length?"":this._placeholder},set:function(e){this._placeholder=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"checkboxes",{get:function(){return this._checkboxes},set:function(e){this._checkboxes=function(e){if(Lt(e)){return Object.assign({},{enabled:!0,checkOnClick:!0},e)}return{enabled:Boolean(e),checkOnClick:!0}}(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"virtual",{get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=On(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePrimitive",{get:function(){return At(this._valuePrimitive)?this._valuePrimitive:!At(this.valueField)},set:function(e){this._valuePrimitive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"width",{get:function(){var e=0;Object(a.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(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return At(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){var e,t,n=this.focusedTagIndex,i=this.selectionService.focused;if(At(n)&&!this.isOpen)t=this.tags[n],e=this.tagPrefix;else{if(!At(i)||-1===i||!this.isOpen)return null;t=this.dataService.itemAt(i),e=this.optionPrefix}return e+"-"+Wt(t,this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noDataLabel",{get:function(){if(0===this.dataService.itemsCount)return this.noDataText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearTitle",{get:function(){return this.localization.get("clearTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(Object(o.isDevMode)()&&0!==this.value.length){if(!Nt(this.value))throw new Error(wn);if(!0===this.valuePrimitive&&Kt(this.value))throw new Error(In);if(!1===this.valuePrimitive&&!Kt(this.value))throw new Error(Sn);if(!At(this.valueField)!=!At(this.textField))throw new Error(xn)}},e.prototype.change=function(e){var t=this;if((At(e.added)||At(e.removed))&&(-1===e.added||-1===e.removed))this.addCustomValue(this.text);else{if(At(e.added)){var n=this.dataService.itemAt(e.added),i=this.valuePrimitive&&At(n)&&At(n[this.valueField])?n[this.valueField]:n;this.value=this.value.concat([i])}if(At(e.removed)){var o=this.dataService.itemAt(e.removed);this.value=this.value.filter((function(e){return Wt(e,t.valueField)!==Wt(o,t.valueField)})),this.selectionService.focused=e.removed,this.cdr.detectChanges()}this.emitValueChange()}},e.prototype.setState=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=Gt(this.value,n,this.valueField);this.selectionService.resetSelection(i),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(Kt(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=Ht(e,n,this.valueField)),this.selectedDataItems.length<e.length&&(this.selectedDataItems=e.map((function(e){var n=t.selectedDataItems.find((function(n){return Wt(n,t.valueField)===Wt(e,t.valueField)}));return At(n)?n:t.resolveDataItemFromTags(e)})).filter((function(e){return At(e)}))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()},e.prototype.handleFilter=function(e){this.text=e,e&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(e):this.searchTextAndFocus(e),this.searchbar.setInputSize()},e.prototype.pageChange=function(e){this.virtual.skip=e.skip},e.prototype.clearFilter=function(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()},e.prototype.handleNavigate=function(e){var t=this.text&&e.keyCode!==a.Keys.ArrowDown&&e.keyCode!==a.Keys.ArrowUp,n=this.text&&e.keyCode===a.Keys.Enter||e.keyCode===a.Keys.Escape;if(!this.text&&e.keyCode===a.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!(this.disabled||t&&!n)){var i=e,o=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,r=this.navigationService.process({current:o,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:i});r!==He.Undefined&&(r===He.Enter&&this.isOpen||r!==He.Enter)&&e.preventDefault()}},e.prototype.handleRemoveTag=function(e){var t=e.tag,n=new ri(t);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(n),n.isDefaultPrevented()||(t instanceof Array?this.removeGroupTag(t):this.removeSingleTag(t),this.cdr.detectChanges()))},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var n=this.selectionService.selected;this.value=this.value.filter((function(e,i){return t.disabledItemsService.isIndexDisabled(n[i])})),this.emitValueChange()},e.prototype.addCustomValue=function(e){this.customValueSubject.next(e)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.ngDoCheck=function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1},e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.setMessages()})),this.setMessages(),this.setState(this.value),this.initialized=!0},e.prototype.ngOnChanges=function(e){var t=this.virtual;t&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),Object(a.isChanged)("valueNormalizer",e)&&this.createCustomValueStream(),Object(a.anyChanged)(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)},e.prototype.ngAfterViewInit=function(){this.searchbar.setInputSize()},e.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=At(e)?e:!t._open;t._toggle(n),t.cdr.markForCheck()}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._open},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.text="",this.value=[]},e.prototype.writeValue=function(e){this.value=e||[]},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onTagMapperChange=function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()},Object.defineProperty(e.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}),e.prototype.subscribeEvents=function(){var e=this;if(Object(a.isDocumentAvailable)()){var t=function(){return e.isOpen},n=function(){return!e.isOpen},i=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Object(u.filter)(t)).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(u.filter)(t)).subscribe((function(t){return e.handleUp(t.index)})),this.navigationService.home.pipe(Object(u.filter)((function(){return n}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(u.filter)((function(){return n}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(u.filter)(i)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(u.filter)(i)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe((function(t){return e.handleDownKey(t.index)}))].forEach((function(t){return e.observableSubscriptions.add(t)}))}},e.prototype.subscribeTouchEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;!e.isFocused&&!e.isOpen||Qt(e.hostElement,n,e.popupRef)||e._zone.run((function(){e.blur(),e.isOpen&&e.togglePopup(!1)}))}))}))},e.prototype.unsubscribeEvents=function(){Object(a.isDocumentAvailable)()&&(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())},e.prototype.removeGroupTag=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=new Set(e.map((function(e){return Wt(e,t.valueField)})));this.value=this.value.filter((function(e){var o=Gt([e],n,t.valueField)[0],a=t.disabledItemsService.isIndexDisabled(o);return!i.has(Wt(e,t.valueField))||a})),this.emitValueChange()},e.prototype.removeSingleTag=function(e){var t=this,n=this.dataService.data;this.dataService.grouped&&(n=n.filter((function(e){return!e.header})).map((function(e){return e.value})));var i=Gt([e],n,this.valueField)[0];if(!this.disabledItemsService.isIndexDisabled(i))if(isNaN(i)){this.value=this.value.filter((function(n){return Wt(n,t.valueField)!==Wt(e,t.valueField)})),this.emitValueChange()}else this.selectionService.unselect(i),this.selectionService.focused=i,this.togglePopup(!1)},e.prototype.disabledItemsMapper=function(){var e=this,t=this.selectionService.selected;return new Set(this.selectedDataItems.reduce((function(n,i,o){return e.disabledItemsService.isIndexDisabled(t[o])&&n.push(o),n}),[]))},e.prototype.createCustomValueStream=function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(Object(u.tap)((function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()})),this.valueNormalizer,Object(u.catchError)((function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()})),e.createCustomValueStream(),Object(l.of)(null)}))).subscribe((function(t){if(e.loading=!1,e.disabled=!1,At(t)){var n=e.valuePrimitive?Wt(t,e.valueField):t,i=e.dataService.indexOf(n),o=-1===i;-1===e.value.indexOf(n)?(e.tags=e.tagMapper(e.selectedDataItems.concat([t])),o?e.value=e.value.concat([n]):e.selectionService.add(i)):!o&&e.selectionService.isSelected(i)?(e.selectionService.unselect(i),e.selectionService.focused=i):e.value=e.value.filter((function(t){return Wt(t,e.valueField)!==n})),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),!e.autoClose&&e.filterable||e.clearFilter(),e.nextTick((function(){e.searchbar.focus()}))}))},e.prototype.handleItemChange=function(e){this.change(e),this.autoClose&&this.togglePopup(!1),!this.autoClose&&this.filterable||this.clearFilter()},e.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)},e.prototype.handleClose=function(){this.closePopup(),this.searchbar.focus()},e.prototype.handleEnd=function(){this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(){this.focusedTagIndex=0},e.prototype.handleUp=function(e){this.selectionService.focused=e},e.prototype.handleBackspace=function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())},e.prototype.handleDelete=function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)},e.prototype.handleLeftKey=function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--},e.prototype.handleDownKey=function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()},e.prototype.handleRightKey=function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex<e&&this.focusedTagIndex++},e.prototype.findIndex=function(e,t){var n,i=this;void 0===t&&(t=0),e=e.toLowerCase();var o=this.dataService.findIndex((function(t){return n=i.dataService.grouped?Wt(t.value,i.textField):Wt(t,i.textField),n=At(n)?n.toString().toLowerCase():"",e&&n.startsWith(e)}),t);return this.disabledItemsService.isIndexDisabled(o)?o+1>this.dataService.itemsCount?-1:this.findIndex(e,o+1):o},e.prototype.searchTextAndFocus=function(e){var t=this.findIndex(e);this.selectionService.focused=t},e.prototype.closePopup=function(){this.togglePopup(!1),this.focusedTagIndex=void 0},e.prototype.openPopup=function(){this.togglePopup(!0),this.focusedTagIndex=void 0},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||this._toggle(e))},e.prototype.triggerPopupEvents=function(e){var t=new fn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype._toggle=function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)},e.prototype.createPopup=function(){var e=this;this.virtual&&(this.virtual.skip=0);var t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:n,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:i,popupClass:this.listContainerClasses,positionMode:"absolute"});var o=this.popupRef.popupElement,a=this.width,r=a.min,s=a.max;o.addEventListener("mousedown",this.popupMouseDownHandler),o.style.minWidth=r,o.style.width=s,o.style.height=this.height,o.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)}))},e.prototype.emitValueChange=function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)},e.prototype.resolveDataItemFromTags=function(e){var t=this;if(this.tags&&this.tags.length&&At(e))return this.tags.reduce((function(e,t){var n=Nt(t)?t:[t];return e.push.apply(e,n),e}),[]).find((function(n){return Wt(n,t.valueField)===Wt(e,t.valueField)}))},e.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},e.prototype.nextTick=function(e){var t=this;this._zone.runOutsideAngular((function(){setTimeout((function(){return t._zone.run(e)}))}))},e.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoClose",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)("tabIndex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"placeholder",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"itemDisabled",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"checkboxes",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"virtual",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"valuePrimitive",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tagMapper",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"allowCustom",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"valueNormalizer",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"opened",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"closed",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"removeTag",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)(nn,{static:!0}),Object(i.__metadata)("design:type",nn)],e.prototype,"searchbar",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("optionsList",{static:!1}),Object(i.__metadata)("design:type",yn)],e.prototype,"optionsList",void 0),Object(i.__decorate)([Object(o.ContentChild)(on,{static:!1}),Object(i.__metadata)("design:type",on)],e.prototype,"template",void 0),Object(i.__decorate)([Object(o.ContentChild)(ii,{static:!1}),Object(i.__metadata)("design:type",ii)],e.prototype,"customItemTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(sn,{static:!1}),Object(i.__metadata)("design:type",sn)],e.prototype,"groupTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(cn,{static:!1}),Object(i.__metadata)("design:type",cn)],e.prototype,"fixedGroupTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(an,{static:!1}),Object(i.__metadata)("design:type",an)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(rn,{static:!1}),Object(i.__metadata)("design:type",rn)],e.prototype,"footerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(oi,{static:!1}),Object(i.__metadata)("design:type",oi)],e.prototype,"tagTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(ai,{static:!1}),Object(i.__metadata)("design:type",ai)],e.prototype,"groupTagTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mn,{static:!1}),Object(i.__metadata)("design:type",mn)],e.prototype,"noDataTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-multiselect"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"dir",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoMultiSelect",providers:[si,pn,dn,bn,un,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.multiselect"},{provide:gn,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],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(i.__param)(11,Object(o.Optional)()),Object(i.__param)(11,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[d.LocalizationService,p.c,pn,dn,bn,un,o.ChangeDetectorRef,o.KeyValueDiffers,o.Renderer2,o.ElementRef,o.NgZone,Boolean])],e)}(),di=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiColumnComboBoxColumnCellTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),li=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiColumnComboBoxColumnHeaderTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),pi=function(){function e(){this.hidden=!1,this.matchesMedia=!0}return Object(i.__decorate)([Object(o.ContentChild)(di,{static:!1}),Object(i.__metadata)("design:type",di)],e.prototype,"cellTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(li,{static:!1}),Object(i.__metadata)("design:type",li)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"field",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"width",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hidden",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"style",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"headerStyle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"class",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"headerClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"media",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-combobox-column",template:""})],e)}(),ui=function(){if(isNaN(ln)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),ln=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return ln},hi=function(e){if(!function(e){return!(!At(e)||0===e.length)&&e.toArray().every((function(e){return!isNaN(e.width)&&e.width>0}))}(e))return null;var t=ui()+2;return e.reduce((function(e,t){return!t.hidden&&t.matchesMedia&&(e+=parseInt(t.width,10)),e}),t)},bi=function(e){function t(t,n,i,o,a,r,s,c,d,l,p){var u=e.call(this,t,n,i,o,a,r,s,c,d,l,p)||this;return u.hostClasses=!0,u.removeWindowResizeListener=Zt,u.defaultVirtualItemHeight=36,u.defaultVirtualPageSize=30,u}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"header",{set:function(e){this.updateHeaderPadding(e&&e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"popupWidth",{get:function(){var e=this.wrapper.nativeElement.offsetWidth,t=e+"px",n=this.popupSettings.width||hi(this.columns)||e;return{min:t,max:isNaN(n)?n:n+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.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}),t.prototype.ngAfterViewInit=function(){this.updateColumnsMediaState(),this.addWindowResizeListener()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.removeWindowResizeListener()},t.prototype.textFrom=function(e,t){return Wt(e,t)},t.prototype.updateHeaderPadding=function(e){if(At(e)){var t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&ui()>0?this.renderer.setStyle(e,t,ui()+"px"):this.renderer.removeStyle(e,t)}},t.prototype.verifySettings=function(){if(Object(o.isDevMode)()){if(At(this.data)&&this.data.length>0&&this.data.some((function(e){return!Lt(e)})))throw new Error(zn);if(!At(this.valueField)||!At(this.textField))throw new Error(Hn);e.prototype.verifySettings.call(this)}},t.prototype.addWindowResizeListener=function(){var e=this;Object(a.isDocumentAvailable)()&&this.zone.runOutsideAngular((function(){return e.removeWindowResizeListener=e.renderer.listen(window,"resize",e.updateColumnsMediaState.bind(e))}))},t.prototype.updateColumnsMediaState=function(){var e=this;At(this.columns)&&Object(a.isDocumentAvailable)()&&this.columns.forEach((function(t){var n=!t.media||window.matchMedia(t.media).matches;t.matchesMedia!==n&&(t.matchesMedia=n,e.isOpen&&e.zone.run((function(){return e.popupRef.popupElement.style.width=e.popupWidth.max})))}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-dropdowngrid"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.ContentChildren)(pi),Object(i.__metadata)("design:type",o.QueryList)],t.prototype,"columns",void 0),Object(i.__decorate)([Object(o.ViewChild)("header",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef),Object(i.__metadata)("design:paramtypes",[o.ElementRef])],t.prototype,"header",null),t=n=Object(i.__decorate)([Object(o.Component)({providers:[dn,pn,bn,un,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:gn,useExisting:Object(o.forwardRef)((function(){return n}))}],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(i.__param)(10,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[d.LocalizationService,p.c,dn,bn,un,pn,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.ElementRef,Boolean])],t)}(Jn),mi=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]"}),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),fi={animate:!0},gi=function(){return!1},vi=function(){return Object(l.of)([])},yi=function(){return!1},_i=function(){return!0},Oi=function(){function e(e,t,n,i,r,s,c,d){this.popupService=e,this.navigationService=t,this.renderer=n,this.hostElement=i,this._zone=r,this.cdr=s,this.localization=c,this.touchEnabled=d,this.hostClasses=!0,this.open=new o.EventEmitter,this.opened=new o.EventEmitter,this.close=new o.EventEmitter,this.closed=new o.EventEmitter,this.nodeExpand=new o.EventEmitter,this.nodeCollapse=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.clearButton=!0,this.hasChildren=gi,this.fetchChildren=vi,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=yi,this.isNodeVisible=_i,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId="k-"+Object(a.guid)(),this.selectedKeys=[],this.filterStateChange=new o.EventEmitter,this.allNodesHidden=!1,this.valueLabelId="k-"+Object(a.guid)(),this._popupSettings=fi,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=Zt,this.onChangeCallback=Zt,this.direction=c.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}var t;return t=e,Object.defineProperty(e.prototype,"clearable",{get:function(){return this.clearButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},fi,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItem",{get:function(){return this._dataItem?this._dataItem:this.value},set:function(e){this._dataItem=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.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(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return At(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return At(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonVisiblity",{get:function(){if(this.touchEnabled)return"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){Object(a.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!this.text&&!this.placeholder},e.prototype.togglePopup=function(e){var t=this.disabled||this.readonly,n=this.isOpen===e;t||n||(this.triggerPopupEvents(e)||(e?this.createPopup():this.destroyPopup()))},e.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(a.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.hostElement.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,Object(a.hasObservers)(this.onBlur)||qt(this.hostElement.nativeElement)?this._zone.run((function(){t.togglePopup(!1),t.onBlur.emit(),t.onTouchedCallback()})):this.togglePopup(!1))},e.prototype.handleKeydown=function(e){if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})}},e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!At(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e)}},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.reset=function(){this.value=void 0,this.dataItem=void 0},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=At(e)?e:!At(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},Object.defineProperty(e.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}),e.prototype.onSelectionChange=function(e){var t=e.dataItem,n=e.index;this.valueDepth=n.split("_").length-1;var i=this.getField(this.valueField,t),o=this.valuePrimitive?Object(c.getter)(i)(t):t;o!==this.value&&(this.value=o,this.dataItem=t,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()},e.prototype.messageFor=function(e){return this.localization.get(e)},e.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(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.preventEventDefault=function(e){e.preventDefault()},e.prototype.writeValue=function(e){!At(e)&&At(this.value)&&(this.dataItem=null),this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.handleFilterInputChange=function(e){var t=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every((function(e,n){return!t.isVisible(e,String(n))}))},Object.defineProperty(e.prototype,"buttonClasses",{get:function(){return this.loading?"k-i-loading":"k-i-arrow-s"},enumerable:!0,configurable:!0}),e.prototype.verifySettings=function(){if(Object(o.isDevMode)()){if(!0===this.valuePrimitive&&At(this.value)&&"object"==typeof this.value)throw new Error($n);if(!0===this.valuePrimitive&&At(this.value)&&"object"!=typeof this.dataItem)throw new Error(Zn);if(!1===this.valuePrimitive&&At(this.value)&&"object"!=typeof this.value)throw new Error(qn);if(!At(this.valueField)||!At(this.textField))throw new Error(Yn);if((Nt(this.valueField)||Nt(this.textField))&&At(this.value)&&!At(this.valueDepth))throw new Error(Xn)}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.getText=function(e,t){if(At(t)&&At(e)){var n=this.getField(e,t);return Object(c.getter)(n)(t)}return null},e.prototype.getField=function(e,t){var n=e.length-1;return"string"==typeof e?e:At(this.valueDepth)?n<this.valueDepth?e[n]:e[this.valueDepth]:e.find((function(e){return e in t}))},e.prototype.triggerPopupEvents=function(e){var t=new fn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var o=this.popupRef.popupElement,a=this.width,r=a.min,s=a.max;o.style.minWidth=r,o.style.width=s,o.style.height=this.height,o.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe((function(){e.cdr.detectChanges(),e.opened.emit()})),this.popupRef.popupClose.subscribe((function(){e.closed.emit()}))},e.prototype.destroyPopup=function(){var e=this;this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Object(a.hasObservers)(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.handleEscape=function(){this.togglePopup(!1),this.focus()},e.prototype.setState=function(){if(At(this.value)&&At(this.dataItem)&&At(this.valueField)){this.text=this.getText(this.textField,this.dataItem);var e=this.getField(this.valueField,this.dataItem);this.selectBy=e,this.selectedKeys=[Object(c.getter)(e)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()},e.prototype.clearState=function(){this.text=void 0,this.selectedKeys=[]},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.close.subscribe((function(){e.togglePopup(!1),e.focus()})),this.navigationService.enter.pipe(Object(u.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),this.navigationService.esc.subscribe((function(){return e.handleEscape()})),this.navigationService.tab.subscribe((function(){return e.focus()})),this.navigationService.down.subscribe((function(t){e.treeview&&(t.originalEvent.preventDefault(),e.treeview.isActive||e.treeview.focus())})),this.navigationService.up.subscribe((function(t){e.treeview&&(t.originalEvent.preventDefault(),e.filterable&&"0"===e.treeview.navigationService.activeIndex&&e.filterInput.nativeElement.focus())})))},e.prototype.subscribeTouchEvents=function(){var e=this;Object(a.isDocumentAvailable)()&&this.touchEnabled&&this._zone.runOutsideAngular((function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",(function(t){var n=t.target;e.isFocused&&!Qt(e.hostElement,n,e.popupRef)&&e._zone.run((function(){e.isOpen&&e.treeview.blur(),e.blur()}))}))}))},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()},e.prototype.assignAriaDescribedBy=function(){var e=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",t=(this.valueLabelId+" "+e.trim()).trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-dropdowntree"),Object(o.HostBinding)("class.k-dropdowntree-clearable"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-dropdowntree-clearable"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"clearable",null),Object(i.__decorate)([Object(o.ContentChild)(mn,{static:!1}),Object(i.__metadata)("design:type",mn)],e.prototype,"noDataTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(an,{static:!1}),Object(i.__metadata)("design:type",an)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(rn,{static:!1}),Object(i.__metadata)("design:type",rn)],e.prototype,"footerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mi,{static:!1}),Object(i.__metadata)("design:type",mi)],e.prototype,"nodeTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(ei,{static:!1}),Object(i.__metadata)("design:type",ei)],e.prototype,"valueTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("treeview",{static:!1}),Object(i.__metadata)("design:type",xe),Object(i.__metadata)("design:paramtypes",[xe])],e.prototype,"treeview",null),Object(i.__decorate)([Object(o.ViewChild)("filterInput",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"filterInput",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"opened",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"closed",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeExpand",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeCollapse",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"valueDepth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"fetchChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"dataItem",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"itemDisabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isNodeExpanded",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isNodeVisible",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"filter",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoDropDownTree",providers:[pn,dn,bn,un,d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.dropdowntree"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:je,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:ke,useExisting:Object(o.forwardRef)((function(){return t}))}],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:o.ChangeDetectionStrategy.OnPush}),Object(i.__param)(7,Object(o.Optional)()),Object(i.__param)(7,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[p.c,bn,o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,d.LocalizationService,Boolean])],e)}(),ji={animate:!0},ki={checkChildren:!0,checkOnClick:!0},Ci=function(){return!1},wi=function(){return Object(l.of)([])},Si=function(){return!1},Ii=function(){return!0},xi=function(){function e(e,t,n,i,r,s,c,d){this.popupService=e,this.renderer=t,this.hostElement=n,this.navigationService=i,this._zone=r,this.localization=s,this.cdr=c,this.touchEnabled=d,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(a.guid)(),this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=Ci,this.fetchChildren=wi,this.isNodeVisible=Ii,this.itemDisabled=Si,this.tagMapper=function(e){return e||[]},this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.open=new o.EventEmitter,this.opened=new o.EventEmitter,this.close=new o.EventEmitter,this.closed=new o.EventEmitter,this.nodeExpand=new o.EventEmitter,this.nodeCollapse=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.removeTag=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.filterStateChange=new o.EventEmitter,this.checkedItems=[],this.checkBy=function(e){return e},this.showAfter=0,this.allNodesHidden=!1,this.tagListId=Object(a.guid)(),this.tagPrefix="tag-"+Object(a.guid)(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=ji,this._checkableSettings=ki,this._isFocused=!1,this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=Zt,this.onChangeCallback=Zt,this.direction=s.rtl?"rtl":"ltr",this.subscribeEvents()}var t;return t=e,Object.defineProperty(e.prototype,"treeview",{get:function(){return this._treeview},set:function(e){var t=this;this._treeview=e,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(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Xt(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},ji,e),this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkableSettings",{get:function(){return this._checkableSettings},set:function(e){this._checkableSettings=Object.assign({},ki,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._nodes},set:function(e){this._nodes=e,this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e||[],this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataItems",{get:function(){var e=this;return this._dataItems||this.value.map((function(t,n){return{dataItem:t,index:null,level:e.valueDepth[n]||0}}))},set:function(e){var t=this;this._dataItems=(e||[]).map((function(e,n){return $t(e,["dataItem","index","level"])?e:{dataItem:e,index:null,level:t.valueDepth[n]||0}})),this.setState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedTagId",{get:function(){if(!At(this.focusedTagIndex)||this.isOpen)return null;var e=this.tags[this.focusedTagIndex];return this.tagPrefix+"-"+tn({dataItem:e},this.valueField)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"isOpen",{get:function(){return At(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"height",{get:function(){var e=this.popupSettings.height;return At(e)?e+"px":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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(e.prototype,"nodes",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.fetchChildren},set:function(e){this.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expand",{get:function(){return this.nodeExpand},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapse",{get:function(){return this.nodeCollapse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.isNodeExpanded},set:function(e){this.isNodeExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isNodeVisible},set:function(e){this.isNodeVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTagFocused",{get:function(){return!this.isOpen&&void 0!==this.focusedTagIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTreeViewActive",{get:function(){return this.treeview&&this.treeview.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWrapperActive",{get:function(){return document.activeElement===this.wrapper.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFilterActive",{get:function(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckAllActive",{get:function(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=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(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.cdr.markForCheck()})))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){var t=this;Object(a.anyChanged)(["textField","valueField","valuePrimitive"],e,!1)&&this.setState(),Object(a.anyChanged)(["valueDepth","value","dataItems"],e,!1)&&(!e.value||e.dataItems||this.valuePrimitive?this.dataItems=this.dataItems.map((function(e,n){return Object(i.__assign)({},e,{level:t.valueDepth[n]||0})})):this.dataItems=this.value)},e.prototype.ngAfterContentChecked=function(){this.verifySettings()},e.prototype.isEmpty=function(){return!(Boolean(this.placeholder)||At(this.value)&&0!==this.value.length)},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.disabled||this.wrapper.nativeElement.blur()},e.prototype.focusItemAt=function(e){if(this.treeview){var t=this.treeview.itemLookup(e);!At(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(e)}},e.prototype.reset=function(){this.value=[],this.dataItems=[],this.valueDepth=[]},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then((function(){var n=At(e)?e:!At(t.popupRef);t.destroyPopup(),n&&t.createPopup()}))},e.prototype.handleFocus=function(){var e=this;this.isFocused||(this.isFocused=!0,Object(a.hasObservers)(this.onFocus)&&this._zone.run((function(){e.onFocus.emit()})),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))},e.prototype.handleBlur=function(e){var t=this,n=e&&e.relatedTarget;this.hostElement.nativeElement.contains(n)||this.isOpen&&this.popupRef.popupElement.contains(n)||(this.isFocused=!1,this.togglePopup(!1),(Object(a.hasObservers)(this.onBlur)||qt(this.hostElement.nativeElement))&&this._zone.run((function(){t.onBlur.emit(),t.onTouchedCallback()})))},e.prototype.handleClick=function(){this.togglePopup(!this.isOpen)},e.prototype.handleKeydown=function(e){if(this.isWrapperActive&&e.keyCode===a.Keys.Backspace&&this.tags.length>0)this.handleBackspace();else if(!this.disabled&&!this.readonly){var t=e;this.navigationService.process({originalEvent:t})===He.Open&&t.preventDefault()}},e.prototype.handleNodeClick=function(e){if(!this.isFocused){var t=e.originalEvent.target.parentElement.parentElement;this.lastNodeOnFocus=t,this.focus()}},e.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())},e.prototype.messageFor=function(e){return this.localization.get(e)},e.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)},e.prototype.handleRemoveTag=function(e){var t=this,n=e.tag,i=e.index;if(!this.disabled&&!this.readonly){var o=new ri(n);this.removeTag.emit(o),o.isDefaultPrevented()||(n instanceof Array?(this.dataItems=this.dataItems.filter((function(e,n){return n<t.showAfter||t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return n<t.showAfter||t.disabledIndices.has(n)}))):(this.dataItems=this.dataItems.filter((function(e,n){return n!==i||t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return n!==i||t.disabledIndices.has(n)}))),this.updateValue(this.dataItems),this.isFocused||this.focus())}},e.prototype.handleTagMapperChange=function(e){this.showAfter=Xt(e),this.setTags()},e.prototype.clearAll=function(e){var t=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.value=this.value.filter((function(e,n){return t.disabledIndices.has(n)})),this.dataItems=this.dataItems.filter((function(e,n){return t.disabledIndices.has(n)})),this.valueDepth=this.valueDepth.filter((function(e,n){return t.disabledIndices.has(n)})),this.emitValueChange(this.value)},e.prototype.writeValue=function(e){this.value=e||[],this.valuePrimitive||(this.dataItems=this.value)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.handleFilterInputChange=function(e){var t=this;this.filterChange.next(e),this.allNodesHidden=this.nodes.every((function(e,n){return!t.isVisible(e,String(n))}))},e.prototype.toggleCheckAll=function(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()){if(!At(this.valueField)||!At(this.textField))throw new Error(Rn);if(!Nt(this.value))throw new Error(En);if(this.value.length>0){if(this.valuePrimitive&&this.value.some((function(e){return Lt(e)})))throw new Error(Dn);var e=this.dataItems.every((function(e){return Lt(e.dataItem)}));if(this.valuePrimitive&&!Nt(this.dataItems))throw new Error(Fn);if(this.valuePrimitive&&!e)throw new Error(Fn);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error(Pn);if(!this.valuePrimitive&&!Kt(this.value))throw new Error(Tn);if((Nt(this.valueField)||Nt(this.textField))&&!Nt(this.valueDepth))throw new Error(Vn);if((Nt(this.valueField)||Nt(this.textField))&&0===this.valueDepth.length)throw new Error(Vn);if((Nt(this.valueField)||Nt(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error(Bn)}}},e.prototype.emitValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.triggerPopupEvents=function(e){var t=new fn;return e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()},e.prototype.createPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:n,content:this.popupTemplate,popupAlign:i,positionMode:"absolute",popupClass:this.popupContainerClasses});var o=this.popupRef.popupElement,a=this.width,r=a.min,s=a.max;o.style.minWidth=r,o.style.width=s,o.style.height=this.height,this.renderer.setAttribute(o,"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()}))},e.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(a.hasObservers)(this.filterChange)&&this._zone.run((function(){e.filterChange.emit("")}))))},e.prototype.subscribeEvents=function(){var e=this;this.subscriptions.push(this.navigationService.open.subscribe((function(){return e.togglePopup(!0)})),this.navigationService.enter.pipe(Object(u.tap)((function(e){return e.originalEvent.preventDefault()}))).subscribe((function(){return e.togglePopup(!0)})),Object(l.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(u.filter)((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(Object(u.filter)((function(){return!e.isTreeViewActive}))).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(Object(u.filter)((function(){return!e.isOpen}))).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Object(u.filter)((function(){return!e.isOpen}))).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Object(u.filter)((function(){return e.isTagFocused}))).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Object(u.filter)((function(){return e.isTagFocused}))).subscribe(this.handleDelete.bind(this)))},e.prototype.handleTabKey=function(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())},e.prototype.handleUpKey=function(e){if(this.treeview&&(e.originalEvent.preventDefault(),!this.isWrapperActive)){var t="0"===this.treeview.navigationService.activeIndex;this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&t?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||t)&&(this.filterable?this.filterInput.nativeElement.focus():this.focus())}},e.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)},e.prototype.handleRightKey=function(e){e.originalEvent.preventDefault();var t=this.tags.length-1;this.focusedTagIndex===t?this.focusedTagIndex=void 0:this.focusedTagIndex<t?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)},e.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--},e.prototype.handleEnd=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1},e.prototype.handleHome=function(e){e.originalEvent.preventDefault(),this.focusedTagIndex=0},e.prototype.handleBackspace=function(){if(void 0!==this.focusedTagIndex)this.handleDelete();else{var e=this.tags[this.tags.length-1],t=this.tags.length-1;this.handleRemoveTag({tag:e,index:t})}},e.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)},e.prototype.unsubscribeEvents=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.removeTreeViewFromTabOrder=function(){var e=this;this.treeview.element.nativeElement.querySelectorAll("li").forEach((function(t){"0"===t.getAttribute("tabindex")&&(e.lastNodeOnFocus=t,e.lastNodeOnFocus.setAttribute("tabindex","-1"))}))},e.prototype.setState=function(){At(this.dataItems)&&At(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()},e.prototype.setTags=function(){var e=this.dataItems.map((function(e){return e.dataItem}));this.tags=this.tagMapper(e),this.disabledIndices=this.disabledItemsMapper()},e.prototype.updateValue=function(e){var t=this,n=this.valuePrimitive?e.map((function(e){return tn(e,t.valueField)})):e.map((function(e){return e.dataItem}));this.value=n,this.emitValueChange(this.value)},e.prototype.disabledItemsMapper=function(){var e=this;return new Set(this.dataItems.reduce((function(t,n,i){return e.itemDisabled(n.dataItem,n.index)&&t.push(i),t}),[]))},Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-dropdowntree"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.ContentChild)(an,{static:!1}),Object(i.__metadata)("design:type",an)],e.prototype,"headerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(rn,{static:!1}),Object(i.__metadata)("design:type",rn)],e.prototype,"footerTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mi,{static:!1}),Object(i.__metadata)("design:type",mi)],e.prototype,"nodeTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(mn,{static:!1}),Object(i.__metadata)("design:type",mn)],e.prototype,"noDataTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(oi,{static:!1}),Object(i.__metadata)("design:type",oi)],e.prototype,"tagTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(ai,{static:!1}),Object(i.__metadata)("design:type",ai)],e.prototype,"groupTagTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("treeview",{static:!1}),Object(i.__metadata)("design:type",xe),Object(i.__metadata)("design:paramtypes",[xe])],e.prototype,"treeview",null),Object(i.__decorate)([Object(o.ViewChild)("filterInput",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"filterInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("checkAllInput",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"checkAllInput",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"checkableSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"dataItems",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"valueDepth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loading",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"listHeight",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"valuePrimitive",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"checkAll",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"hasChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"fetchChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isNodeExpanded",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"isNodeVisible",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"itemDisabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tagMapper",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"opened",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"closed",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeExpand",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"nodeCollapse",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"removeTag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoMultiSelectTree",providers:[d.LocalizationService,bn,pn,un,dn,{provide:d.L10N_PREFIX,useValue:"kendo.multiselecttree"},{multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:je,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:ke,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:a.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],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(i.__param)(7,Object(o.Optional)()),Object(i.__param)(7,Object(o.Inject)(jn)),Object(i.__metadata)("design:paramtypes",[p.c,o.Renderer2,o.ElementRef,bn,o.NgZone,d.LocalizationService,o.ChangeDetectorRef,Boolean])],e)}(),Ei=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)("kendoDropDownTreeFlatBinding"),Object(i.__metadata)("design:type",Array)],t.prototype,"nodes",void 0),Object(i.__decorate)([Object(o.Input)("valueField"),Object(i.__metadata)("design:type",String)],t.prototype,"idField",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownTreeFlatBinding]"}),Object(i.__metadata)("design:paramtypes",[je])],t)}(jt),Di=function(e){function t(t){var n=e.call(this,t)||this;return n.dropDownTree=t,n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.dropDownTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)("kendoDropDownTreeHierarchyBinding"),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],t.prototype,"data",null),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownTreeHierarchyBinding]"}),Object(i.__metadata)("design:paramtypes",[je])],t)}(ft),Ti=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)("kendoMultiSelectTreeFlatBinding"),Object(i.__metadata)("design:type",Array)],t.prototype,"nodes",void 0),Object(i.__decorate)([Object(o.Input)("valueField"),Object(i.__metadata)("design:type",String)],t.prototype,"idField",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectTreeFlatBinding]"}),Object(i.__metadata)("design:paramtypes",[je])],t)}(jt),Fi=function(e){function t(t){var n=e.call(this,t)||this;return n.multiSelectTree=t,n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"data",{set:function(e){this.multiSelectTree.nodes=e,this.nodes=e},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)("kendoMultiSelectTreeHierarchyBinding"),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],t.prototype,"data",null),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectTreeHierarchyBinding]"}),Object(i.__metadata)("design:paramtypes",[je])],t)}(ft),Pi=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)("isNodeExpanded"),Object(i.__metadata)("design:type",Function)],t.prototype,"isExpanded",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]"}),Object(i.__metadata)("design:paramtypes",[ke])],t)}(Pe),Ri=function(){function e(){this.disabledIndices=new Set,this.removeTag=new o.EventEmitter}return e.prototype.tagProp=function(e,t,n){var i=t&&this.getPropField(e,t,n);return Wt(e,i)},e.prototype.isTagDisabled=function(e,t){var n=this;return this.isGroupTag(e)?e.every((function(e,i){return n.disabledIndices.has(i+t)})):this.disabledIndices.has(t)},e.prototype.deleteTag=function(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),this.disabled||1!==e.which||this.removeTag.emit({tag:t,index:n})},e.prototype.itemId=function(e,t){if(e)return this.tagPrefix+"-"+this.tagProp(e,this.valueField,t)},e.prototype.isGroupTag=function(e){return e instanceof Array},e.prototype.tagAriaHidden=function(e){return At(this.focused)&&this.focused!==e},e.prototype.getPropField=function(e,t,n){var i=t.length-1;if("string"==typeof t)return t;if(this.valueDepth){var o=this.valueDepth[n];return i<o?t[i]:t[o]}return t.find((function(t){return t in e}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"tags",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"textField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"valueDepth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"focused",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",oi)],e.prototype,"template",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",ai)],e.prototype,"groupTemplate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tagPrefix",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Set)],e.prototype,"disabledIndices",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"removeTag",void 0),e=Object(i.__decorate)([Object(o.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 '})],e)}(),Vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"noDataText",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"checkAllText",void 0),t}(d.ComponentMessages),Bi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Vi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n "}),Object(i.__metadata)("design:paramtypes",[d.LocalizationService])],t)}(Vi),Ai=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Vi,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-dropdownlist-messages,kendo-combobox-messages,kendo-multicolumncombobox-messages,kendo-autocomplete-messages,kendo-multiselect-messages,kendo-dropdowntree-messages,kendo-multiselecttree-messages",template:""}),Object(i.__metadata)("design:paramtypes",[d.LocalizationService])],t)}(Vi),Mi={caseSensitive:!1,operator:"startsWith"},Ni=function(){function e(e){this.component=e,this.filterable=!0,this._data=[]}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))},e.prototype.ngOnDestroy=function(){At(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()},e.prototype.handleFilterChange=function(e){var t=this;this.component.data=this.data.filter((function(n){return t.matchesAnyField(n,e)}))},e.prototype.matchesAnyField=function(e,t){var n=this,i=this.normalizeValue(t),o=this.filterSettings.fields;return 0===o.length?this.checkItem(e,i):o.some((function(t){return n.checkItem(Wt(e,t),i)}))},e.prototype.checkItem=function(e,t){return e=this.normalizeValue(e),"contains"===this.filterSettings.operator?-1!==e.indexOf(t):0===e.indexOf(t)},e.prototype.normalizeValue=function(e){var t=At(e)?e.toString():"";return this.filterSettings.caseSensitive?t:t.toLowerCase()},e.prototype.getFilterFields=function(e){return this.component.textField||this.component.valueField?Nt(e)&&e.length>0?e:[this.component.textField||this.component.valueField]:[]},Object.defineProperty(e.prototype,"filterSettings",{get:function(){var e=this.rawSettings,t=At(e)&&"object"==typeof e?e.fields:[];return Object.assign({},Mi,e,{fields:this.getFilterFields(t)})},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array),Object(i.__metadata)("design:paramtypes",[Array])],e.prototype,"data",null),Object(i.__decorate)([Object(o.Input)("kendoDropDownFilter"),Object(i.__metadata)("design:type",Object)],e.prototype,"rawSettings",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"filterable",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownFilter]"}),Object(i.__metadata)("design:paramtypes",[gn])],e)}(),Li=function(){function e(e,t){this.element=e,this.zone=t}return e.prototype.ngOnChanges=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},e.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},Object(i.__decorate)([Object(o.Input)("filterInput"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"focused",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[filterInput]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),zi=[an,rn,on,sn,cn,mn,ei,oi,ai,Bi,Ai,Ni,Li],Hi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[zi],exports:[zi]})],e)}(),Ki=function(){function e(e){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=e}return Object.defineProperty(e.prototype,"focusedClassName",{get:function(){return this.selectionService.isFocused(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedClassName",{get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)},enumerable:!0,configurable:!0}),e.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(i.__decorate)([Object(o.HostBinding)("attr.index"),Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"index",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"checkboxes",void 0),Object(i.__decorate)([Object(o.HostBinding)("style.height.px"),Object(o.HostBinding)("style.minHeight.px"),Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"height",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"multipleSelection",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClassName",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-selected"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"selectedClassName",null),Object(i.__decorate)([Object(o.HostListener)("click",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"onClick",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDropDownsSelectable]"}),Object(i.__metadata)("design:paramtypes",[dn])],e)}(),Gi=function(){function e(e){this.viewContainerRef=e}return Object.defineProperty(e.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"templateContext",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[templateContext]"}),Object(i.__metadata)("design:paramtypes",[o.ViewContainerRef])],e)}(),Wi=function(){function e(){}return e.prototype.addItem=function(e){if(!this.isItemChecked(e)){var t=Jt(e.index),n=Object(i.__assign)({},e,{level:t});this.checkedItems.push(n),this.checkedKeys.add(tn(n,this.valueField))}},e.prototype.removeItem=function(e){var t=this;if(this.isItemChecked(e)){var n=Jt(e.index),o=Object(i.__assign)({},e,{level:n});this.checkedItems=this.checkedItems.filter((function(e){return tn(e,t.valueField)!==tn(o,t.valueField)})),this.checkedKeys.delete(tn(o,this.valueField))}},e.prototype.isItemChecked=function(e){return this.checkedKeys.has(tn(e,this.valueField))},e.prototype.updateItems=function(){var e=this;this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map((function(t){return tn(t,e.valueField)})))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"checkedItems",void 0),e}(),Ui=function(e){function t(t){var n=e.call(this)||this;return n.treeView=t,n.checkedItemsChange=new o.EventEmitter,n.checkedKeys=new Set,n.subscriptions=new l.Subscription,n.subscriptions.add(n.treeView.checkedChange.subscribe(n.handleCheckedChange.bind(n))),n.treeView.isChecked=n.getCheckedState.bind(n),n}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){At(e.checkable)&&this.toggleCheckOnClick(),At(e.checkedItems)&&this.updateItems()},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},t.prototype.getCheckedState=function(e,t){return this.isItemChecked({dataItem:e,index:t})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(t))?"indeterminate":"none"},t.prototype.handleCheckedChange=function(e){this.checkNode(e),this.checkable.checkChildren&&this.checkParents(e.parent),this.checkedItemsChange.emit(this.checkedItems.slice())},t.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(Object(u.filter)((function(e){return"click"===e.type}))).subscribe((function(t){var n=e.treeView.itemLookup(t.item.index);e.handleCheckedChange(n)})))},t.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},t.prototype.checkNode=function(e){var t=this;if(!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=e.item,i=[n];if(this.checkable.checkChildren){en(e,(function(e){return t.treeView.isVisible(e.dataItem,e.index)&&!t.treeView.isDisabled(e.dataItem,e.index)})).forEach((function(e){return i.push(e.item)}))}var o=!this.isItemChecked(n);i.forEach((function(e){o?t.addItem(e):t.removeItem(e)}))}},t.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}},t.prototype.isItemIndeterminate=function(e){var t=e.children;if(!Array.isArray(t)||0===t.length)return!1;for(var n=0,i=t[n];At(i);){if(this.isItemChecked(i.item)||this.isItemIndeterminate(i))return!0;i=t[n+=1]}return!1},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"checkable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"checkedItems",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"checkedItemsChange",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectTreeCheckable]"}),Object(i.__metadata)("design:paramtypes",[xe])],t)}(Wi),$i=function(e){function t(t,n,i,a){var r=e.call(this)||this;return r.element=t,r.zone=n,r.cdr=i,r.renderer=a,r.checkedItemsChange=new o.EventEmitter,r.checkedKeys=new Set,r}return Object(i.__extends)(t,e),t.prototype.handleChange=function(e){var t=this;this.currentCheckedState=e.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map((function(e,n){var i=String(n),o=t.treeview.itemLookup(i);t.checkNode(o)})),this.checkedItemsChange.emit(this.checkedItems.slice())},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){var e=this,t=this.treeview.nodes.some((function(t,n){var i=String(n),o=e.treeview.itemLookup(i);return e.someChecked(o)}));return!this.isChecked&&t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){var e=this;return this.treeview.nodes.every((function(t,n){var i=String(n),o=e.treeview.itemLookup(i);return e.allChecked(o)}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){At(e.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))},t.prototype.ngOnInit=function(){var e=this;this.focused&&this.nextTick((function(){return e.element.nativeElement.focus()}))},t.prototype.nextTick=function(e){this.zone.runOutsideAngular((function(){return setTimeout(e)}))},t.prototype.checkNode=function(e){var t=this;if(!this.treeview.isDisabled(e.item.dataItem,e.item.index)){var n=[];n.push(e.item),en(e,(function(e){return t.treeview.isVisible(e.dataItem,e.index)&&!t.treeview.isDisabled(e.dataItem,e.index)})).forEach((function(e){return n.push(e.item)})),n.forEach((function(e){t.currentIndeterminateState?"check"===t.lastAction?t.addItem(e):t.removeItem(e):t.currentCheckedState?t.addItem(e):t.removeItem(e)}))}},t.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)},t.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"lastAction",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",xe)],t.prototype,"treeview",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"checkedItems",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],t.prototype,"valueField",void 0),Object(i.__decorate)([Object(o.Input)("checkAll"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"focused",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"checkedItemsChange",void 0),Object(i.__decorate)([Object(o.HostListener)("change",["$event.target"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),t=Object(i.__decorate)([Object(o.Directive)({selector:"[checkAll]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Renderer2])],t)}(Wi),qi=[yn,vn,Ki,nn,Gi,Ri,Ui,$i],Zi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[qi],exports:[qi,b.CommonModule,r.FormsModule,p.b,a.ResizeSensorModule,Hi,a.EventsModule],imports:[b.CommonModule,r.FormsModule,p.b,a.ResizeSensorModule,Hi,a.EventsModule]})],e)}(),Yi=function(){function e(e){this.multiSelectTreeComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){At(e.showAfter)&&(this.createTagMapper(),this.multiSelectTreeComponent.handleTagMapperChange(this.showAfter))},e.prototype.createTagMapper=function(){var e=Xt(this.showAfter);this.multiSelectTreeComponent.tagMapper=function(t){return t.length>e?t.slice(0,e).concat([t.slice(e)]):t}},Object(i.__decorate)([Object(o.Input)("kendoMultiSelectTreeSummaryTag"),Object(i.__metadata)("design:type",Object)],e.prototype,"showAfter",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectTreeSummaryTag]"}),Object(i.__metadata)("design:paramtypes",[xi])],e)}(),Xi=[Oi,xi,Ei,Di,Ti,Fi,Pi,mi,Yi],Qi=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Xi],exports:[Xi,Hi],imports:[Zi,Vt]})],e)}(),Ji=function(){function e(e){this.multiSelectComponent=e,this.showAfter=0,this.createTagMapper()}return e.prototype.ngOnChanges=function(e){At(e.showAfter)&&(this.createTagMapper(),this.multiSelectComponent.onTagMapperChange())},e.prototype.createTagMapper=function(){var e=Xt(this.showAfter);this.multiSelectComponent.tagMapper=function(t){if(t.length>e){var n=void 0;return(n=t.slice(0,e)).push(t.slice(e,t.length)),n}return t}},Object(i.__decorate)([Object(o.Input)("kendoMultiSelectSummaryTag"),Object(i.__metadata)("design:type",Object)],e.prototype,"showAfter",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoMultiSelectSummaryTag]"}),Object(i.__metadata)("design:paramtypes",[ci])],e)}(),eo=[Cn],to=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[eo],exports:[eo,Hi],imports:[Zi]})],e)}(),no=[Jn,bi,pi,li,di],io=c.touchEnabled,oo=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[no],exports:[no,Hi],imports:[Zi],providers:[{provide:jn,useValue:io}]})],e)}(),ao=[ni],ro=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ao],exports:[ao,Hi],imports:[Zi]})],e)}(),so=[ci,Ji,ii],co=c.touchEnabled,lo=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[so],exports:[so,Hi],imports:[Zi],providers:[{provide:jn,useValue:co}]})],e)}(),po=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[to,oo,ro,lo,Qi]})],e)}()}])}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("rxjs"),require("@angular/forms"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common"),require("@progress/kendo-angular-treelist"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-angular-grid"),require("@progress/kendo-angular-dropdowns")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-date-math","@progress/kendo-angular-common","rxjs","@angular/forms","rxjs/operators","@progress/kendo-angular-intl","@angular/common","@progress/kendo-licensing","@progress/kendo-angular-popup","@progress/kendo-common","@progress/kendo-angular-treelist","@progress/kendo-data-query","@progress/kendo-angular-layout","@progress/kendo-angular-buttons","@progress/kendo-angular-dialog","@progress/kendo-angular-grid","@progress/kendo-angular-dropdowns"],t):"object"==typeof exports?exports.KendoAngularGantt=t(require("tslib"),require("@angular/core"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("rxjs"),require("@angular/forms"),require("rxjs/operators"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common"),require("@progress/kendo-angular-treelist"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-layout"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-angular-grid"),require("@progress/kendo-angular-dropdowns")):e.KendoAngularGantt=t(e.tslib,e["@angular/core"],e["@progress/kendo-date-math"],e["@progress/kendo-angular-common"],e.rxjs,e["@angular/forms"],e["rxjs/operators"],e["@progress/kendo-angular-intl"],e["@angular/common"],e["@progress/kendo-licensing"],e["@progress/kendo-angular-popup"],e["@progress/kendo-common"],e["@progress/kendo-angular-treelist"],e["@progress/kendo-data-query"],e["@progress/kendo-angular-layout"],e["@progress/kendo-angular-buttons"],e["@progress/kendo-angular-dialog"],e["@progress/kendo-angular-grid"],e["@progress/kendo-angular-dropdowns"])}(window,(function(e,t,n,i,a,o,r,s,c,l,d,p,u,h,b,m,f,g,v){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=58)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"MessageService",(function(){return s})),n.d(t,"ComponentMessages",(function(){return c})),n.d(t,"L10N_PREFIX",(function(){return d})),n.d(t,"LocalizationService",(function(){return p})),n.d(t,"RTL",(function(){return l}));var i=n(0),a=n(1),o=n(5),r=n(7),s=function(){function e(){this.changes=new o.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),c=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(Object(r.skip)(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}(),l=new a.InjectionToken("Kendo UI Right-to-Left token"),d=new a.InjectionToken("Localization key prefix"),p=function(){function e(e,t,n){var i=this;this.prefix=e,this.messageService=t,this._rtl=n,this.changes=new o.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(Object(r.map)((function(e){var t=e.rtl;return void 0!==t?t:i._rtl})),Object(r.tap)((function(e){return i._rtl=e}))).subscribe((function(e){i.dictionary={},i.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,n){void 0===n&&(n=!1);var i=this.key(e),a=t;if(!n){if(this.dictionary.hasOwnProperty(i))return;a=this.defaultValue(i,t)}this.dictionary[i]=a},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var n=this.messageService.get(e);return void 0===n?t:n},e=Object(i.__decorate)([Object(a.Injectable)(),Object(i.__param)(0,Object(a.Inject)(d)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(l)),Object(i.__metadata)("design:paramtypes",[String,s,Boolean])],e)}()},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(3),o=n(2),r=n(20);t.isWorkDay=function(e,t,n){return e.getDay()>=t&&e.getDay()<=n},t.isWorkHour=function(e,t,n){return e.getHours()>=t&&e.getHours()<=n},t.isPresent=function(e){return null!=e},t.normalizeGanttData=function(e){return t.isPresent(e)?Array.isArray(e.data)?e.data:e:[]},t.isArray=function(e){return Array.isArray(e)},t.setTime=function(e,n,i,a,r){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===r&&(r=0),!t.isPresent(e))return null;var s=o.cloneDate(e);return s.setHours(n),s.setMinutes(i),s.setSeconds(a),s.setMilliseconds(r),s},t.lastDayOfWeek=function(e,t){var n=o.addWeeks(e,1),i=o.firstDayInWeek(n,t);return o.addDays(i,-1)},t.scrollbarWidth=function(){if(a.isDocumentAvailable()){if(isNaN(i)){var e=document.createElement("div");e.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",e.innerHTML=" ",document.body.appendChild(e),i=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return i}},t.isColumnGroup=function(e){return e.isColumnGroup},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isString=function(e){return"string"==typeof e},t.getClosestTaskWrapper=function(e,t){return a.closestInScope(e,a.matchesClasses("k-task-wrap"),t)},t.isTaskWrapper=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task-wrap"),n);return t.isPresent(i)},t.getClosestTask=function(e,t){return a.closestInScope(e,a.matchesClasses("k-task"),t)},t.getClosestTaskIndex=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task-wrap"),n);return t.isPresent(i)?Number(i.getAttribute("data-task-index")):null},t.isTask=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task"),n);return t.isPresent(i)},t.isToolbar=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-gantt-toolbar"),n);return t.isPresent(i)},t.isClearButton=function(e,n){var i=a.closestInScope(e,a.matchesClasses("k-task-actions"),n);return t.isPresent(i)},t.isDependencyDragClue=function(e){return!!t.isPresent(e)&&e.classList.contains("k-task-dot")},t.isDependencyDragStartClue=function(e){return!!t.isPresent(e)&&(e.classList.contains("k-task-dot")&&e.classList.contains("k-task-start"))},t.getDependencyTypeFromTargetTasks=function(e,n){if(!t.isDependencyDragClue(e)||!t.isDependencyDragClue(n))return null;switch(""+(t.isDependencyDragStartClue(e)?"S":"F")+(t.isDependencyDragStartClue(n)?"S":"F")){case"FF":return r.DependencyType.FF;case"FS":return r.DependencyType.FS;case"SF":return r.DependencyType.SF;case"SS":return r.DependencyType.SS;default:return null}},t.sameTaskClues=function(e,n,i){return!(!t.isPresent(e)||!t.isPresent(n))&&t.getClosestTaskWrapper(e,i)===t.getClosestTaskWrapper(n,i)},t.fitToRange=function(e,n,i){return!t.isPresent(e)||e<n?n:e>i?i:e},t.areParentChild=function(e,n){for(var i=!1,a=e;t.isPresent(a)&&t.isPresent(a.data);){if(a.data===n.data){i=!0;break}a=a.parent}for(var o=n;!i&&t.isPresent(o)&&t.isPresent(o.data);){if(o.data===e.data){i=!0;break}o=o.parent}return i},t.elementFromPoint=function(e,t){return a.isDocumentAvailable()?document.elementFromPoint(e,t):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(14),r=n(60),s=n(61),c=n(11),l=function(){function e(){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS),this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS)}return Object.defineProperty(e.prototype,"taskFields",{get:function(){return this._taskFields},set:function(e){this._taskFields=i.__assign({},s.DEFAULT_TASK_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyFields",{get:function(){return this._dependencyFields},set:function(e){this._dependencyFields=i.__assign({},r.DEFAULT_DEPENDENCY_MODEL_FIELDS,e)},enumerable:!0,configurable:!0}),e.prototype.extractFromTask=function(e,t){return c.isPresent(this.taskFields)?o.getter(this.taskFields[t])(e):null},e.prototype.extractFromDependency=function(e,t){return c.isPresent(this.dependencyFields)?o.getter(this.dependencyFields[t])(e):null},e=i.__decorate([a.Injectable()],e)}();t.MappingService=l},function(e,t){e.exports=d},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(12),s=function(){function e(e){this.mapper=e,this.notifier=new o.Subject,this.tasks=new Map}return Object.defineProperty(e.prototype,"taskChanges",{get:function(){return this.notifier.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyDomArgs",{get:function(){return{tasks:this.tasks,contentContainer:this.contentContainer,timelineRow:this.timelineRow}},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.tasks.clear(),this.tasks=null,this.contentContainer=null},e.prototype.registerTimelineRow=function(e){this.timelineRow=e,this.notifyChanges()},e.prototype.registerContentContainer=function(e){this.contentContainer=e,this.notifyChanges()},e.prototype.registerTask=function(e,t){var n=this.mapper.extractFromTask(e,"id");this.tasks.set(n,t),this.notifyChanges()},e.prototype.unregisterTask=function(e){var t=this.mapper.extractFromTask(e,"id");this.tasks.delete(t),this.notifyChanges()},e.prototype.notifyChanges=function(){this.notifier.next(this.dependencyDomArgs)},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[r.MappingService])],e)}();t.DependencyDomService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(){this.viewChanges=new a.EventEmitter,this.columnChanges=new a.EventEmitter}return e.prototype.notifyColumnChanges=function(){this.columnChanges.emit()},e.prototype.notifyViewChanges=function(){this.viewChanges.emit()},e=i.__decorate([a.Injectable()],e)}();t.OptionChangesService=o},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(12),c=n(11),l=function(){function e(e){var t=this;this.mapper=e,this.showEditingDialog=new o.Subject,this.taskDelete=new o.Subject,this.editEvent=new o.Subject,this.addEvent=new o.Subject,this.predecessors=[],this.successors=[],this.updatedItems=[],this.deletedItems=[],this.itemIndex=function(e,n){return n.findIndex((function(n){return t.mapper.extractFromTask(n,"id")===t.mapper.extractFromTask(e,"id")}))}}return Object.defineProperty(e.prototype,"dependencies",{get:function(){return this.predecessors.concat(this.successors)},set:function(e){var t=this,n=this.mapper.extractFromTask(this.dataItem,"id");this.predecessors=e.filter((function(e){return t.mapper.extractFromDependency(e,"toId")===n})),this.successors=e.filter((function(e){return t.mapper.extractFromDependency(e,"fromId")===n}))},enumerable:!0,configurable:!0}),e.prototype.createEditDialog=function(e,t,n){this.dataItem=e,this.taskFormGroup=t,this.dependencies=n,this.showEditingDialog.next(!0)},e.prototype.closeEditDialog=function(){this.showEditingDialog.next(!1),this.dataItem=void 0,this.taskFormGroup=void 0,this.dependencies=[],this.updatedItems=[],this.deletedItems=[]},e.prototype.triggerEditEvent=function(e){this.editEvent.next({taskFormGroup:this.taskFormGroup,dataItem:this.dataItem,dependencies:{createdItems:this.getCreatedDependencies(),updatedItems:this.updatedItems,deletedItems:this.deletedItems},editResultType:e})},e.prototype.updateDependencies=function(e){if(!this.isNew(e)){var t=this.itemIndex(e,this.updatedItems);-1!==t?this.updatedItems.splice(t,1,e):this.updatedItems.push(e)}},e.prototype.getCreatedDependencies=function(){var e=this;return this.dependencies.filter((function(t){return null===e.mapper.extractFromDependency(t,"id")}))},e.prototype.deleteDependency=function(e){var t=this.itemIndex(e,this.updatedItems);-1!==t&&this.updatedItems.splice(t,1),this.isNew(e)||this.deletedItems.push(e)},e.prototype.loadTasks=function(e,t){var n=this;return void 0===t&&(t=!0),o.forkJoin(e.map((function(e){return n.getElementById(e)}))).pipe(r.map((function(e){return e.reduce((function(e,t){return e.concat(c.normalizeGanttData(t))}),[])})),r.expand((function(e){return e.some((function(e){return n.hasChildren(e)}))?n.loadTasks(e,!1):o.EMPTY})),r.reduce((function(e,t){return e.concat(t)}),t?e.slice():[]))},e.prototype.getElementById=function(e){var t=this.fetchChildren(e);return o.isObservable(t)?t:o.of(t)},e.prototype.isNew=function(e){return!c.isPresent(this.mapper.extractFromDependency(e,"id"))},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[s.MappingService])],e)}();t.EditService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=(n(2),n(5)),s=n(10),c=n(59),l=n(3),d=n(39),p=n(27),u=n(64),h=n(45),b=n(4),m=n(22),f=n(46),g=n(48),v=n(47),y=n(26),_=n(15),O=n(12),j=n(16),k=n(18),C=n(32),w=n(33),S=n(23),T=n(11),E=n(69),D=n(34),I=n(35),x=n(36),P=n(37),V=n(24),R=n(70),B={enabled:!0,step:3,interval:1,threshold:10},F=function(){function e(e,t,n,o,d,p,h,b,m,f,g){var v=this;this.timelineViewService=e,this.scrollSyncService=t,this.renderer=n,this.mapper=o,this.optionChangesService=d,this.dependencyDomService=p,this.editService=h,this.localizationService=b,this.hostElement=m,this.zone=f,this.navigationService=g,this.roleDescription="Gantt Chart",this.role="application",this.hostClasses=!0,this.isSelected=u.isSelected,this.validateNewDependency=this.defaultValidateNewDependencyCallback.bind(this),this.selectionChange=new a.EventEmitter,this.selectable=!1,this.dependencies=[],this.sortable=!1,this.sort=[],this.filterable=!1,this.workDayStart="08:00",this.workDayEnd="17:00",this.workWeekStart=1,this.workWeekEnd=5,this.navigable=!1,this.columnsAutoSize=!1,this.columnMenu=!1,this.columnsReorderable=!1,this.columnsResizable=!1,this.rowExpand=new a.EventEmitter,this.taskDblClick=new a.EventEmitter,this.cellDblClick=new a.EventEmitter,this.cellClose=new a.EventEmitter,this.taskDelete=new a.EventEmitter,this.rowCollapse=new a.EventEmitter,this.remove=new a.EventEmitter,this.cancel=new a.EventEmitter,this.save=new a.EventEmitter,this.taskAdd=new a.EventEmitter,this.dependencyAdd=new a.EventEmitter,this.sortChange=new a.EventEmitter,this.filterChange=new a.EventEmitter,this.dataStateChange=new a.EventEmitter,this.treeListPaneCollapsedChange=new a.EventEmitter,this.timelinePaneCollapsedChange=new a.EventEmitter,this.timelinePaneSizeChange=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this.columnResize=new a.EventEmitter,this.columnReorder=new a.EventEmitter,this.columnVisibilityChange=new a.EventEmitter,this.columnLockedChange=new a.EventEmitter,this.cellClick=new a.EventEmitter,this.taskClick=new a.EventEmitter,this.renderDependencyDragClues=!1,this.expandStateChange=new a.EventEmitter,this.showEditingDialog=!1,this.showConfirmationDialog=!1,this._columns=new a.QueryList,this._data=[],this._dragScrollSettings=i.__assign({},B),this._timelinePaneOptions=i.__assign({},E.DEFAULT_TIMELINE_PANE_SETTINGS),this._treeListPaneOptions=i.__assign({},E.DEFAULT_TREELIST_PANE_SETTINGS),this._rowClass=u.rowClassCallback,this._taskClass=u.taskClassCallback,this._activeView="week",this._toolbarSettings={position:"top",addTaskTool:"none",viewSelectorTool:"top"},this._fetchChildren=u.fetchChildren,this._hasChildren=u.hasChildren,this.rtl=!1,this.optionChangesSubscriptions=new r.Subscription,this.editServiceSubscription=new r.Subscription,s.validatePackage(c.packageMetadata),this.optionChangesSubscriptions.add(this.optionChangesService.viewChanges.subscribe((function(){v.loadTimelineData()}))),this.optionChangesSubscriptions.add(this.optionChangesService.columnChanges.subscribe((function(){v.treeList.columns.notifyOnChanges()}))),this.editService.getSelectedItem=this.getFirstSelectedItem.bind(this),this.editServiceSubscription.add(this.editService.showEditingDialog.subscribe((function(e){return v.showEditingDialog=e}))),this.editServiceSubscription.add(this.editService.taskDelete.subscribe((function(e){l.hasObservers(v.taskDelete)&&v.zone.run((function(){return v.notifyTaskDelete(e)}))}))),this.editServiceSubscription.add(this.editService.editEvent.subscribe((function(e){v[e.editResultType].emit({taskFormGroup:e.taskFormGroup,item:R.getEditItem(e.dataItem,v.treeList.view.data,v.mapper),dependencies:e.dependencies,sender:v}),v.showConfirmationDialog=v.showEditingDialog=!1,v.editService.dataItem=v.editService.taskFormGroup=null,v.updateView(),v.navigable&&v.focus()}))),this.editServiceSubscription.add(this.editService.addEvent.subscribe((function(e){var t=v.getFirstSelectedItem();v.taskAdd.emit({actionType:e.actionType,selectedItem:t?R.getEditItem(t,v.treeList.view.data,v.mapper):null}),v.updateView()}))),this.localizationSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;v.rtl=t,v.direction=v.rtl?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"toolbarTemplate",{get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostRoleDescriptionAttr",{get:function(){return this.roleDescription},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostRoleAttr",{get:function(){return this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.updateTreeListGroupClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskModelFields",{set:function(e){this.mapper.taskFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyModelFields",{set:function(e){this.mapper.dependencyFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeView",{get:function(){var e=this;return this.views.find((function(t){return t.type===e._activeView}))?this._activeView:this.views.first.type},set:function(e){this._activeView=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=T.normalizeGanttData(e),this.loadTimelineData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbarSettings",{get:function(){return this._toolbarSettings},set:function(e){this._toolbarSettings={position:e.position||"top",addTaskTool:e.addTaskTool||"none",viewSelectorTool:e.viewSelectorTool||"top"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fetchChildren",{get:function(){return this._fetchChildren},set:function(e){this._fetchChildren=e,this.editService.fetchChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren},set:function(e){this._hasChildren=e,this.editService.hasChildren=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timelinePaneOptions",{get:function(){return i.__assign({},this._timelinePaneOptions,{size:this.treeListPaneOptions.collapsed?"100%":this._timelinePaneOptions.size})},set:function(e){this._timelinePaneOptions.collapsed&&!e.collapsed&&this.dependencyDomService.notifyChanges(),this._timelinePaneOptions=i.__assign({},E.DEFAULT_TIMELINE_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeListPaneOptions",{get:function(){return this._treeListPaneOptions},set:function(e){this._treeListPaneOptions=i.__assign({},E.DEFAULT_TREELIST_PANE_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskClass",{get:function(){return this._taskClass},set:function(e){if(a.isDevMode()&&"function"!=typeof e)throw new Error("taskClass must be a function, but received "+JSON.stringify(e)+".");this._taskClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowClass",{get:function(){return this._rowClass},set:function(e){if(a.isDevMode()&&"function"!=typeof e)throw new Error("rowClass must be a function, but received "+JSON.stringify(e)+".");this._rowClass=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskIdField",{get:function(){return this.mapper.taskFields.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragScrollSettings",{get:function(){return this._dragScrollSettings},set:function(e){this._dragScrollSettings=i.__assign({},B,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedTreeListItems",{get:function(){return T.isPresent(this.treeList)?this.treeList.view.data.map((function(e){return e.data})):[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewItems",{get:function(){return T.isPresent(this.treeList)?this.treeList.view.data:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterMenu",{get:function(){return!!this.filterable&&"menu"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewService",{get:function(){return this.views&&this.views.length?this.timelineViewService.service(this.activeView):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTaskSelected",{get:function(){return this.selectable?this.isSelected:u.isSelected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idGetter",{get:function(){if(T.isPresent(this.treeList))return this.treeList.idGetter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewTypes",{get:function(){return this.views.map((function(e){return e.type}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInEditMode",{get:function(){return this.showEditingDialog||this.showConfirmationDialog||this.treeList.isEditing()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){l.anyChanged(["data","activeView","workWeekStart","workWeekEnd","workDayStart","workDayEnd"],e)&&this.loadTimelineData()},e.prototype.ngAfterViewInit=function(){this.updateTreeListMargin(),this.navigable&&this.navigationService.initialize({gantt:this,host:this.hostElement.nativeElement,treeListElement:this.treeList.wrapper.nativeElement,timelineElement:this.timeline.timelineContent.nativeElement});var e=this.treeList.wrapper.nativeElement.querySelector("kendo-treelist-list > div");this.scrollSyncService.registerElement(e,"treelist")},e.prototype.ngAfterContentInit=function(){if(a.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-gantt>. Please, declare at least one view.");this.loadTimelineData(),this.updateTreeListGroupClass()},e.prototype.ngOnDestroy=function(){this.optionChangesSubscriptions.unsubscribe(),this.editServiceSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe()},e.prototype.focus=function(){this.navigable&&this.navigationService.focusLastActiveItem()},e.prototype.focusCell=function(e,t){this.navigable&&this.navigationService.focusCell(e,t)},e.prototype.focusTask=function(e){this.navigable&&this.navigationService.focusTask(e)},e.prototype.autoFitColumn=function(e){T.isPresent(this.treeList)&&this.treeList.autoFitColumn(e)},e.prototype.autoFitColumns=function(e){void 0===e&&(e=this.columns),T.isPresent(this.treeList)&&this.treeList.autoFitColumns(e)},e.prototype.reload=function(e,t){T.isPresent(this.treeList)&&this.treeList.reload(e,t)},e.prototype.reorderColumn=function(e,t,n){void 0===n&&(n={before:!1}),T.isPresent(this.treeList)&&this.treeList.reorderColumn(e,t,n)},e.prototype.updateView=function(){T.isPresent(this.treeList)&&this.treeList.updateView(),this.loadTimelineData(),this.dependencyDomService.notifyChanges()},e.prototype.editTask=function(e,t){var n=this;if(!this.showEditingDialog){var i=this.mapper.extractFromTask(e,"id"),a=this.dependencies.filter((function(e){return n.mapper.extractFromDependency(e,"toId")===i||n.mapper.extractFromDependency(e,"fromId")===i}));this.editService.createEditDialog(e,t,a)}},e.prototype.closeTaskDialog=function(){this.showEditingDialog&&this.editService.closeEditDialog()},e.prototype.openConfirmationDialog=function(){this.showConfirmationDialog=!0},e.prototype.handleConfirmationDialogClose=function(){this.showConfirmationDialog=!1,this.navigable&&this.focus()},e.prototype.editCell=function(e,t,n){this.treeList.editCell(e,t,n)},e.prototype.closeCell=function(){this.treeList.closeCell()},e.prototype.handleCellClose=function(e){this.cellClose.emit(Object.assign(e,{item:this.editItem,sender:this})),this.dependencyDomService.notifyChanges()},e.prototype.onTreeListCollapsedChange=function(e){this.treeListPaneCollapsedChange.emit(e),e||this.scrollSyncService.syncScrollTop("timeline","treelist")},e.prototype.onTimelineCollapsedChange=function(e){this.timelinePaneCollapsedChange.emit(e),e||(this.scrollSyncService.syncScrollTop("treelist","timeline"),this.dependencyDomService.notifyChanges())},e.prototype.loadTimelineData=function(){if(T.isPresent(this.viewService)){var e=this.getActiveViewOptions();this.viewService.options=i.__assign({workWeekStart:this.workWeekStart,workWeekEnd:this.workWeekEnd,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd},e),this.tableWidth=this.viewService.getTableWidth(this.data);var t=this.viewService.getSlots(this.data),n=t[0],a=t[1];this.timelineSlots=a,this.timelineGroupSlots=n}},e.prototype.showToolbar=function(e){return"none"!==this.toolbarSettings.position&&[e,"both"].indexOf(this.toolbarSettings.position)>-1},e.prototype.handleColumnVisibilityChange=function(e){this.columnVisibilityChange.emit(e),this.updateTreeListGroupClass()},e.prototype.onTimelinePaneSizeChange=function(e){this._timelinePaneOptions.size=e,this.timelinePaneSizeChange.emit(e)},e.prototype.handleTimelineRightClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(T.isTask(n,i)&&!T.isClearButton(n,i)&&l.hasObservers(this.taskClick)){var a=T.getClosestTaskIndex(n,i),o=this.renderedTreeListItems[a];this.zone.run((function(){return t.notifyTaskClick(e,o,a)}))}},e.prototype.handleTimelineClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(T.isTask(n,i)&&!T.isClearButton(n,i)){var a=T.getClosestTaskIndex(n,i),o=this.renderedTreeListItems[a],r=this.getSelectionAction(e,o);(l.hasObservers(this.selectionChange)&&!this.isSameSelection(r,o)||l.hasObservers(this.taskClick))&&this.zone.run((function(){t.notifySelectionChange(o,r),t.notifyTaskClick(e,o,a)}))}},e.prototype.handleTreeListDoubleClick=function(e){var t=this;T.isPresent(this.lastTreeListCellClick)&&e.target===this.lastTreeListCellClick.originalEvent.target&&(this.editItem=R.getEditItem(this.lastTreeListCellClick.dataItem,this.treeList.view.data,this.mapper),l.hasObservers(this.cellDblClick)&&this.zone.run((function(){t.cellDblClick.emit({column:t.lastTreeListCellClick.column,columnIndex:t.lastTreeListCellClick.columnIndex,dataItem:t.lastTreeListCellClick.dataItem,isEdited:t.lastTreeListCellClick.isEdited,originalEvent:t.lastTreeListCellClick.originalEvent,rowIndex:t.lastTreeListCellClick.rowIndex,type:"dblclick",sender:t})})))},e.prototype.handleTreeListSelectionChange=function(e){if(!T.isPresent(this.lastTreeListCellClick)||"contextmenu"!==this.lastTreeListCellClick.type){var t=e.items.map((function(e){return e.dataItem}))[0],n=e.action;this.notifySelectionChange(t,n)}},e.prototype.handleTreeListCellClick=function(e){this.lastTreeListCellClick=e,this.cellClick.emit({column:e.column,columnIndex:e.columnIndex,dataItem:e.dataItem,isEdited:e.isEdited,originalEvent:e.originalEvent,rowIndex:e.rowIndex,type:e.type,sender:this})},e.prototype.handleDeleteConfirmation=function(){this.editService.triggerEditEvent("remove")},e.prototype.handleTimelineMouseDown=function(e){var t=e.target,n=this.hostElement.nativeElement;T.isTask(t,n)&&!T.isClearButton(t,n)&&e.preventDefault()},e.prototype.handleTimelineDblClick=function(e){var t=this,n=e.target,i=this.hostElement.nativeElement;if(T.isTask(n,i)&&!T.isClearButton(n,i)&&l.hasObservers(this.taskDblClick)){var a=T.getClosestTaskIndex(n,i),o=this.renderedTreeListItems[a];this.zone.run((function(){return t.taskDblClick.emit({dataItem:o,originalEvent:e,sender:t,index:a,type:"dblclick"})}))}},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.changeActiveView=function(e){e!==this.activeView&&(this.activeView=e,this.loadTimelineData(),this.scrollSyncService.resetTimelineScrollLeft(),this.activeViewChange.emit(e))},e.prototype.notifyTaskClick=function(e,t,n){var i=e instanceof KeyboardEvent?"click":e.type;this.taskClick.emit({originalEvent:e,dataItem:t,index:n,type:i,sender:this})},e.prototype.notifySelectionChange=function(e,t){this.isSameSelection(t,e)||(this.selectionChange.emit({action:t,items:[e],sender:this}),this.treeList.updateView())},e.prototype.notifyTaskDelete=function(e){this.editService.dataItem=e,this.taskDelete.emit({item:R.getEditItem(e,this.treeList.view.data,this.mapper),sender:this})},e.prototype.isSameSelection=function(e,t){return"select"===e&&this.isSelected(t)},e.prototype.getSelectionAction=function(e,t){var n=e.ctrlKey,i=e.metaKey;return(n||i)&&this.isSelected(t)?"remove":"select"},e.prototype.updateTreeListGroupClass=function(e){(void 0===e&&(e=this.columns),T.isPresent(this.treeList))&&(T.isPresent(e)&&e.length>0&&e.some((function(e){return T.isColumnGroup(e)&&e.childrenArray.some((function(e){return e.isVisible}))}))?this.renderer.addClass(this.treeList.wrapper.nativeElement,"k-gantt-treelist-nested-columns"):this.renderer.removeClass(this.treeList.wrapper.nativeElement,"k-gantt-treelist-nested-columns"))},e.prototype.updateTreeListMargin=function(){var e=this.treeList.wrapper.nativeElement.querySelector(".k-treelist .k-grid-content");this.renderer.setStyle(e,"margin-right",-Math.abs(T.scrollbarWidth()-1)+"px")},e.prototype.getActiveViewOptions=function(){var e=this;if(this.views)return this.views.find((function(t){return t.type===e.activeView}))},e.prototype.getFirstSelectedItem=function(){var e=this.isSelected||u.isSelected;return(this.renderedTreeListItems||[]).find(e)},e.prototype.defaultValidateNewDependencyCallback=function(e){var t=this,n=this.mapper.extractFromDependency(e,"fromId"),i=this.mapper.extractFromDependency(e,"toId"),a=this.treeList.view.data.find((function(e){return t.mapper.extractFromTask(e.data,"id")===n})),o=this.treeList.view.data.find((function(e){return t.mapper.extractFromTask(e.data,"id")===i}));if(!(T.isPresent(a)&&T.isPresent(a.data)&&T.isPresent(o)&&T.isPresent(o.data)&&a.data!==o.data))return!1;if(this.dependencies.some((function(e){var a=t.mapper.extractFromDependency(e,"fromId"),o=t.mapper.extractFromDependency(e,"toId");return n===a&&i===o||i===a&&n===o}))||T.areParentChild(a,o))return!1;var r=this.mapper.extractFromTask(a.data,"start"),s=this.mapper.extractFromTask(a.data,"end"),c=this.mapper.extractFromTask(o.data,"start"),l=this.mapper.extractFromTask(o.data,"end");switch(this.mapper.extractFromDependency(e,"type")){case h.DependencyType.FF:return s<=l;case h.DependencyType.FS:return s<=c;case h.DependencyType.SF:return r<=l;case h.DependencyType.SS:return r<=c;default:return!1}},i.__decorate([a.ViewChild(o.TreeListComponent,{static:!0}),i.__metadata("design:type",o.TreeListComponent)],e.prototype,"treeList",void 0),i.__decorate([a.ViewChild(d.GanttTimelineComponent,{static:!1}),i.__metadata("design:type",d.GanttTimelineComponent)],e.prototype,"timeline",void 0),i.__decorate([a.ContentChild(x.GanttTaskContentTemplateDirective,{static:!0}),i.__metadata("design:type",x.GanttTaskContentTemplateDirective)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.ContentChild(D.GanttTaskTemplateDirective,{static:!0}),i.__metadata("design:type",D.GanttTaskTemplateDirective)],e.prototype,"taskTemplate",void 0),i.__decorate([a.ContentChild(I.GanttSummaryTaskTemplateDirective,{static:!0}),i.__metadata("design:type",I.GanttSummaryTaskTemplateDirective)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.ContentChildren(P.ToolbarTemplateDirective),i.__metadata("design:type",a.QueryList)],e.prototype,"toolbarTemplateChildren",void 0),i.__decorate([a.Input("aria-roledescription"),i.__metadata("design:type",String)],e.prototype,"roleDescription",void 0),i.__decorate([a.HostBinding("attr.aria-roledescription"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostRoleDescriptionAttr",null),i.__decorate([a.Input("role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([a.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"hostRoleAttr",null),i.__decorate([a.HostBinding("class.k-gantt"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([a.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"dir",null),i.__decorate([a.ContentChildren(p.GanttColumnBase),i.__metadata("design:type",a.QueryList),i.__metadata("design:paramtypes",[a.QueryList])],e.prototype,"columns",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"taskModelFields",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dependencyModelFields",null),i.__decorate([a.ContentChildren(V.ViewBase),i.__metadata("design:type",a.QueryList)],e.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeView",null),i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"validateNewDependency",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"toolbarSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"fetchChildren",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"sortable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"sort",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"workDayStart",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"workDayEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekStart",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"workWeekEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"timelinePaneOptions",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"treeListPaneOptions",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"taskClass",null),i.__decorate([a.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"rowClass",null),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsAutoSize",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"columnMenu",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsReorderable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"columnsResizable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"dragScrollSettings",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"rowExpand",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskDblClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellDblClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClose",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskDelete",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"rowCollapse",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"remove",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"save",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskAdd",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dependencyAdd",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"sortChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dataStateChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"treeListPaneCollapsedChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelinePaneCollapsedChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelinePaneSizeChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnResize",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnReorder",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnVisibilityChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"columnLockedChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"taskClick",void 0),e=t=i.__decorate([a.Component({selector:"kendo-gantt",exportAs:"kendoGantt",providers:[w.GanttLocalizationService,b.LocalizationService,{provide:o.DataBoundTreeComponent,useExisting:a.forwardRef((function(){return t}))},{provide:o.ExpandableTreeComponent,useExisting:a.forwardRef((function(){return t}))},m.TimelineViewService,f.TimelineDayViewService,g.TimelineWeekViewService,v.TimelineMonthViewService,y.ScrollSyncService,_.DependencyDomService,O.MappingService,j.OptionChangesService,k.EditService,C.TimelineScrollService,S.NavigationService],template:'\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle="kendo.gantt.taskEditingGeneralTabTitle|The title of the \'General\' tab of the editing dialog TabStrip"\n taskEditingGeneralTabTitle="General"\n\n i18n-taskEditingPredecessorsTabTitle="kendo.gantt.taskEditingPredecessorsTabTitle|The title of the \'Predecessors\' dependencies tab of the editing dialog TabStrip"\n taskEditingPredecessorsTabTitle="Predecessors"\n\n i18n-taskEditingSuccessorsTabTitle="kendo.gantt.taskEditingSuccessorsTabTitle|The title of the \'Successors\' dependencies tab of the editing dialog TabStrip"\n taskEditingSuccessorsTabTitle="Successors"\n\n i18n-taskEditingDependenciesAddButtonText="kendo.gantt.taskEditingDependenciesAddButtonText|The text of the \'Add\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesAddButtonText="Add"\n\n i18n-taskEditingDependenciesRemoveButtonText="kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the \'Remove\' button in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesRemoveButtonText="Remove"\n\n i18n-taskEditingDependenciesGridNameColumnTitle="kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the \'Task Title\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridNameColumnTitle="Task Title"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle="kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the \'Type\' Grid column in the dependencies tabs of the editing dialog TabStrip"\n taskEditingDependenciesGridTypeColumnTitle="Type"\n\n i18n-taskDeleteLabel="kendo.gantt.taskDeleteLabel|The label of the task delete icon"\n taskDeleteLabel="Delete"\n\n i18n-taskEditingDialogTitle="kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog"\n taskEditingDialogTitle="Editing Task"\n\n i18n-taskEditingDialogCloseTitle="kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button"\n taskEditingDialogCloseTitle="Close"\n\n i18n-confirmationDialogCloseTitle="kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button"\n confirmationDialogCloseTitle="Close"\n\n i18n-confirmationDialogTitle="kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog"\n confirmationDialogTitle="Delete Task"\n\n i18n-confirmationDialogContent="kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog"\n confirmationDialogContent="Are you sure you want to delete this task?"\n\n i18n-deleteButtonText="kendo.gantt.deleteButtonText|The text of the task editing dialog \'Delete\' button"\n deleteButtonText="Delete"\n\n i18n-cancelButtonText="kendo.gantt.cancelButtonText|The text of the task editing dialog \'Cancel\' button"\n cancelButtonText="Cancel"\n\n i18n-saveButtonText="kendo.gantt.saveButtonText|The text of the task editing dialog \'Save\' button"\n saveButtonText="Save"\n\n i18n-titleFieldInputLabel="kendo.gantt.titleFieldInputLabel|The label of the \'title\' field input in editing mode"\n titleFieldInputLabel="Title"\n\n i18n-startFieldInputLabel="kendo.gantt.startFieldInputLabel|The label of the \'start\' field input in editing mode"\n startFieldInputLabel="Start"\n\n i18n-endFieldInputLabel="kendo.gantt.endFieldInputLabel|The label of the \'end\' field input in editing mode"\n endFieldInputLabel="End"\n\n i18n-completionRatioFieldInputLabel="kendo.gantt.completionRatioFieldInputLabel|The label of the \'completionRatio\' field input in editing mode"\n completionRatioFieldInputLabel="Progress"\n\n i18n-dayViewText="kendo.gantt.dayViewText|The text of the day view in the ViewSelector component"\n dayViewText="Day"\n\n i18n-weekViewText="kendo.gantt.weekViewText|The text of the week view in the ViewSelector component"\n weekViewText="Week"\n\n i18n-monthViewText="kendo.gantt.monthViewText|The text of the month view in the ViewSelector component"\n monthViewText="Month"\n\n i18n-yearViewText-disabled="kendo.gantt.yearViewText|The text of the year view in the ViewSelector component"\n yearViewText="Year"\n\n i18n-addTaskText="kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component"\n addTaskText="Add Task"\n\n i18n-addChildText="kendo.gantt.addChildText|The text of the \'Add Child\' option in the AddTask component"\n addChildText="Add Child"\n\n i18n-addAboveText="kendo.gantt.addAboveText|The text of the \'Add Above\' option in the AddTask component"\n addAboveText="Add Above"\n\n i18n-addBelowText="kendo.gantt.addBelowText|The text of the \'Add Below\' option in the AddTask component"\n addBelowText="Add Below"\n\n i18n-noRecords="kendo.gantt.noRecords|The label visible in the TreeList when there are no records"\n noRecords="No records available."\n\n i18n-filter="kendo.gantt.filter|The label of the filter cell or icon"\n filter="Filter"\n\n i18n-filterEqOperator="kendo.gantt.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.gantt.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.gantt.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.gantt.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterGteOperator="kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator"\n filterGteOperator="Is greater than or equal to"\n\n i18n-filterGtOperator="kendo.gantt.filterGtOperator|The text of the greater than filter operator"\n filterGtOperator="Is greater than"\n\n i18n-filterLteOperator="kendo.gantt.filterLteOperator|The text of the less than or equal filter operator"\n filterLteOperator="Is less than or equal to"\n\n i18n-filterLtOperator="kendo.gantt.filterLtOperator|The text of the less than filter operator"\n filterLtOperator="Is less than"\n\n i18n-filterIsTrue="kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option"\n filterIsTrue="Is True"\n\n i18n-filterIsFalse="kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option"\n filterIsFalse="Is False"\n\n i18n-filterBooleanAll="kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option"\n filterBooleanAll="(All)"\n\n i18n-filterAfterOrEqualOperator="kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator"\n filterAfterOrEqualOperator="Is after or equal to"\n\n i18n-filterAfterOperator="kendo.gantt.filterAfterOperator|The text of the after date filter operator"\n filterAfterOperator="Is after"\n\n i18n-filterBeforeOperator="kendo.gantt.filterBeforeOperator|The text of the before date filter operator"\n filterBeforeOperator="Is before"\n\n i18n-filterBeforeOrEqualOperator="kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator"\n filterBeforeOrEqualOperator="Is before or equal to"\n\n i18n-filterFilterButton="kendo.gantt.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.gantt.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-filterAndLogic="kendo.gantt.filterAndLogic|The text of the And filter logic"\n filterAndLogic="And"\n\n i18n-filterOrLogic="kendo.gantt.filterOrLogic|The text of the Or filter logic"\n filterOrLogic="Or"\n\n i18n-loading="kendo.gantt.loading|The loading text"\n loading="Loading"\n\n i18n-columnMenu="kendo.gantt.columnMenu|The title of the column menu icon"\n columnMenu="Column Menu"\n\n i18n-columns="kendo.gantt.columns|The text shown in the column menu for the columns item"\n columns="Columns"\n\n i18n-lock-disabled="kendo.gantt.lock|The text shown in the column menu for the lock item"\n lock-disabled="Lock"\n\n i18n-unlock-disabled="kendo.gantt.unlock|The text shown in the column menu for the unlock item"\n unlock-disabled="Unlock"\n\n i18n-sortable="kendo.gantt.sortable|The label of the sort icon"\n sortable="Sortable"\n\n i18n-sortAscending="kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item"\n sortAscending="Sort Ascending"\n\n i18n-sortDescending="kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item"\n sortDescending="Sort Descending"\n\n i18n-sortedAscending="kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending"\n sortedAscending="Sorted Ascending"\n\n i18n-sortedDescending="kendo.gantt.sortedDescending|The status announcement when a column is sorted descending"\n sortedDescending="Sorted Descending"\n\n i18n-sortedDefault="kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted"\n sortedDefault="Not Sorted"\n\n i18n-columnsApply="kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button"\n columnsApply="Apply"\n\n i18n-columnsReset="kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button"\n columnsReset="Reset"></ng-container>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'top\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'top\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'top\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-header k-toolbar k-gantt-toolbar"\n position="top"></kendo-gantt-toolbar>\n <div class="k-gantt-content">\n <kendo-splitter [style.border]="0">\n <kendo-splitter-pane\n class="k-gantt-treelist k-gantt-treelist-scrollable"\n [collapsible]="treeListPaneOptions?.collapsible"\n [collapsed]="treeListPaneOptions?.collapsed"\n (collapsedChange)="onTreeListCollapsedChange($event)"\n [scrollable]="false">\n <kendo-treelist\n [idField]="taskIdField"\n [columns]="columns"\n [data]="data"\n [hasChildren]="hasChildren"\n [fetchChildren]="fetchChildren"\n [navigable]="navigable"\n [isExpanded]="isExpanded"\n [autoSize]="columnsAutoSize"\n [columnMenu]="columnMenu"\n [reorderable]="columnsReorderable"\n [resizable]="columnsResizable"\n [rowClass]="rowClass"\n [isSelected]="isSelected"\n [selectable]="selectable"\n [sortable]="sortable"\n [sort]="sort"\n [filterable]="filterMenu"\n [filter]="filter"\n (filterChange)="filterChange.emit($event)"\n (sortChange)="sortChange.emit($event)"\n (dataStateChange)="dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })"\n (expandStateChange)="expandStateChange.emit($event)"\n (expand)="rowExpand.emit({ dataItem: $event.dataItem })"\n (collapse)="rowCollapse.emit({ dataItem: $event.dataItem })"\n (columnReorder)="columnReorder.emit($event)"\n (columnResize)="columnResize.emit($event)"\n (columnVisibilityChange)="handleColumnVisibilityChange($event)"\n (columnLockedChange)="columnLockedChange.emit($event)"\n (selectionChange)="handleTreeListSelectionChange($event)"\n (cellClick)="handleTreeListCellClick($event)"\n (cellClose)="handleCellClose($event)"\n [kendoEventsOutsideAngular]="{\n dblclick: handleTreeListDoubleClick\n }"\n [scope]="this"\n >\n <kendo-treelist-messages\n [noRecords]="getText(\'noRecords\')"\n [filter]="getText(\'filter\')"\n [filterEqOperator]="getText(\'filterEqOperator\')"\n [filterNotEqOperator]="getText(\'filterNotEqOperator\')"\n [filterIsNullOperator]="getText(\'filterIsNullOperator\')"\n [filterIsNotNullOperator]="getText(\'filterIsNotNullOperator\')"\n [filterIsEmptyOperator]="getText(\'filterIsEmptyOperator\')"\n [filterIsNotEmptyOperator]="getText(\'filterIsNotEmptyOperator\')"\n [filterStartsWithOperator]="getText(\'filterStartsWithOperator\')"\n [filterContainsOperator]="getText(\'filterContainsOperator\')"\n [filterNotContainsOperator]="getText(\'filterNotContainsOperator\')"\n [filterEndsWithOperator]="getText(\'filterEndsWithOperator\')"\n [filterGteOperator]="getText(\'filterGteOperator\')"\n [filterGtOperator]="getText(\'filterGtOperator\')"\n [filterLteOperator]="getText(\'filterLteOperator\')"\n [filterLtOperator]="getText(\'filterLtOperator\')"\n [filterIsTrue]="getText(\'filterIsTrue\')"\n [filterIsFalse]="getText(\'filterIsFalse\')"\n [filterBooleanAll]="getText(\'filterBooleanAll\')"\n [filterAfterOrEqualOperator]="getText(\'filterAfterOrEqualOperator\')"\n [filterAfterOperator]="getText(\'filterAfterOperator\')"\n [filterBeforeOperator]="getText(\'filterBeforeOperator\')"\n [filterBeforeOrEqualOperator]="getText(\'filterBeforeOrEqualOperator\')"\n [filterFilterButton]="getText(\'filterFilterButton\')"\n [filterClearButton]="getText(\'filterClearButton\')"\n [filterAndLogic]="getText(\'filterAndLogic\')"\n [filterOrLogic]="getText(\'filterOrLogic\')"\n [loading]="getText(\'loading\')"\n [columnMenu]="getText(\'columnMenu\')"\n [columns]="getText(\'columns\')"\n [sortable]="getText(\'sortable\')"\n [sortAscending]="getText(\'sortAscending\')"\n [sortDescending]="getText(\'sortDescending\')"\n [sortedAscending]="getText(\'sortedAscending\')"\n [sortedDescending]="getText(\'sortedDescending\')"\n [sortedDefault]="getText(\'sortedDefault\')"\n [columnsApply]="getText(\'columnsApply\')"\n [columnsReset]="getText(\'columnsReset\')"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]="timelinePaneOptions?.collapsible"\n [resizable]="timelinePaneOptions?.resizable"\n [collapsed]="timelinePaneOptions?.collapsed"\n [min]="timelinePaneOptions?.min"\n [max]="timelinePaneOptions?.max"\n [size]="timelinePaneOptions?.size"\n (collapsedChange)="onTimelineCollapsedChange($event)"\n (sizeChange)="onTimelinePaneSizeChange($event)"\n [scrollable]="false">\n <kendo-gantt-timeline\n *ngIf="views && views.length"\n [renderDependencyDragClues]="renderDependencyDragClues"\n [dragScrollSettings]="dragScrollSettings"\n [rows]="viewItems"\n [slots]="timelineSlots"\n [groupSlots]="timelineGroupSlots"\n [tableWidth]="tableWidth"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate?.templateRef"\n [taskTemplate]="taskTemplate?.templateRef"\n [summaryTaskTemplate]="summaryTaskTemplate?.templateRef"\n [taskClass]="taskClass"\n [dependencies]="dependencies"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [kendoEventsOutsideAngular]="{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }"\n [scope]="this"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf="showToolbar(\'bottom\')"\n [showAddTask]="toolbarSettings.addTaskTool === \'bottom\' || toolbarSettings.addTaskTool === \'both\'"\n [showViewSelector]="toolbarSettings.viewSelectorTool === \'bottom\' || toolbarSettings.viewSelectorTool === \'both\'"\n class="k-gantt-footer k-toolbar k-gantt-toolbar"\n position="bottom"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf="showEditingDialog"\n [data]="data">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf="showConfirmationDialog"\n [width]="575"\n [height]="170"\n [title]="getText(\'confirmationDialogTitle\')"\n (close)="handleConfirmationDialogClose()">\n <span>{{ getText(\'confirmationDialogContent\') }}</span>\n <kendo-dialog-actions layout="normal">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleDeleteConfirmation()">{{ getText(\'deleteButtonText\') }}</button>\n <button kendoButton (click)="handleConfirmationDialogClose()">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[m.TimelineViewService,y.ScrollSyncService,a.Renderer2,O.MappingService,j.OptionChangesService,_.DependencyDomService,k.EditService,b.LocalizationService,a.ElementRef,a.NgZone,S.NavigationService])],e)}();t.GanttComponent=F},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.FF=0]="FF",e[e.FS=1]="FS",e[e.SF=2]="SF",e[e.SS=3]="SS"}(t.DependencyType||(t.DependencyType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.locked=!1,t}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t}(n(17).ColumnBase);t.GanttColumnBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(46),r=n(47),s=n(48),c={day:o.TimelineDayViewService,week:s.TimelineWeekViewService,month:r.TimelineMonthViewService},l=function(){function e(e){this.injector=e,this.viewChange=new a.EventEmitter}return e.prototype.service=function(e){var t=c[e];return t?this.injector.get(t):null},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.Injector])],e)}();t.TimelineViewService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=n(5),s=n(26),c=n(11),l=n(68),d=function(){function e(e,t,n){this.zone=e,this.renderer=t,this.scrollSyncService=n,this.taskStatusChanges=new r.Subject,this.isTimelineFocused=!1,this.treeListLastActive=!1,this.timelineLastActive=!1,this._enabled=!1,this._activeTimelineIndex=0,this._activeTreeListCell={rowIndex:0,colIndex:0}}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTask",{get:function(){return{activeIndex:this.activeTimelineIndex,isFocused:this.isTimelineFocused}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTreeListCell",{get:function(){var e=this.treeListHeaderRowsCount+this.gantt.treeList.view.data.length-1,t=c.fitToRange(this._activeTreeListCell.rowIndex,0,e),n=this.gantt.columns.length;return{rowIndex:t,colIndex:c.fitToRange(this._activeTreeListCell.colIndex,0,n)}},set:function(e){this._activeTreeListCell=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTimelineIndex",{get:function(){var e=this.gantt.treeList.view.data.length-1;return c.fitToRange(this._activeTimelineIndex,0,e)},set:function(e){this._activeTimelineIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeListHeaderRowsCount",{get:function(){return this.treeListElement.querySelectorAll(".k-grid-header tr").length},enumerable:!0,configurable:!0}),e.prototype.initialize=function(e){var t=this,n=e.gantt,i=e.host,a=e.treeListElement,o=e.timelineElement;this._enabled=!0,this.gantt=n,this.host=i,this.treeListElement=a,this.timelineElement=o;var r=this.host.querySelector(".k-splitbar");c.isPresent(r)&&c.isPresent(r.previousElementSibling)&&c.isPresent(r.after)&&r.after(r.previousElementSibling),this.zone.runOutsideAngular((function(){t.eventListenerDisposers=[t.renderer.listen(t.host,"keydown",t.handleKeydown.bind(t)),t.renderer.listen(t.treeListElement,"mousedown",t.focusTreeList.bind(t)),t.renderer.listen(t.treeListElement,"focusin",t.handleTreeListFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"mousedown",t.handleTimelineMousedown.bind(t)),t.renderer.listen(t.timelineElement,"focusin",t.handleTimelineFocusIn.bind(t)),t.renderer.listen(t.timelineElement,"focusout",t.handleTimelineFocusOut.bind(t))]}))},e.prototype.ngOnDestroy=function(){c.isPresent(this.eventListenerDisposers)&&(this.eventListenerDisposers.forEach((function(e){return e()})),this.eventListenerDisposers=null),this.gantt=null,this.host=null,this.treeListElement=null,this.timelineElement=null},e.prototype.focusLastActiveItem=function(){if(0===this.gantt.data.length||!this.treeListLastActive&&!this.timelineLastActive)this.focusCell(0,0);else if(this.treeListLastActive){var e=this.activeTreeListCell,t=e.rowIndex,n=e.colIndex;this.gantt.treeList.focusCell(t,n)}else this.timelineLastActive&&this.focusTask(this.activeTimelineIndex)},e.prototype.focusCell=function(e,t){this.activeTreeListCell={rowIndex:e,colIndex:t},this.activeTimelineIndex=e-this.treeListHeaderRowsCount,this.gantt.treeList.focusCell(this.activeTreeListCell.rowIndex,this.activeTreeListCell.colIndex)},e.prototype.focusTask=function(e){this.activeTimelineIndex=e,this.isTimelineFocused=!0,this.activeTreeListCell={rowIndex:e+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex},this.notifyTaskStatusChange()},e.prototype.handleTimelineFocusIn=function(e){var t=e.target;this.treeListLastActive=!1,this.timelineLastActive=!0,this.isTimelineFocused=!0,c.isTask(t,this.timelineElement)&&this.notifyTaskStatusChange()},e.prototype.handleTimelineFocusOut=function(e){var t=e.relatedTarget;this.isTimelineFocused=this.timelineElement.contains(t),c.isTask(t,this.timelineElement)||this.notifyTaskStatusChange()},e.prototype.handleTreeListFocusIn=function(e){if(this.treeListLastActive=!0,this.timelineLastActive=!1,this.treeListElement.contains(e.relatedTarget)){var t=this.gantt.treeList.activeCell,n=t.colIndex,i=t.rowIndex;this.activeTreeListCell={colIndex:n,rowIndex:i}}else{var a=this.activeTreeListCell;i=a.rowIndex,n=a.colIndex;this.gantt.treeList.focusCell(i,n)}this.activeTimelineIndex=this.gantt.treeList.activeCell.dataRowIndex,this.notifyTaskStatusChange(),this.gantt.treeList.activeCell.dataRowIndex>=0&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("treelist","timeline"))},e.prototype.handleKeydown=function(e){var t=this,n=e,a=n.keyCode,r=n.target,s=n.altKey,d=this.timelineElement.contains(r);if(d){if(l.isArrowUpDownKey(a)){var p=a===o.Keys.ArrowUp?-1:1;this.activeTimelineIndex=this.activeTimelineIndex+p,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}}else if(a===o.Keys.Home)this.activeTimelineIndex=0,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex};else if(a===o.Keys.End){var u=this.gantt.treeList.view.data.length-1;this.activeTimelineIndex=u,this.activeTreeListCell={rowIndex:this.activeTimelineIndex+this.treeListHeaderRowsCount,colIndex:this.activeTreeListCell.colIndex}}if(l.isNavigationKey(a)&&(this.scrollHorizontallyToTask(this.activeTimelineIndex),this.scrollSyncService.syncScrollTop("timeline","treelist"),this.notifyTaskStatusChange(),e.preventDefault()),a===o.Keys.Space&&o.hasObservers(this.gantt.selectionChange)){var h=this.gantt.renderedTreeListItems[this.activeTimelineIndex],b=this.gantt.getSelectionAction(e,h);c.isPresent(h)&&!this.gantt.isSameSelection(b,h)&&this.zone.run((function(){return t.gantt.notifySelectionChange(h,b)})),e.preventDefault()}if(a===o.Keys.Enter&&o.hasObservers(this.gantt.taskClick)){var m=this.gantt.renderedTreeListItems[this.activeTimelineIndex];c.isPresent(m)&&this.zone.run((function(){return t.gantt.notifyTaskClick(e,m,t.activeTimelineIndex)})),e.preventDefault()}if(l.isExpandCollapseKey(a,s)){var f=this.gantt.renderedTreeListItems[this.activeTimelineIndex];if(c.isPresent(f)&&this.gantt.hasChildren(f)){var g=a===o.Keys.ArrowRight,v=this.gantt.isExpanded(f);g===v||this.zone.run((function(){var e={dataItem:f};(g?t.gantt.rowExpand:t.gantt.rowCollapse).emit(e),t.gantt.expandStateChange.emit(i.__assign({},e,{expand:g})),t.gantt.updateView(),t.scrollHorizontallyToTask(t.activeTimelineIndex)}))}e.preventDefault()}}var y=this.treeListElement.contains(r);if(a===o.Keys.Delete&&(d||y)&&o.hasObservers(this.gantt.taskDelete)){var _=y?this.gantt.treeList.activeCell.dataRowIndex:this.activeTimelineIndex,O=this.gantt.renderedTreeListItems[_];c.isPresent(O)&&this.zone.run((function(){return t.gantt.notifyTaskDelete(O)}))}if(l.isViewDigitKey(a)&&!c.isToolbar(r,this.host)&&!this.gantt.isInEditMode){var j=l.getIndexFromViewDigitKeyCode(a),k=this.gantt.views.toArray()[j];c.isPresent(k)&&k.type!==this.gantt.activeView&&this.zone.run((function(){return t.gantt.changeActiveView(k.type)}))}},e.prototype.handleTimelineMousedown=function(e){var t=e.target;if(c.isTask(t,this.host)&&!c.isClearButton(t,this.host)){var n=c.getClosestTaskIndex(t,this.host);this.focusTask(n)}},e.prototype.scrollHorizontallyToTask=function(e){var t=this.timelineElement.querySelectorAll(".k-task-wrap").item(e);if(c.isPresent(t)){var n=this.timelineElement.clientWidth+this.timelineElement.scrollLeft<t.offsetLeft+200,i=this.timelineElement.scrollLeft>t.offsetLeft;(n||i)&&(this.timelineElement.scrollLeft=t.offsetLeft)}},e.prototype.focusTreeList=function(){this.gantt.treeList.focus()},e.prototype.notifyTaskStatusChange=function(){this.taskStatusChanges.next(this.activeTask)},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.NgZone,a.Renderer2,s.ScrollSyncService])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=function(){function e(e,t){this.optionChangesService=e,this.dependencyDomService=t,this.slotWidth=100}return e.prototype.ngOnChanges=function(e){o.anyChanged(["slotWidth"],e)&&(this.optionChangesService.notifyColumnChanges(),this.dependencyDomService.notifyChanges())},i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"slotWidth",void 0),e}();t.ViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.TOUCH_ENABLED=new i.InjectionToken("gantt-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=function(){function e(e){var t=this;this.ngZone=e,this.changes=new o.Subject,this.elements=[],this.subscriptions=new o.Subscription,this.subscriptions.add(this.changes.subscribe((function(e){t.scroll(e)})))}return e.prototype.registerElement=function(e,t){var n=this;this.elements.push({element:e,sourceType:t}),"timeline"!==t&&"treelist"!==t||this.ngZone.runOutsideAngular((function(){var i=o.fromEvent(e,"scroll").pipe(r.map((function(e){var n=e.target;return{scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,sourceType:t}}))),a="timeline"===t?function(e,t){return e.scrollTop===t.scrollTop&&e.scrollLeft===t.scrollLeft}:function(e,t){return e.scrollTop===t.scrollTop};n.subscriptions.add(i.pipe(r.distinctUntilChanged(a)).subscribe((function(e){return n.changes.next(e)})))}))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.elements=null},e.prototype.syncScrollTop=function(e,t){var n=this.elements.find((function(t){return t.sourceType===e})),i=this.elements.find((function(e){return e.sourceType===t}));this.ngZone.onStable.pipe(r.take(1)).subscribe((function(){return i.element.scrollTop=n.element.scrollTop}))},e.prototype.resetTimelineScrollLeft=function(){this.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollLeft=0},e.prototype.scroll=function(e){var t=this,n=e.scrollTop,i=e.scrollLeft,a=e.sourceType;this.ngZone.runOutsideAngular((function(){if("timeline"===a){if(t.elements.find((function(e){return"header"===e.sourceType})).element.scrollLeft=i,!t.syncingTimeline)t.syncingTreeList=!0,t.elements.find((function(e){return"treelist"===e.sourceType})).element.scrollTop=n;t.syncingTimeline=!1}if("treelist"===a){if(!t.syncingTreeList)t.syncingTimeline=!0,t.elements.find((function(e){return"timeline"===e.sourceType})).element.scrollTop=n;t.syncingTreeList=!1}}))},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[a.NgZone])],e)}();t.ScrollSyncService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21);t.GanttColumnBase=i.GanttColumnBase;var a=n(40);t.GanttColumnComponent=a.GanttColumnComponent;var o=n(62);t.GanttColumnGroupComponent=o.GanttColumnGroupComponent;var r=n(63);t.GanttSpanColumnComponent=r.GanttSpanColumnComponent;var s=n(28);t.CellTemplateDirective=s.CellTemplateDirective;var c=n(29);t.HeaderTemplateDirective=c.HeaderTemplateDirective;var l=n(44);t.FooterTemplateDirective=l.FooterTemplateDirective;var d=n(41);t.ColumnMenuTemplateDirective=d.ColumnMenuTemplateDirective;var p=n(42);t.FilterCellTemplateDirective=p.FilterCellTemplateDirective;var u=n(43);t.FilterMenuTemplateDirective=u.FilterMenuTemplateDirective;var h=n(30);t.EditTemplateDirective=h.EditTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttCellTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttHeaderTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.HeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttEditTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.EditTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(67),a=n(11),o=n(2);t.DAY_FORMAT="E d/MM",t.HOUR_FORMAT="HH:mm aa",t.MONTH_FORMAT="MMM";var r=function(){function e(e,t){this.intlService=e,this.mapper=t,this._viewStart=0}return Object.defineProperty(e.prototype,"viewStart",{get:function(){return this._viewStart},enumerable:!0,configurable:!0}),e.prototype.getRange=function(e){if(!e||!e.length)return{start:new Date,end:new Date};var t=i.orderBy(e,[{field:this.mapper.taskFields.start,dir:"asc"}]),n=i.orderBy(e,[{field:this.mapper.taskFields.end,dir:"desc"}]),a=this.intlService.firstDay(),o=this.mapper.extractFromTask(t[0],"start")||new Date,r=this.mapper.extractFromTask(n[0],"end")||new Date;a===r.getDay()&&r.setDate(r.getDate()+7);var s=this.getStartOffset(o),c=this.getEndOffset(r);return this._viewStart=Number(s),{start:new Date(s),end:new Date(c)}},e.prototype.getHours=function(e,n){for(var i=[],o=this.intlService.parseDate(this.options.workDayStart).getHours(),r=this.intlService.parseDate(this.options.workDayEnd).getHours(),s=new Date(e),c=new Date(n);s<c;){var l=new Date(s),d=a.isWorkHour(l,o,r);l.setHours(l.getHours()+1),i.push({start:s,end:l,isWorking:d,text:this.intlService.formatDate(s,t.HOUR_FORMAT),span:1}),s=l}return i},e.prototype.getDays=function(e,n){for(var i=[],r=new Date(e),s=new Date(n);r<=s;){var c=o.getDate(o.addDays(r,1)),l=a.isWorkDay(r,this.options.workWeekStart,this.options.workWeekEnd),d=s<c?s:c;i.push({start:r,end:d,isWorking:l,text:this.intlService.formatDate(r,t.DAY_FORMAT),span:1}),r=c}return i},e.prototype.getWeeks=function(e,n){for(var i=this.intlService.firstDay(),r=[],s=new Date(e),c=new Date(n);s<=c;){var l=a.lastDayOfWeek(s,i),d=l>c?c:l,p=this.getDays(s,d),u=p.length,h=this.intlService.formatDate(o.firstDayInWeek(o.getDate(s),i),t.DAY_FORMAT),b=this.intlService.formatDate(o.addDays(d,-1),t.DAY_FORMAT);u>0&&r.push({start:p[0].start,end:p[u-1].end,text:h+" - "+b,span:u}),s=o.firstDayInWeek(o.addWeeks(d,1))}return r},e.prototype.getMonths=function(e,n){for(var i=[],a=new Date(e),r=new Date(n);a<r;){var s=o.lastDayOfMonth(a),c=r<s?r:s,l=this.getDays(a,c),d=l.length,p=o.firstDayOfMonth(o.getDate(a)),u=this.intlService.formatDate(p,t.MONTH_FORMAT);d>0&&i.push({start:l[0].start,end:l[d-1].end,span:d,text:u}),a=o.firstDayOfMonth(o.addMonths(c,1))}return i},e}();t.TimelineBaseViewService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=function(){function e(){this.horizontalScroll=new o.Subject,this.verticalScroll=new o.Subject,this.scrollCancel=new o.Subject}return e.prototype.ngOnDestroy=function(){this.horizontalScroll.complete(),this.verticalScroll.complete(),this.scrollCancel.complete()},e.prototype.requestHorizontalScroll=function(e){this.horizontalScroll.next(e)},e.prototype.requestVerticalScroll=function(e){this.verticalScroll.next(e)},e.prototype.requestScrollCancel=function(){this.scrollCancel.next()},e=i.__decorate([a.Injectable()],e)}();t.TimelineScrollService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=function(){function e(e){this.localizationService=e}return e.prototype.get=function(e){return this.localizationService.get(e)},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.GanttLocalizationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttTaskTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GanttTaskTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttSummaryTaskTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GanttSummaryTaskTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttTaskContentTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.GanttTaskContentTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e,this._position="top"}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),i.__decorate([a.Input("position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([a.Directive({selector:"[kendoGanttToolbarTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ToolbarTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),r=n(5),s=n(11),c={day:o.MS_PER_HOUR,week:o.MS_PER_DAY,month:7*o.MS_PER_DAY},l=function(){function e(e,t,n,i,a,o){var s=this;this.mapper=e,this.timelineViewService=t,this.dependencyDomService=n,this.optionChangesService=i,this.cdr=a,this.navigationService=o,this.wrapperClass=!0,this.subscriptions=new r.Subscription,this.subscriptions.add(this.optionChangesService.viewChanges.subscribe((function(){return s.cdr.markForCheck()}))),this.subscriptions.add(this.navigationService.taskStatusChanges.subscribe(this.updateActiveState.bind(this)))}return Object.defineProperty(e.prototype,"taskIndexAttribute",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return this.selectable?String(this.isSelected(this.dataItem)):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slotUnitDuration",{get:function(){return c[this.activeView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewService",{get:function(){return this.timelineViewService.service(this.activeView)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slotWidth",{get:function(){return this.viewService.options.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskWidth",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"end")-this.mapper.extractFromTask(this.dataItem,"start"))/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"taskOffset",{get:function(){return(this.mapper.extractFromTask(this.dataItem,"start")-this.viewService.viewStart)/this.slotUnitDuration*this.slotWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"completionOverlayWidth",{get:function(){var e=this.taskWidth*this.mapper.extractFromTask(this.dataItem,"completionRatio");return s.isNumber(e)?e:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){s.isPresent(e.dataItem)?(s.isPresent(e.dataItem.previousValue)&&this.dependencyDomService.unregisterTask(e.dataItem.previousValue),this.dependencyDomService.registerTask(this.dataItem,this.taskElement.nativeElement)):s.isPresent(e.activeView)&&this.dependencyDomService.notifyChanges(),this.navigationService.enabled&&s.isPresent(e.index)&&this.updateActiveState(this.navigationService.activeTask)},e.prototype.ngOnDestroy=function(){s.isPresent(this.dataItem)&&this.dependencyDomService.unregisterTask(this.dataItem),this.subscriptions.unsubscribe()},e.prototype.updateActiveState=function(e){var t=e.activeIndex,n=e.isFocused,i=t===this.index,a=i?"0":"-1";this.taskElement.nativeElement.setAttribute("tabindex",a),i&&n?(this.taskElement.nativeElement.focus(),this.taskElement.nativeElement.classList.add("k-focus")):this.taskElement.nativeElement.classList.remove("k-focus")},i.__decorate([a.HostBinding("class.k-task-wrap"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClass",void 0),i.__decorate([a.HostBinding("attr.data-task-index"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"taskIndexAttribute",null),i.__decorate([a.ViewChild("task",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"taskElement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"index",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([a.HostBinding("style.left.px"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"taskOffset",null),e}();t.GanttTaskBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(3),c=n(26),l=n(15),d=n(11),p=function(){function e(e,t,n,i){var c=this;this.scrollSyncService=e,this.dependencyDomService=t,this.renderer=n,this.zone=i,this.hostClass=!0,this.dependencies=[],this.timelineContainerPress=new a.EventEmitter,this.timelineContainerDrag=new a.EventEmitter,this.timelineContainerRelease=new a.EventEmitter,this.subscriptions=new o.Subscription,this.subscriptions.add(this.dependencyDomService.taskChanges.pipe(r.filter((function(e){return d.isPresent(e.timelineRow)})),r.switchMap((function(e){return c.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){var t=e.timelineRow,n=s.isDocumentAvailable()?t.getBoundingClientRect().height:0;c.renderer.setStyle(c.timelineColumns.nativeElement,"height",(c.rows||[]).length*n+"px")})))}return Object.defineProperty(e.prototype,"draggableEnabled",{get:function(){return this.renderDependencyDragClues},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this.timelineHeaderWrap.nativeElement,t=this.timelineContent.nativeElement;this.scrollSyncService.registerElement(t,"timeline"),this.scrollSyncService.registerElement(e,"header"),this.dependencyDomService.registerContentContainer(this.tasksContainer.nativeElement)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isNonWorking=function(e){return e.hasOwnProperty("isWorking")&&!e.isWorking},i.__decorate([a.ViewChild("timelineContent",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"timelineContent",void 0),i.__decorate([a.ViewChild("timelineColumns",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"timelineColumns",void 0),i.__decorate([a.ViewChild("timelineHeaderWrap",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"timelineHeaderWrap",void 0),i.__decorate([a.ViewChild("tasksContainer",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"tasksContainer",void 0),i.__decorate([a.ViewChild("dragPopupContainer",{static:!1,read:a.ViewContainerRef}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"dragPopupContainer",void 0),i.__decorate([a.ViewChild("dependencyDragCreatePolyline",{static:!1}),i.__metadata("design:type",a.ElementRef)],e.prototype,"dependencyDragCreatePolyline",void 0),i.__decorate([a.HostBinding("class.k-gantt-timeline"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tableWidth",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"renderDependencyDragClues",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"dragScrollSettings",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelineContainerPress",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelineContainerDrag",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"timelineContainerRelease",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-timeline",template:'\n <div class="k-timeline k-grid k-widget">\n <div class="k-grid-header">\n <div #timelineHeaderWrap class="k-grid-header-wrap">\n <table\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttHeaderTableBody\n [groupSlots]="groupSlots"\n [slots]="slots">\n </tbody>\n </table>\n </div>\n </div>\n \x3c!-- tabindex="-1" required for https://bugzilla.mozilla.org/show_bug.cgi?id=1069739 --\x3e\n <div\n #timelineContent\n class="k-grid-content"\n tabindex="-1"\n role="tree"\n aria-roledescription="Timeline"\n kendoGanttTimelineScrollable\n [scrollSettings]="dragScrollSettings"\n kendoDraggable\n [enableDrag]="draggableEnabled"\n (kendoPress)="timelineContainerPress.emit($event)"\n (kendoDrag)="timelineContainerDrag.emit($event)"\n (kendoRelease)="timelineContainerRelease.emit($event)"\n >\n <div class="k-gantt-tables">\n <table\n class="k-gantt-rows"\n [style.width.px]="tableWidth"\n role="presentation"\n >\n <tbody>\n <tr *ngFor="let item of rows; let i = index;"\n [class.k-alt]="i % 2"\n >\n <td></td>\n </tr>\n </tbody>\n </table>\n\n <table\n #timelineColumns\n class="k-gantt-columns"\n role="presentation"\n [style.width.px]="tableWidth"\n >\n <colgroup>\n <col *ngFor="let item of slots">\n </colgroup>\n\n <tbody>\n <tr>\n <td *ngFor="let item of slots"\n [class.k-nonwork-hour]="isNonWorking(item)"\n >\n </td>\n </tr>\n </tbody>\n </table>\n\n <table\n #tasksContainer\n class="k-gantt-tasks"\n role="presentation"\n style="border-collapse: collapse;"\n [style.width.px]="tableWidth"\n >\n <tbody\n kendoGanttTasksTableBody\n [rows]="rows"\n [activeView]="activeView"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [summaryTaskTemplate]="summaryTaskTemplate"\n [taskClass]="taskClass"\n [isExpanded]="isExpanded"\n [selectable]="selectable"\n [isTaskSelected]="isTaskSelected"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </tbody>\n </table>\n </div>\n <svg class="k-gantt-dependencies-svg">\n <polyline\n *ngFor="let dependency of dependencies"\n kendoGanttDependency\n [dependency]="dependency"\n />\n <polyline #dependencyDragCreatePolyline />\n </svg>\n\n \x3c!-- placeholder for the dependency drag popup; its position is not arbitrary - the popup is intended to be absolutely positioned inside the .k-grid-content element --\x3e\n <ng-container #dragPopupContainer></ng-container>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[c.ScrollSyncService,l.DependencyDomService,a.Renderer2,a.NgZone])],e)}();t.GanttTimelineComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=n(16),s=n(21),c=n(28),l=n(41),d=n(42),p=n(43),u=n(44),h=n(29),b=n(30),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.headerTemplates=new a.QueryList,i.columnMenuTemplates=new a.QueryList,i.filter="text",i.filterable=!0,i.editor="text",i.editable=!0,i.locked=!1,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([a.ContentChildren(h.HeaderTemplateDirective,{descendants:!1}),i.__metadata("design:type",a.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([a.ContentChild(u.FooterTemplateDirective,{static:!1}),i.__metadata("design:type",u.FooterTemplateDirective)],t.prototype,"footerTemplate",void 0),i.__decorate([a.ContentChildren(l.ColumnMenuTemplateDirective),i.__metadata("design:type",a.QueryList)],t.prototype,"columnMenuTemplates",void 0),i.__decorate([a.ContentChild(c.CellTemplateDirective,{static:!1}),i.__metadata("design:type",c.CellTemplateDirective)],t.prototype,"template",void 0),i.__decorate([a.ContentChild(b.EditTemplateDirective,{static:!1}),i.__metadata("design:type",b.EditTemplateDirective)],t.prototype,"editTemplate",void 0),i.__decorate([a.ContentChild(d.FilterCellTemplateDirective,{static:!1}),i.__metadata("design:type",d.FilterCellTemplateDirective)],t.prototype,"filterCellTemplate",void 0),i.__decorate([a.ContentChild(p.FilterMenuTemplateDirective,{static:!1}),i.__metadata("design:type",p.FilterMenuTemplateDirective)],t.prototype,"filterMenuTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"filterable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"editor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-column",template:"",providers:[{provide:s.GanttColumnBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__param(1,a.SkipSelf()),i.__param(1,a.Host()),i.__param(1,a.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(o.ColumnComponent);t.GanttColumnComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttColumnMenuTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ColumnMenuTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttFilterCellTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FilterCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttFilterMenuTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FilterMenuTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoGanttFooterTemplate]"}),i.__param(0,a.Optional()),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.FooterTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(20);t.DependencyType=i.DependencyType;var a=n(65);t.CellCloseEvent=a.CellCloseEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(8),r=n(31),s=n(12),c=n(11),l=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){return c.setTime(e,e.getHours()-1)},t.prototype.getEndOffset=function(e){return c.setTime(e,e.getHours()+1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){for(var t=[],n=this.getRange(e),i=n.start,a=n.end,o=this.getDays(i,a),r=[],s=0;s<o.length;s++){var c=o[s],l=this.getHours(c.start,c.end);c.span=l.length,r.push.apply(r,l)}return t.push(o,r),t},t=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService,s.MappingService])],t)}(r.TimelineBaseViewService);t.TimelineDayViewService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(8),r=n(2),s=n(12),c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){var t=this.intlService.firstDay(),n=r.firstDayInWeek(r.getDate(e),t);return r.addWeeks(r.getDate(n),-1)},t.prototype.getEndOffset=function(e){var t=this.intlService.firstDay(),n=r.addDays(r.firstDayInWeek(r.getDate(e),t),6);return r.addWeeks(r.getDate(n),1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,a=n.end,o=this.getMonths(i,a),r=this.getWeeks(i,a);return t.push(o,r),t},t=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService,s.MappingService])],t)}(n(31).TimelineBaseViewService);t.TimelineMonthViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(8),r=n(2),s=n(12),c=function(e){function t(t,n){return e.call(this,t,n)||this}return i.__extends(t,e),t.prototype.getStartOffset=function(e){return r.addDays(r.getDate(e),-1)},t.prototype.getEndOffset=function(e){return r.addDays(r.getDate(e),1)},t.prototype.getTableWidth=function(e){var t=this.getSlots(e)[1],n=this.options.slotWidth;return Math.round(t.length*n)},t.prototype.getSlots=function(e){var t=[],n=this.getRange(e),i=n.start,a=n.end,o=this.getWeeks(i,a),r=this.getDays(i,a);return t.push(o,r),t},t=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService,s.MappingService])],t)}(n(31).TimelineBaseViewService);t.TimelineWeekViewService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([a.Input("kendoGanttFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([a.Directive({selector:"[kendoGanttFlatBinding]",exportAs:"kendoGanttFlatBinding"})],t)}(n(17).FlatBindingDirective);t.GanttFlatBindingDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=[],t}return i.__extends(t,e),i.__decorate([a.Input("kendoGanttHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),t=i.__decorate([a.Directive({selector:"[kendoGanttHierarchyBinding]",exportAs:"kendoGanttHierarchyBinding"})],t)}(n(17).HierarchyBindingDirective);t.GanttHierarchyBindingDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"expandBy",void 0),t=i.__decorate([a.Directive({exportAs:"kendoGanttExpandable",selector:"[kendoGanttExpandable]"})],t)}(n(17).ExpandableDirective);t.GanttExpandableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(14),r=n(19),s=n(11),c=function(){function e(e){this.gantt=e,this.selectedKeysChange=new a.EventEmitter,this.state=new Set,this.isSelected=this.isSelected.bind(this),this.selectionChange=this.selectionChange.bind(this),this.selectable=!0}return Object.defineProperty(e.prototype,"selectable",{set:function(e){e?(this.gantt.isSelected=this.isSelected,this.subscribeSelection()):(this.gantt.isSelected=function(){return!1},this.unsubscribeSelection()),this.gantt.selectable=e,this.gantt.updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{set:function(e){if(!s.isPresent(e)||e!==this.lastChange){var t=(e||[]).slice(0,1);this.state=new Set(t),this.gantt.updateView()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemKey",{set:function(e){s.isString(e)?this._keyGetter=o.getter(e):this._keyGetter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyGetter",{get:function(){return this._keyGetter||this.gantt.idGetter},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.unsubscribeSelection()},e.prototype.isSelected=function(e){return this.state.has(this.keyGetter(e))},e.prototype.selectionChange=function(e){var t=this,n=e.action,i=e.items;this.state.clear(),"select"===n&&i.forEach((function(e){return t.state.add(t.keyGetter(e))})),this.emitSelectedItemsChange()},e.prototype.emitSelectedItemsChange=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},e.prototype.subscribeSelection=function(){this.unsubscribeSelection(),this.selectionSubscription=this.gantt.selectionChange.subscribe(this.selectionChange)},e.prototype.unsubscribeSelection=function(){this.selectionSubscription&&(this.selectionSubscription.unsubscribe(),this.selectionSubscription=null)},i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"selectable",null),i.__decorate([a.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"itemKey",null),e=i.__decorate([a.Directive({exportAs:"kendoGanttSelectable",selector:"[kendoGanttSelectable]"}),i.__metadata("design:paramtypes",[r.GanttComponent])],e)}();t.SelectableDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(20);t.getOffsetRelativeToParent=function(e,t){var n={top:0,left:0};if(!t.contains(e))return n;for(var i=e;i&&i!==t;)n.top+=i.offsetTop,n.left+=i.offsetLeft,i=i.offsetParent;return n},t.getElementRect=function(e,n){var i=t.getOffsetRelativeToParent(e,n),a=i.top,o=i.left;return{top:a+e.offsetHeight/2,left:o,right:o+e.offsetWidth}},t.dependencyCoordinates=function(e,t,n,o,r,s){var c,l,d=[],p=Math.floor(n/2),u=e.top<t.top;if(o===i.DependencyType.FF||o===i.DependencyType.SS){var h=o===i.DependencyType.SS?"left":"right";c=e.top,l=e[h],d.push({top:c,left:l}),l=Math["left"===h?"min":"max"](e[h],t[h]),l="left"===h?l-r:l+r,d.push({top:c,left:l}),c=t.top,d.push({top:c,left:l}),l="left"===h?t[h]-s:t[h]+s,d.push({top:c,left:l}),d.push.apply(d,a(c,l,"left"!==h,s))}else{var b=o===i.DependencyType.SF?"left":"right",m=o===i.DependencyType.SF?"right":"left",f=o===i.DependencyType.SF?e[b]-2*r<t[m]:e[b]+2*r>t[m];c=e.top,l=e[b],d.push({top:c,left:l}),l="left"===b?l-r:l+r,d.push({top:c,left:l}),f&&(c=u?c+p:c-p,d.push({top:c,left:l}),l="left"===b?t[m]+r:t[m]-r,d.push({top:c,left:l})),c=t.top,d.push({top:c,left:l}),l="left"===m?t[m]-s:t[m]+s,d.push({top:c,left:l}),d.push.apply(d,a(c,l,"left"!==m,s))}return d};var a=function(e,t,n,i){return n?o(e,t,i):r(e,t,i)},o=function(e,t,n){var i=[];return i.push({top:e-n/2,left:t}),i.push({top:e,left:t-n+1}),i.push({top:e+n/2,left:t}),i.push({top:e,left:t}),i},r=function(e,t,n){var i=[];return i.push({top:e+n/2,left:t}),i.push({top:e,left:t+n-1}),i.push({top:e-n/2,left:t}),i.push({top:e,left:t}),i};t.clientToOffsetCoords=function(e,t,n){var i=n.getBoundingClientRect();return{left:e-i.left+n.scrollLeft,top:t-i.top+n.scrollTop}},t.getElementClientCenterCoords=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return{left:n+t.width/2,top:i+t.height/2}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(3),r=n(13),s=n(19),c=n(12),l=n(32),d=n(55),p=n(53),u=n(11),h=n(11),b=function(){function e(e,t,n,i,a,o){this.gantt=e,this.zone=t,this.renderer=n,this.mapper=i,this.popupService=a,this.timelineScrollService=o,this.displayValidationTooltip=!0,this.gantt.renderDependencyDragClues=!0}return Object.defineProperty(e.prototype,"container",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.timelineContent)?this.gantt.timeline.timelineContent.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polyline",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dependencyDragCreatePolyline)?this.gantt.timeline.dependencyDragCreatePolyline.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupContainer",{get:function(){return u.isPresent(this.gantt.timeline)&&u.isPresent(this.gantt.timeline.dragPopupContainer)?this.gantt.timeline.dragPopupContainer:null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.subscribeDraggable(),this.addScrollListener()},e.prototype.ngOnDestroy=function(){this.unsubscribeDraggable(),this.removeScrollListener(),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup()},e.prototype.subscribeDraggable=function(){this.dragSubscriptions=this.gantt.timeline.timelineContainerPress.subscribe(this.handlePress.bind(this)),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerDrag.subscribe(this.handleDrag.bind(this))),this.dragSubscriptions.add(this.gantt.timeline.timelineContainerRelease.subscribe(this.handleRelease.bind(this)))},e.prototype.unsubscribeDraggable=function(){u.isPresent(this.dragSubscriptions)&&(this.dragSubscriptions.unsubscribe(),this.dragSubscriptions=null)},e.prototype.handlePress=function(e){var t=e.clientX,n=e.clientY,i=h.elementFromPoint(t,n);if(u.isDependencyDragClue(i)){this.fromTaskClue=i,this.assignDragStartClasses(this.fromTaskClue);var a=p.getElementClientCenterCoords(this.fromTaskClue);this.polylineStartCoords=p.clientToOffsetCoords(a.left,a.top,this.container)}},e.prototype.handleDrag=function(e){var t=e.clientX,n=e.clientY;if(u.isPresent(this.fromTaskClue)){var i=p.clientToOffsetCoords(t,n,this.container);this.updatePolyline(this.polylineStartCoords,i),this.currentPointerClientCoords={left:t,top:n},this.gantt.dragScrollSettings.enabled&&this.scrollPointIntoView(this.currentPointerClientCoords),this.displayValidationTooltip&&this.updateDragPopup(i)}},e.prototype.handleRelease=function(e){var t=this,n=e.clientX,i=e.clientY;if(u.isPresent(this.fromTaskClue)){var a=h.elementFromPoint(n,i);u.isDependencyDragClue(a)&&!u.sameTaskClues(this.fromTaskClue,a,this.container)&&this.zone.run((function(){var e,n=t.fromTaskClue,i=a,o=t.gantt.renderedTreeListItems[u.getClosestTaskIndex(n,t.container)],r=t.gantt.renderedTreeListItems[u.getClosestTaskIndex(i,t.container)],s=u.getDependencyTypeFromTargetTasks(n,i),c=t.mapper.dependencyFields,l=c.fromId,d=c.toId,p=c.type;t.gantt.dependencyAdd.emit({fromTask:o,toTask:r,type:s,isValid:t.gantt.validateNewDependency((e={},e[l]=t.mapper.extractFromTask(o,"id"),e[d]=t.mapper.extractFromTask(r,"id"),e[p]=s,e))})})),this.clearPolyline(),this.removeDragStartClasses(this.fromTaskClue),this.fromTaskClue=null,this.cancelScroll(),this.closeDragPopup()}},e.prototype.updatePolyline=function(e,t){var n=e.left+","+e.top+" "+t.left+","+t.top;this.renderer.setAttribute(this.polyline,"points",n)},e.prototype.clearPolyline=function(){this.renderer.removeAttribute(this.polyline,"points")},e.prototype.assignDragStartClasses=function(e){if(u.isPresent(e)){this.renderer.addClass(this.container,"k-user-select-none"),this.renderer.addClass(e,"k-state-hover");var t=u.getClosestTaskWrapper(e,this.container);u.isPresent(t)&&this.renderer.addClass(t,"k-origin")}},e.prototype.removeDragStartClasses=function(e){if(u.isPresent(e)){this.renderer.removeClass(this.container,"k-user-select-none"),this.renderer.removeClass(e,"k-state-hover");var t=u.getClosestTaskWrapper(e,this.container);u.isPresent(t)&&this.renderer.removeClass(t,"k-origin")}},e.prototype.scrollPointIntoView=function(e){var t=e.left,n=e.top;this.timelineScrollService.requestScrollCancel(),this.timelineScrollService.requestHorizontalScroll(t),this.timelineScrollService.requestVerticalScroll(n)},e.prototype.cancelScroll=function(){this.timelineScrollService.requestScrollCancel()},e.prototype.addScrollListener=function(){var e=this;o.isDocumentAvailable()&&this.zone.runOutsideAngular((function(){return e.scrollListenerDisposer=e.renderer.listen(e.container,"scroll",(function(){if(u.isPresent(e.fromTaskClue)&&u.isPresent(e.currentPointerClientCoords)){var t=e.currentPointerClientCoords,n=t.left,i=t.top,a=p.clientToOffsetCoords(n,i,e.container);e.updatePolyline(e.polylineStartCoords,a),e.displayValidationTooltip&&e.updateDragPopup(a)}}))}))},e.prototype.removeScrollListener=function(){u.isPresent(this.scrollListenerDisposer)&&(this.scrollListenerDisposer(),this.scrollListenerDisposer=null)},e.prototype.openDragPopup=function(){u.isPresent(this.dragPopup)&&this.closeDragPopup(),this.dragPopup=this.popupService.open({animate:!1,content:d.DragValidationTooltipComponent,appendTo:this.popupContainer,positionMode:"absolute",popupClass:"k-popup-transparent"})},e.prototype.updateDragPopup=function(e){u.isPresent(this.dragPopup)||this.openDragPopup();var t=this.dragPopup.content.instance,n=this.getTooltipContext(),i=n.fromTaskName,a=n.toTaskName,o=n.isValid,r=n.showValidityStatus;t.fromTaskName===i&&t.toTaskName===a&&t.isValid===o&&t.showValidityStatus===r||(t.fromTaskName=i,t.toTaskName=a,t.isValid=o,t.showValidityStatus=r,this.dragPopup.content.changeDetectorRef.detectChanges()),this.dragPopup.popup.instance.offset=this.normalizePopupPosition(e),this.dragPopup.popup.changeDetectorRef.detectChanges()},e.prototype.closeDragPopup=function(){u.isPresent(this.dragPopup)&&(this.dragPopup.close(),this.dragPopup=null)},e.prototype.extractTaskName=function(e){if(!u.isTaskWrapper(e,this.container))return null;var t=u.getClosestTaskIndex(e,this.container),n=this.gantt.renderedTreeListItems[t];return this.mapper.extractFromTask(n,"title")},e.prototype.getTooltipContext=function(){var e,t=this.extractTaskName(this.fromTaskClue),n=h.elementFromPoint(this.currentPointerClientCoords.left,this.currentPointerClientCoords.top),i=u.isTaskWrapper(n,this.container)&&!u.sameTaskClues(this.fromTaskClue,n,this.container)?this.extractTaskName(n):"",a=u.isDependencyDragClue(n)&&!u.sameTaskClues(this.fromTaskClue,n,this.container),o=this.mapper.dependencyFields,r=o.fromId,s=o.toId,c=o.type;return{fromTaskName:t,toTaskName:i,showValidityStatus:a,isValid:a&&this.gantt.validateNewDependency((e={},e[r]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(this.fromTaskClue,this.container)],"id"),e[s]=this.mapper.extractFromTask(this.gantt.renderedTreeListItems[u.getClosestTaskIndex(n,this.container)],"id"),e[c]=u.getDependencyTypeFromTargetTasks(this.fromTaskClue,n),e))}},e.prototype.normalizePopupPosition=function(e){var t=e.top+20,n=this.container.clientHeight+this.container.scrollTop,i=this.dragPopup.popupElement.querySelector(".k-tooltip").clientHeight;t<n-i||(t-=i+40);var a=this.dragPopup.popupElement.querySelector(".k-tooltip").clientWidth,o=e.left-a/2;return{left:u.fitToRange(o,0,this.container.scrollWidth-a),top:u.fitToRange(t,0,this.container.scrollHeight-i)}},i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"displayValidationTooltip",void 0),e=i.__decorate([a.Directive({selector:"[kendoGanttDependencyDragCreate]"}),i.__metadata("design:paramtypes",[s.GanttComponent,a.NgZone,a.Renderer2,c.MappingService,r.PopupService,l.TimelineScrollService])],e)}();t.DependencyDragCreateDirective=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(){this.isValid=!1}return e=i.__decorate([a.Component({template:'\n <div\n class="k-tooltip k-gantt-tooltip-validation"\n [class.k-gantt-tooltip-valid]="showValidityStatus && isValid"\n [class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"\n >\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">From:</span>\n <span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>\n </div>\n <div class="k-gantt-tooltip-validation-row">\n <span class="k-gantt-tooltip-validation-label">To:</span>\n <span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>\n </div>\n </div>\n ',styles:["\n .k-gantt-tooltip-validation {\n max-width: 200px;\n display: block;\n }\n .k-gantt-tooltip-validation::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 4px;\n height: 100%;\n background: #656565;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-valid::before {\n background: #37B400;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-invalid::before {\n background: #F31700;\n }\n .k-gantt-tooltip-validation-row {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .k-gantt-tooltip-validation-label {\n display: inline-flex;\n width: 50px;\n }\n .k-gantt-tooltip-validation-value {\n font-weight: bold;\n }\n "]})],e)}();t.DragValidationTooltipComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Backwards=-1]="Backwards",e[e.Forward=1]="Forward"}(t.ScrollDirection||(t.ScrollDirection={})),function(e){e.Vertical="scrollTop",e.Horizontal="scrollLeft"}(t.ScrollAxis||(t.ScrollAxis={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingGeneralTabTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingPredecessorsTabTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingSuccessorsTabTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesAddButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesRemoveButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesGridNameColumnTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDependenciesGridTypeColumnTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"deleteButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskDeleteLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"taskEditingDialogCloseTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogCloseTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addTaskText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addChildText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addAboveText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"addBelowText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"saveButtonText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"titleFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"startFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"endFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"completionRatioFieldInputLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"confirmationDialogContent",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"dayViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"weekViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"monthViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"yearViewText",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"noRecords",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterEqOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotEqOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNullOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotNullOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsEmptyOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsNotEmptyOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterStartsWithOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterContainsOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterNotContainsOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterEndsWithOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterGteOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterGtOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterLteOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterLtOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsTrue",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterIsFalse",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterBooleanAll",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOrEqualOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterAfterOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterBeforeOrEqualOperator",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterFilterButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterClearButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterAndLogic",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"filterOrLogic",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"loading",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columnMenu",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columns",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"lock",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"unlock",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortAscending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortDescending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortedAscending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDescending",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"sortedDefault",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columnsApply",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"columnsReset",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(19);t.GanttComponent=a.GanttComponent;var o=n(71);t.GanttModule=o.GanttModule;var r=n(50);t.GanttHierarchyBindingDirective=r.GanttHierarchyBindingDirective;var s=n(49);t.GanttFlatBindingDirective=s.GanttFlatBindingDirective;var c=n(51);t.GanttExpandableDirective=c.GanttExpandableDirective;var l=n(54);t.DependencyDragCreateDirective=l.DependencyDragCreateDirective;var d=n(34);t.GanttTaskTemplateDirective=d.GanttTaskTemplateDirective;var p=n(36);t.GanttTaskContentTemplateDirective=p.GanttTaskContentTemplateDirective;var u=n(35);t.GanttSummaryTaskTemplateDirective=u.GanttSummaryTaskTemplateDirective;var h=n(37);t.ToolbarTemplateDirective=h.ToolbarTemplateDirective;var b=n(52);t.SelectableDirective=b.SelectableDirective,i.__exportStar(n(45),t),i.__exportStar(n(27),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-gantt",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642606888,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_DEPENDENCY_MODEL_FIELDS=Object.freeze({toId:"toId",fromId:"fromId",id:"id",type:"type"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TASK_MODEL_FIELDS=Object.freeze({id:"id",start:"start",end:"end",title:"title",completionRatio:"completionRatio",children:"children"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=n(16),s=n(21),c=n(29),l=function(e){function t(t,n){var i=e.call(this,n)||this;if(i.options=t,i.children=new a.QueryList,i.locked=!1,i.sortable=!0,n&&n.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent");return i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([a.ContentChildren(s.GanttColumnBase),i.__metadata("design:type",a.QueryList)],t.prototype,"children",void 0),i.__decorate([a.ContentChildren(c.HeaderTemplateDirective),i.__metadata("design:type",a.QueryList)],t.prototype,"headerTemplates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"sortable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-column-group",template:"",providers:[{provide:s.GanttColumnBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__param(1,a.SkipSelf()),i.__param(1,a.Host()),i.__param(1,a.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,s.GanttColumnBase])],t)}(o.ColumnGroupComponent);t.GanttColumnGroupComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(17),r=n(16),s=n(28),c=n(21),l=n(40),d=n(30),p=function(e){function t(t,n){var i=e.call(this,n)||this;return i.options=t,i.childColumns=new a.QueryList,i.template=new a.QueryList,i.editTemplate=new a.QueryList,i}var n;return i.__extends(t,e),n=t,t.prototype.ngOnChanges=function(){this.options.notifyColumnChanges()},i.__decorate([a.ContentChildren(l.GanttColumnComponent),i.__metadata("design:type",a.QueryList)],t.prototype,"childColumns",void 0),i.__decorate([a.ContentChildren(s.CellTemplateDirective,{descendants:!1}),i.__metadata("design:type",a.QueryList)],t.prototype,"template",void 0),i.__decorate([a.ContentChildren(d.EditTemplateDirective,{descendants:!1}),i.__metadata("design:type",a.QueryList)],t.prototype,"editTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"locked",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"lockable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"editable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"hidden",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"media",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"style",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerStyle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerStyle",void 0),i.__decorate([a.Input("class"),i.__metadata("design:type",Object)],t.prototype,"cssClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"headerClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],t.prototype,"footerClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-span-column",template:"",providers:[{provide:c.GanttColumnBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__param(1,a.SkipSelf()),i.__param(1,a.Host()),i.__param(1,a.Optional()),i.__metadata("design:paramtypes",[r.OptionChangesService,c.GanttColumnBase])],t)}(o.SpanColumnComponent);t.GanttSpanColumnComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.hasChildren=function(){return!1},t.fetchChildren=function(){return i.of([])},t.rowClassCallback=function(){return null},t.taskClassCallback=function(){return null},t.isSelected=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return i.__extends(t,e),t}(n(66).PreventableEvent);t.CellCloseEvent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(3);!function(e){e[e.Digit1=97]="Digit1",e[e.Digit2=98]="Digit2",e[e.Digit3=99]="Digit3",e[e.Digit4=100]="Digit4"}(i||(i={})),t.isArrowUpDownKey=function(e){return[a.Keys.ArrowUp,a.Keys.ArrowDown].some((function(t){return e===t}))},t.isNavigationKey=function(e){return[a.Keys.ArrowUp,a.Keys.ArrowDown,a.Keys.Home,a.Keys.End].some((function(t){return e===t}))},t.isExpandCollapseKey=function(e,t){return t&&[a.Keys.ArrowLeft,a.Keys.ArrowRight].some((function(t){return e===t}))},t.isViewDigitKey=function(e){return[a.Keys.Digit1,i.Digit1,a.Keys.Digit2,i.Digit2,a.Keys.Digit3,i.Digit3,a.Keys.Digit4,i.Digit4].some((function(t){return e===t}))},t.getIndexFromViewDigitKeyCode=function(e){switch(e){case i.Digit1:case a.Keys.Digit1:return 0;case i.Digit2:case a.Keys.Digit2:return 1;case i.Digit3:case a.Keys.Digit3:return 2;case i.Digit4:case a.Keys.Digit4:return 3;default:return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TREELIST_PANE_SETTINGS=Object.freeze({collapsible:!0,collapsed:!1}),t.DEFAULT_TIMELINE_PANE_SETTINGS=Object.freeze({collapsible:!0,collapsed:!1,size:"50%",resizable:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEditItem=function(e,t,n){var a=t.find((function(t){return n.extractFromTask(t.data,"id")===n.extractFromTask(e,"id")}));return i(a)};var i=function(e){return{dataItem:e.data,parent:e.parent.data?i(e.parent):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(9),r=n(6),s=n(72),c=n(17),l=n(73),d=n(3),p=n(74),u=n(75),h=n(98),b=n(76),m=n(4),f=n(13),g=n(14),v=n(25),y=n(19),_=n(39),O=n(77),j=n(78),k=n(79),C=n(34),w=n(36),S=n(80),T=n(35),E=n(81),D=n(49),I=n(50),x=n(51),P=n(52),V=n(82),R=n(37),B=n(83),F=n(84),M=n(54),A=n(55),L=n(85),N=n(27),z=n(87),H=n(88),G=n(89),W=n(90),K=n(91),q=n(92),U=n(93),Z=n(94),$=n(95),Y=n(96),X=n(97),Q=[o.CommonModule,r.ReactiveFormsModule,u.LabelModule,h.InputsModule,b.DateInputsModule,l.ButtonsModule,s.SplitterModule,c.TreeListModule,l.ButtonsModule,p.DialogModule,d.EventsModule,f.PopupModule,d.DraggableModule,s.TabStripModule,Z.GridModule,$.DropDownsModule],J=[y.GanttComponent,D.GanttFlatBindingDirective,I.GanttHierarchyBindingDirective,k.GanttTaskComponent,S.GanttSummaryTaskComponent,E.GanttMilestoneTaskComponent,_.GanttTimelineComponent,O.GanttTasksTableBodyComponent,j.GanttHeaderTableBodyComponent,w.GanttTaskContentTemplateDirective,C.GanttTaskTemplateDirective,T.GanttSummaryTaskTemplateDirective,R.ToolbarTemplateDirective,V.ToolbarComponent,B.ViewSelectorComponent,N.GanttColumnComponent,N.GanttColumnGroupComponent,N.GanttSpanColumnComponent,N.FilterMenuTemplateDirective,N.FilterCellTemplateDirective,N.CellTemplateDirective,N.EditTemplateDirective,N.ColumnMenuTemplateDirective,N.HeaderTemplateDirective,N.FooterTemplateDirective,x.GanttExpandableDirective,F.GanttDependencyDirective,M.DependencyDragCreateDirective,z.TimelineDayViewComponent,H.TimelineWeekViewComponent,G.TimelineMonthViewComponent,P.SelectableDirective,W.EditDialogComponent,K.CustomMessagesComponent,q.LocalizedMessagesDirective,U.GanttAddTaskComponent,A.DragValidationTooltipComponent,L.TimelineScrollableDirective,Y.DependenciesTableComponent,X.TaskFieldsComponent],ee=function(){function e(){}return e=i.__decorate([a.NgModule({imports:Q.slice(),declarations:J.slice(),exports:J.slice(),entryComponents:[A.DragValidationTooltipComponent],providers:[{provide:m.L10N_PREFIX,useValue:"kendo.gantt"},{provide:v.TOUCH_ENABLED,useValue:g.touchEnabled}]})],e)}();t.GanttModule=ee},function(e,t){e.exports=b},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizedMessagesDirective",(function(){return h})),n.d(t,"Messages",(function(){return u})),n.d(t,"SharedDirectivesModule",(function(){return f})),n.d(t,"LabelDirective",(function(){return p})),n.d(t,"LabelModule",(function(){return w})),n.d(t,"FloatingLabelModule",(function(){return j})),n.d(t,"FloatingLabelComponent",(function(){return _})),n.d(t,"LabelComponent",(function(){return k})),n.d(t,"CustomMessagesComponent",(function(){return b}));var i=n(0),a=n(1),o=n(3),r=n(4),s=n(9),c=n(6),l=n(10),d=n(5),p=function(){function e(e,t,n){var i=this;this.label=e,this.renderer=t,this.zone=n,this.labelClass=!0,this.handleClick=function(){var e=i.getFocusableComponent();e&&(function(e){return e.wrapper&&("KENDO-UPLOAD"===e.wrapper.tagName||"KENDO-FILESELECT"===e.wrapper.tagName)}(e)&&e.fileSelect.nativeElement.click(),e.focus&&e.focus())}}return Object.defineProperty(e.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!Object(o.isDocumentAvailable)())return null;var e,t=this.getFocusableComponent()||{};return function(e){return e instanceof HTMLElement}(t)&&(e="id",!t.hasAttribute(e))&&this.renderer.setAttribute(t,"id","k-"+Object(o.guid)()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return e.clickListener=e.renderer.listen(e.label.nativeElement,"click",e.handleClick)}))},e.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},e.prototype.setAriaLabelledby=function(){if(Object(o.isDocumentAvailable)()){var e=this.getFocusableComponent();if(e&&e.focusableId){var t=function(e){if(!e)return null;for(var t=e;t.parentElement;)t=t.parentElement;return t}(this.label.nativeElement).querySelector("#"+e.focusableId);if(!t)return;var n=this.label.nativeElement,i=n.id||"k-"+Object(o.guid)();n.getAttribute("id")||this.renderer.setAttribute(n,"id",i),this.renderer.setAttribute(t,"aria-labelledby",i)}}},e.prototype.getFocusableComponent=function(){var e=this.for;return e&&void 0!==e.focus?e:null},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.for"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"labelFor",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-label"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"labelClass",void 0),e=Object(i.__decorate)([Object(a.Directive)({selector:"label[for]"}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,a.NgZone])],e)}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"optional",void 0),t}(r.ComponentMessages),h=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:u,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),Object(i.__metadata)("design:paramtypes",[r.LocalizationService])],t)}(u),b=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:u,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),Object(i.__metadata)("design:paramtypes",[r.LocalizationService])],t)}(u),m=[h,b],f=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[m],exports:[m]})],e)}(),g={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate: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"},v=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof d.Observable||e instanceof a.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),y=function(e){return"[object Function]"===Object.prototype.toString.call(e)},_=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.localization=i,this.hostClasses=!0,this.positionChange=new a.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+Object(o.guid)(),this.autoFillStarted=!1,Object(l.validatePackage)(g),this.direction=i.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.validateSetup();var e=new v(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(e),this.setLabelFor(e)},e.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof a.EventEmitter){var i=e[t].subscribe(n);this.subscription?this.subscription.add(i):this.subscription=i}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;y(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=y(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},e.prototype.setAriaLabelledby=function(e){var t=e.focusableId||e.id;if(t){var n=this.elementRef.nativeElement.querySelector("#"+t);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},e.prototype.setLabelFor=function(e){var t=e.focusableId||e.id;if(this.id&&t)this.id=t;else if(this.id)e.focusableId=this.id;else if(t)this.id=t;else{var n="k-"+Object(o.guid)();e.focusableId=n,this.id=n}},e.prototype.handleAutofill=function(e){var t=this;this.subscribe(e,"autoFillStart",(function(){t.autoFillStarted=!0,t.renderer.removeClass(t.elementRef.nativeElement,"k-state-empty")})),this.subscribe(e,"autoFillEnd",(function(){t.autoFillStarted&&(t.autoFillStarted=!1,t.empty&&t.renderer.addClass(t.elementRef.nativeElement,"k-state-empty"))}))},e.prototype.addHandlers=function(e){var t=this,n=function(e){return function(){t.focused=e,t.updateState(),t.empty&&Object(o.hasObservers)(t.positionChange)&&t.positionChange.emit(e?"Out":"In")}};this.subscribe(e,"onFocus",n(!0)),this.subscribe(e,"onBlur",n(!1)),this.handleAutofill(e);var i=function(){return t.updateState()};i(),this.subscribe(e,"onValueChange",i)},e.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(Object(a.isDevMode)())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},Object(i.__decorate)([Object(a.HostBinding)("class.k-floating-label-container"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssStyle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"labelCssClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(a.ContentChild)(o.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(a.ContentChild)(c.NgControl,{static:!1}),Object(i.__metadata)("design:type",c.NgControl)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,a.ChangeDetectorRef,r.LocalizationService])],e)}(),O=[_],j=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:O.slice(),exports:O.concat([f]),imports:[s.CommonModule,f]})],e)}(),k=function(){function e(e,t,n){this.elementRef=e,this.renderer=t,this.localization=n,this.subscriptions=new d.Subscription,Object(l.validatePackage)(g),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return e.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var e=this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select");if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-"+Object(o.guid)()),void(this.control=e);this.control=this.kendoInput}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.textFor=function(e){return this.localization.get(e)},Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"text",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"for",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"optional",void 0),Object(i.__decorate)([Object(a.ViewChild)(p,{static:!0}),Object(i.__metadata)("design:type",p)],e.prototype,"labelDirective",void 0),Object(i.__decorate)([Object(a.ContentChild)(o.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-label",exportAs:"kendoLabel",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,r.LocalizationService])],e)}(),C=[p,k],w=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({imports:[s.CommonModule,f],declarations:C.slice(),exports:C.concat([j,f])})],e)}()},function(e,t,n){"use strict";n.r(t),n.d(t,"CalendarCommonModule",(function(){return En})),n.d(t,"CALENDAR_RANGE_VALIDATORS",(function(){return Vt})),n.d(t,"CALENDAR_VALUE_ACCESSOR",(function(){return Pt})),n.d(t,"KENDO_INPUT_PROVIDER",(function(){return Rt})),n.d(t,"KForOf",(function(){return jn})),n.d(t,"KForOfContext",(function(){return On})),n.d(t,"HeaderComponent",(function(){return Sn})),n.d(t,"HorizontalViewListComponent",(function(){return on})),n.d(t,"CalendarMessages",(function(){return Rn})),n.d(t,"MultiViewCalendarCustomMessagesComponent",(function(){return Pn})),n.d(t,"Messages",(function(){return In})),n.d(t,"RANGE_CALENDAR_RANGE_VALIDATORS",(function(){return dn})),n.d(t,"RANGE_CALENDAR_VALUE_ACCESSOR",(function(){return ln})),n.d(t,"NavigationComponent",(function(){return pt})),n.d(t,"BusViewService",(function(){return Ee})),n.d(t,"CenturyViewService",(function(){return ue})),n.d(t,"DecadeViewService",(function(){return me})),n.d(t,"DisabledDatesService",(function(){return ft})),n.d(t,"CalendarDOMService",(function(){return Ye})),n.d(t,"MonthViewService",(function(){return ve})),n.d(t,"NavigationService",(function(){return bt})),n.d(t,"ScrollSyncService",(function(){return vt})),n.d(t,"SelectionService",(function(){return gt})),n.d(t,"WeekNamesService",(function(){return an})),n.d(t,"YearViewService",(function(){return Oe})),n.d(t,"TemplatesModule",(function(){return Dn})),n.d(t,"CellTemplateDirective",(function(){return yt})),n.d(t,"CenturyCellTemplateDirective",(function(){return kt})),n.d(t,"DecadeCellTemplateDirective",(function(){return jt})),n.d(t,"HeaderTitleTemplateDirective",(function(){return wt})),n.d(t,"MonthCellTemplateDirective",(function(){return _t})),n.d(t,"NavigationItemTemplateDirective",(function(){return St})),n.d(t,"WeekNumberCellTemplateDirective",(function(){return Ct})),n.d(t,"YearCellTemplateDirective",(function(){return Ot})),n.d(t,"ViewListComponent",(function(){return ut})),n.d(t,"ViewComponent",(function(){return Tn})),n.d(t,"PickerService",(function(){return Tt})),n.d(t,"DateInputMessages",(function(){return zn})),n.d(t,"DatePickerMessages",(function(){return Kn})),n.d(t,"DateRangeInput",(function(){return gn})),n.d(t,"DateRangePopupTemplateDirective",(function(){return un})),n.d(t,"DateTimePickerCustomMessagesComponent",(function(){return na})),n.d(t,"LocalizedMessagesDirective",(function(){return ia})),n.d(t,"Messages$1",(function(){return ta})),n.d(t,"TimePickerMessages",(function(){return Ki})),n.d(t,"TimePickerCustomMessagesComponent",(function(){return Ui})),n.d(t,"TimeSelectorCustomMessagesComponent",(function(){return $i})),n.d(t,"DayPeriodService",(function(){return Pi})),n.d(t,"TimePickerDOMService",(function(){return ii})),n.d(t,"HoursService",(function(){return li})),n.d(t,"MillisecondsService",(function(){return Ti})),n.d(t,"MinutesService",(function(){return mi})),n.d(t,"SecondsService",(function(){return Oi})),n.d(t,"TimeListComponent",(function(){return Fi})),n.d(t,"TimeSelectorComponent",(function(){return Wi})),n.d(t,"TOUCH_ENABLED",(function(){return Kt})),n.d(t,"ScrollerService",(function(){return tt})),n.d(t,"DEFAULT_SCROLLER_FACTORY",(function(){return it})),n.d(t,"SCROLLER_FACTORY_TOKEN",(function(){return nt})),n.d(t,"VirtualizationComponent",(function(){return ct})),n.d(t,"VirtualizationModule",(function(){return An})),n.d(t,"CalendarComponent",(function(){return Bt})),n.d(t,"DateInputComponent",(function(){return Gt})),n.d(t,"DatePickerComponent",(function(){return Ut})),n.d(t,"TimePickerComponent",(function(){return en})),n.d(t,"DateTimePickerComponent",(function(){return nn})),n.d(t,"MultiViewCalendarComponent",(function(){return pn})),n.d(t,"DateRangeComponent",(function(){return fn})),n.d(t,"DateRangePopupComponent",(function(){return mn})),n.d(t,"DateRangeEndInputDirective",(function(){return vn})),n.d(t,"DateRangeStartInputDirective",(function(){return yn})),n.d(t,"DateRangeSelectionDirective",(function(){return _n})),n.d(t,"CalendarModule",(function(){return Ln})),n.d(t,"CalendarsModule",(function(){return Nn})),n.d(t,"DateInputModule",(function(){return Wn})),n.d(t,"DatePickerModule",(function(){return $n})),n.d(t,"DateInputsModule",(function(){return ca})),n.d(t,"TimePickerModule",(function(){return ea})),n.d(t,"DateTimePickerModule",(function(){return ra})),n.d(t,"MultiViewCalendarModule",(function(){return Vn})),n.d(t,"DateRangeModule",(function(){return Qn})),n.d(t,"DateRangeService",(function(){return bn})),n.d(t,"CalendarCustomMessagesComponent",(function(){return Fn})),n.d(t,"DateInputCustomMessagesComponent",(function(){return Gn})),n.d(t,"DatePickerCustomMessagesComponent",(function(){return Un})),n.d(t,"PreventableEvent",(function(){return Wt})),n.d(t,"CalendarLocalizedMessagesDirective",(function(){return Bn})),n.d(t,"MultiViewCalendarLocalizedMessagesDirective",(function(){return xn})),n.d(t,"DateInputLocalizedMessagesDirective",(function(){return Hn})),n.d(t,"DatePickerLocalizedMessagesDirective",(function(){return qn})),n.d(t,"TimePickerLocalizedMessagesDirective",(function(){return qi})),n.d(t,"TimeSelectorLocalizedMessagesDirective",(function(){return Zi}));var i,a=n(0),o=n(1),r=n(6),s=n(4),c=n(2),l=n(3),d=n(10),p=n(8),u=n(5),h=n(7),b=n(13),m=n(9),f=n(14),g={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635945725,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(i||(i={}));var v,y,_,O,j,k,C={start:null,end:null},w=new Date(1980,0,1),S=new Date(1900,0,1),T=new Date(2099,11,31),E=new Date(1980,0,1),D=new Date(1980,0,1,23,59,59),I=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},x=function(e){return e.preventDefault()},P=function(e){return e.relatedTarget||document.activeElement},V=function(e){return null!=e},R=function(e){return null!=e},B=function(e){return function(t,n){var i=Object(c.cloneDate)(t);return i[e](n),i}},F=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n},M=function(e,t,n){return{candidateValue:F(w,e),maxValue:Object(c.addDays)(F(w,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:F(w,t)}},A=B("setFullYear"),L=B("setHours"),N=B("setMinutes"),z=B("setSeconds"),H=B("setMilliseconds"),G=function(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i},W=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},K=function(e,t,n){if(!e||!t||!n)return!0;var i=M(e,t,n),a=i.candidateValue,o=i.minValue,r=i.maxValue;return o<=a&&a<=r},q=function(e,t){return!R(e)||!R(t)||e<=t},U=function(e,t,n){return e?t&&e<t?Object(c.cloneDate)(t):n&&e>n?Object(c.cloneDate)(n):e:e},Z=function(){return new Date},$=function(){return Object(c.getDate)(new Date)},Y=function(e){},X=function(){return"undefined"!=typeof window},Q=function(e,t){return e.slice(t).concat(e.slice(0,t))},J=function(e){return function(t,n,i){void 0===n&&(n=""),void 0===i&&(i={});var a=document.createElement(e);return a.className=n,Object.keys(i).map((function(e){return a.style[e]=i[e]})),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach((function(e){return e&&a.appendChild(e)})),a}},ee=function(e,t){return void 0!==e[t]},te=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},ne=function(e){return void 0===e&&(e=[]),e&&e[e.length-1]},ie=function(e,t){var n=t||C,i=n.start,a=n.end;return!(!i||!a)&&(i<e&&e<a)},ae=function(e,t){return e||t},oe=function(e){return{start:e,end:e}},re=function(e,t){var n=e||C,i=n.start,a=n.end,o=t||C,r=o.start,s=o.end;return Object(c.isEqual)(i,r)&&Object(c.isEqual)(a,s)},se=function(e,t){return t=t||[],(e=e||[]).length===t.length&&e.every((function(e,n){return Object(c.isEqual)(e,t[n])}))},ce=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},le=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},de=[[]],pe=((v={})[i.Left]=function(e){return Object(c.addDecades)(e,-1)},v[i.Up]=function(e){return Object(c.addDecades)(e,-5)},v[i.Right]=function(e){return Object(c.addDecades)(e,1)},v[i.Down]=function(e){return Object(c.addDecades)(e,5)},v[i.PrevView]=function(e){return Object(c.addCenturies)(e,-1)},v[i.NextView]=function(e){return Object(c.addCenturies)(e,1)},v[i.FirstInView]=function(e){return Object(c.firstDecadeOfCentury)(e)},v[i.LastInView]=function(e){return Object(c.lastDecadeOfCentury)(e)},v),ue=function(){function e(){this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addDecades)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addCenturies)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.addCenturies)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate;if(!p)return de;var u=G(0,4),h=Object(c.firstDecadeOfCentury)(p),b=Object(c.lastDecadeOfCentury)(p),m=$();return G(0,3).map((function(e){var l=Object(c.addDecades)(h,4*e);return u.map((function(e){var p=t.normalize(Object(c.addDecades)(l,e),r,o),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,o)||u)return null;var f=t.isEqual(p,d.start),g=t.isEqual(p,d.end),v=!f&&!g&&ie(p,d);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&t.isEqual(p,b),isRangeSplitStart:v&&t.isEqual(p,h),isToday:t.isEqual(p,m),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(c.firstYearOfDecade)(e).getFullYear()===Object(c.firstYearOfDecade)(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=Object(c.firstYearOfDecade)(e).getFullYear(),a=!t||Object(c.firstYearOfDecade)(t).getFullYear()<=i,o=!n||i<=Object(c.firstYearOfDecade)(n).getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=Object(c.firstYearOfDecade)(Object(c.firstDecadeOfCentury)(e));return Object(c.createDate)(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastDecadeOfCentury)(e),n=Object(c.lastYearOfDecade)(t),i=Object(c.lastMonthOfYear)(n);return Object(c.lastDayOfMonth)(i)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=pe[t];return n?n(e):e},e.prototype.cellTitle=function(e){return Object(c.firstYearOfDecade)(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(c.firstDecadeOfCentury)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(c.firstDecadeOfCentury)(e).getFullYear()+" - "+Object(c.lastDecadeOfCentury)(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInCenturies)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInCenturies)(e,t)+1},e.prototype.value=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return Object(c.addCenturies)(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),he=[[]],be=((y={})[i.Left]=function(e){return Object(c.addYears)(e,-1)},y[i.Up]=function(e){return Object(c.addYears)(e,-5)},y[i.Right]=function(e){return Object(c.addYears)(e,1)},y[i.Down]=function(e){return Object(c.addYears)(e,5)},y[i.PrevView]=function(e){return Object(c.addDecades)(e,-1)},y[i.NextView]=function(e){return Object(c.addDecades)(e,1)},y[i.FirstInView]=function(e){return Object(c.firstYearOfDecade)(e)},y[i.LastInView]=function(e){return Object(c.lastYearOfDecade)(e)},y),me=function(){function e(){this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addYears)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addDecades)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.addDecades)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate;if(!p)return he;var u=G(0,4),h=Object(c.firstYearOfDecade)(p),b=Object(c.lastYearOfDecade)(p),m=$();return G(0,3).map((function(e){var l=Object(c.addYears)(h,4*e);return u.map((function(e){var p=t.normalize(Object(c.addYears)(l,e),r,o),u=p.getFullYear()>b.getFullYear();if(!t.isInRange(p,r,o)||u)return null;var f=t.isEqual(p,d.start),g=t.isEqual(p,d.end),v=!f&&!g&&ie(p,d);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:v,isRangeEnd:g,isRangeSplitEnd:v&&t.isEqual(p,b),isRangeSplitStart:v&&t.isEqual(p,h),isToday:t.isEqual(p,m),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),a=!t||t.getFullYear()<=i,o=!n||i<=n.getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=Object(c.firstYearOfDecade)(e);return Object(c.createDate)(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastYearOfDecade)(e),n=Object(c.lastMonthOfYear)(t);return Object(c.lastDayOfMonth)(n)},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.move=function(e,t){var n=be[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear().toString():""},e.prototype.title=function(e){return e?Object(c.firstYearOfDecade)(e).getFullYear()+" - "+Object(c.lastYearOfDecade)(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInDecades)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInDecades)(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return Object(c.addDecades)(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),fe=[[]],ge=((_={})[i.Left]=function(e){return Object(c.addDays)(e,-1)},_[i.Up]=function(e){return Object(c.addWeeks)(e,-1)},_[i.Right]=function(e){return Object(c.addDays)(e,1)},_[i.Down]=function(e){return Object(c.addWeeks)(e,1)},_[i.PrevView]=function(e){return Object(c.addMonths)(e,-1)},_[i.NextView]=function(e){return Object(c.addMonths)(e,1)},_[i.FirstInView]=function(e){return Object(c.firstDayOfMonth)(e)},_[i.LastInView]=function(e){return Object(c.lastDayOfMonth)(e)},_),ve=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addDays)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addMonths)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.addMonths)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate,u=e.isDateDisabled,h=void 0===u?function(){return!1}:u;if(!p)return fe;var b=Object(c.firstDayOfMonth)(p),m=Object(c.getDate)(b),f=Object(c.lastDayOfMonth)(p),g=Object(c.getDate)(f),v=Object(c.dayOfWeek)(b,this._intlService.firstDay(),-1),y=G(0,7),_=$();return G(0,6).map((function(e){var l=Object(c.addDays)(v,7*e);return y.map((function(e){var p=t.normalize(Object(c.addDays)(l,e),r,o),u=Object(c.getDate)(p),v=u<m||u>g;if(p<r||p>o)return null;var y=t.isEqual(p,d.start),O=t.isEqual(p,d.end),j=!y&&!O&&ie(p,d);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:t.isWeekend(p),isRangeStart:y,isRangeMid:j,isRangeEnd:O,isRangeSplitStart:j&&t.isEqual(p,b),isRangeSplitEnd:j&&t.isEqual(p,f),isToday:t.isEqual(p,_),title:t.cellTitle(p),value:p,isDisabled:h(p),isOtherMonth:v}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&Object(c.getDate)(e).getTime()===Object(c.getDate)(t).getTime()},e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(Object(c.addMonths)(t[t.length-1],1));return n<=e&&e<i},e.prototype.isInRange=function(e,t,n){var i=Object(c.getDate)(e),a=!t||Object(c.getDate)(t)<=i,o=!n||i<=Object(c.getDate)(n);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?Object(c.createDate)(e.getFullYear(),e.getMonth(),1):e},e.prototype.lastDayOfPeriod=function(e){return Object(c.lastDayOfMonth)(e)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=ge[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return void 0===e&&(e={}),7+(e.prependCell?1:0)},e.prototype.skip=function(e,t){return Object(c.durationInMonths)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInMonths)(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return Object(c.addMonths)(e,-1*a)}return e},e.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,i=t.end,a=e.getDay();return i<n?a<=i||n<=a:n<=a&&a<=i},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),ye=[[]],_e=((O={})[i.Left]=function(e){return Object(c.addMonths)(e,-1)},O[i.Up]=function(e){return Object(c.addMonths)(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},O[i.Right]=function(e){return Object(c.addMonths)(e,1)},O[i.Down]=function(e){return Object(c.addMonths)(e,(t=e.getMonth())<7?5:t<10?7:2);var t},O[i.PrevView]=function(e){return Object(c.addYears)(e,-1)},O[i.NextView]=function(e){return Object(c.addYears)(e,1)},O[i.FirstInView]=function(e){return Object(c.firstMonthOfYear)(e)},O[i.LastInView]=function(e){return Object(c.lastMonthOfYear)(e)},O),Oe=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!V(e)||!V(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=Object(c.addMonths)(i,1);return n}}return e.prototype.addToDate=function(e,t){return Object(c.addYears)(e,t)},e.prototype.datesList=function(e,t){return G(0,t).map((function(t){return Object(c.addYears)(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,s=e.selectedDates,l=e.selectionRange,d=void 0===l?C:l,p=e.viewDate;if(!p)return ye;var u=this.abbrMonthNames(),h=Object(c.firstMonthOfYear)(p),b=Object(c.lastMonthOfYear)(p),m=h.getFullYear(),f=G(0,4),g=$();return G(0,3).map((function(e){var l=Object(c.addMonths)(h,4*e);return f.map((function(e){var p=t.normalize(Object(c.addMonths)(l,e),r,o),f=m<p.getFullYear();if(!t.isInRange(p,r,o)||f)return null;var v=t.isEqual(p,d.start),y=t.isEqual(p,d.end),_=!v&&!y&&ie(p,d);return{formattedValue:u[p.getMonth()],id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:a&&s.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:v,isRangeMid:_,isRangeEnd:y,isRangeSplitEnd:_&&t.isEqual(p,b),isRangeSplitStart:_&&t.isEqual(p,h),isToday:t.isEqual(p,g),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=Object(c.createDate)(e.getFullYear(),e.getMonth(),1),a=!t||Object(c.createDate)(t.getFullYear(),t.getMonth(),1)<=i,o=!n||i<=Object(c.createDate)(n.getFullYear(),n.getMonth(),1);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?Object(c.createDate)(e.getFullYear(),0,1):e},e.prototype.lastDayOfPeriod=function(e){var t=Object(c.lastMonthOfYear)(e);return Object(c.lastDayOfMonth)(t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=_e[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return Object(c.durationInYears)(t,e)},e.prototype.total=function(e,t){return Object(c.durationInYears)(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return Object(c.addYears)(e,-1*a)}return e},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?Object(c.cloneDate)(t):e>n&&this.isEqual(e,n)?Object(c.cloneDate)(n):e},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}();!function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(j||(j={}));var je,ke,Ce,we,Se,Te=((k={})[j.month]=ve,k[j.year]=Oe,k[j.decade]=me,k[j.century]=ue,k),Ee=function(){function e(e){this.injector=e,this.viewChanged=new o.EventEmitter,this.bottom=j.month,this.top=j.century}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e){var t=Te[e];return t?this.injector.get(t):null},e.prototype.moveDown=function(e){this.move(e,-1)},e.prototype.moveUp=function(e){this.move(e,1)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t){var n=this.clamp(function(e,t){var n=j[j[e+t]];return void 0!==n?n:e}(e,t));n!==e&&this.viewChanged.emit({view:n})},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[o.Injector])],e)}(),De=J("div"),Ie=J("ul"),xe=J("li"),Pe=J("td"),Ve=J("th"),Re=J("tr"),Be=J("tbody"),Fe=J("thead"),Me=J("table"),Ae=function(e,t){return new Array(e).fill("1").map(t)},Le=function(e){return De(e,"k-flex k-content k-calendar-content k-scrollable")},Ne=function(){return l.isDocumentAvailable?(je||(je=De([Le([Ie([xe("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),je):null},ze=function(e,t,n){var i,a=e.cells,o=e.rows;return function(){return l.isDocumentAvailable?(i||(i=function(e,t,n){return De([De('\n <span class="k-button k-flat k-title k-calendar-title">March 2017</span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <span class="k-today k-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack"),n?Me([Fe([Re([Ve("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Le([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),Me([Be([Re([Ve("1","k-calendar-th")],"k-calendar-tr")].concat(Ae(e,(function(){return Re(Ae(t,(function(e){return Pe('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(o,a),t,n)),i):null}},He=function(e){return e.querySelector(".k-scrollable")},Ge=function(e){return He(e).classList.add("k-scrollable-horizontal"),e},We=ze({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Ke=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),qe=ze({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Ue=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},Ze=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},$e=function(e){return e.querySelector("tbody")},Ye=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;Object(l.isDocumentAvailable)()&&(this.hostContainer=e,this.batch(We(),(function(e){var n=$e(e);t.calendarHeight=Ue(e),t.monthViewHeight=Ue(n),t.headerHeight=Ue(n.children[0]),t.scrollableContentHeight=Ue(He(e))})),this.batch(Ge(We()),(function(e){var n=$e(e);t.calendarWidth=Ze(e),t.monthViewWidth=Ze(n),t.scrollableContentWidth=Ze(He(e))})),this.batch(Ke(),(function(e){t.yearViewHeight=Ue($e(e)),t.scrollableYearContentHeight=Ue(He(e))})),this.batch(Ge(Ke()),(function(e){t.yearViewWidth=Ze($e(e))})),this.batch(qe(),(function(e){t.decadeViewHeight=Ue($e(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(Ge(qe()),(function(e){t.decadeViewWidth=Ze($e(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(Ne(),(function(e){t.navigationItemHeight=Ue(e.querySelector("li"))})))},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case j.month:return this["month"+n];case j.year:return this["year"+n];case j.decade:return this["decade"+n];case j.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){if(V(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),Xe=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){if(!(e<0)){var t=this.offsets.reduce((function(t,n,i){return void 0!==t?t:n===e?i:n>e?i-1:void 0}),void 0);return void 0===t?this.total-1:t}},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}(),Qe=function(e){return Math.max(e,0)},Je=function(e){this.offset=e},et=function(e){this.skip=e},tt=function(){function e(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,i,a,o,r){var s=this;void 0===a&&(a=0),void 0===o&&(o=0),void 0===r&&(r="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=i,this.lastScroll=0,this.topOffset=a,this.bottomOffset=o,this.direction=r;var c=new u.ReplaySubject(2),l=this.rowsForHeight(a),d=Qe(t-l);return c.next(new Je(this.rowOffset(d))),l&&c.next(new et(d)),this.subscription=new u.Observable((function(e){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe((function(t){return s.onScroll(t,e)}))})).subscribe((function(e){return c.next(e)})),c},e.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},e.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,o=e.offsetWidth,r="vertical"===this.direction?i:n,s="vertical"===this.direction?a:o;if(this.lastScroll!==r){var c=this.lastScroll>=r;this.lastScroll=r;var l=this.rowHeightService.index(Qe(r-this.topOffset)),d=this.rowHeightService.index(Qe(r+s-this.bottomOffset));if(!c&&d>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=l,t.next(new Je(this.rowOffset(l))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new et(this.firstLoaded))),c&&l<=this.firstLoaded){var p=Math.floor(.3*this.take);this.firstLoaded=Qe(l-p),t.next(new Je(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new et(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},e}(),nt=new o.InjectionToken("dateinputs-scroll-service-factory");function it(e){return new tt(e)}!function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(Se||(Se={}));var at,ot=((ke={})[Se.Forward]=function(e){return function(t){return t+e}},ke[Se.Backward]=function(e){return function(t){return t-e}},ke),rt=((Ce={})[Se.Forward]=function(e){return function(t){return Math.min(t,e)}},Ce[Se.Backward]=function(e){return function(t){return Math.max(t,e)}},Ce),st=((we={})[Se.Forward]=function(e){return function(t){return t<e}},we[Se.Backward]=function(e){return function(t){return t>e}},we),ct=function(){function e(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.scrollChange=new o.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new u.Subject,this.scroller=e(this.dispatcher)}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},e.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.containerScrollSubscription=e.scroll$().pipe(Object(h.map)((function(e){return e.target}))).subscribe((function(t){e.dispatcher.next(t),e.emitActiveIndex()}))}))},e.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},e.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},e.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},e.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},e.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},e.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),a=i+this.rowHeightService.height(e);return i>=t&&a<=n},e.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},e.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},e.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular((function(){t.resolvedPromise.then((function(){t.scrollTo(t.rowHeightService.offset(e))}))}))},e.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},e.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n=this.rowHeightService.offset(e),i=this.getContainerScrollDirection(n),a=this.scrollRange(n,i),o=a.start,r=a.end;if(o!==r){var s=this.scrollStep(o,r),c=ot[i](s),l=rt[i](r),d=st[i](c(r));this.zone.runOutsideAngular((function(){t.animationSubscription=Object(u.combineLatest)(Object(u.of)(o),Object(u.interval)(0,u.animationFrameScheduler)).pipe(Object(h.map)((function(e){return e[0]})),Object(h.scan)(c),Object(h.takeWhile)(d),Object(h.map)(l)).subscribe((function(e){return t.scrollTo(e)}))}))}},e.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i,a,o,r=this.containerMaxScroll(),s=t===Se.Backward?1:-1,c=(i=n,a=e,o=this.maxScrollDifference,Math.min(Math.abs(a-i),o)),l=Math.min(e,r);return{start:Math.min(Math.max(l+s*c,0),r),end:l}},e.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},e.prototype.scroll$=function(){return Object(l.isDocumentAvailable)()?Object(u.fromEvent)(this.container.nativeElement,"scroll"):u.EMPTY},e.prototype.initServices=function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe((function(t){t instanceof et?e.pageChange.emit(t):e.scrollChange.emit(t)}))},e.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Xe(this.total,e,0)},e.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},e.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},e.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?Se.Backward:Se.Forward},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"itemHeight",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"itemWidth",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"topOffset",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"bottomOffset",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"maxScrollDifference",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"scrollDuration",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"skip",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"take",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"total",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeIndexChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"scrollChange",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-flex"),Object(o.HostBinding)("class.k-content"),Object(o.HostBinding)("class.k-calendar-content"),Object(o.HostBinding)("class.k-scrollable"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-scrollable-horizontal"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=Object(a.__decorate)([Object(o.Component)({providers:[{provide:nt,useValue:it}],selector:"kendo-virtualization",template:'\n <ng-content></ng-content>\n <div\n class="k-scrollable-placeholder"\n [class.k-scrollable-horizontal-placeholder]="direction === \'horizontal\'"\n [ngStyle]="totalVertexLength"\n ></div>\n '}),Object(a.__param)(0,Object(o.Inject)(nt)),Object(a.__metadata)("design:paramtypes",[Object,o.ElementRef,o.Renderer2,o.NgZone])],e)}(),lt=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},dt=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},pt=function(){function e(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(S),this.max=new Date(T),this.focusedDate=new Date,this.valueChange=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}return Object.defineProperty(e.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=j[this.activeView];var t=U(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n;this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),(e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.handleDateChange=function(e){var t=lt(e.target,(function(e){return e.hasAttribute("data-date-index")}),this.list.nativeElement);if(t){var n=parseInt(t.getAttribute("data-date-index"),10),i=this.dates[n];this.valueChange.emit(Object(c.cloneDate)(i))}},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.intlChange=function(){this.activeView===j.month&&this.cdr.markForCheck()},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"templateRef",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(o.ViewChild)(ct,{static:!1}),Object(a.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(a.__decorate)([Object(o.ViewChild)("list",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"list",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-navigation"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(a.__metadata)("design:paramtypes",[Ee,Ye,p.IntlService,o.ChangeDetectorRef,o.Renderer2])],e)}(),ut=function(){function e(e,t,n,i,a){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=a,this.isActive=!0,this.min=new Date(S),this.max=new Date(T),this.selectedDates=[],this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this.todayButtonClick=new o.EventEmitter,this.pageChange=new o.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===j.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===j.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===j.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===j.century},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=ee(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var t,n,i=ee(e,"activeView"),a=this.focusedDate,o=U(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),r=this.service.total(this.min,this.max),s=this.total&&this.total!==r||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(o,this.min),this.total=r,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),s&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),t=this.activeDate,n=a,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=Object(c.cloneDate)(a));var l=ee(e,"focusedDate")||i;(s||l||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.setActiveDate=function(e){var t=this.service.addToDate(this.min,e);this.activeDate=t,this.activeDateChange.emit(t),this.cdr.detectChanges()},e.prototype.isMonthView=function(){return this.activeView===j.month},e.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},e.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},e.prototype.getScrollableHeight=function(){return this.activeView===j.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.getWeekNames=function(){var e=Q(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},e.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"pageChange",void 0),Object(a.__decorate)([Object(o.ViewChild)(ct,{static:!1}),Object(a.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(a.__decorate)([Object(o.ViewChild)("list",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"list",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-vstack"),Object(o.HostBinding)("class.k-calendar-view"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-monthview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-yearview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-decadeview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-centuryview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table class="k-calendar-table" #list>\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}),Object(a.__metadata)("design:paramtypes",[Ee,o.ChangeDetectorRef,p.IntlService,Ye,o.Renderer2])],e)}(),ht={33:i.PrevView,34:i.NextView,35:i.LastInView,36:i.FirstInView,37:i.Left,38:i.Up,39:i.Right,40:i.Down,"meta+38":i.UpperView,"meta+40":i.LowerView},bt=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return ht[t]},e.prototype.move=function(e,t,n){var a=this.bus.service(n);return a?t===i.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===i.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):a.move(e,t):e},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[Ee])],e)}(),mt=function(){return!1},ft=function(){function e(){this.changes=new u.Subject,this.isDateDisabled=mt}return e.prototype.initialize=function(e){if("function"==typeof e)this.isDateDisabled=function(t){return e(Object(c.getDate)(t))};else if(i=e,Array.isArray(i)&&i.length>0&&i.every((function(e){return"number"==typeof e}))){var t=new Set(e);this.isDateDisabled=function(e){return t.has(e.getDay())}}else if(function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return e instanceof Date}))}(e)){var n=new Set(e.map((function(e){return Object(c.getDate)(e).getTime()})));this.isDateDisabled=function(e){return n.has(Object(c.getDate)(e).getTime())}}else this.isDateDisabled=mt,this.notifyInvalidInput(e);var i;this.notifyServiceChange()},e.prototype.notifyInvalidInput=function(e){if(V(e)&&Object(o.isDevMode)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},e.prototype.notifyServiceChange=function(){this.changes.next()},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),gt=function(){function e(e){this.bus=e}return e.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,r=e.selectedDates.slice();if("multiple"===i)if(n.ctrlKey||n.metaKey)this.isDateSelected(r,t)?r=r.filter((function(e){return!Object(c.isEqual)(e,t)})):r.push(t),o=t;else if(n.shiftKey){var s=[o||t,t].filter((function(e){return V(e)})).sort((function(e,t){return e.getTime()-t.getTime()})),l=s[0],d=s[1];r=this.bus.service(a).dateRange(l,d),o=t>r[0]?r[0]:ne(r)}else r=[t],o=t;else r=[t],o=t;return{selectedDates:r,rangePivot:o}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return Object(c.isEqual)(e,t)}))},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[Ee])],e)}(),vt=function(){function e(e,t){this.dom=e,this.zone=t}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t){var n=this;this.unsubscribe(),e&&t&&(this.navigator=e,this.view=t,this.zone.runOutsideAngular((function(){var i,a;n.navSubscription=e.scroll$().subscribe((function(e){a?a=!1:(i=!0,n.scrollSiblingOf(e.target))})),n.viewSubscription=t.scroll$().subscribe((function(e){i?i=!1:(a=!0,n.scrollSiblingOf(e.target))}))})))},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e.prototype.destroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[Ye,o.NgZone])],e)}(),yt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),_t=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarMonthCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Ot=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarYearCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),jt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarDecadeCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),kt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarCenturyCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Ct=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarWeekNumberCellTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),wt=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarHeaderTitleTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),St=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoCalendarNavigationItemTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Tt=function(){this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.sameDateSelected=new o.EventEmitter,this.dateCompletenessChange=new o.EventEmitter},Et=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}},Dt=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}},It="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",xt=function(e){return e?e.virtualization:null},Pt={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return Bt}))},Vt={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return Bt}))},Rt={provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return Bt}))},Bt=function(){function e(e,t,n,i,a,r,s,c,p,u,h,b,m){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=r,this.ngZone=s,this.injector=c,this.scrollSyncService=p,this.disabledDatesService=u,this.localization=h,this.selectionService=b,this.pickerService=m,this.id=Object(l.guid)(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new o.EventEmitter,this.navigate=new o.EventEmitter,this.activeViewDateChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.isActive=!1,this.cellUID=Object(l.guid)(),this.selectedDates=[],this._min=new Date(S),this._max=new Date(T),this._focusedDate=$(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,Object(d.validatePackage)(g),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!Object(c.isEqual)(this._focusedDate,e)){var t=this.bus.service(this.activeViewEnum),n=t.lastDayOfPeriod(this.activeViewDate);t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)}this._focusedDate=e||$(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(T)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return V(e)})).map((function(e){return Object(c.cloneDate)(e)})):Object(c.cloneDate)(e);var t=[].concat(e).filter((function(e){return V(e)})).map((function(e){return Object(c.cloneDate)(e)}));if(!se(t,this.selectedDates)){var n=ne(t);this.rangePivot=Object(c.cloneDate)(n),this.focusedDate=Object(c.cloneDate)(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-"+this.type),this.renderer.addClass(this.element.nativeElement,"k-calendar-"+e),this._type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=j[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return j[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return j[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.viewChangeSubscription=this.bus.viewChanged.subscribe((function(t){var n=t.view;return e.handleActiveViewChange(j[n])})),this.control=this.injector.get(r.NgControl,null),this.element&&this.ngZone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),te(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=U(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.onValidatorChange())},e.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},e.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(xt(this.navigationView),xt(this.monthView)))},e.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},e.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.containsElement=function(e){var t=this;return Boolean(dt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.handleNavigation=function(e){if(!this.disabled){var t=e?new Date(Object(c.cloneDate)(e).setDate(1)):this.focusedDate;this.focusedDate=U(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;o.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=Object(u.from)(this.resolvedPromise).subscribe((function(){e.detectChanges()})))},e.prototype.handleMultiViewCalendarValueChange=function(e,t){var n=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:n,focusedDate:t})},e.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),a=n.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!se(a,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run((function(){t.selectedDates=a.map((function(e){return Object(c.cloneDate)(e)})),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()})):this.emitSameDate())},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case j.month:return this.monthCellTemplate||this.cellTemplate;case j.year:return this.yearCellTemplate;case j.decade:return this.decadeCellTemplate;case j.century:return this.centuryCellTemplate;default:return null}},e.prototype.emitNavigate=function(e){var t=j[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitEvent=function(e,t){Object(l.hasObservers)(e)&&this.ngZone.run((function(){e.emit(t)}))},e.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},e.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:ne(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},e.prototype.verifyChanges=function(){if(Object(o.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+It+" for possible resolution.");if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every((function(e){return e instanceof Date})))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check "+It+" for possible resolution.")}},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",x),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},e.prototype.handleBlur=function(e){var t=this;this.isActive=!1,!this.pickerService&&I(this.control)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):(this.emitBlur(e),this.detectChanges())},e.prototype.handleFocus=function(){this.isActive=!0,o.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Object(c.cloneDate)(this.focusedDate),this.detectChanges()),this.focus())},e.prototype.handleKeydown=function(e){var t=-1!==[l.Keys.ArrowUp,l.Keys.ArrowRight,l.Keys.ArrowDown,l.Keys.ArrowLeft].indexOf(e.keyCode);if(!(V(this.pickerService)&&t&&e.altKey)){var n=U(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(c.isEqual)(this.focusedDate,n)||(this.focusedDate=n,this.detectChanges(),e.preventDefault()),e.keyCode===l.Keys.Enter&&this.performSelection(this.focusedDate,e)}},e.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},e.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},e.prototype.setAriaActivedescendant=function(){if(V(this.element)){var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(c.cloneDate)(ne(e)):e.map((function(e){return Object(c.cloneDate)(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"type",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(o.HostBinding)("class.k-week-number"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"navigate",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewDateChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!0}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("cellTemplate"),Object(a.__metadata)("design:type",yt),Object(a.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!0}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("monthCellTemplate"),Object(a.__metadata)("design:type",_t),Object(a.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!0}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("yearCellTemplate"),Object(a.__metadata)("design:type",Ot),Object(a.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!0}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("decadeCellTemplate"),Object(a.__metadata)("design:type",jt),Object(a.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!0}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("centuryCellTemplate"),Object(a.__metadata)("design:type",kt),Object(a.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!0}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.Input)("weekNumberTemplate"),Object(a.__metadata)("design:type",Ct),Object(a.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!0}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.Input)("headerTitleTemplate"),Object(a.__metadata)("design:type",wt),Object(a.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(St,{static:!0}),Object(a.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(a.__decorate)([Object(o.Input)("navigationItemTemplate"),Object(a.__metadata)("design:type",St),Object(a.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(a.__decorate)([Object(o.ViewChild)(pt,{static:!1}),Object(a.__metadata)("design:type",pt)],e.prototype,"navigationView",void 0),Object(a.__decorate)([Object(o.ViewChild)(ut,{static:!1}),Object(a.__metadata)("design:type",ut)],e.prototype,"monthView",void 0),Object(a.__decorate)([Object(o.HostBinding)("attr.id"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(a.__decorate)([Object(o.HostBinding)("attr.role"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(a.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(a.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[Ee,Pt,Vt,Rt,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.calendar"},bt,vt,gt],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplate?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplate?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="navigate.emit($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}),Object(a.__param)(12,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[Ee,Ye,o.ElementRef,bt,o.Renderer2,o.ChangeDetectorRef,o.NgZone,o.Injector,vt,ft,s.LocalizationService,gt,Tt])],e)}(),Ft=function(){return function(e,t){return!V(e.value)&&t?{incompleteDate:!0}:null}};!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None"}(at||(at={}));var Mt=/year|month|<day>/,At=/hour|minute|second|millisecond/,Lt=/d|M|H|h|m|s/,Nt=function(e){return e.replace(/^0*/,"")},zt=function(){this.symbols=""},Ht=function(){function e(e,t,n,i,a){if(void 0===a&&(a=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Object(c.getDate)(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},Object(d.validatePackage)(g),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=Object(c.cloneDate)(i);else{this.value=Object(c.getDate)(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}return e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some((function(e){return"yy"===e.pattern}))},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return Object(c.cloneDate)(this.value)},e.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=Object(c.cloneDate)(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=Object(c.addMonths)(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.shouldNormalizeCentury()&&(n=this.normalizeCentury(n)),n.getFullYear()>0&&(this.setExisting(e,!0),this.value=n)},e.prototype.parsePart=function(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};for(var i=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,r=!1,s="",l="",d="",p=0;p<i.length;p++)o[p]===e?(l+=this.getExisting(e)?i[p]:"0",r=!0):r?d+=i[p]:s+=i[p];var u=l.length-3,h=null,b=this.matchMonth(t),m=this.matchDayPeriod(t,e),f="0"===t,g=(this.leadingZero||{})[e]||0;f?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(p=Math.max(0,u);p<=l.length;p++){var v=n?t:l.substring(p)+t;if("S"===e&&n)v=Array(o.match(/S+(\1)/)[0].length).join("0")+v;var y=parseInt(v,10);if(!(h=this.intl.parseDate(s+v+d,this.format))&&!isNaN(y)&&!isNaN(parseInt(t,10))){if("M"===e&&!b){var _=y-1;_>-1&&_<12&&((h=Object(c.cloneDate)(this.value)).setMonth(_),h.getMonth()!==_&&(h=Object(c.lastDayOfMonth)(Object(c.addMonths)(h,-1))))}"y"===e&&(h=Object(c.createDate)(parseInt(v,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&h.getDate()!==this.value.getDate()&&(h=Object(c.lastDayOfMonth)(Object(c.addMonths)(h,-1))))}if(h){var O=this.partPattern(a.partMap,e).pattern,j=this.intl.parseDate(""+s+this.peek(v,O)+d,this.format),k=this.patternLength(O)||O.length,C=g+(Nt(v)||t).length>=k,w=null===j||C;return this.shouldNormalizeCentury()&&(h=this.normalizeCentury(h)),this.value=h,this.setExisting(e,!0),{value:this.value,switchToNext:w}}}return b&&(h=this.intl.parseDate(s+b+d,this.format))?(this.value=h,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(h=this.intl.parseDate(s+m+d,this.format))?(this.value=h,{value:this.value,switchToNext:!0}):(f&&this.setExisting(e,!1),{value:null,switchToNext:!1})},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},e.prototype.setLeadingZero=function(e){this.leadingZero=e},e.prototype.normalizeCentury=function(e){if(!V(e))return e;var t=function(e){return!V(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))}(e),n=this.getNormalizedCenturyBase(t);return A(e,n+t)},e.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.peek=function(e,t){var n=Nt(e)+"0";return function(e){return new Array(Math.max(e,0)).fill("0").join("")}(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.matchDayPeriod=function(e,t){var n=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.allDayPeriods=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("dayperiod"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.patternLength=function(e){return"y"===e[0]?4:Lt.test(e)?2:0},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;r>0;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;var s=new zt;return s.symbols=i.join(""),s.partMap=a,s},e.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;o>=0;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];o>=0&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},e}(),Gt=function(){function e(e,t,n,i,a,r,s,c){this.cdr=e,this.intl=t,this.renderer=n,this.element=i,this.ngZone=a,this.injector=r,this.localization=s,this.pickerService=c,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new o.EventEmitter,this.valueUpdate=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.arrow=at,this.arrowDirection=at.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Y,this.maxValidator=Y,this.incompleteValidator=Y,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!W(e,this.min,this.max)||(this._value=Object(c.cloneDate)(e),this.valueUpdate.emit(Object(c.cloneDate)(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrap&&!V(this.pickerService)){var t=this.wrap.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},e.prototype.containsElement=function(e){var t=this;return Boolean(dt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?Et(this.min):Y,this.maxValidator=this.rangeValidation?Dt(this.max):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&Object(c.isEqual)(this.value,this.kendoDate.getDateObject());(e.format||!t||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Object(c.cloneDate)(e),this.updateElementValue(this.isActive)},e.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Object(c.cloneDate)(e),this.notify())},e.prototype.notify=function(){var e=this;this.ngZone.run((function(){e.onControlChange(Object(c.cloneDate)(e.value)),e.valueChange.emit(Object(c.cloneDate)(e.value))}))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.focus=function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))},e.prototype.blur=function(){var e=this.inputElement;e&&e.blur()},e.prototype.handleButtonClick=function(e){this.arrowDirection=at.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t,n,i,a=this.caret(),o=this.currentFormat[a[0]],r=(this.steps||{})[this.symbolsMap[o]]||1;if("S"===o&&!this.steps.millisecond){var s=(n=this.inputFormat,(i=n&&n.match(/S+(\1)/))?i[0].length:0);t=s,r=Math.pow(10,3-t)}this.kendoDate.modifyPart(o,e*r),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(o),this.updateIncompleteValidationStatus()},e.prototype.switchDateSegment=function(e){var t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(e>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return i>a&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0,!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0,!0)},e.prototype.selectDateSegment=function(e){for(var t=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t&&(t=i));t<0&&(t=0),this.caret(0,0),this.caret(t,n)},e.prototype.handleClick=function(){if(this.hasMousedown=!1,this.isActive){var e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=V(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,n=!e&&t?0:this.caret()[0];this.selectNearestSegment(n)}},e.prototype.handleDragAndDrop=function(e){e.preventDefault()},e.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},e.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,Object(l.hasObservers)(this.onFocus)?this.ngZone.run((function(){t.emitFocus(e)})):this.emitFocus(e)},e.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Object(l.hasObservers)(this.onBlur)||I(this.ngControl)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):this.emitBlur(e)},e.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,n=new Ht(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return n.setLeadingZero(this.isActive?t:null),n},e.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){return e[t.pattern[0]]=t.type,e}),{})},e.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),a=!this.isActive&&V(this.placeholder)&&!this.kendoDate.hasValue(),o=this.inputElement;this.currentFormat=i[1],this.currentValue=a?"":i[0],this.renderer.setProperty(o,"value",this.currentValue),o.placeholder!==this.placeholder&&this.renderer.setProperty(o,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},e.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(Object(l.isDocumentAvailable)()&&document.activeElement!==a&&a.focus(),a.setSelectionRange(e,t)),i=[a.selectionStart,a.selectionEnd])}catch(e){i=[]}return i}},e.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},e.prototype.verifyRange=function(){if(Object(o.isDevMode)()&&!q(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},e.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=U(e,this.min,this.max);this.autoCorrect&&!Object(c.isEqual)(e,t)&&(this.kendoDate=this.getKendoDate(t))},e.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){var n=e.date,i=e.time;return{date:n||Mt.test(t.type),time:i||At.test(t.type)}}),{date:!1,time:!1})},e.prototype.intlChange=function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)},e.prototype.updateOnPaste=function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;V(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var t=+e!=+this.value;this.writeValue(e),t&&this.notify()},e.prototype.bindEvents=function(){var e=this.element.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))},e.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},e.prototype.handlePaste=function(){this.paste=!0},e.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==l.Keys.Tab)if(e.keyCode!==l.Keys.Backspace){switch(e.keyCode){case l.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case l.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case l.Keys.ArrowRight:this.switchDateSegment(1);break;case l.Keys.ArrowLeft:this.switchDateSegment(-1);break;case l.Keys.Home:this.selectNearestSegment(0);break;case l.Keys.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}else this.backspace=!0;else this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault()},e.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(e,t,n,i){var a=i+e.length-n.length,o=e[a],r=e.substring(0,i+e.length-n.length),s=n.substring(0,i),c=[];if(r===s&&i>0)return c.push([t[i-1],s[i-1]]),c;if(0===r.indexOf(s)&&(0===s.length||t[s.length-1]!==t[s.length])){var l="";1===s.length&&c.push([t[0],s[0]]);for(var d=s.length;d<r.length;d++)t[d]!==l&&"_"!==t[d]&&(l=t[d],c.push([l,""]));return c}if(0===s.indexOf(r)||"_"===t[i-1]){var p=t[0];for(d=Math.max(0,r.length-1);d<t.length;d++)if("_"!==t[d]){p=t[d];break}return[[p,s[i-1]]]}return" "===s[s.length-1]||s[s.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],s[i-1]]]}(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1],n=!1;if(!t){for(var i=0;i<e.length;i++)n=this.kendoDate.parsePart(e[i][0],e[i][1],this.resetSegmentValue).switchToNext;var a=this.kendoDate.getDateObject();this.value&&a&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(F(this.value,a)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),e.length&&"_"!==e[0][0]&&this.selectDateSegment(e[0][0]),(n||t)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}},e.prototype.emitFocus=function(e){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.emitBlur=function(e){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.updateIncompleteValidationStatus=function(){var e=this,t=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,t!==this.isDateIncomplete&&this.incompleteDateValidation&&(V(this.ngControl)&&!V(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))):V(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hasPopup",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueUpdate",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.ViewChild)("dateInput",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"dateInput",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrap",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrap",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-dateinput"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"wrapperClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:s.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},s.LocalizationService],selector:"kendo-dateinput",template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <span class="k-dateinput-wrap" #wrap>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-select" (mousedown)="$event.preventDefault()">\n <span\n class="k-link k-link-increase"\n [class.k-state-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n class="k-link k-link-decrease"\n (click)="handleButtonClick(-1)"\n [class.k-state-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(a.__param)(7,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[o.ChangeDetectorRef,p.IntlService,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,s.LocalizationService,Tt])],e)}(),Wt=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Kt=new o.InjectionToken("dateinputs-touch-enabled"),qt=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}},Ut=function(){function e(e,t,n,i,a,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=r,this.injector=s,this.pickerService=p,this.disabledDatesService=u,this.touchEnabled=h,this.focusableId="k-"+Object(l.guid)(),this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=Object(c.cloneDate)(S),this.max=Object(c.cloneDate)(T),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(l.guid)(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesValidateFn=Y,this.incompleteValidator=Y,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],Object(d.validatePackage)(g),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(c.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&Object(l.hasObservers)(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.disabledDatesValidateFn=this.disabledDatesValidation?qt(this.disabledDatesService.isDateDisabled):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(c.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.calendar||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(Object(c.cloneDate)(e)),this.valueChange.emit(Object(c.cloneDate)(e))},e.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),e.prototype.mergeTime=function(e){return this.value&&e?F(e,this.value):e},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n===l.Keys.Escape&&(this.show=!1),t&&(n!==l.Keys.ArrowDown||this.show||(this.show=!0),n===l.Keys.ArrowUp&&(this.show=!1)),n===l.Keys.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)},e.prototype.togglePopup=function(e){var t=new Wt;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this._show)if(this._show=e,e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()&&!q(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),X()&&(this.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(l.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleBlur=function(e){var t=this,n=e&&P(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(Object(l.hasObservers)(this.onBlur)||this.show&&Object(l.hasObservers)(this.close)||I(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},e.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrapper",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!1}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("cellTemplate"),Object(a.__metadata)("design:type",yt),Object(a.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!1}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("monthCellTemplate"),Object(a.__metadata)("design:type",_t),Object(a.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!1}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("yearCellTemplate"),Object(a.__metadata)("design:type",Ot),Object(a.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!1}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("decadeCellTemplate"),Object(a.__metadata)("design:type",jt),Object(a.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!1}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("centuryCellTemplate"),Object(a.__metadata)("design:type",kt),Object(a.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!1}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.Input)("weekNumberTemplate"),Object(a.__metadata)("design:type",Ct),Object(a.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!1}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.Input)("headerTitleTemplate"),Object(a.__metadata)("design:type",wt),Object(a.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(St,{static:!1}),Object(a.__metadata)("design:type",St)],e.prototype,"navigationItemTemplate",void 0),Object(a.__decorate)([Object(o.Input)("navigationItemTemplate"),Object(a.__metadata)("design:type",St),Object(a.__metadata)("design:paramtypes",[St])],e.prototype,"navigationItemTemplateRef",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"navigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-datepicker"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},s.LocalizationService,Tt,ft,{provide:s.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-calendar"></span>\n </span>\n </span>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n '}),Object(a.__param)(9,Object(o.Optional)()),Object(a.__param)(9,Object(o.Inject)(Kt)),Object(a.__metadata)("design:paramtypes",[o.NgZone,s.LocalizationService,o.ChangeDetectorRef,b.PopupService,o.ElementRef,o.Renderer2,o.Injector,Tt,ft,Boolean])],e)}(),Zt="dayperiod",$t="hour",Yt="millisecond",Xt="minute",Qt="second",Jt=new RegExp($t+"|"+Xt+"|"+Qt+"|"+Yt+"|"+Zt+"|literal"),en=function(){function e(e,t,n,i,a,r,s,p,u,h){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.element=a,this.renderer=r,this.injector=s,this.pickerService=p,this.intl=u,this.touchEnabled=h,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.wrapperClasses=!0,this.popupUID=Object(l.guid)(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=Y,this.incompleteValidator=Y,this._min=Object(c.cloneDate)(E),this._max=Object(c.cloneDate)(D),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],Object(d.validatePackage)(g),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=Object(c.cloneDate)(e||E)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=Object(c.cloneDate)(e||D)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(c.cloneDate)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&Object(l.hasObservers)(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(r.NgControl,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngOnChanges=function(e){var t,n;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(t=this.min,n=this.max,function(e){if(!t||!n||!e.value)return null;var i={timeRangeError:{maxValue:n,minValue:t,value:e.value}};return K(e.value,t,n)?null:i}):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,this.onValidatorChange()),e.format&&this.verifyFormat()},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n!==l.Keys.Escape?t&&(n===l.Keys.ArrowUp&&(this.show=!1),n!==l.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=Object(c.cloneDate)(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.timeSelector||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.handleChange=function(e){var t=this;if(Object(c.isEqual)(this.value,e))return this.focusInput(),void(this.show=!1);this.value=Object(c.cloneDate)(e),this.zone.run((function(){t.focusInput(),t.show=!1,t.onControlChange(Object(c.cloneDate)(e)),t.valueChange.emit(Object(c.cloneDate)(e))}))},e.prototype.handleReject=function(){this.show=!1},e.prototype.handleInputChange=function(e){var t=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(t)},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.normalizeTime=function(e){return F(w,e)},e.prototype.mergeTime=function(e){return this.value&&e?F(this.value,e):e},e.prototype.togglePopup=function(e){var t=new Wt;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this.isOpen)if(this._show=e,this.cdr.markForCheck(),e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},e.prototype.verifyFormat=function(){if(Object(o.isDevMode)()&&this.intl.splitDateFormat(this.format).some((function(e){return!Jt.test(e.type)})))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),X()&&(this.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(l.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&P(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(Object(l.hasObservers)(this.onBlur)||this.show&&Object(l.hasObservers)(this.close)||I(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!1}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!1}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrapper",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-timepicker"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.timepicker"},Tt],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <span #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <span class="k-select"\n role="button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-clock"></span>\n </span>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n </span>\n <ng-container #container></ng-container>\n '}),Object(a.__param)(9,Object(o.Optional)()),Object(a.__param)(9,Object(o.Inject)(Kt)),Object(a.__metadata)("design:paramtypes",[o.NgZone,s.LocalizationService,o.ChangeDetectorRef,b.PopupService,o.ElementRef,o.Renderer2,o.Injector,Tt,p.IntlService,Boolean])],e)}(),tn=new RegExp($t+"|"+Xt+"|"+Qt+"|"+Zt+"|literal"),nn=function(){function e(e,t,n,i,a,r,s,p,h,b){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.host=r,this.touchEnabled=s,this.localization=p,this.disabledDatesService=h,this.renderer=b,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+Object(l.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=Object(c.cloneDate)(E),this.timeSelectorMax=Object(c.cloneDate)(D),this.calendarValue=null,this.calendarMin=Object(c.cloneDate)(S),this.calendarMax=le(T),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=ce(S,E),this._max=ce(T,D),this._isActive=!1,this.onControlTouched=Y,this.onControlChange=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesValidateFn=Y,this.incompleteValidator=Y,this.subscriptions=new u.Subscription,Object(d.validatePackage)(g)}var t;return t=e,Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Object(c.cloneDate)(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;var t=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){V(e)&&(this._min=Object(c.cloneDate)(e),this.calendarMin=Object(c.getDate)(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){V(e)&&(this._max=Object(c.cloneDate)(e),this.calendarMax=le(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return V(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),this._isActive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return V(this.calendar)||V(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(V(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(Object(h.tap)(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cdr.markForCheck()}))),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),X()&&this.subscriptions.add(this.ngZone.runOutsideAngular((function(){return Object(u.fromEvent)(window,"blur").subscribe(e.handleCancel.bind(e))})))},e.prototype.ngOnChanges=function(e){(V(e.min)||V(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.disabledDatesValidateFn=this.disabledDatesValidation?qt(this.disabledDatesService.isDateDisabled):Y,this.incompleteValidator=this.incompleteDateValidation?Ft():Y,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())},e.prototype.blur=function(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()},e.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((V(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.isEmpty=function(){return!V(this.value)&&this.input.isEmpty()},e.prototype.handleIconClick=function(e){var t=this;if(!this.disabled&&!this.readonly){e.preventDefault();var n=!this.isOpen||Object(l.hasObservers)(this.close);this.run(n,(function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))}},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,Object(l.hasObservers)(this.onFocus)&&this.ngZone.run((function(){return e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this;if(this.isActive&&!this.focusTargetInComponent(e)){this.isActive=!1;var n=this.host.nativeElement.classList.contains("ng-untouched")||Object(l.hasObservers)(this.onBlur)||this.isOpen&&Object(l.hasObservers)(this.close);this.run(n,(function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))}},e.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(Object(c.isEqual)(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},e.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},e.prototype.handleAccept=function(){var e=this;if(this.isOpen){var t=ce(this.calendar.value,this.timeSelector.current),n=!Object(c.isEqual)(this.value,t)||Object(l.hasObservers)(this.close);this.run(n,(function(){e.handleValueChange(t),e.togglePopup(!1)}))}},e.prototype.handleCancel=function(){var e=this;if(this.isOpen){var t=Object(l.hasObservers)(this.close);this.run(t,(function(){return e.togglePopup(!1)}))}},e.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},e.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},e.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e,i=n.keyCode,a=n.altKey;switch(i){case a&&l.Keys.ArrowUp:case l.Keys.Escape:this.handleCancel();break;case!this.isOpen&&a&&l.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case a&&l.Keys.ArrowRight:this.changeActiveTab("time");break;case a&&l.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&V(this.calendarValue)&&l.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},e.prototype.handleTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey,a=t.target,o=V(a.nextElementSibling)&&!a.nextElementSibling.disabled;n!==l.Keys.Tab||i||o||(this.input.focus(),this.handleCancel())},e.prototype.handleBackTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey;n===l.Keys.Tab&&i&&this.input.focus()},e.prototype.preventMouseDown=function(e){e.preventDefault()},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&V(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},e.prototype.verifyMinMaxRange=function(){if(Object(o.isDevMode)()&&!q(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")},e.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce((function(e,t){return e+t.pattern}),"")||"t"},e.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},e.prototype.timeFormatPartFilter=function(e,t,n){var i=t>=1&&n[t-1];return i&&"literal"===e.type?tn.test(i.type):tn.test(e.type)},e.prototype.togglePopup=function(e){if(e!==this.isOpen){var t=new Wt;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus())}},e.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.openPopup=function(){var e=this;this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);var t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:"k-datetime-container "+(this.popupSettings.popupClass||""),anchorAlign:{vertical:"bottom",horizontal:t},popupAlign:{vertical:"top",horizontal:t}}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.handleCancel()}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleValueChange=function(e){Object(c.isEqual)(this.value,e)||(this.value=Object(c.cloneDate)(e),this.onControlChange(Object(c.cloneDate)(e)),this.valueChange.emit(Object(c.cloneDate)(e)))},e.prototype.focusTargetInComponent=function(e){if(!V(e))return!1;var t=e.relatedTarget||document.activeElement,n=V(this.popupRef)&&this.popupRef.popupElement.contains(t),i=this.wrapper.nativeElement.contains(t);return n||i},e.prototype.setTimeSelectorMinMax=function(e){var t=V(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.min));this.timeSelectorMin=Object(c.cloneDate)(t?this.min:E);var n=V(e)&&Object(c.isEqual)(Object(c.getDate)(e),Object(c.getDate)(this.max));this.timeSelectorMax=Object(c.cloneDate)(n?this.max:D)},e.prototype.setCalendarValue=function(e){var t=V(e)&&W(e,this.calendarMin,this.calendarMax);this.calendarValue=t?Object(c.getDate)(e):null},e.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},e.prototype.run=function(e,t){e?this.ngZone.run((function(){return t()})):t()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))},Object(a.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(o.HostBinding)("class.k-datetimepicker"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(a.__decorate)([Object(o.ViewChild)("wrapper",{static:!0}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"formatPlaceholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"steps",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"calendarType",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"defaultTab",null),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!1}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!1}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!1}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!1}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!1}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!1}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!1}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("popupTemplate",{read:o.TemplateRef,static:!0}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=Object(a.__decorate)([Object(o.Component)({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:o.ChangeDetectionStrategy.OnPush,providers:[Tt,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <span\n #wrapper\n class="k-picker-wrap"\n [class.k-state-disabled]="disabled"\n >\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n </kendo-dateinput>\n <span class="k-select"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-link k-link-date">\n <span\n class="k-icon"\n [class.k-i-calendar]="activeTab === \'date\'"\n [class.k-i-clock]="activeTab === \'time\'"\n >\n </span>\n </span>\n </span>\n </span>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-date-tab"\n [class.k-state-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-tab"\n [class.k-state-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-time-accept k-button k-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n '}),Object(a.__param)(6,Object(o.Inject)(Kt)),Object(a.__metadata)("design:paramtypes",[b.PopupService,p.IntlService,o.ChangeDetectorRef,Tt,o.NgZone,o.ElementRef,Boolean,s.LocalizationService,ft,o.Renderer2])],e)}(),an=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=Q(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),on=function(){function e(e,t,n,i,a,r){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=r,this.activeView=j.month,this.isActive=!0,this.min=new Date(S),this.max=new Date(T),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.cellEnter=new o.EventEmitter,this.cellLeave=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===j.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===j.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===j.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===j.century},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(this.initService(),(0===this.weekNames.length||e.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service){this.views=this.views||2;var t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views));this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max);var i=ee(e,"activeView"),a=this.views>0&&ee(e,"views");!i&&this.isInDates(t)&&!a&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=Object(c.cloneDate)(this.dates[0]),this.activeDateChange.emit(this.activeDate))}},e.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},e.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},e.prototype.initService=function(){this.service=this.bus.service(this.activeView)},e.prototype.isMonthView=function(){return this.activeView===j.month},e.prototype.getCaptionTitle=function(e){return this.service.title(e)},e.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},e.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,a=n.querySelector("table"),o=parseFloat(getComputedStyle(n).width),r=parseFloat(getComputedStyle(a).width);this.renderer.setStyle(n,"width",o+"px"),this.renderer.setStyle(n,"overflow","visible"),e===i.NextView?this.nextAnimationDate=Object(c.cloneDate)(this.dates[0]):this.prevAnimationDate=Object(c.cloneDate)(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach((function(e){t.renderer.setStyle(e,"width",r+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",o+"px")}));var s=a.getBoundingClientRect(),l=parseFloat(getComputedStyle(n).columnGap),d=e===i.NextView?"translateX(0)":"translateX(-"+(s.width+l)+"px)",p=e===i.NextView?"translateX(-"+(s.width+l)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:d},{transform:p}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){t.renderer.removeStyle(n,"width"),t.renderer.removeStyle(n,"overflow"),n.querySelectorAll("table").forEach((function(e){t.renderer.removeStyle(e,"width")})),t.animation=null,t.nextAnimationDate=null,t.prevAnimationDate=null,t.cdr.detectChanges()})},e.prototype.navigate=function(e){this.animateNavigation&&Object(l.isDocumentAvailable)()&&V(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),n=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(n)&&(this.dates=n),this.activeDate=Object(c.cloneDate)(this.dates[0]),this.focusedDate=Object(c.cloneDate)(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Object(c.cloneDate)(t)},e.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},e.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");if(t){var n=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(t,"min-width",n+"px")}},e.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},e.prototype.clampDate=function(e){return U(e,this.min,this.max)},e.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},e.prototype.isListInRange=function(e){var t=this.service.beginningOfPeriod(this.min),n=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return t<=e[0]&&e[e.length-1]<n},e.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},e.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"cellTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellEnter",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellLeave",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeDateChange",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-view"),Object(o.HostBinding)("class.k-hstack"),Object(o.HostBinding)("class.k-align-items-start"),Object(o.HostBinding)("class.k-justify-content-center"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-monthview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-yearview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-decadeview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-centuryview"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-horizontal",template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n class="k-content k-calendar-content k-calendar-table"\n [ngClass]="class"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames" class="k-calendar-th">{{name}}</th>\n </tr>\n </thead>\n <tbody\n class="k-calendar-tbody"\n kendoCalendarView\n role="rowgroup"\n direction="horizontal"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [selectionRange]="selectionRange"\n [activeRangeEnd]="activeRangeEnd"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (cellEnter)="cellEnter.emit($event)"\n (cellLeave)="cellLeave.emit($event)"\n >\n </tbody>\n </table>\n </ng-template>\n\n \x3c!-- When Next is clicked a placeholder table is rendered before the Main Table --\x3e\n <ng-template\n *ngIf="nextAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: nextAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n\n <ng-template\n *kFor="let date of dates"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: date\n }"\n >\n </ng-template>\n\n \x3c!-- When Prev is clicked a placeholder table is rendered after the Main Table --\x3e\n <ng-template\n *ngIf="prevAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: prevAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n '}),Object(a.__metadata)("design:paramtypes",[Ee,p.IntlService,an,o.ChangeDetectorRef,o.ElementRef,o.Renderer2])],e)}(),rn=function(){return null},sn=function(e){return V(e)?function(t){if(!(V(t)&&V(t.start)&&V(t.end))||t.start>t.end)return null;var n=function(e,t,n){if(!(e&&t&&n)||e>t)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=Object(c.addDays)(a,1);return i}(t.start,t.end,e),i={disabledDatesInRange:n};return n.length?i:null}:rn},cn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",ln={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:Object(o.forwardRef)((function(){return pn}))},dn={multi:!0,provide:r.NG_VALIDATORS,useExisting:Object(o.forwardRef)((function(){return pn}))},pn=function(){function e(e,t,n,a,r,s,c,d){this.bus=e,this.element=t,this.navigator=n,this.renderer=a,this.cdr=r,this.zone=s,this.disabledDatesService=c,this.selectionService=d,this.id=Object(l.guid)(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=j[j.month],this.bottomView=j[j.month],this.topView=j[j.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new o.EventEmitter,this.navigate=new o.EventEmitter,this.cellEnter=new o.EventEmitter,this.cellLeave=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellUID=Object(l.guid)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=i.PrevView,this.nextView=i.NextView,this.selectedDates=[],this._min=new Date(S),this._max=new Date(T),this._focusedDate=$(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Y,this.onControlTouched=Y,this.onValidatorChange=Y,this.minValidateFn=Y,this.maxValidateFn=Y,this.disabledDatesRangeValidateFn=Y,this.subscriptions=new u.Subscription,this.setClasses(t.nativeElement)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||$()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(T)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return V(e)})).map((function(e){return Object(c.cloneDate)(e)})):Object(c.cloneDate)(e);var t=[].concat(e).filter((function(e){return V(e)})).map((function(e){return Object(c.cloneDate)(e)}));if(!se(t,this.selectedDates)){var n=ne(t);this.rangePivot=Object(c.cloneDate)(n),this.focusedDate=Object(c.cloneDate)(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=j[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return j[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return j[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){this.onControlTouched(),this.isActive=!1,this.isHovered=!1},e.prototype.handleFocus=function(){this.isActive=!0},e.prototype.handleMouseEnter=function(){this.isHovered=!0},e.prototype.handleMouseLeave=function(){this.isHovered=!1},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleClick=function(){this.isActive||this.focus()},e.prototype.keydown=function(e){e.keyCode===l.Keys.Enter&&this.performSelection(this.focusedDate,e);var t=U(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);Object(c.isEqual)(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.bus.viewChanged.subscribe((function(t){var n=t.view;e.activeView=j[n],e.activeViewChange.emit(e.activeView),e.cdr.detectChanges(),e.updateButtonState()})))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),te(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=U(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):Y,this.maxValidateFn=this.rangeValidation?Dt(this.max):Y,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?sn(this.disabledDatesService.isDateDisabled):Y,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.updateButtonState()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate;var a=!n&&se(i,this.selectedDates);this.disabled||a||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map((function(e){return Object(c.cloneDate)(e)})),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},e.prototype.handleTodayButtonClick=function(e){var t=e.focusedDate,n=this.bus.service(this.activeViewEnum).isInArray(t,this.viewList.dates),i=!this.bus.canMoveDown(this.activeViewEnum);!n&&i&&this.emitNavigate(t),this.handleDateChange(e)},e.prototype.setActiveDate=function(e){this.activeDate=Object(c.cloneDate)(e),this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case j.month:return this.monthCellTemplate||this.cellTemplate;case j.year:return this.yearCellTemplate;case j.decade:return this.decadeCellTemplate;case j.century:return this.centuryCellTemplate;default:return null}},e.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=j[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitCellEvent=function(e,t){Object(l.hasObservers)(e)&&this.zone.run((function(){e.emit(t)}))},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:ne(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},e.prototype.verifyChanges=function(){if(Object(o.isDevMode)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+cn+" for possible resolution.");if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every((function(e){return e instanceof Date})))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check "+cn+" for possible resolution.")}},e.prototype.updateButtonState=function(){var e=this;this.resolvedPromise.then((function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()}))},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?Object(c.cloneDate)(ne(e)):e.map((function(e){return Object(c.cloneDate)(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"focusedDate",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"min",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date),Object(a.__metadata)("design:paramtypes",[Date])],e.prototype,"max",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"disabledDates",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"bottomView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"topView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"showViewHeader",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"animateNavigation",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"weekNumber",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"views",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"navigate",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellEnter",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellLeave",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.ContentChild)(yt,{static:!0}),Object(a.__metadata)("design:type",yt)],e.prototype,"cellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("cellTemplate"),Object(a.__metadata)("design:type",yt),Object(a.__metadata)("design:paramtypes",[yt])],e.prototype,"cellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(_t,{static:!0}),Object(a.__metadata)("design:type",_t)],e.prototype,"monthCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("monthCellTemplate"),Object(a.__metadata)("design:type",_t),Object(a.__metadata)("design:paramtypes",[_t])],e.prototype,"monthCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ot,{static:!0}),Object(a.__metadata)("design:type",Ot)],e.prototype,"yearCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("yearCellTemplate"),Object(a.__metadata)("design:type",Ot),Object(a.__metadata)("design:paramtypes",[Ot])],e.prototype,"yearCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(jt,{static:!0}),Object(a.__metadata)("design:type",jt)],e.prototype,"decadeCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("decadeCellTemplate"),Object(a.__metadata)("design:type",jt),Object(a.__metadata)("design:paramtypes",[jt])],e.prototype,"decadeCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(kt,{static:!0}),Object(a.__metadata)("design:type",kt)],e.prototype,"centuryCellTemplate",void 0),Object(a.__decorate)([Object(o.Input)("centuryCellTemplate"),Object(a.__metadata)("design:type",kt),Object(a.__metadata)("design:paramtypes",[kt])],e.prototype,"centuryCellTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(Ct,{static:!0}),Object(a.__metadata)("design:type",Ct)],e.prototype,"weekNumberTemplate",void 0),Object(a.__decorate)([Object(o.Input)("weekNumberTemplate"),Object(a.__metadata)("design:type",Ct),Object(a.__metadata)("design:paramtypes",[Ct])],e.prototype,"weekNumberTemplateRef",null),Object(a.__decorate)([Object(o.ContentChild)(wt,{static:!0}),Object(a.__metadata)("design:type",wt)],e.prototype,"headerTitleTemplate",void 0),Object(a.__decorate)([Object(o.Input)("headerTitleTemplate"),Object(a.__metadata)("design:type",wt),Object(a.__metadata)("design:paramtypes",[wt])],e.prototype,"headerTitleTemplateRef",null),Object(a.__decorate)([Object(o.ViewChild)(on,{static:!1}),Object(a.__metadata)("design:type",on)],e.prototype,"viewList",void 0),Object(a.__decorate)([Object(o.HostBinding)("attr.id"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetId",null),Object(a.__decorate)([Object(o.HostBinding)("attr.role"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"widgetRole",null),Object(a.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),Object(a.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(a.__decorate)([Object(o.HostBinding)("attr.aria-activedescendant"),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),Object(a.__decorate)([Object(o.HostListener)("blur"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleBlur",null),Object(a.__decorate)([Object(o.HostListener)("focus"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleFocus",null),Object(a.__decorate)([Object(o.HostListener)("mouseenter"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),Object(a.__decorate)([Object(o.HostListener)("mouseleave"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),Object(a.__decorate)([Object(o.HostListener)("mousedown",["$event"]),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Object]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleMousedown",null),Object(a.__decorate)([Object(o.HostListener)("click"),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"handleClick",null),Object(a.__decorate)([Object(o.HostListener)("keydown",["$event"]),Object(a.__metadata)("design:type",Function),Object(a.__metadata)("design:paramtypes",[Object]),Object(a.__metadata)("design:returntype",void 0)],e.prototype,"keydown",null),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[Ee,ln,dn,s.LocalizationService,ft,{provide:s.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},bt,gt],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplate?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || isHovered"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n (valueChange)="handleDateChange($event)"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n >\n </kendo-calendar-horizontal>\n '}),Object(a.__metadata)("design:paramtypes",[Ee,o.ElementRef,bt,o.Renderer2,o.ChangeDetectorRef,o.NgZone,ft,gt])],e)}(),un=function(){function e(e){this.templateRef=e}return e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangePopupTemplate]"}),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),hn=function(e){return e&&e.isActive||!1},bn=function(){function e(){this.activeRangeEnd$=new u.BehaviorSubject(null),this.focusedDate$=new u.BehaviorSubject(null),this.endInput$=new u.BehaviorSubject(null),this.startInput$=new u.BehaviorSubject(null),this.dateRangePopup$=new u.BehaviorSubject(null),this.range$=new u.BehaviorSubject(C)}return Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),e.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},e.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},e.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},e.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},e.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=hn(e),n=hn(this.startInput$.value),i=hn(this.endInput$.value);return t||n||i||function(e){return e&&e.hasActiveContent()}(e)||!1},e.prototype.registerStartInput=function(e){this.startInput$.next(e)},e.prototype.registerEndInput=function(e){this.endInput$.next(e)},e.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},e.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},e.prototype.setFocusedDate=function(e){Object(c.isEqual)(this.focusedDate$.value,e)||this.focusedDate$.next(e)},e.prototype.setRange=function(e){void 0===e&&(e=C),this.range$.next(e)},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),mn=function(){function e(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popupUID=Object(l.guid)(),this.calendarSubscriptions=new u.Subscription,this.popupSubscriptions=new u.Subscription,this.resolvedPromise=Promise.resolve()}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){if(this._show!==e){var t=new Wt;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},e.prototype.ngAfterViewInit=function(){var e=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),X()&&this.zone.runOutsideAngular((function(){return e.windowBlurSubscription=Object(u.fromEvent)(window,"blur").subscribe(e.handleWindowBlur.bind(e))}))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.calendarSubscriptions.unsubscribe(),this.activateSubscription&&this.activateSubscription.unsubscribe(),this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe()},e.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular((function(){e.activateSubscription=Object(u.merge)(e.contentCalendar.changes,e.viewCalendar.changes).pipe(Object(h.filter)((function(e){return e&&e.first})),Object(h.map)((function(e){return e.first}))).subscribe((function(e){return setTimeout((function(){return e.focus()}))}))})))},e.prototype.focus=function(){this.calendar&&this.calendar.focus()},e.prototype.hasActiveContent=function(){return!(!Object(l.isDocumentAvailable)()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},e.prototype.toggle=function(e){var t=this;this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},e.prototype.handleWindowBlur=function(){var e=this;this.show&&(Object(l.hasObservers)(this.close)?this.zone.run((function(){return e.show=!1})):this.show=!1)},e.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},e.prototype.handleKeydown=function(e){var t=this,n=e.altKey,i=e.keyCode;(i===l.Keys.Escape||n&&i===l.Keys.ArrowUp)&&this.zone.run((function(){return t.cancelPopup()}))},e.prototype.subscribeFocusBlur=function(e){var t=this;if(this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e){var n=e.element.nativeElement;this.blurSubscription=Object(u.fromEvent)(n,"blur").subscribe((function(){return t.onBlur.emit()})),this.focusSubscription=Object(u.fromEvent)(n,"focus").subscribe((function(){return t.onFocus.emit()}))}},e.prototype.addPopupSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];V(this.popupSubscriptions)||(this.popupSubscriptions=new u.Subscription),t.map((function(t){return e.popupSubscriptions.add(t)}))},Object.defineProperty(e.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype._toggle=function(e){var t=this;if(this._show=e,this.popupRef&&this.destroyPopup(),this._show){var n=this.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:n},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:n},positionMode:"absolute"});var i=this.popupRef,a=i.popupElement,o=i.popupAnchorViewportLeave;a.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular((function(){return Object(u.fromEvent)(a,"keydown").subscribe(t.handleKeydown.bind(t))})),Object(u.fromEvent)(a,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),o.subscribe((function(){return t.cancelPopup()})))}},e.prototype.destroyPopup=function(){V(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),V(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},Object(a.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!1}),Object(a.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(a.__decorate)([Object(o.ViewChild)("defaultTemplate",{static:!1}),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"defaultTemplate",void 0),Object(a.__decorate)([Object(o.ContentChild)(un,{static:!1}),Object(a.__metadata)("design:type",un)],e.prototype,"contentTemplate",void 0),Object(a.__decorate)([Object(o.ViewChildren)(pn),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"viewCalendar",void 0),Object(a.__decorate)([Object(o.ContentChildren)(pn),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"contentCalendar",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"appendTo",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(a.__decorate)([Object(o.Output)("blur"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(a.__decorate)([Object(o.Output)("focus"),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),e=Object(a.__decorate)([Object(o.Component)({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),Object(a.__param)(4,Object(o.Optional)()),Object(a.__param)(4,Object(o.Inject)(s.RTL)),Object(a.__metadata)("design:paramtypes",[b.PopupService,bn,o.ChangeDetectorRef,o.NgZone,Boolean])],e)}(),fn=function(){function e(){this.showDefault=!1,Object(d.validatePackage)(g)}return Object.defineProperty(e.prototype,"hasContentPopup",{get:function(){return this.contentPopup.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe((function(){e.showDefault=!e.hasContentPopup}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},Object(a.__decorate)([Object(o.ContentChildren)(mn),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"contentPopup",void 0),e=Object(a.__decorate)([Object(o.Component)({providers:[bn],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),Object(a.__metadata)("design:paramtypes",[])],e)}(),gn=function(){function e(e,t,n,i,a,o){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=o,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new u.Subscription,this.subscriptions=new u.Subscription}return Object.defineProperty(e.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return V(e)&&V(e.calendar)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe((function(){return e.deactivate()})),this.input.onFocus.pipe(Object(h.filter)((function(){return!e.popupCalendarActivated}))).subscribe((function(){return e.activate()})),this.input.valueUpdate.subscribe((function(t){return e.updateRange(t,"change")})),this.dateRangeService.activeRangeEnd$.subscribe((function(){e.navigateCalendarOnFocus&&e.focusActiveDate(),e.toggleActiveClass(e.isActiveEnd)})),this.dateRangeService.dateRangePopup$.subscribe((function(t){return e.initPopup(t)})),this.dateRangeService.range$.subscribe((function(t){return e.updateInputValue(t)})),Object(u.fromEvent)(this.element.nativeElement,"click").subscribe((function(){return e.activate()})),Object(u.fromEvent)(this.element.nativeElement,"keydown").subscribe((function(t){return e.togglePopup(t||{})}))].map((function(t){return e.subscriptions.add(t)}))},e.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},e.prototype.initPopup=function(e){var t=this;e?(e.anchor||(e.anchor=this.element.nativeElement),[e.cancel.subscribe((function(){return t.isActiveEnd&&t.input.focus()})),e.onFocus.subscribe((function(){return t.toggleActiveClass(t.isActiveEnd)})),e.onBlur.subscribe((function(){return t.deactivate()}))].map((function(e){return t.popupSubscriptions.add(e)}))):this.unsubscribePopup()},e.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new u.Subscription},e.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},e.prototype.deactivate=function(){var e=this;this.zone.runOutsideAngular((function(){setTimeout((function(){e.updateRange(e.input.value,"blur"),e.dateRangeService.hasActiveComponent()||(e.toggleActiveClass(!1),e.zone.run((function(){return e.dateRangeService.deactivatePopup()})))}))}))},e.prototype.updateRange=function(e,t){var n=this.getRange(e,t);n&&(this.focusActiveDate(),this.dateRangeService.setRange(n))},e.prototype.togglePopup=function(e){var t=e.altKey,n=e.keyCode;n===l.Keys.Escape?this.dateRangeService.cancelPopup():t&&n===l.Keys.ArrowDown&&this.dateRangeService.activatePopup()},e.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(Object(c.cloneDate)(this.input.value))},e.prototype.toggleActiveClass=function(e){var t=e?"addClass":"removeClass",n=this.element.nativeElement;n&&n.querySelector&&this.renderer[t](n.querySelector(".k-dateinput-wrap"),"k-state-focused")},e}(),vn=function(e){function t(t,n,i,a,o){var r=e.call(this,"end",t,n,i,a,o)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return Object(a.__extends)(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,a=n.max;if(!W(e,i,a))return null;var o=(this.rangeService.selectionRange||C).start;return this.autoCorrectOn===t&&V(e)&&e<o?oe(e):{start:o,end:Object(c.cloneDate)(e)}},t.prototype.updateInputValue=function(e){var t=(e||C).end,n=this.dateInput,i=n.min,a=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&W(t,i,a)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangeEndInput]"}),Object(a.__metadata)("design:paramtypes",[bn,Gt,o.ElementRef,o.Renderer2,o.NgZone])],t)}(gn),yn=function(e){function t(t,n,i,a,o){var r=e.call(this,"start",t,n,i,a,o)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return Object(a.__extends)(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,a=n.max;if(!W(e,i,a))return null;var o=(this.rangeService.selectionRange||C).end;return this.autoCorrectOn===t&&o&&e>o?oe(e):{start:Object(c.cloneDate)(e),end:o}},t.prototype.updateInputValue=function(e){var t=(e||C).start,n=this.dateInput,i=n.min,a=n.max;!Object(c.isEqual)(this.dateInput.value,t)&&W(t,i,a)&&(this.dateInput.writeValue(Object(c.cloneDate)(t)),this.dateInput.notify())},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"autoCorrectOn",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangeStartInput]"}),Object(a.__metadata)("design:paramtypes",[bn,Gt,o.ElementRef,o.Renderer2,o.NgZone])],t)}(gn),_n=function(){function e(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new o.EventEmitter,this.selectionRangeChange=new o.EventEmitter,this.calendarSubscriptions=new u.Subscription,this.dateRangeService=this.dateRangeService||new bn,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}return Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),re(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarRange",{get:function(){return this.selectionRange||C},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.calendar,n=this.dateRangeService;t.min=ae(n.min,t.min),t.max=ae(n.max,t.max),this.addSubscriptions(t.cellEnter.subscribe((function(t){return e.handleHover(t)})),t.valueChange.subscribe((function(t){return e.handleChange(t)})),n.focusedDate$.subscribe((function(e){Object(c.isEqual)(t.focusedDate,e)||(t.focusedDate=e)})),n.activeRangeEnd$.subscribe((function(n){t.activeRangeEnd!==n&&(t.activeRangeEnd=n,e.activeRangeEndChange.emit(n),e.cdr.markForCheck())})),n.range$.subscribe((function(t){e.isEqualCalendarRange(t)||e.acceptAndEmit(t),e.updateFocusedDate(t)})),Object(u.fromEvent)(this.element.nativeElement,"blur").subscribe((function(){return e.handleBlur()})))},e.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},e.prototype.addSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map((function(t){return e.calendarSubscriptions.add(t)}))},e.prototype.isEqualCalendarRange=function(e){return re(this.calendar.selectionRange,e)},e.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,n=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==n&&n<t&&this.dateRangeService.setRange(oe(t))},e.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",a=n?oe(e):this.updateRange(e);re(t.selectionRange,a)||(this.acceptAndEmit(a),t.setActiveRangeEnd(i),t.setRange(a))},e.prototype.handleHover=function(e){if(!this.hasCompleteRange()){var t=this.calendarRange,n=t.start,i=t.end,a=this.calendar.activeRangeEnd;(n&&"end"===a||i&&"start"===a)&&this.setSelectionRange(this.updateRange(e))}},e.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||C,t=e.start,n=e.end;return Boolean(t)&&Boolean(n)},e.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&e>n:null!==i&&e<i},e.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},e.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:i,end:e}},e.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},e.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"autoCorrectOn",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"selectionRange",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String),Object(a.__metadata)("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=Object(a.__decorate)([Object(o.Directive)({selector:"[kendoDateRangeSelection]"}),Object(a.__param)(4,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[pn,o.ChangeDetectorRef,o.ElementRef,o.Renderer2,bn])],e)}(),On=function(){function e(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),jn=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(this._differ||!t)return;try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+(((n=t).name||typeof n)+"'."))}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){if(Object(l.isDocumentAvailable)()){var t=this._viewContainer.length,n=this.kForOf.length,i={};e.forEachOperation((function(e,t,n){null!==n&&(i[n]=e.item)}));for(var a=t;a<n;a++)this._viewContainer.createEmbeddedView(this._template,new On(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;a>n;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"kForOf",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Function)],e.prototype,"kForTrackBy",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef),Object(a.__metadata)("design:paramtypes",[o.TemplateRef])],e.prototype,"kForTemplate",null),e=Object(a.__decorate)([Object(o.Directive)({selector:"[kFor][kForOf]"}),Object(a.__metadata)("design:paramtypes",[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers])],e)}();var kn,Cn,wn,Sn=function(){function e(e,t,n,i,a){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=a,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(S),this.max=new Date(T),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new o.EventEmitter,this.prevButtonClick=new o.EventEmitter,this.nextButtonClick=new o.EventEmitter,this.getComponentClass=!0,this.subscriptions=new u.Subscription}return e.prototype.ngOnInit=function(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))},e.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=j[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(U($(),this.min,this.max)))},e.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},e.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},e.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},e.prototype.getTitle=function(){if(!this.currentDate)return"";var e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t);return t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)},e.prototype.setTodayAvailability=function(){var e=$(),t=W(e,Object(c.getDate)(this.min),Object(c.getDate)(this.max)),n=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!n,this.cdr.markForCheck()},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"currentDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"rangeLength",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"templateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"todayButtonClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"prevButtonClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"nextButtonClick",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-calendar-header"),Object(o.HostBinding)("class.k-hstack"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=Object(a.__decorate)([Object(o.Component)({selector:"kendo-calendar-header",template:'\n <span class="k-button k-flat k-title k-calendar-title" [class.k-state-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-flat k-icon-button k-prev-view"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-state-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-flat k-icon-button k-next-view"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-right"></span>\n </button>\n </span>\n '}),Object(a.__metadata)("design:paramtypes",[Ee,o.ChangeDetectorRef,s.LocalizationService,p.IntlService,ft])],e)}(),Tn=function(){function e(e,t,n,i,a,r,s){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=r,this.disabledDatesService=s,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new o.EventEmitter,this.weekNumberCellClick=new o.EventEmitter,this.cellEnter=new o.EventEmitter,this.cellLeave=new o.EventEmitter,this.colSpan=0,this.subscriptions=new u.Subscription,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===j.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.isHorizontal=function(){return"horizontal"===this.direction},e.prototype.isMonthView=function(){return this.activeView===j.month},e.prototype.shouldRenderCellContent=function(e){return V(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},e.prototype.firstDate=function(e){var t=this.firstWeekDateContext(e);return t?t.value:null},e.prototype.getWeekNumber=function(e){return this.weekNumber?Object(c.weekInYear)(e,this.intl.firstDay()):null},e.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;var n=Object(c.weekInYear)(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:Object(c.cloneDate)(t.value)}},e.prototype.getStyles=function(e){var t,n=e.isRangeEnd,i=e.isRangeStart,a="end"===this.activeRangeEnd&&n,o="start"===this.activeRangeEnd&&i;return t={"k-range-end":!e.isOtherMonth&&n,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-state-active":o||a,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||i||n),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-state-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(t).reduce((function(e,n){return t[n]?e.concat(n):e}),[]).join(" ")},e.prototype.tableCellIndex=function(e,t){return e+":"+t},e.prototype.handleWeekNumberClick=function(e){var t=this,n=e.map((function(e){return e.value})).filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.weekNumberCellClick.emit(n)},e.prototype.firstWeekDateContext=function(e){if(!this.weekNumber)return null;for(var t=0,n=this.shouldRenderCellContent(e[t])?e[t]:null;!n&&t<e.length;){var i=e[++t];n=this.shouldRenderCellContent(i)?i:null}return n},e.prototype.updateData=function(){var e=ne(this.selectedDates)||$(),t=F(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:t,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},e.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(e,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(e,"click",this.clickHandler.bind(this)))},e.prototype.clickHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index"),i=this.cellByIndex(n);if(!i.isDisabled){var a=e.ctrlKey,o=e.metaKey,r=e.shiftKey;this.cellClick.emit({date:i.value,modifiers:{ctrlKey:a,metaKey:o,shiftKey:r}})}}},e.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},e.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==n&&this.emitCellLeave();var i=this.cellByIndex(n).value;this.cellEnter.emit(i),this.currentCellIndex=n}else this.currentCellIndex&&this.emitCellLeave()},e.prototype.closestCell=function(e){return lt(e.target,(function(e){return e.hasAttribute("data-cell-index")}),this.element.nativeElement)},e.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},e.prototype.cellByIndex=function(e){var t=e.split(":"),n=t[0],i=t[1];return this.data[n][i]},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"isActive",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"activeView",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"cellUID",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"focusedDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"viewDate",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"activeRangeEnd",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"selectionRange",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Array)],e.prototype,"selectedDates",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"viewIndex",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"templateRef",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",o.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellEnter",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellLeave",void 0),e=Object(a.__decorate)([Object(o.Component)({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}),Object(a.__metadata)("design:paramtypes",[Ee,p.IntlService,o.ChangeDetectorRef,o.ElementRef,o.NgZone,o.Renderer2,ft])],e)}(),En=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[jn,Sn,Tn],exports:[jn,Sn,Tn],imports:[m.CommonModule,l.EventsModule]})],e)}(),Dn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[yt,_t,Ot,jt,kt,Ct,wt,St],exports:[yt,_t,Ot,jt,kt,Ct,wt,St]})],e)}(),In=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),xn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:In,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(In),Pn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:In,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(In),Vn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[on,xn,Pn,pn],exports:[on,xn,Pn,pn,En,Dn],imports:[m.CommonModule,En,p.IntlModule,Dn,b.PopupModule],providers:[bt,ue,me,ve,Oe,an]})],e)}(),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),Bn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Rn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Rn),Fn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Rn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Rn),Mn=[ct],An=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Mn],exports:[Mn],imports:[m.CommonModule]})],e)}(),Ln=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Bt,pt,Fn,Bn,ut],exports:[Bt,pt,Fn,Bn,ut,En,Dn],imports:[m.CommonModule,En,Vn,p.IntlModule,Dn,An,l.EventsModule,l.ResizeSensorModule],providers:[Ye,ue,me,ve,Oe,an]})],e)}(),Nn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({exports:[Ln,Vn],imports:[Ln,Vn]})],e)}(),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(s.ComponentMessages),Hn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:zn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Gn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:zn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(zn),Wn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Gt,Gn,Hn],exports:[Gt,Gn,Hn],imports:[m.CommonModule,p.IntlModule,l.EventsModule]})],e)}(),Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),qn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Kn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Kn),Un=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Kn,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Kn),Zn=f.touchEnabled,$n=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Ut,Un,qn],exports:[Ut,Un,qn,Dn],imports:[m.CommonModule,Wn,Ln,p.IntlModule,b.PopupModule,Dn,l.EventsModule],providers:[{provide:Kt,useValue:Zn}]})],e)}(),Yn=[fn,mn,un,_n,yn,vn],Xn=[Vn,Wn,b.PopupModule,l.EventsModule],Qn=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Yn],exports:[Yn],imports:[m.CommonModule,Xn]})],e)}(),Jn=J("div"),ei=J("ul"),ti=J("li"),ni=Object(l.isDocumentAvailable)()?Jn([Jn([Jn([ei([ti("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,ii=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(Object(l.isDocumentAvailable)()){var t=e&&e.querySelector(".k-time-list-container")||document.body,n=t.appendChild(ni);this.timeListHeight=n.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=n.querySelector("li").getBoundingClientRect().height,t.removeChild(n)}},e.prototype.isActive=function(e){return!(!Object(l.isDocumentAvailable)()||!e)&&(e.nativeElement||e)===document.activeElement},e=Object(a.__decorate)([Object(o.Injectable)()],e)}(),ai=(kn=24,function(e){return e%kn}),oi=function(e,t){return ai(24+e-t)},ri=function(e){return function(t,n){return!n||Object(c.getDate)(t).getTime()===Object(c.getDate)(n).getTime()?t:L(t,e)}},si=ri(0),ci=ri(23),li=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return L(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,a=e.insertUndividedMax,o=void 0===a?this.insertUndividedMax:a,r=e.min,s=void 0===r?this.min:r,c=e.max,l=void 0===c?this.max:c,d=e.part,p=e.step,u=void 0===p?this.step:p;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){var n=L(w,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=s,this.max=l,this.step=u},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return ai(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[si(e,n),ci(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(oi(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(L(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return oi(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),di=function(e){return function(t){return t%e}}(60),pi=function(e,t){return di(60+e-t)},ui=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:N(t,e)}},hi=ui(0),bi=ui(59),mi=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return N(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,c=e.part,l=e.step,d=void 0===l?this.step:l;this.insertUndividedMax=i,this.toListItem=function(e){var n=N(w,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=o,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return di(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[hi(e,n),bi(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(pi(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(N(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return pi(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),fi=function(e){return function(t){return t%e}}(60),gi=function(e,t){return fi(60+e-t)},vi=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()?t:z(t,e)}},yi=vi(0),_i=vi(59),Oi=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return z(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,c=e.part,l=e.step,d=void 0===l?this.step:l;this.insertUndividedMax=i,this.toListItem=function(e){var n=z(w,e);return{text:t.intl.formatDate(n,c.pattern),value:n}},this.min=o,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return fi(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[yi(e,n),_i(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return gi(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(gi(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(z(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),ji=function(e){return function(t){return t%e}}(1e3),ki=function(e,t){return ji(1e3+e-t)},Ci=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()&&t.getSeconds()===n.getSeconds()?t:H(t,e)}},wi=Ci(0),Si=Ci(999),Ti=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return H(e,t.getMilliseconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,c=e.step,l=void 0===c?this.step:c;this.insertUndividedMax=i,this.toListItem=function(e){var n=H(w,e);return{text:t.intl.formatDate(n,"SSS"),value:n}},this.min=o,this.max=s,this.step=l},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return ji(t+e*n)}),r=G(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!Object(c.isEqual)(this.min,e)||!Object(c.isEqual)(this.max,t)},e.prototype.limitRange=function(e,t,n){return[wi(e,n),Si(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return ki(e.getMilliseconds(),this.min.getMilliseconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMilliseconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(ki(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(H(this.max,this.lastMillisecond(e)))},e.prototype.lastMillisecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMilliseconds(),i.getMilliseconds()]},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Ei=function(e,t){var n=Object(c.cloneDate)(e);return n.setHours(t),n},Di=function(e){return null!==e&&e<12},Ii=function(e,t,n){return!t&&!n||e>=t&&e<=n},xi=function(e,t,n){return!t&&!n||e>=t||e<=n},Pi=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=Di(n),a=Di(t.getHours());if(i&&a||!i&&!a)return e;var o=this.normalizedRange(),r=o[0],s=o[1],c=void 0===s?24:s,l=n+(a?-12:12);return Ei(e,Math.min(Math.max(r,l),c||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,a=void 0===i?this.max:i,o=e.part,r=void 0===o?this.part:o;this.min=n,this.max=a,this.part=r},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],a=this.normalizedRange(),o=a[0],r=a[1],s=this.intl.dateFormatNames(t);return Di(o)&&i.push({text:s.am,value:Ei(this.min,o)}),null!==(n=r)&&(!n||n>11)&&i.push({text:s.pm,value:Ei(this.min,Math.max(12,r))}),this.min.getHours()!==o?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?xi:Ii)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e=Object(a.__decorate)([Object(o.Injectable)(),Object(a.__metadata)("design:paramtypes",[p.IntlService])],e)}(),Vi=function(){return null},Ri={35:function(e,t){return e[e.length-1]},36:function(e,t){return e[0]},38:function(e,t){return e[t-1]},40:function(e,t){return e[t+1]}},Bi=((Cn={})[Zt]=Pi,Cn[$t]=li,Cn[Xt]=mi,Cn[Qt]=Oi,Cn[Yt]=Ti,Cn),Fi=function(){function e(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=Object(c.cloneDate)(w),this.max=Object(c.cloneDate)(D),this.step=1,this.disabled=!1,this.valueChange=new o.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Bi[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=this.service.limitRange(this.min,this.max,t),a=i[0],o=i[1];(this.service.isRangeChanged(a,o)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:o}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},e.prototype.ngOnInit=function(){var e=this;this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;var t="translateY("+this.topOffset+"px)";this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.scrollOnce((function(t){return e.virtualization.scrollToIndex(t)}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.scrollOnce((function(t){var n=e.animateToIndex?"animateToIndex":"scrollToIndex";e.virtualization[n](t),e.animateToIndex=!0}))},e.prototype.handleChange=function(e){var t=this.service.apply(this.value,e.value);this.value.getTime()!==t.getTime()&&(this.indexToScroll=this.data.indexOf(e),this.value=t,this.valueChange.emit(t))},e.prototype.handleItemClick=function(e){var t=lt(e.target,(function(e){return e.hasAttribute("data-timelist-item-index")}),this.element.nativeElement);if(t){var n=t.getAttribute("data-timelist-item-index");this.handleChange(this.data[n])}},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),a=Math.abs(Math.ceil(e)-i);if(t===n&&a<2)return i;var o=t>n;return o&&a>=this.bottomThreshold||!o&&a>this.topThreshold?this.virtualization.itemOffset(n+1):i},e.prototype.hasMissingValue=function(e){var t=e.previousValue,n=e.currentValue,i=t&&!this.service.valueInList(t),a=n&&!this.service.valueInList(n);return i||a},e.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},e.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},e.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},e.prototype.textHasChanged=function(e){var t=e.previousValue,n=e.currentValue;if(!t||!n)return!1;var i=this.data[this.selectedIndex(t)],a=this.data[this.selectedIndex(n)];return i&&a&&i.text!==a.text},e.prototype.handleKeyDown=function(e){var t=(Ri[e.keyCode]||Vi)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},e.prototype.bindEvents=function(){var e=this;this.scrollSubscription=this.virtualization.scroll$().pipe(Object(h.debounceTime)(100),Object(h.map)((function(e){return e.target.scrollTop})),Object(h.map)((function(t){return e.itemOffset(t)})),Object(h.map)((function(t){return e.virtualization.itemIndex(t)}))).subscribe((function(t){e.virtualization.scrollToIndex(t),e.handleChange(e.data[t])}));var t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",(function(){return!e.isActive&&e.focus()})),this.renderer.listen(t,"click",(function(){return e.focus()})),this.renderer.listen(t,"blur",(function(){return e.isActive=!1})),this.renderer.listen(t,"focus",(function(){return e.isActive=!0})),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))},Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object)],e.prototype,"part",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.ViewChild)(ct,{static:!0}),Object(a.__metadata)("design:type",ct)],e.prototype,"virtualization",void 0),Object(a.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(a.__metadata)("design:type",Number),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"tabIndex",null),Object(a.__decorate)([Object(o.HostBinding)("class.k-time-list"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),e=Object(a.__decorate)([Object(o.Component)({selector:"kendo-timelist",template:'\n <kendo-virtualization\n [skip]="skip"\n [take]="total"\n [total]="total"\n [itemHeight]="itemHeight"\n [maxScrollDifference]="listHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n class="k-time-container"\n role="presentation"\n tabindex="-1"\n >\n <ul [ngStyle]="style" class="k-reset"\n [kendoEventsOutsideAngular]="{\n click: handleItemClick\n }"\n [scope]="this"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index">\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),Object(a.__metadata)("design:paramtypes",[o.ElementRef,o.Injector,ii,o.Renderer2,o.NgZone])],e)}(),Mi=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},Ai=function(e,t){return Mi(e,t)&&e.getSeconds()===t.getSeconds()},Li=[{type:$t,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Xt,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return Mi(e,t)?t.getMinutes():0}},{type:Qt,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Ai(e,t)?t.getSeconds():0}},{type:Yt,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return function(e,t){return Ai(e,t)&&e.getMilliseconds()===t.getMilliseconds()}(e,t)?t.getMilliseconds():0}}],Ni=function(e){return function(t){return e.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(t)))}}(Li),zi=function(e){return function(t){return e.map((function(e){var n=t[e.type];return n?function(e,t,n){return function(i,a){var o=e(i),r=t(i,a),s=o-r;if(s<0)return r;var c=s%n;return o-c+(c>n/2?n:0)}}(e.getter,e.minGetter,n):e.getter}))}}(Li),Hi=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},Gi=function(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(wn||(wn={}));var Wi=function(){function e(e,t,n,i,a,r,s,l){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=r,this.renderer=s,this.pickerService=l,this.componentClass=!0,this.format="t",this.min=Object(c.cloneDate)(E),this.max=Object(c.cloneDate)(D),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new o.EventEmitter,this.valueReject=new o.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current=function(e,t,n){if(!e||!t||!n)return e;var i=M(e,t,n),a=i.candidateValue,o=i.minValue,r=i.maxValue;return a<o?F(e,t):a>r?F(e,n):e}(this.snapTime(Object(c.cloneDate)(e||w),this.min),this.min,this.max),o.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;if(this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach((function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")})),e>=0)){var n=this.listIndex(e),i=this.timeListWrappers.toArray()[n];i&&this.renderer.addClass(i.nativeElement,"k-state-focused")}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cdr.markForCheck()}))),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},e.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},e.prototype.handleAccept=function(){this.handleChange(this.mergeValue(Object(c.cloneDate)(this.value||Object(c.getDate)(Z())),this.current))},e.prototype.handleNow=function(){this.current=Z(),this.handleChange(this.current),this.cdr.markForCheck()},e.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},e.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},e.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},e.prototype.handleBlur=function(e){var t=P(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},e.prototype.containsElement=function(e){var t=this;return Boolean(dt(e,(function(e){return e===t.element.nativeElement})))},e.prototype.partStep=function(e){return this.steps[e.type]||1},e.prototype.init=function(e){var t;e&&!ee(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hi(Ni(this.dateFormatParts))),e&&!ee(e,"steps")||(this.snapTime=(t=zi(this.steps),function(e,n){var i=Object(c.cloneDate)(e);return i.setHours.apply(i,t.map((function(e){return e(i,n)}))),i})),e&&!ee(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&K(Z(),this.min,this.max)},e.prototype.focusList=function(e){this.timeLists.length&&this.timeLists.reduce(Gi,[]).map((function(t){return e===wn.Right?t.next:t.prev})).map((function(e){return e&&e.focus()}))},e.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(Object(c.cloneDate)(e))},e.prototype.hasActiveButton=function(){var e=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce((function(t,n){return t||e.dom.isActive(n)}),!1)},e.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},e.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Hi(Ni(this.dateFormatParts)),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.element.nativeElement,"keydown",e.handleKeydown.bind(e)))}))},e.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,i=-1!==[l.Keys.ArrowLeft,l.Keys.ArrowRight].indexOf(t);V(this.pickerService)&&i&&n||(t!==l.Keys.Enter||this.hasActiveButton()?t!==l.Keys.ArrowLeft&&t!==l.Keys.ArrowRight||this.focusList(t===l.Keys.ArrowLeft?wn.Left:wn.Right):this.handleAccept())},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},Object(a.__decorate)([Object(o.ViewChild)("accept",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"accept",void 0),Object(a.__decorate)([Object(o.ViewChild)("cancel",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"cancel",void 0),Object(a.__decorate)([Object(o.ViewChild)("now",{static:!1}),Object(a.__metadata)("design:type",o.ElementRef)],e.prototype,"now",void 0),Object(a.__decorate)([Object(o.ViewChildren)(Fi),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"timeLists",void 0),Object(a.__decorate)([Object(o.ViewChildren)("listWrapper"),Object(a.__metadata)("design:type",o.QueryList)],e.prototype,"timeListWrappers",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-timeselector"),Object(a.__metadata)("design:type",Boolean)],e.prototype,"componentClass",void 0),Object(a.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(a.__metadata)("design:type",Boolean),Object(a.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"min",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"max",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"cancelButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"setButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"nowButton",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Object),Object(a.__metadata)("design:paramtypes",[Object])],e.prototype,"steps",null),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",Date)],e.prototype,"value",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(a.__decorate)([Object(o.Output)(),Object(a.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueReject",void 0),e=Object(a.__decorate)([Object(o.Component)({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.timeselector"}],selector:"kendo-timeselector",template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n class="k-button k-flat k-time-now" type="button"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel" type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-time-accept k-button k-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n '}),Object(a.__param)(7,Object(o.Optional)()),Object(a.__metadata)("design:paramtypes",[s.LocalizationService,o.ChangeDetectorRef,o.ElementRef,p.IntlService,ii,o.NgZone,o.Renderer2,Tt])],e)}(),Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"toggle",void 0),t}(s.ComponentMessages),qi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Ui=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Zi=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),$i=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:Ki,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(Ki),Yi=[qi,Fi,Ui,en,Zi,$i,Wi],Xi=[Wn,p.IntlModule,b.PopupModule,An,l.EventsModule],Qi=f.touchEnabled,Ji=[ii,li,mi,Oi,Ti,Pi,{provide:Kt,useValue:Qi}],ea=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:[Yi],exports:[Yi],imports:[m.CommonModule].concat(Xi),providers:Ji})],e)}(),ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"toggle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"dateTab",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"dateTabLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"timeTab",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"timeTabLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"accept",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"acceptLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"cancelLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"today",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"now",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nowLabel",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"prevButtonTitle",void 0),Object(a.__decorate)([Object(o.Input)(),Object(a.__metadata)("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(s.ComponentMessages),na=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(a.__decorate)([Object(o.Component)({providers:[{provide:ta,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(ta),ia=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(a.__extends)(t,e),n=t,t=n=Object(a.__decorate)([Object(o.Directive)({providers:[{provide:ta,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),Object(a.__metadata)("design:paramtypes",[s.LocalizationService])],t)}(ta),aa=[nn,na,ia],oa=f.touchEnabled,ra=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({declarations:aa.slice(),exports:aa.concat([Dn]),imports:[m.CommonModule,p.IntlModule,Wn,Ln,ea,b.PopupModule,l.EventsModule,Dn],providers:[{provide:Kt,useValue:oa}]})],e)}(),sa=[Nn,Wn,$n,ea,Qn,ra],ca=function(){function e(){}return e=Object(a.__decorate)([Object(o.NgModule)({exports:sa,imports:sa})],e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(2),r=n(15),s=n(12),c=n(11),l=function(){function e(e,t){this.dependencyDomService=e,this.mapper=t}return Object.defineProperty(e.prototype,"timelineRow",{set:function(e){c.isPresent(e)&&this.dependencyDomService.registerTimelineRow(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.isMileStone=function(e){return!e.hasChildren&&o.isEqual(this.mapper.extractFromTask(e.data,"start"),this.mapper.extractFromTask(e.data,"end"))},i.__decorate([a.ViewChild("timelineRow",{static:!1}),i.__metadata("design:type",a.ElementRef),i.__metadata("design:paramtypes",[a.ElementRef])],e.prototype,"timelineRow",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"rows",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"taskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"summaryTaskTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"taskClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"isTaskSelected",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"renderDependencyDragClues",void 0),e=i.__decorate([a.Component({selector:"[kendoGanttTasksTableBody]",template:'\n <tr #timelineRow *ngFor="let item of rows; let index = index">\n <td>\n <kendo-gantt-milestone-task\n *ngIf="isMileStone(item); else task"\n [dataItem]="item.data"\n [level]="item.level"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-milestone-task>\n <ng-template #task>\n <kendo-gantt-summary-task\n *ngIf="item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [template]="summaryTaskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [isExpanded]="isExpanded"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-summary-task>\n <kendo-gantt-task\n *ngIf="!item.hasChildren"\n [dataItem]="item.data"\n [level]="item.level"\n [taskContentTemplate]="taskContentTemplate"\n [taskTemplate]="taskTemplate"\n [activeView]="activeView"\n [taskClass]="taskClass"\n [selectable]="selectable"\n [isSelected]="isTaskSelected"\n [index]="index"\n [renderDependencyDragClues]="renderDependencyDragClues"\n >\n </kendo-gantt-task>\n </ng-template>\n </td>\n </tr>\n '}),i.__metadata("design:paramtypes",[r.DependencyDomService,s.MappingService])],e)}();t.GanttTasksTableBodyComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=function(){function e(){}return i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"groupSlots",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"slots",void 0),e=i.__decorate([a.Component({selector:"[kendoGanttHeaderTableBody]",template:'\n <tr>\n <td *ngFor="let item of groupSlots" [attr.colspan]="item.span" class="k-header">{{ item.text }}</td>\n </tr>\n\n <tr>\n <td *ngFor="let item of slots" [attr.colspan]="item.span" class="k-header" [attr.title]="item.text">{{ item.text }}</td>\n </tr>\n '})],e)}();t.GanttHeaderTableBodyComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(23),s=n(18),c=n(25),l=n(15),d=n(16),p=n(22),u=n(38),h=function(e){function t(t,n,i,a,o,r,s,c){var l=e.call(this,i,a,o,r,s,c)||this;return l.editService=t,l.touchEnabled=n,l}var n;return i.__extends(t,e),n=t,t.prototype.onTaskDelete=function(){this.editService.dataItem=this.dataItem,this.editService.taskDelete.next(this.dataItem)},i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],t.prototype,"taskContentTemplate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],t.prototype,"taskTemplate",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-task",providers:[{provide:u.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n class="k-task k-task-single"\n role="treeitem"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n <ng-container *ngIf="!taskTemplate">\n <div\n class="k-task-complete"\n [style.width.px]="completionOverlayWidth"\n aria-hidden="true"\n >\n </div>\n <div class="k-task-content">\n <div class="k-task-template">\n <ng-container *ngIf="!taskContentTemplate; else taskContent">\n {{ mapper.extractFromTask(dataItem, \'title\') }}\n </ng-container>\n <ng-template\n #taskContent\n [ngTemplateOutlet]="taskContentTemplate"\n [ngTemplateOutletContext]="{ $implicit: dataItem }"\n >\n </ng-template>\n </div>\n <span\n class="k-task-actions"\n aria-hidden="true"\n >\n <span\n class="k-link k-task-delete"\n [kendoEventsOutsideAngular]="{\n click: onTaskDelete\n }"\n [scope]="this"\n >\n <span class="k-icon k-i-close"></span>\n </span>\n </span>\n </div>\n </ng-container>\n <ng-template\n *ngIf="taskTemplate"\n [ngTemplateOutlet]="taskTemplate"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),i.__param(1,a.Inject(c.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[s.EditService,Boolean,o.MappingService,p.TimelineViewService,l.DependencyDomService,d.OptionChangesService,a.ChangeDetectorRef,r.NavigationService])],t)}(u.GanttTaskBase);t.GanttTaskComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(23),s=n(25),c=n(15),l=n(16),d=n(22),p=n(38),u=n(11),h=function(e){function t(t,n,i,a,o,r,s){var c=e.call(this,n,i,a,o,r,s)||this;return c.touchEnabled=t,c.summaryWrapperClass=!0,c}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=!u.isPresent(this.isExpanded)||this.isExpanded(this.dataItem);return String(e)},enumerable:!0,configurable:!0}),i.__decorate([a.HostBinding("class.k-summary-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"summaryWrapperClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],t.prototype,"template",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],t.prototype,"isExpanded",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-summary-task",providers:[{provide:p.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-summary"\n [ngClass]="taskClass(dataItem)"\n [style.width.px]="taskWidth"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-expanded]="ariaExpanded"\n [attr.aria-level]="level + 1"\n >\n <div *ngIf="!template; else summaryTemplate"\n class="k-task-summary-progress"\n [style.width.px]="taskWidth">\n <div\n class="k-task-summary-complete"\n [style.width.px]="completionOverlayWidth"\n >\n </div>\n </div>\n <ng-template\n #summaryTemplate\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: dataItem,\n elementWidth: taskWidth\n }"\n >\n </ng-template>\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),i.__param(0,a.Inject(s.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[Boolean,o.MappingService,d.TimelineViewService,c.DependencyDomService,l.OptionChangesService,a.ChangeDetectorRef,r.NavigationService])],t)}(p.GanttTaskBase);t.GanttSummaryTaskComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(23),s=n(25),c=n(15),l=n(16),d=n(22),p=n(38),u=function(e){function t(t,n,i,a,o,r,s){var c=e.call(this,n,i,a,o,r,s)||this;return c.touchEnabled=t,c.milestoneWrapperClass=!0,c}var n;return i.__extends(t,e),n=t,i.__decorate([a.HostBinding("class.k-milestone-wrap"),i.__metadata("design:type",Boolean)],t.prototype,"milestoneWrapperClass",void 0),t=n=i.__decorate([a.Component({selector:"kendo-gantt-milestone-task",providers:[{provide:p.GanttTaskBase,useExisting:a.forwardRef((function(){return n}))}],template:'\n <div\n #task\n role="treeitem"\n class="k-task k-task-milestone"\n [ngClass]="taskClass(dataItem)"\n [attr.title]="mapper.extractFromTask(dataItem, \'title\')"\n [class.k-state-selected]="isSelected(dataItem)"\n [attr.aria-selected]="ariaSelected"\n [attr.aria-level]="level + 1"\n >\n </div>\n <ng-container *ngIf="renderDependencyDragClues">\n <div\n class="k-task-dot k-task-start k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n <div\n class="k-task-dot k-task-end k-touch-action-none"\n [class.k-display-block]="touchEnabled"\n >\n </div>\n </ng-container>\n ',styles:["\n .k-task.k-focus {\n box-shadow: 0 0 4px 3px grey;\n outline: none;\n }\n .k-task.k-focus.k-state-selected {\n box-shadow: 0 0 4px 3px #ffaea8;\n }\n "]}),i.__param(0,a.Inject(s.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[Boolean,o.MappingService,d.TimelineViewService,c.DependencyDomService,l.OptionChangesService,a.ChangeDetectorRef,r.NavigationService])],t)}(p.GanttTaskBase);t.GanttMilestoneTaskComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(19),r=function(){function e(e){this.gantt=e,this.context={},this.role="toolbar"}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this.context.position=this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbarTemplateRef",{get:function(){return this.gantt.toolbarTemplate?this.gantt.toolbarTemplate.templateRef:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderTemplate",{get:function(){var e=this.gantt.toolbarTemplate,t=e?e.position:null;return e&&("both"===t||t===this.position)},enumerable:!0,configurable:!0}),e.prototype.handleViewChange=function(e){this.gantt.changeActiveView(e)},i.__decorate([a.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showAddTask",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewSelector",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"position",null),e=i.__decorate([a.Component({selector:"kendo-gantt-toolbar",template:'\n <ng-container *ngIf="!renderTemplate">\n <kendo-gantt-add-task *ngIf="showAddTask"></kendo-gantt-add-task>\n <span class="k-spacer k-toolbar-spacer"></span>\n <kendo-gantt-view-selector\n *ngIf="showViewSelector"\n [views]="gantt.viewTypes"\n [activeView]="gantt.activeView"\n (activeViewChange)="handleViewChange($event)"></kendo-gantt-view-selector>\n </ng-container>\n <ng-template\n *ngIf="renderTemplate"\n [ngTemplateOutlet]="toolbarTemplateRef"\n [ngTemplateOutletContext]="context"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[o.GanttComponent])],e)}();t.ToolbarComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=function(){function e(e){this.localizationService=e,this.hostClass=!0,this.activeView="week",this.activeViewChange=new a.EventEmitter}return e.prototype.onClick=function(e){e!==this.activeView&&this.activeViewChange.emit(e)},e.prototype.getViewTypeText=function(e){return this.localizationService.get(e+"ViewText")},i.__decorate([a.HostBinding("class.k-gantt-views-wrapper"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-view-selector",template:'\n <select\n class="k-dropdownlist k-picker k-rounded-md k-views-dropdown"\n aria-label="View Selector"\n [value]="activeView"\n (change)="activeViewChange.emit($event.target.value)">\n <option *ngFor="let view of views" [value]="view">{{getViewTypeText(view)}}</option>\n </select>\n <kendo-buttongroup class="k-gantt-views" selection="single">\n <button *ngFor="let view of views"\n kendoButton\n type="button"\n [selected]="view === activeView"\n (click)="onClick(view)">{{getViewTypeText(view)}}</button>\n </kendo-buttongroup>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.ViewSelectorComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(7),s=n(12),c=n(15),l=n(11),d=n(53),p=n(3),u=function(){function e(e,t,n,i,a){var s=this;this.polyline=e,this.zone=t,this.renderer=n,this.mapper=i,this.dependencyDomService=a,this.subscriptions=new o.Subscription,this.subscriptions.add(a.taskChanges.pipe(r.switchMap((function(e){return s.zone.onStable.pipe(r.take(1),r.map((function(){return e})))}))).subscribe((function(e){return s.updatePoints(e)})))}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){l.isPresent(e.dependency)&&this.updatePoints(this.dependencyDomService.dependencyDomArgs)},e.prototype.updatePoints=function(e){var t=e.timelineRow,n=e.contentContainer,i=e.tasks;if(l.isPresent(t)&&l.isPresent(n)&&l.isPresent(i)&&0!==i.size&&i.has(this.mapper.extractFromDependency(this.dependency,"fromId"))&&i.has(this.mapper.extractFromDependency(this.dependency,"toId"))){var a=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"fromId")),n),o=d.getElementRect(i.get(this.mapper.extractFromDependency(this.dependency,"toId")),n),r=p.isDocumentAvailable()?t.getBoundingClientRect().height:0,s=d.dependencyCoordinates(a,o,r,this.dependency.type,10,4);this.drawPoints(s)}else this.clearPoints()},e.prototype.clearPoints=function(){this.renderer.setAttribute(this.polyline.nativeElement,"points","")},e.prototype.drawPoints=function(e){if(l.isPresent(e)&&0!==e.length){var t=e.map((function(e){return e.left+","+e.top})).join(" ");this.renderer.setAttribute(this.polyline.nativeElement,"points",t)}else this.clearPoints()},i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"dependency",void 0),e=i.__decorate([a.Directive({selector:"[kendoGanttDependency]"}),i.__metadata("design:paramtypes",[a.ElementRef,a.NgZone,a.Renderer2,s.MappingService,c.DependencyDomService])],e)}();t.GanttDependencyDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(5),r=n(11),s=n(56),c=n(32),l=n(86),d=function(){function e(e,t,n){this.timelineScrollableContainer=e,this.scrollService=t,this.zone=n,this.subscriptions=new o.Subscription,this.subscriptions.add(this.scrollService.horizontalScroll.subscribe(this.scrollHorizontallyTo.bind(this))),this.subscriptions.add(this.scrollService.verticalScroll.subscribe(this.scrollVerticallyTo.bind(this))),this.subscriptions.add(this.scrollService.scrollCancel.subscribe(this.cancelScroll.bind(this)))}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.scrollHorizontallyTo=function(e){var t=this;this.zone.runOutsideAngular((function(){var n=t.timelineScrollableContainer.nativeElement,i=l.getViewportBoundaries(n);e<i.left+t.scrollSettings.threshold?t.horizontalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Horizontal)}),t.scrollSettings.interval):e>i.right-t.scrollSettings.threshold&&(t.horizontalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Horizontal)}),t.scrollSettings.interval))}))},e.prototype.scrollVerticallyTo=function(e){var t=this;this.zone.runOutsideAngular((function(){var n=t.timelineScrollableContainer.nativeElement,i=l.getViewportBoundaries(n);e<i.top+t.scrollSettings.threshold?t.verticalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Backwards,s.ScrollAxis.Vertical)}),t.scrollSettings.interval):e>i.bottom-t.scrollSettings.threshold&&(t.verticalScrollInterval=setInterval((function(){return l.scrollElement(n,t.scrollSettings.step,s.ScrollDirection.Forward,s.ScrollAxis.Vertical)}),t.scrollSettings.interval))}))},e.prototype.cancelScroll=function(){r.isPresent(this.verticalScrollInterval)&&(clearInterval(this.verticalScrollInterval),this.verticalScrollInterval=null),r.isPresent(this.horizontalScrollInterval)&&(clearInterval(this.horizontalScrollInterval),this.horizontalScrollInterval=null)},i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"scrollSettings",void 0),e=i.__decorate([a.Directive({selector:"[kendoGanttTimelineScrollable]"}),i.__metadata("design:paramtypes",[a.ElementRef,c.TimelineScrollService,a.NgZone])],e)}();t.TimelineScrollableDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n(56),o=n(11),r=function(e,t){return Math.floor(e[t])<=0},s=function(e,t){var n=t===a.ScrollAxis.Horizontal?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight;return Math.ceil(e[t])>=n};t.scrollElement=function(e,t,n,c){if(o.isPresent(e)&&i.isDocumentAvailable())for(var l=e[c],d=t,p=0;l===e[c]&&(n!==a.ScrollDirection.Backwards||!r(e,c))&&(n!==a.ScrollDirection.Forward||!s(e,c))&&p<20;)e[c]+=d*n,d+=1,p+=1},t.getViewportBoundaries=function(e){var t=e.getBoundingClientRect(),n=Math.max(t.top,0),i=Math.max(t.left,0);return{top:n,bottom:n+Math.min(t.bottom,e.clientHeight),left:i,right:i+Math.min(t.right,e.clientWidth)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(15),r=n(24),s=n(16),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="day",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Component({selector:"kendo-gantt-timeline-day-view",template:"",providers:[{provide:r.ViewBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,o.DependencyDomService])],t)}(r.ViewBase);t.TimelineDayViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(15),r=n(24),s=n(16),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="week",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Component({selector:"kendo-gantt-timeline-week-view",template:"",providers:[{provide:r.ViewBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,o.DependencyDomService])],t)}(r.ViewBase);t.TimelineWeekViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(15),r=n(24),s=n(16),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.type="month",i}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Component({selector:"kendo-gantt-timeline-month-view",template:"",providers:[{provide:r.ViewBase,useExisting:a.forwardRef((function(){return n}))}]}),i.__metadata("design:paramtypes",[s.OptionChangesService,o.DependencyDomService])],t)}(r.ViewBase);t.TimelineMonthViewComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(12),s=n(20),c=n(18),l=function(){function e(e,t,n,i){this.mapper=e,this.editService=t,this.cdr=n,this.localizationService=i}return e.prototype.ngOnInit=function(){var e=this;this.editService.loadTasks(this.data).subscribe((function(t){e.loadedTasks=t}))},Object.defineProperty(e.prototype,"predecessors",{get:function(){return this.editService.predecessors},set:function(e){this.editService.predecessors=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"successors",{get:function(){return this.editService.successors},set:function(e){this.editService.successors=e},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.getDependencyType=function(e){return s.DependencyType[e]},e.prototype.handleEditingResult=function(e){this.editService.triggerEditEvent(e)},e.prototype.handleTaskDelete=function(){this.editService.taskDelete.next(this.editService.dataItem)},i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-edit-dialog",template:'\n <kendo-dialog\n [title]="getText(\'taskEditingDialogTitle\')"\n [width]="575"\n [height]="470"\n (close)="handleEditingResult(\'cancel\')">\n <kendo-dialog-messages\n [closeTitle]="getText(\'taskEditingDialogCloseTitle\')"></kendo-dialog-messages>\n\n <kendo-tabstrip [keepTabContent]="true" style="height: 345px;">\n <kendo-tabstrip-tab [title]="getText(\'taskEditingGeneralTabTitle\')" [selected]="true">\n <ng-template kendoTabContent>\n <kendo-gantt-task-fields></kendo-gantt-task-fields>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingPredecessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="predecessors"\n dependencyType="predecessor"\n >\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n <kendo-tabstrip-tab [title]="getText(\'taskEditingSuccessorsTabTitle\')">\n <ng-template kendoTabContent>\n <kendo-gantt-dependencies-table\n [tasks]="loadedTasks"\n [(dependencies)]="successors"\n dependencyType="successor">\n </kendo-gantt-dependencies-table>\n </ng-template>\n </kendo-tabstrip-tab>\n </kendo-tabstrip>\n\n <kendo-dialog-actions layout="normal">\n <button\n kendoButton\n [kendoEventsOutsideAngular]="{\n click: handleTaskDelete\n }"\n [scope]="this"\n >\n {{ getText(\'deleteButtonText\') }}\n </button>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]="true" (click)="handleEditingResult(\'save\')">{{ getText(\'saveButtonText\') }}</button>\n <button kendoButton (click)="handleEditingResult(\'cancel\')">{{ getText(\'cancelButtonText\') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n '}),i.__metadata("design:paramtypes",[r.MappingService,c.EditService,a.ChangeDetectorRef,o.LocalizationService])],e)}();t.EditDialogComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(57),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-gantt-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.CustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(57),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoGanttLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(4),r=n(18),s=function(){function e(e,t,n){this.localizationService=e,this.editService=t,this.ngZone=n,this.data=[{text:this.getText("addChildText"),type:"addChild"},{text:this.getText("addAboveText"),type:"addAbove"},{text:this.getText("addBelowText"),type:"addBelow"}],this.icon="plus"}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.handleOpen=function(e){this.editService.getSelectedItem()||e.preventDefault()},e.prototype.handleMouseClick=function(){var e=this;this.editService.getSelectedItem()||this.ngZone.run((function(){e.editService.addEvent.next({selectedItem:null,actionType:"addTask"})}))},e.prototype.handleItemClick=function(e){this.editService.addEvent.next({actionType:e.type,selectedItem:null})},i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-add-task",template:'\n <kendo-dropdownbutton\n [data]="data"\n [icon]="icon"\n [kendoEventsOutsideAngular]="{ click: handleMouseClick }"\n [scope]="this"\n (itemClick)="handleItemClick($event)"\n (open)="handleOpen($event)">\n {{ getText(\'addTaskText\') }}\n </kendo-dropdownbutton>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService,r.EditService,a.NgZone])],e)}();t.GanttAddTaskComponent=s},function(e,t){e.exports=g},function(e,t){e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(6),r=n(12),s=n(33),c=n(20),l=n(18),d=function(){function e(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n,this.dependenciesChange=new a.EventEmitter,this.selectedKeys=[],this.formGroups=new o.FormArray([]),this.dependencyTypes=this.getDependencyTypes()}return Object.defineProperty(e.prototype,"taskId",{get:function(){return this.editService.dataItem.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependencyIdField",{get:function(){return"predecessor"===this.dependencyType?"fromId":"toId"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(0===this.formGroups.controls.length){var t=this.mapper.dependencyFields;this.dependencies.forEach((function(n){var i,a=new o.FormGroup(((i={})[t.id]=new o.FormControl(e.mapper.extractFromDependency(n,"id")),i[t.fromId]=new o.FormControl(e.mapper.extractFromDependency(n,"fromId"),o.Validators.required),i[t.toId]=new o.FormControl(e.mapper.extractFromDependency(n,"toId"),o.Validators.required),i[t.type]=new o.FormControl(e.mapper.extractFromDependency(n,"type"),o.Validators.required),i));e.formGroups.push(a)}))}this.formGroups.valueChanges.subscribe((function(t){e.formGroups.controls.forEach((function(t){t.dirty&&e.editService.updateDependencies(t.value)})),e.dependenciesChange.emit(t)}))},e.prototype.getFormControl=function(e,t){return this.formGroups.controls.find((function(t,n){return n===e})).get(this.mapper.dependencyFields[t])},e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.getDependencyTypes=function(){return Object.keys(c.DependencyType).filter((function(e){return"number"==typeof c.DependencyType[e]})).map((function(e){return{type:e,id:c.DependencyType[e]}}))},e.prototype.addHandler=function(){var e,t=this.mapper.dependencyFields,n=new o.FormGroup(((e={})[t.id]=new o.FormControl,e[t.fromId]=new o.FormControl("toId"===this.dependencyIdField?this.taskId:null,o.Validators.required),e[t.toId]=new o.FormControl("fromId"===this.dependencyIdField?this.taskId:null,o.Validators.required),e[t.type]=new o.FormControl(null,o.Validators.required),e));this.formGroups.push(n)},e.prototype.removeHandler=function(){var e=this.selectedKeys[0],t=this.formGroups.at(e).value;this.editService.deleteDependency(t),this.formGroups.removeAt(e)},i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"tasks",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"dependencies",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"dependencyType",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"dependenciesChange",void 0),e=i.__decorate([a.Component({selector:"kendo-gantt-dependencies-table",template:'\n <kendo-grid\n [data]="dependencies"\n [selectable]="{ mode: \'single\' }"\n [(selectedKeys)]="selectedKeys"\n kendoGridSelectBy\n [height]="275"\n >\n <ng-template kendoGridToolbarTemplate>\n <button kendoButton (click)="addHandler()">\n {{ getText(\'taskEditingDependenciesAddButtonText\') }}\n </button>\n <button kendoButton (click)="removeHandler()" [disabled]="selectedKeys.length === 0">\n {{ getText(\'taskEditingDependenciesRemoveButtonText\') }}\n </button>\n </ng-template>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridNameColumnTitle\')" [field]="dependencyIdField">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="tasks"\n textField="title"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-column [title]="getText(\'taskEditingDependenciesGridTypeColumnTitle\')" field="type">\n <ng-template kendoGridCellTemplate let-dataItem="dataItem" let-column="column" let-rowIndex="rowIndex">\n <kendo-dropdownlist\n [data]="dependencyTypes"\n textField="type"\n valueField="id"\n [valuePrimitive]="true"\n [formControl]="getFormControl(rowIndex, column.field)"\n >\n </kendo-dropdownlist>\n </ng-template>\n </kendo-grid-column>\n </kendo-grid>\n '}),i.__metadata("design:paramtypes",[r.MappingService,l.EditService,s.GanttLocalizationService])],e)}();t.DependenciesTableComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),o=n(12),r=n(33),s=n(18),c=function(){function e(e,t,n){this.mapper=e,this.editService=t,this.localizationService=n}return Object.defineProperty(e.prototype,"formGroup",{get:function(){return this.editService.taskFormGroup},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){return this.localizationService.get(e)},e=i.__decorate([a.Component({selector:"kendo-gantt-task-fields",template:'\n <form class="k-form" [formGroup]="formGroup">\n <kendo-formfield *ngIf="formGroup.contains(mapper.taskFields.title)">\n <kendo-label [for]="mapper.taskFields.title" [text]="getText(\'titleFieldInputLabel\')"></kendo-label>\n <input kendoTextBox [formControlName]="mapper.taskFields.title" />\n </kendo-formfield>\n <div class="k-hstack">\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.start)">\n <kendo-label [for]="mapper.taskFields.start" [text]="getText(\'startFieldInputLabel\')"></kendo-label>\n <kendo-datetimepicker [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>\n </kendo-formfield>\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.end)">\n <kendo-label [for]="mapper.taskFields.end" [text]="getText(\'endFieldInputLabel\')"></kendo-label>\n <kendo-datetimepicker [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>\n </kendo-formfield>\n </div>\n <kendo-formfield [style.width.%]="49" *ngIf="formGroup.contains(mapper.taskFields.completionRatio)">\n <kendo-label [for]="mapper.taskFields.completionRatio" [text]="getText(\'completionRatioFieldInputLabel\')"></kendo-label>\n <kendo-numerictextbox\n [formControlName]="mapper.taskFields.completionRatio"\n [min]="0"\n [max]="1"\n [decimals]="2"\n format="p2"\n [step]="0.01"\n ></kendo-numerictextbox>\n </kendo-formfield>\n </form>\n '}),i.__metadata("design:paramtypes",[o.MappingService,s.EditService,r.GanttLocalizationService])],e)}();t.TaskFieldsComponent=c},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return fn})),n.d(t,"ColorContrastSvgComponent",(function(){return pn})),n.d(t,"ColorInputComponent",(function(){return qt})),n.d(t,"ContrastValidationComponent",(function(){return ln})),n.d(t,"ContrastComponent",(function(){return dn})),n.d(t,"FlatColorPickerActionButtonsComponent",(function(){return en})),n.d(t,"FlatColorPickerHeaderComponent",(function(){return Jt})),n.d(t,"FocusOnDomReadyDirective",(function(){return cn})),n.d(t,"ColorGradientLocalizationService",(function(){return Kt})),n.d(t,"ColorPaletteLocalizationService",(function(){return $t})),n.d(t,"ColorPickerLocalizationService",(function(){return Tt})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return rn})),n.d(t,"FlatColorPickerLocalizationService",(function(){return Et})),n.d(t,"ColorPickerMessages",(function(){return on})),n.d(t,"ColorPaletteService",(function(){return Yt})),n.d(t,"FlatColorPickerService",(function(){return It})),n.d(t,"MaskingService",(function(){return Ke})),n.d(t,"NumericTextBoxMessages",(function(){return Re})),n.d(t,"RadioButtonModule",(function(){return vn})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return it})),n.d(t,"RangeSliderMessages",(function(){return tt})),n.d(t,"SHARED_DIRECTIVES",(function(){return yt})),n.d(t,"SliderCustomMessagesComponent",(function(){return Je})),n.d(t,"SliderMessages",(function(){return Xe})),n.d(t,"SliderBase",(function(){return ge})),n.d(t,"SlidersCommonModule",(function(){return Ye})),n.d(t,"SwitchCustomMessagesComponent",(function(){return st})),n.d(t,"Messages",(function(){return ot})),n.d(t,"TextFieldsBase",(function(){return jt})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return ft})),n.d(t,"TextBoxMessages",(function(){return mt})),n.d(t,"SliderComponent",(function(){return ve})),n.d(t,"RangeSliderComponent",(function(){return _e})),n.d(t,"LabelTemplateDirective",(function(){return fe})),n.d(t,"SwitchComponent",(function(){return Oe})),n.d(t,"TextBoxDirective",(function(){return je})),n.d(t,"TextAreaDirective",(function(){return ke})),n.d(t,"NumericTextBoxComponent",(function(){return Ve})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Be})),n.d(t,"MaskedTextBoxComponent",(function(){return Ue})),n.d(t,"InputsModule",(function(){return wn})),n.d(t,"SliderTicksComponent",(function(){return $e})),n.d(t,"SliderModule",(function(){return et})),n.d(t,"RangeSliderModule",(function(){return at})),n.d(t,"SwitchModule",(function(){return ct})),n.d(t,"NumericTextBoxModule",(function(){return dt})),n.d(t,"MaskedTextBoxModule",(function(){return pt})),n.d(t,"TextBoxModule",(function(){return Ot})),n.d(t,"TextAreaModule",(function(){return St})),n.d(t,"ColorPickerComponent",(function(){return an})),n.d(t,"ColorPaletteComponent",(function(){return Qt})),n.d(t,"ColorGradientComponent",(function(){return Zt})),n.d(t,"ColorPickerModule",(function(){return bn})),n.d(t,"FlatColorPickerComponent",(function(){return tn})),n.d(t,"ColorPickerCancelEvent",(function(){return xt})),n.d(t,"CheckBoxDirective",(function(){return mn})),n.d(t,"RadioButtonDirective",(function(){return gn})),n.d(t,"HintComponent",(function(){return jn})),n.d(t,"ErrorComponent",(function(){return _n})),n.d(t,"FormFieldComponent",(function(){return kn})),n.d(t,"FormFieldModule",(function(){return Cn})),n.d(t,"TextBoxComponent",(function(){return bt})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return ht})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return ut})),n.d(t,"TextAreaComponent",(function(){return Ct})),n.d(t,"TextAreaSuffixComponent",(function(){return wt})),n.d(t,"InputSeparatorComponent",(function(){return vt})),n.d(t,"SharedModule",(function(){return _t})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return sn})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return lt})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return gt})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return Qe})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return nt})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return rt})),n.d(t,"ColorPickerCloseEvent",(function(){return Pt})),n.d(t,"ColorPickerOpenEvent",(function(){return Vt})),n.d(t,"ActiveColorClickEvent",(function(){return Rt}));var i=n(0),a=n(1),o=n(6),r=n(5),s=n(7),c=n(4),l=n(3),d=n(10),p=n(14),u=n(8),h=n(9),b=n(13),m=function(){};var f=null,g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v={get browser(){return"undefined"==typeof window||f?f:f=function(e){var t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},n={};for(var i in t)if(t.hasOwnProperty(i)){var a=e.match(t[i]);if(a){n[i]=!0,n[a[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||a[2],10);break}}return n}(window.navigator.userAgent)}}.browser,y=function(e){var t=Object.keys(g);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return y=function(e){return n.exec(e)},n.exec(e)},_=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(e){return this.toBytes().toHex(e)},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(e){return"#"+this.toHex(e)},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return v.msie&&v.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===E(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new j(e.r,e.g,e.b,e.a)),e},t}(m),O=function(e){function t(t,n,i,a){e.call(this),this.r=t,this.g=n,this.b=i,this.a=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,a=this.b,o=Math.min(n,i,a),r=Math.max(n,i,a),s=r-o,c=r;return 0===s?new C(0,0,c,this.a):(0!==r?(t=s/r,e=n===r?(i-a)/s:i===r?2+(a-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new C(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,a=this.b,o=Math.max(n,i,a),r=Math.min(n,i,a),s=(o+r)/2;if(o===r)e=t=0;else{var c=o-r;switch(t=s>.5?c/(2-o-r):c/(o+r),o){case n:e=(i-a)/c+(i<a?6:0);break;case i:e=(a-n)/c+2;break;case a:e=(n-i)/c+4}}return new w(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new j(255*this.r,255*this.g,255*this.b,this.a)},t}(_),j=function(e){function t(t,n,i,a){e.call(this,Math.round(t),Math.round(n),Math.round(i),a)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(e){var t=k(this.r,2)+k(this.g,2)+k(this.b,2);return e&&e.alpha&&(t+=k(Math.round(255*this.a),2)),t},t.prototype.toBytes=function(){return this},t}(O);function k(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var C=function(e){function t(t,n,i,a){e.call(this),this.h=t,this.s=n,this.v=i,this.a=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,a=this.s,o=this.v;if(0===a)e=t=n=o;else{i/=60;var r=Math.floor(i),s=i-r,c=o*(1-a),l=o*(1-a*s),d=o*(1-a*(1-s));switch(r){case 0:e=o,t=d,n=c;break;case 1:e=l,t=o,n=c;break;case 2:e=c,t=o,n=d;break;case 3:e=c,t=l,n=o;break;case 4:e=d,t=c,n=o;break;default:e=o,t=c,n=l}}return new O(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(_),w=function(e){function t(t,n,i,a){e.call(this),this.h=t,this.s=n,this.l=i,this.a=a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,a=this.s/100,o=this.l/100;if(0===a)e=t=n=o;else{var r=o<.5?o*(1+a):o+a-o*a,s=2*o-r;e=S(s,r,i+1/3),t=S(s,r,i),n=S(s,r,i-1/3)}return new O(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(_);function S(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function T(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function E(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof _)return e;var a=e.toLowerCase();if(n=y(a))return(a="transparent"===n[1]?new O(1,1,1,0):E(g[n[1]],t)).match=[n[1]],a;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(a))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(a))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(a))?i=new j(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),T(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(a))?i=new j(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),T(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(a))?i=new j(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(a))?i=new j(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(a))?i=new O(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(a))&&(i=new O(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+a);return i}var D=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var a=t.formats,o=this.resolveColor(n),r=0;r<a.length;r++){var s=a[r].re,c=a[r].process,l=s.exec(o);if(l){var d=c(l);i.r=d[0],i.g=d[1],i.b=d[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new j(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new O(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new C(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new w(e,t,n,null!=i?i:1)},t}(m);D.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],D.namedColors=g;var I=D,x=function(e){return null!=e},P=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},V=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},R=function(e,t,n){return!x(e)||isNaN(e)||e<=t?t:e>=n?n:e},B={small:"sm",medium:"md",large:"lg"},F={small:"sm",medium:"md",large:"lg",full:"full"},M=function(e,t,n,i){switch(t){case"size":return{toRemove:"k-"+e+"-"+B[n],toAdd:i?"k-"+e+"-"+B[i]:null};case"rounded":return{toRemove:"k-rounded-"+F[n],toAdd:i?"k-rounded-"+F[i]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:i?"k-"+e+"-"+i:null}}},A=function(e){return Math.min(e,20)},L=function(e){return(String(e).split(".")[1]||"").length},N=function(e,t){return Math.max(L(e),L(t))},z=function(e,t){var n=A(t);return parseFloat(e.toFixed(n))},H=function(e,t){var n=N(e,t);return z(e+t,n)},G=function(e,t){return H(e,-t)},W=function(e,t){var n=L(e)+L(t);return z(e*t,n)},K=function(e,t){if(0===t)return NaN;var n=N(e,t),i=Math.pow(10,n);return i*e/(i*t)},q=function(e,t){return Math.abs(G(e,W(t,Math.floor(K(e,t)))))},U=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},Z=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(G(t,e)),a=Math.floor(K(i,n));return H(a,1)},$=function(e){var t=e.trackWidth,n=e.min,i=e.max,a=e.reverse,o=e.value,r=t/Math.abs(i-n),s=x(o)?r*(o-n):n;return a&&(s=t-s),Math.floor(s)},Y=function(e,t,n){var i=t.max,a=t.min,o=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s,c=n&&r?W(o,r):o,l=G(e,a),d=q(l,c);return s=G(l,0===d?c:d),ne(H(s,a),a,i)},X=function(e,t,n){var i=t.max,a=t.min,o=t.smallStep,r=t.largeStep;void 0===n&&(n=!1);var s=n&&r?W(o,r):o,c=G(e,a),l=q(c,s),d=H(G(c,l),s);return ne(H(d,a),a,i)},Q=function(e){return e.id.indexOf("k-start-handle")>-1},J=function(e,t,n){return n>e?e:n<t?t:n},ee=function(e,t,n){return n?[J(e,t,n[0]),J(e,t,n[1])]:[t,t]},te=function(e){return e},ne=function(e,t,n){return Math.max(Math.min(e,n),t)},ie=function(e,t,n){var i,a,o=n.min,r=n.max,s=n.vertical,c=n.rtl,l=(i=t.getBoundingClientRect(),a=document.documentElement,{left:i.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||0),top:i.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||0)}),d=(s?e.pageY-l.top:e.pageX-l.left)*((r-o)/(s?t.clientHeight:t.clientWidth)),p=c||s?r-d:o+d,u=L(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,a=t.max,o=ne(e,i,a);if(e!==o)return o;var r=Y(e,t),s=X(e,t);return(e-i)%n==0?e:s-e<=(s-r)/2?s:r}(p=z(p,u+1),n)},ae=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},oe=function(e){return X(e.value,e)},re=function(e){return Y(e.value,e)},se=function(e){return X(e.value,e,!0)},ce=function(e){return Y(e.value,e,!0)},le=function(e){if(a.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},de=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=U(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?U(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,a=Z(t,n,i),o=this.trackWidth(),r=o/G(n,t),s=[],c=0,l=0,d=0;d<a;d++){l=+(l+=0===d||d===a-1?i/2*r:i*r).toFixed(2)-.01;var p=Math.round(l-c);s.push(p),c+=p}return c>=o&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,a=t.reverse,o=t.vertical?"bottom":"left",r=this.trackWidth(),s=J(n,i,this.props.value);this.handlePosition=$({min:i,max:n,reverse:a,value:s,trackWidth:r}),this.renderer.setStyle(e,o,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",a=this.handlePosition;n&&(a=this.trackWidth()-a),this.renderer.setStyle(e,i,a+"px")},t}(de),ue=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function he(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var be=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},me={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate: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"},fe=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(a.Optional)()),Object(i.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),ge=function(){function e(e,t,n,i,o,s){var c=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=o,this.hostElement=s,this.title=te,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new r.Subscription,this.ifEnabled=function(e,t){c.isDisabled||e.call(c,t)},Object(d.validatePackage)(me),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[l.Keys.ArrowLeft]=t?oe:re,e[l.Keys.ArrowRight]=t?re:oe,e[l.Keys.ArrowDown]=re,e[l.Keys.ArrowUp]=oe,e[l.Keys.PageUp]=se,e[l.Keys.PageDown]=ce,e[l.Keys.Home]=function(e){return e.min},e[l.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(a.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(a.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(a.ViewChild)("ticks",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(a.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(a.ContentChild)(fe,{static:!1}),Object(i.__metadata)("design:type",fe)],e.prototype,"labelTemplate",void 0),e}(),ve=function(e){function t(t,n,i,a,o,r){var s=e.call(this,t,n,i,a,o,r)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=a,s.changeDetector=o,s.hostElement=r,s.focusableId="k-"+Object(l.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!ae(t)&&!ae(t.parentNode)){var n=ie(e,s.track.nativeElement,s.getProps());s.changeValue(n)}he(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,a=s.keyBinding[e.keyCode];if(!s.isDisabled&&a){var o=a(t);s.changeValue(J(n,i,o)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(Y(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(X(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(l.hasObservers)(s.onBlur)||V(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return x(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,he(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,he(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;Object(l.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(l.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(ie(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(Object(l.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,a=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,a,o,this.hostElement.nativeElement]);var r=this.getProps(),s=new pe(r,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(a),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(r.fromEvent)(e,"mousedown"),a=Object(r.fromEvent)(e,"mouseup"),o=Object(r.fromEvent)(e,"mouseout"),c=i.pipe(Object(s.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(s.concatMap)((function(){return Object(r.interval)(150).pipe(Object(s.startWith)(-1),Object(s.takeUntil)(Object(r.merge)(a,o)))}))).subscribe((function(){n.isFocused||he(n.draghandle,"focus"),t()}));n.subscriptions.add(c)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:J(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===l.Keys.Tab})))}))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(a.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(a.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],t)}(ge),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,a=t.reverse,o=t.vertical?"bottom":"left",r=this.trackWidth(),s=Q(e)?ee(n,i,this.props.value)[0]:ee(n,i,this.props.value)[1];Q(e)?(this.startHandlePosition=$({min:i,max:n,reverse:a,value:s,trackWidth:r}),this.renderer.setStyle(e,o,this.startHandlePosition+"px")):(this.endHandlePosition=$({min:i,max:n,reverse:a,value:s,trackWidth:r}),this.renderer.setStyle(e,o,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,a=n.vertical,o=a?"height":"width",r=a?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),c=a?e.style.bottom:e.style.left;this.renderer.setStyle(t,o,s+"px"),this.renderer.setStyle(t,r,i?this.trackWidth()-parseFloat(c)+"px":parseFloat(c)+"px")},t}(de),_e=function(e){function t(t,n,a,o,r,s){var c=e.call(this,t,n,a,o,r,s)||this;return c.localization=t,c.injector=n,c.renderer=a,c.ngZone=o,c.changeDetector=r,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(l.guid)(),c.endHandleId="k-end-handle-"+Object(l.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=ie(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,a=i[0],o=i[1];t<=a?(n=[t,o],c.activeHandle="startHandle"):a<t&&t<o?t<(a+o)/2?(n=[t,o],c.activeHandle="startHandle"):(n=[a,t],c.activeHandle="endHandle"):t>=o&&(n=[a,t],c.activeHandle="endHandle"),he("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,a=t.min,o=c.keyBinding[e.keyCode];if(!c.isDisabled&&o){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var r=Q(e.target),s=o(Object(i.__assign)({},t,{value:r?c.value[0]:c.value[1]}));r?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var l=J(n,a,s),d=r?[l,c.value[1]]:[c.value[0],l];c.changeValue(d),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,he(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,he("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(l.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&le(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(s.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(l.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var a=e.pageX<this.lastHandlePosition.x,o=e.pageX>this.lastHandlePosition.x,r=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([ie(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],ie(e,t.track.nativeElement,t.getProps())])},l=function(){return t.changeValue([ie(e,t.track.nativeElement,t.getProps()),ie(e,t.track.nativeElement,t.getProps())])},d=Q(this.draggedHandle),p=this.vertical,u=!p,h=p&&r||(this.reverse?u&&o:u&&a);this.value[0]===this.value[1]?h?d?s():l():d?l():c():d?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){le(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,P(t[0],n[0])&&P(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(l.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,a=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,a,o,this.hostElement.nativeElement]);var r=this.getProps(),s=new ye(r,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(a),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ee(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===l.Keys.Tab})))}))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(a.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(a.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return n}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.Injector,a.Renderer2,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],t)}(ge),Oe=function(){function e(e,t,n,i,o,s){var c=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,this.ngZone=s,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new r.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){c.isFocused||(c.focused=!0,Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;c.hostElement.nativeElement.contains(t)||(c.changeDetector.markForCheck(),c.focused=!1,(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()})))},Object(d.validatePackage)(me),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return p.browser&&p.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(s.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(o.NgControl,null),this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==l.Keys.Space&&t!==l.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=M("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=M("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"thumbRounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"trackRounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"track",void 0),Object(i.__decorate)([Object(a.ViewChild)("thumb",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"thumb",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoSwitch",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef,c.LocalizationService,a.Injector,a.ChangeDetectorRef,a.NgZone])],e)}(),je=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onValueChange=new a.EventEmitter,this.autoFillStart=new a.EventEmitter,this.autoFillEnd=new a.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(a.HostBinding)("class.k-textbox"),Object(a.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(a.Directive)({selector:"input[kendoTextBox]",providers:[{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef,a.NgZone])],e)}(),ke=function(){function e(e,t,n,i,o,r){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new a.EventEmitter,this.autoSize=!1,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onValueChange=new a.EventEmitter,this.autoFillStart=new a.EventEmitter,this.autoFillEnd=new a.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=r?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(l.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(r.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(r.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(l.hasObservers)(this.onValueChange)||Object(l.hasObservers)(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;Object(l.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(l.hasObservers)(this.onBlur)||V(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(a.HostBinding)("class.k-textarea"),Object(a.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(a.Optional)()),Object(i.__param)(5,Object(a.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef,a.NgZone,a.ChangeDetectorRef,a.Injector,Boolean])],e)}(),Ce=/[eE][\-+]?([0-9]+)/,we=function(e){return e>=0?Math.floor(e):Math.ceil(e)},Se=function(e){},Te=function(e){return!isNaN(e)&&null!==e};function Ee(e,t){var n=t-String(e).length,i=e;if(n>0){var a=new Array(n+1).join("0");i=parseFloat(e+a)}return i}var De;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(De||(De={}));var Ie,xe=["min","max","step","decimals"],Pe={decimals:null,max:null,min:null,step:1},Ve=function(){function e(e,t,n,i,o,r,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=o,this.changeDetector=r,this.hostElement=s,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.ArrowDirection=De,this.arrowDirection=De.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Se,this.maxValidateFn=Se,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Se,this.ngTouched=Se,this.ngValidatorChange=Se,this.domEvents=[],this.increasePress=function(e){c.arrowPress(De.Up,e)},this.decreasePress=function(e){c.arrowPress(De.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==De.None&&(c.arrowDirection=De.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===l.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var a=c.intl.parseNumber(i),o=c.restrictDecimals(a);if(c.autoCorrect){var r=c.limitInputValue(o);o=r.value,t=r.selectionStart,n=r.selectionEnd}a!==o||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(o),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(o),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===l.Keys.ArrowDown?t=-1:e.keyCode===l.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled&&c.changeValueOnScroll){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(d.validatePackage)(me),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){var t,n;Object(l.anyChanged)(xe,e,!1)&&this.parseOptions(xe.filter((function(t){return e[t]}))),this.verifySettings(),Object(l.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!x(n)||!x(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):Se,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!x(t)||!x(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):Se,this.ngValidatorChange()),Object(l.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(l.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){he(this.numericInput,"focus")},e.prototype.blur=function(){he(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){var n,i,a;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,a=n.which&&3===n.which,i||a))||(p.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,a=this.previousSelection,o=a.start,r=a.end;t.value=e=e.substring(0,o)+this.decimalSeparator+e.substring(r),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,a,o,r;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,a=t.decimals,o=t.min,"."===(r=t.separator)&&(r="\\"+r),n=0===a?"\\d*":"(?:(?:\\d+("+r+"\\d*)?)|(?:"+r+"\\d*))?",new RegExp("^"+(i&&null!==o&&o>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=H(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&he(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(Te(this.max)&&e>this.max&&(t=this.max),Te(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,a=t.value,o=e,r=!1;if(!this.isInRange(e)){var s=a.length-String(this.inputValue).length,c=this.min,l=this.max,d=Te(l),p=Te(c),u=void 0,h=void 0,b=e;if(0===n&&this.inputValue.substr(1)===a)return{selectionEnd:i,selectionStart:n,value:null};if(d&&e>l?e>0?h=!0:u=l:p&&e<c&&(e>0?u=c:h=!0),u){var m=this.tryPadValue(e,u);m&&we(e)!==we(u)&&(b=m,r=!0)}else h&&this.inputValue&&n!==a.length&&(b=parseFloat(a.substr(0,n)+a.substr(n+s)));o=this.limitValue(b),r=(r||o!==b)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:r?String(o).length:i,selectionStart:n,value:o}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,a=Ee(e,i),o=Ee(e,i+1);return this.isInRange(a)?n=a:this.isInRange(o)&&(n=o),n},e.prototype.isInRange=function(e){return!Te(e)||(!Te(this.min)||this.min<=e)&&(!Te(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,a=String(e);if(t||Ce.test(a))n=z(e,i);else{var o=a.split("."),r=o[1];r&&r.length>i&&(r=r.substr(0,i),n=parseFloat(o[0]+"."+r))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=Ce.exec(t);return n&&(t=e.toFixed(A(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(a.isDevMode)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(a.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),r=!isNaN(o);if(Object(a.isDevMode)()&&!r&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=r?o:Pe[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,a=this.elementValue,o=a.substring(0,i);if(this.setInputValue(),o.length){var r=(e=o,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(a,r);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,a=n[1].length;return i===t?a-1:a}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disableClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-input"),Object(a.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoNumericTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[u.IntlService,a.Renderer2,c.LocalizationService,a.Injector,a.NgZone,a.ChangeDetectorRef,a.ElementRef])],e)}(),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(c.ComponentMessages),Be=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:Re,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Re);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Ie||(Ie={}));var Fe=function(){function e(e,t,n){void 0===n&&(n=Ie.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Me=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),Ae=function(e){return(e||"").split("")},Le=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Me?this.parse(e):this.parse(new Me(Ae(e),Ae(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===Ie.Literal},e}(),Ne=function(e,t){return new Le((function(n){var i=n.next().char,a=e[i];return"\\"===i?(i=n.next().char,new Fe(t.literal(i),n)):new Fe(a?t.mask(a):t.literal(i),n)}))},ze=function(e){var t=e.prompt,n=e.promptPlaceholder;return new Le((function(e){var i=e.next().char;return new Fe(i===t?n:i,e)}))},He=function(e){return new Le((function(t){var n=t.next().char;return new Fe(e?n:"",t)}))},Ge=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new Le((function(e){return new Fe(t,e)}))));var t},We=function(e){return new Le((function(t){for(var n=new Fe([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ke=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,a=void 0===i?"":i,o=e.promptPlaceholder,r=void 0===o?" ":o,s=e.rules,c=void 0===s?{}:s,l=e.includeLiterals,d=void 0!==l&&l;this.mask=n,this.prompt=a,this.promptPlaceholder=r,this.rules=c,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Ge(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(Ge(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(Ge(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var a="",o=i,r=t.split("").slice(0,n),s=t.split("").slice(i);return Ge(this.maskTokens.slice(n,i)).run(e).fold((function(e){a=r.concat(e).concat(s).join("")})),{selection:o,value:a}},e.prototype.maskRemoved=function(e,t,n){var i=this,a="",o=n,r=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return Ge(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){o=i.adjustPosition(e,o),a=e.concat(r).join("")})),{selection:o,value:a}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,a="",o=n,r=e.slice(0,n);return Ge(this.unmaskTokens).run(r,t).chain((function(e){o=e.join("").length;var n=t.slice(o);return Ge(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){a=e.join("")})),{selection:o,value:a}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new Le((function(e){return e.peek().char===t?(e.eat(),new Fe(t,e,Ie.Literal)):new Fe(t,e,Ie.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new Le((function(i){for(;!i.eof();){var a=i.peek(),o=a.char,r=a.control;if(o===r&&r===t)return i.eat(),new Fe(t,i,Ie.Mask);if(e.test(o))return i.eat(),new Fe(o,i,Ie.Mask);if(o===n)return i.eat(),new Fe(t,i,Ie.Mask);i.eat_input()}return i.eat(),new Fe(t,i,Ie.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new Le((function(e){return e.eof()?new Fe("",e):(e.peek().char===t&&e.eat(),new Fe(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new Le((function(t){for(;!t.eof();){var i=t.peek(),a=i.char,o=i.control;if(a===n&&o===n)return t.eat(),new Fe(a,t);if(e.test(a))return t.eat(),new Fe(a,t);t.eat_input()}return t.eat(),new Fe("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return He(n)},mask:function(n){return ze({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return He(!1)},mask:function(t){return ze({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;We(Ne(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),We(Ne(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),We(Ne(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),We(Ne(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),qe=Promise.resolve(null),Ue=function(){function e(e,t,n,i,o,r,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=r,this.focusableId="k-"+Object(l.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(l.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(l.hasObservers)(c.onBlur)||V(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(d.validatePackage)(me),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,a=i[0],o=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var r=this.maskedValue.length-o,s=n.length-r;t=this.service.maskInRange(n.slice(a,s),this.maskedValue,a,o)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(l.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(l.anyChanged)(["promptPlaceholder","includeLiterals"],e)?qe.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&he(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=x(e);if(t&&"string"!=typeof e){if(Object(a.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-input"),Object(a.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(a.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(a.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoMaskedTextBox",providers:[Ke,{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{multi:!0,provide:o.NG_VALIDATORS,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(a.Optional)()),Object(i.__param)(6,Object(a.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[Ke,a.Renderer2,a.ElementRef,a.NgZone,a.Injector,a.ChangeDetectorRef,Boolean])],e)}(),Ze=function(e){this.value=e,this.classes={"k-tick":!0}},$e=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,a,o,r,s,c=Z(this.min,this.max,this.step),l=this.largeStep,d={max:this.max,min:this.min,smallStep:this.step},p=[],u=0;u<c;u++)p.push(new Ze((e=u,n=void 0,i=void 0,a=void 0,o=void 0,r=void 0,s=void 0,n=(t=d).max,i=t.min,a=t.smallStep,o=t.reverse,r=t.vertical,s=H(i,W(e,a)),r||o?Math.abs(G(s,n)):s))),l&&u%l==0&&(p[u].large=!0,p[u].classes["k-tick-large"]=!0);p.length>0&&(Object.assign(p[0].classes,this.endTickClasses(!0)),Object.assign(p[p.length-1].classes,this.endTickClasses(!1))),this.ticks=p},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(a.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",a.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(a.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}(),Ye=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[$e,fe],exports:[fe,$e,l.DraggableModule,l.EventsModule,l.ResizeSensorModule],imports:[h.CommonModule,l.DraggableModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(c.ComponentMessages),Qe=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:Xe,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Xe),Je=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:Xe,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Xe),et=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[ve,Je,Qe],exports:[ve,Je,fe,Qe],imports:[h.CommonModule,Ye]})],e)}(),tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(c.ComponentMessages),nt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:tt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(tt),it=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:tt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(tt),at=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[_e,it,nt],exports:[_e,it,nt,fe],imports:[h.CommonModule,Ye]})],e)}(),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(c.ComponentMessages),rt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:ot,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ot),st=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:ot,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(ot),ct=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[Oe,st,rt],exports:[Oe,st,rt],imports:[h.CommonModule,l.EventsModule,l.ResizeSensorModule]})],e)}(),lt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:Re,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(Re),dt=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[lt,Ve,Be],exports:[Ve,Be],imports:[h.CommonModule,l.EventsModule]})],e)}(),pt=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[Ue],exports:[Ue],imports:[h.CommonModule,l.EventsModule]})],e)}(),ut=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(a.Optional)()),Object(i.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),ht=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(a.Optional)()),Object(i.__metadata)("design:paramtypes",[a.TemplateRef])],e)}(),bt=function(){function e(e,t,n,i,o,r){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=r,this.focusableId="k-"+Object(l.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new a.EventEmitter,this.inputFocus=new a.EventEmitter,this.inputBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(l.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(l.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(l.hasObservers)(s.inputBlur)||V(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t,n,i=(n=navigator.userAgent,(Object(p.detectDesktopBrowser)(n).safari||Object(p.detectMobileOS)(n)&&"mobilesafari"===Object(p.detectMobileOS)(n).browser)&&(t=e.target.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(t))?e.data:e.target.value);s.updateValue(i)},this.ngChange=function(e){},this.ngTouched=function(){},Object(d.validatePackage)(me),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(o.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(be(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&he(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(a.ContentChild)(ut,{static:!1}),Object(i.__metadata)("design:type",ut)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(a.ContentChild)(ht,{static:!1}),Object(i.__metadata)("design:type",ht)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-textbox"),Object(a.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoTextBox",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textbox"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.Injector,a.ElementRef])],e)}(),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(c.ComponentMessages),ft=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:mt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(mt),gt=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:mt,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(mt),vt=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(a.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),yt=[vt,ke],_t=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[yt],exports:[yt]})],e)}(),Ot=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[je,bt,ut,ht,ft,gt],exports:[je,bt,ut,ht,l.EventsModule,ft,gt,yt],imports:[h.CommonModule,l.EventsModule,_t]})],e)}(),jt=function(){function e(e,t,n,i,o,s){var c=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=s,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new a.EventEmitter,this.inputBlur=new a.EventEmitter,this.subscriptions=new r.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){c.changeDetector.markForCheck(),(Object(l.hasObservers)(c.inputBlur)||V(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(a.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),kt={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Ct=function(e){function t(t,n,i,o,r,s){var c=e.call(this,t,n,i,o,r,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=o,c.injector=r,c.hostElement=s,c.focusableId="k-"+Object(l.guid)(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new a.EventEmitter,c.onBlur=new a.EventEmitter,c.valueChange=new a.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(l.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(l.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(d.validatePackage)(me),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(be(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===l.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(o.NgControl,null),Object(l.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(r.fromEvent)(window,"resize").pipe(Object(s.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(x(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;P(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return kt[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&he(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-textarea"),Object(a.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return n})),multi:!0},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',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(i.__metadata)("design:paramtypes",[c.LocalizationService,a.NgZone,a.ChangeDetectorRef,a.Renderer2,a.Injector,a.ElementRef])],t)}(jt),wt=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(a.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),St=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[Ct,wt],exports:[Ct,l.EventsModule,wt,yt],imports:[h.CommonModule,l.EventsModule,_t]})],e)}(),Tt=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean])],t)}(c.LocalizationService),Et=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.colorPickerLocalization=a,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__param)(3,Object(a.Optional)()),Object(i.__param)(3,Object(a.Inject)(Tt)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Tt])],t)}(c.LocalizationService),Dt={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}},It=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?"office":"accessible",i=e.palette,a="string"==typeof i&&Dt[i]?Dt[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||a||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),xt=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return Object(i.__extends)(t,e),t}(l.PreventableEvent),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(l.PreventableEvent),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(l.PreventableEvent),Rt=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),Bt=function(e,t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(x(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),x(g[e]))return e;E(e,t)&&(e=E(e,t).toHex());var n=Object.keys(g).find((function(t){return g[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}(e,i);var a=E(e.trim(),i);if(x(a))return"hex"===t?At(a,n):a.toCssRgba()}},Ft=function(e,t){void 0===t&&(t=!0);var n=E(e,t);return x(n)?n.toBytes():{}},Mt=function(e,t,n){void 0===t&&(t="rgba"),void 0===n&&(n=!1);var i=R(e.h,0,359.9),a=R(e.s,0,1),o=R(e.v,0,1),r=R(e.a,0,1),s=I.fromHSV(i,a,o,r);return"hex"===t?At(s,n):s.toCssRgba()},At=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},Lt=function(e){return Mt({h:e,s:1,v:1,a:1})};var Nt=function(e,t){var n=R(e.r,0,255),i=R(e.g,0,255),a=R(e.b,0,255),o=R(e.a,0,1),r=R(t.r,0,255),s=R(t.g,0,255),c=R(t.b,0,255);return{r:Math.round((1-o)*r+o*n),g:Math.round((1-o)*s+o*i),b:Math.round((1-o)*c+o*a)}},zt=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},Ht=function(e,t){return n=zt(Nt(e,t)),i=zt(Nt(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},Gt=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},Wt=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,a){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,a)}),"")},Kt=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=a,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__param)(3,Object(a.Optional)()),Object(i.__param)(3,Object(a.Inject)(Et)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Et])],t)}(c.LocalizationService),qt=function(){function e(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+Object(l.guid)(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new a.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new r.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(l.isDocumentAvailable)()||!x(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return x(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){x(e.value)&&!this.isFocused&&(this.hex=Bt(this.value,"hex",this.opacity),this.rgba=Ft(this.value),this.rgba.a=Bt(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e,t,n,i,a,o=(e=this.rgba,t=R(e.r,0,255),n=R(e.g,0,255),i=R(e.b,0,255),a=R(e.a,0,1),I.fromBytes(t,n,i,a).toCssRgba());this.rgbaInputValid&&o!==this.value&&(this.value=o,this.rgba=Ft(this.value),this.hex=Bt(o,"hex",this.opacity),this.valueChange.emit(o))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=Bt(e,"rgba",this.opacity);x(t)&&t!==this.value&&(this.value=t,this.rgba=Ft(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=Ft(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=Bt(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-colorgradient-inputs"),Object(a.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(a.ViewChild)("opacityInput",{static:!1}),Object(i.__metadata)("design:type",Ve)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(a.ViewChild)("hexInput",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"hexInput",void 0),Object(i.__decorate)([Object(a.ViewChild)("blueInput",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"blueInput",void 0),Object(i.__decorate)([Object(a.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.Renderer2,c.LocalizationService])],e)}(),Ut=0,Zt=function(){function e(e,t,n,i,o){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+Ut++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format="rgba",this.valueChange=new a.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva=new r.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new r.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(d.validatePackage)(me),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=Bt(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(x(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(l.isDocumentAvailable)()||!x(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(x(this.hsva.value)&&x(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){Object(l.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(l.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!x(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Mt(this.hsva.value,this.format,this.opacity)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,a=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":a=-5;break;case"ArrowDown":a=5}var o=parseInt(n.style.top,10)+a,r=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",r+"px"),this.ngZone.run((function(){return t.moveDragHandle(r,o)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,a=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,a)}))}},e.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(Mt(this.hsva.value,this.format,this.opacity)),this.backgroundColor=Lt(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(Mt(this.hsva.value,this.format,this.opacity))},e.prototype.handleInputsValueChange=function(e){var t=Bt(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,x(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=Bt(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,a=n.width,o=n.height,r=R(t,0,o),s=R(e,0,a);this.setDragHandleElementPosition(r,s);var c=this.hsva.value;c.s=s/a,c.v=1-r/o,this.hsva.next(c),this.updateValues.next(Mt(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(Mt(Object(i.__assign)({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.updateUI=function(){if(Object(l.isDocumentAvailable)()){this.hsva.next(this.value?function(e,t){void 0===t&&(t=!0);var n=E(e,t);return x(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=Lt(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(x(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=Bt(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,a;i=e.host.nativeElement,a=t.relatedTarget,(!i||!a||i!==a&&!i.contains(a))&&((n=e.host)&&n.nativeElement&&ue(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(Mt(e.hsva.value,e.format,e.opacity))}))})),a=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,a,o)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(s.throttleTime)(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(i.__decorate)([Object(a.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"contrastTool",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.ViewChild)("gradientDragHandle",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(a.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",qt)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(a.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",ve)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(a.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},Kt,{provide:c.LocalizationService,useExisting:Kt},{provide:c.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [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(i.__metadata)("design:paramtypes",[a.ElementRef,a.NgZone,a.Renderer2,a.ChangeDetectorRef,c.LocalizationService])],e)}(),$t=function(e){function t(t,n,i,a){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=a,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(a.Inject)(c.L10N_PREFIX)),Object(i.__param)(1,Object(a.Optional)()),Object(i.__param)(2,Object(a.Optional)()),Object(i.__param)(2,Object(a.Inject)(c.RTL)),Object(i.__param)(3,Object(a.Optional)()),Object(i.__param)(3,Object(a.Inject)(Et)),Object(i.__metadata)("design:paramtypes",[String,c.MessageService,Boolean,Et])],t)}(c.LocalizationService),Yt=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],x(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(x(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(x(e)&&x(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(x(e)&&x(e.row)&&x(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(a.Injectable)()],e)}(),Xt=0,Qt=function(){function e(e,t,n,i,o){var r=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.id="k-colorpalette-"+Xt++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.cellSelection=new a.EventEmitter,this.hostClasses=!0,this.uniqueId=Object(l.guid)(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(d.validatePackage)(me),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;r.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;x(e)||(e="office"),"string"==typeof e&&x(Dt[e])&&(this.columns=this.columns||Dt[e].columns,e=Dt[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return Bt(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case l.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case l.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case l.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case l.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case l.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=Bt(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,x(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.setRows=function(){x(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=Bt(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(x(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(a.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(a.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},Yt,$t,{provide:c.LocalizationService,useExisting:$t},{provide:c.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,Yt,a.ChangeDetectorRef,a.Renderer2,c.LocalizationService])],e)}(),Jt=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new a.EventEmitter,this.valuePaneClick=new a.EventEmitter,this.clearButtonClick=new a.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},Object(i.__decorate)([Object(a.HostBinding)("class.k-coloreditor-header"),Object(a.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"viewChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valuePaneClick",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"clearButtonClick",void 0),Object(i.__decorate)([Object(a.ViewChildren)("viewButtons",{read:a.ElementRef}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"viewButtonsCollection",void 0),Object(i.__decorate)([Object(a.ViewChild)("clearButton",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"clearButtonElement",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n (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(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),en=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new a.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},Object(i.__decorate)([Object(a.HostBinding)("class.k-coloreditor-footer"),Object(a.HostBinding)("class.k-actions"),Object(a.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"actionButtonClick",void 0),Object(i.__decorate)([Object(a.ViewChild)("last",{read:a.ElementRef,static:!1}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"lastButton",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoFlatColorPickerActionButtons]",template:"\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{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(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),tn=function(){function e(e,t,n,i,o,s){var c=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=o,this.ngZone=s,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new a.EventEmitter,this.cancel=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this.actionButtonClick=new a.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new r.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(d.validatePackage)(me),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){Object(l.isChanged)("value",e)&&this.setHostElementAriaLabel(),Object(l.isChanged)("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){x(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.gradient.gradientDragHandle.nativeElement.focus()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new xt(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=Bt(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(x(this.activeView)){if(Object(a.isDevMode)()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},Object(i.__decorate)([Object(a.HostBinding)("class.k-flatcolorpicker"),Object(a.HostBinding)("class.k-coloreditor"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-state-disabled"),Object(a.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"actionsLayout",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"actionButtonClick",void 0),Object(i.__decorate)([Object(a.ViewChild)("header",{static:!1}),Object(i.__metadata)("design:type",Jt)],e.prototype,"header",void 0),Object(i.__decorate)([Object(a.ViewChild)("gradient",{static:!1}),Object(i.__metadata)("design:type",Zt)],e.prototype,"gradient",void 0),Object(i.__decorate)([Object(a.ViewChild)("palette",{static:!1}),Object(i.__metadata)("design:type",Qt)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(a.ViewChild)("footer",{static:!1}),Object(i.__metadata)("design:type",en)],e.prototype,"footer",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},It,Et,{provide:c.LocalizationService,useExisting:Et},{provide:c.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,It,c.LocalizationService,a.ChangeDetectorRef,a.Renderer2,a.NgZone])],e)}(),nn=["focus","blur"],an=function(){function e(e,t,n,i,o,s){var c=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=o,this.renderer=s,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.cancel=new a.EventEmitter,this.activeColorClick=new a.EventEmitter,this.activeViewChange=new a.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new r.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},Object(d.validatePackage)(me),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Bt(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return x(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&Dt[t]?Dt[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Bt(this.value,this.format,this.gradientSettings.opacity)),Object(l.isChanged)("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",nn)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),Object(l.closest)(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new Rt(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.arrowButtonMouseDown=function(e){e.preventDefault()},e.prototype.reset=function(){x(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=x(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=Bt(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==l.Keys.ArrowDown&&e.keyCode!==l.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===l.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===l.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=M("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return Object(l.closest)(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new Vt,this.open.emit(t)):(t=new Pt,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(Object(s.take)(1)).subscribe((function(){e.flatColorPicker&&(e.flatColorPicker.gradient?e.flatColorPicker.gradient.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){return!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton?this.flatColorPicker.gradient?this.flatColorPicker.gradient.gradientDragHandle:this.flatColorPicker.palette.host:this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){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}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&Object(l.closest)(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=Object(l.closest)(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",nn),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+Object(l.guid)();e.setAttribute("id",n),this.focusableId=n}},Object(i.__decorate)([Object(a.HostBinding)("class.k-colorpicker"),Object(a.HostBinding)("class.k-icon-picker"),Object(a.HostBinding)("class.k-picker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-focus"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-disabled"),Object(a.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(a.HostBinding)("attr.aria-expanded"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaExpanded",null),Object(i.__decorate)([Object(a.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"view",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"actionsLayout",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(a.Output)("focus"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(a.Output)("blur"),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(a.Output)(),Object(i.__metadata)("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(a.ViewChild)("container",{read:a.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(a.ViewChild)("activeColor",{static:!0}),Object(i.__metadata)("design:type",a.ElementRef)],e.prototype,"activeColor",void 0),Object(i.__decorate)([Object(a.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(a.ViewChild)("flatColorPicker",{static:!1}),Object(i.__metadata)("design:type",tn)],e.prototype,"flatColorPicker",void 0),e=t=Object(i.__decorate)([Object(a.Component)({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:Object(a.forwardRef)((function(){return t}))},{provide:l.KendoInput,useExisting:Object(a.forwardRef)((function(){return t}))},Tt,{provide:c.LocalizationService,useExisting:Tt},{provide:c.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n #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(i.__metadata)("design:paramtypes",[a.ElementRef,b.PopupService,a.ChangeDetectorRef,c.LocalizationService,a.NgZone,a.Renderer2])],e)}(),on=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPickerNoColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"previewColor",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"revertSelection",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"gradientView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"paletteView",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"formatButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"applyButton",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"cancelButton",void 0),t}(c.ComponentMessages),rn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(a.Component)({providers:[{provide:on,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(on),sn=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(a.Directive)({providers:[{provide:on,useExisting:Object(a.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],t)}(on),cn=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(a.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[a.ElementRef,a.NgZone])],e)}(),ln=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?4.5:7;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),dn=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=4.5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=7},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Ht(Ft(this.value),Ft(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[c.LocalizationService])],e)}(),pn=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){x(e.backgroundColor)&&this.metrics&&this.setPaths()},e.prototype.setPaths=function(){var e,t,n=(t=Gt,e=function(e,n,i,a){var o=t(n||e,i||e),r=o.angle+(a?Math.PI:0),s=.1*o.length;return[e[0]+Math.cos(r)*s,e[1]+Math.sin(r)*s]},function(t,n,i){var a=e(i[n-1],i[n-2],t),o=a[0],r=a[1],s=e(t,i[n-1],i[n+1],!0);return"C "+o+","+r+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});this.paths=[Wt(this.getPaths(4.5,16),n),Wt(this.getPaths(4.5,16,!0),n),Wt(this.getPaths(7,16),n),Wt(this.getPaths(7,16,!0),n)]},e.prototype.findValue=function(e,t,n,i,a){var o=(n+i)/2,r=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-o/this.metrics.height}),s=Ht(Ft(Mt(r)),Ft(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?o:null:a(s,e)?this.findValue(e,t,n,i-(i-n)/2,a):this.findValue(e,t,n+(i-n)/2,i,a)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=this.metrics.width;a+=this.metrics.width/t){var o=this.findValue(e,a,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==o&&i.push([a,o])}return i},Object(i.__decorate)([Object(a.HostBinding)("class.k-color-contrast-svg"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",r.BehaviorSubject)],e.prototype,"hsva",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"backgroundColor",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}(),un=[an,Qt,Zt,tn,sn,rn],hn=[qt,cn,dn,ln,Jt,en,pn],bn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[un,hn],exports:[un],imports:[et,dt,h.CommonModule,b.PopupModule,l.DraggableModule]})],e)}(),mn=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),e=Object(i.__decorate)([Object(a.Directive)({selector:"input[kendoCheckBox]"}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef])],e)}(),fn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[mn],exports:[mn],imports:[h.CommonModule]})],e)}(),gn=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",Object(d.validatePackage)(me)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=M("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(a.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),e=Object(i.__decorate)([Object(a.Directive)({selector:"input[kendoRadioButton]"}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,a.ElementRef])],e)}(),vn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[gn],exports:[gn],imports:[h.CommonModule]})],e)}(),yn=0,_n=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+yn++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),On=0,jn=function(){function e(){this.align="start",this.id="kendo-hint-"+On++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(a.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),kn=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new r.Subscription,this.rtl=!1,Object(d.validatePackage)(me),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(a.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof o.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(l.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(a.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(a.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(a.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(a.ContentChildren)(o.NgControl,{descendants:!0}),Object(i.__metadata)("design:type",a.QueryList),Object(i.__metadata)("design:paramtypes",[a.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(a.ContentChildren)(o.NgControl,{read:a.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(a.ContentChild)(l.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(a.ContentChildren)(_n,{descendants:!0}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(a.ContentChildren)(jn,{descendants:!0}),Object(i.__metadata)("design:type",a.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(a.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(a.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[a.Renderer2,c.LocalizationService,a.ElementRef])],e)}(),Cn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({declarations:[jn,_n,kn],exports:[jn,_n,kn],imports:[h.CommonModule]})],e)}(),wn=function(){function e(){}return e=Object(i.__decorate)([Object(a.NgModule)({exports:[St,Ot,et,at,ct,dt,pt,bn,fn,vn,Cn],imports:[h.CommonModule]})],e)}()}])}));
|