@progress/kendo-angular-dateinputs 7.1.1 → 7.1.2-dev.202209131211

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.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-intl"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define("KendoAngularDateinputs",["exports","@angular/core","@angular/forms","@progress/kendo-angular-l10n","@progress/kendo-date-math","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-intl","rxjs","@angular/common","rxjs/operators","@progress/kendo-angular-popup","@progress/kendo-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDateinputs={},e.ng.core,e.ng.forms,e.KendoAngularL10N,e.KendoDateMath,e.KendoAngularCommon,e.KendoLicensing,e.KendoAngularIntl,e.rxjs,e.ng.common,e.rxjs.operators,e.KendoAngularPopup,e.KendoCommon)}(this,function(e,h,A,t,k,m,L,B,p,n,z,j,H){"use strict";function _(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}function Y(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function $(e){return e.preventDefault()}function U(e){return e.relatedTarget||document.activeElement}function r(e){return null!=e}function K(e){return null!=e}function q(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function W(e,t,n){return{candidateValue:xe(Ce,e),maxValue:k.addDays(xe(Ce,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:xe(Ce,t)}}function Z(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function G(e,t,n){return!e||!(t&&e<t||n&&n<e)}function X(e,t,n){return!(e&&t&&n)||(t=(e=W(e,t,n)).candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function Q(e,t){return!K(e)||!K(t)||e<=t}function J(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function ee(){return new Date}function te(){return k.getDate(new Date)}function g(e){}function ne(){return"undefined"!=typeof window}function ie(e,t){return e.slice(t).concat(e.slice(0,t))}function ae(a){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(a);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}}function oe(e,t){return void 0!==e[t]}function re(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function se(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function le(e,t){var n=(t=t||Ve).start,t=t.end;return!(!n||!t)&&(n<e&&e<t)}function ce(e,t){return e||t}function pe(e){return{start:e,end:e}}function ue(e,t){var n=(e=e||Ve).start,e=e.end,i=(t=t||Ve).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function de(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function he(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function me(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}function ge(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function fe(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function ve(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var l,f,i=_(h),a=_(t),ye=_(m),o=_(B),s=_(n),be=_(j),ke={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1662549271,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=((c=l=l||{})[c.Left=0]="Left",c[c.Right=1]="Right",c[c.Up=2]="Up",c[c.Down=3]="Down",c[c.PrevView=4]="PrevView",c[c.NextView=5]="NextView",c[c.FirstInView=6]="FirstInView",c[c.LastInView=7]="LastInView",c[c.LowerView=8]="LowerView",c[c.UpperView=9]="UpperView",(c=f=f||{})[c.month=0]="month",c[c.year=1]="year",c[c.decade=2]="decade",c[c.century=3]="century",new Date(1980,0,1)),we=new Date(1900,0,1),De=new Date(2099,11,31),Te=new Date(1980,0,1),Ie=new Date(1980,0,1,23,59,59),Ve={start:null,end:null},xe=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},Se=q("setFullYear"),Ee=q("setHours"),Re=q("setMinutes"),Oe=q("setSeconds"),Me=q("setMilliseconds"),Ne="medium",Fe="medium",Pe="solid",Ae=[[]],Le=((c={})[l.Left]=function(e){return k.addDecades(e,-1)},c[l.Up]=function(e){return k.addDecades(e,-5)},c[l.Right]=function(e){return k.addDecades(e,1)},c[l.Down]=function(e){return k.addDecades(e,5)},c[l.PrevView]=function(e){return k.addCenturies(e,-1)},c[l.NextView]=function(e){return k.addCenturies(e,1)},c[l.FirstInView]=function(e){return k.firstDecadeOfCentury(e)},c[l.LastInView]=function(e){return k.lastDecadeOfCentury(e)},c),c=(Be.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},Be.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addCenturies(t,e)})},Be.prototype.data=function(e){var t,o,r,s,l=this,c=e.cellUID,p=e.focusedDate,u=e.isActiveView,d=e.max,h=e.min,m=e.selectedDates,n=e.selectionRange,g=void 0===n?Ve:n,n=e.viewDate;return n?(t=Z(0,4),o=k.firstDecadeOfCentury(n),r=k.lastDecadeOfCentury(n),s=te(),Z(0,3).map(function(e){var a=k.addDecades(o,4*e);return t.map(function(e){var t,n,i=l.normalize(k.addDecades(a,e),h,d),e=i.getFullYear()>r.getFullYear();return!l.isInRange(i,h,d)||e?null:(e=l.isEqual(i,g.start),t=l.isEqual(i,g.end),n=!e&&!t&&le(i,g),{formattedValue:l.value(i),id:""+c+i.getTime(),isFocused:l.isEqual(i,p),isSelected:u&&m.some(function(e){return l.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&l.isEqual(i,r),isRangeSplitStart:n&&l.isEqual(i,o),isToday:l.isEqual(i,s),title:l.cellTitle(i),value:i})})})):Ae},Be.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},Be.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99)},Be.prototype.isInRange=function(e,t,n){e=k.firstYearOfDecade(e).getFullYear(),t=!t||k.firstYearOfDecade(t).getFullYear()<=e,e=!n||e<=k.firstYearOfDecade(n).getFullYear();return t&&e},Be.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(k.firstDecadeOfCentury(e)),k.createDate(t.getFullYear(),0,1))},Be.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Be.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},Be.prototype.move=function(e,t){t=Le[t];return t?t(e):e},Be.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},Be.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},Be.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},Be.prototype.rowLength=function(){return 4},Be.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},Be.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},Be.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Be.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addCenturies(e,-1*(n-t)):e},Be.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Be);function Be(){this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDecades(i,1);return n}}c.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,deps:[],target:i.ɵɵFactoryTarget.Injectable}),c.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,decorators:[{type:h.Injectable}]});var ze=[[]],je=((u={})[l.Left]=function(e){return k.addYears(e,-1)},u[l.Up]=function(e){return k.addYears(e,-5)},u[l.Right]=function(e){return k.addYears(e,1)},u[l.Down]=function(e){return k.addYears(e,5)},u[l.PrevView]=function(e){return k.addDecades(e,-1)},u[l.NextView]=function(e){return k.addDecades(e,1)},u[l.FirstInView]=function(e){return k.firstYearOfDecade(e)},u[l.LastInView]=function(e){return k.lastYearOfDecade(e)},u),u=(He.prototype.addToDate=function(e,t){return k.addDecades(e,t)},He.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addDecades(t,e)})},He.prototype.data=function(e){var t,o,r,s,l=this,c=e.cellUID,p=e.focusedDate,u=e.isActiveView,d=e.max,h=e.min,m=e.selectedDates,n=e.selectionRange,g=void 0===n?Ve:n,n=e.viewDate;return n?(t=Z(0,4),o=k.firstYearOfDecade(n),r=k.lastYearOfDecade(n),s=te(),Z(0,3).map(function(e){var a=k.addYears(o,4*e);return t.map(function(e){var t,n,i=l.normalize(k.addYears(a,e),h,d),e=i.getFullYear()>r.getFullYear();return!l.isInRange(i,h,d)||e?null:(e=l.isEqual(i,g.start),t=l.isEqual(i,g.end),n=!e&&!t&&le(i,g),{formattedValue:l.value(i),id:""+c+i.getTime(),isFocused:l.isEqual(i,p),isSelected:u&&m.some(function(e){return l.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&l.isEqual(i,r),isRangeSplitStart:n&&l.isEqual(i,o),isToday:l.isEqual(i,s),title:l.cellTitle(i),value:i})})})):ze},He.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},He.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9)},He.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},He.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(e),k.createDate(t.getFullYear(),0,1))},He.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},He.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},He.prototype.move=function(e,t){t=je[t];return t?t(e):e},He.prototype.cellTitle=function(e){return e.getFullYear().toString()},He.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},He.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},He.prototype.rowLength=function(){return 4},He.prototype.skip=function(e,t){return k.durationInDecades(t,e)},He.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},He.prototype.value=function(e){return e?e.getFullYear().toString():""},He.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addDecades(e,-1*(n-t)):e},He.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},He);function He(){this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addYears(i,1);return n}}u.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,deps:[],target:i.ɵɵFactoryTarget.Injectable}),u.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,decorators:[{type:h.Injectable}]});var _e=[[]],Ye=(($e={})[l.Left]=function(e){return k.addDays(e,-1)},$e[l.Up]=function(e){return k.addWeeks(e,-1)},$e[l.Right]=function(e){return k.addDays(e,1)},$e[l.Down]=function(e){return k.addWeeks(e,1)},$e[l.PrevView]=function(e){return k.addMonths(e,-1)},$e[l.NextView]=function(e){return k.addMonths(e,1)},$e[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},$e[l.LastInView]=function(e){return k.lastDayOfMonth(e)},$e),$e=(Ue.prototype.addToDate=function(e,t){return k.addMonths(e,t)},Ue.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addMonths(t,e)})},Ue.prototype.data=function(e){var r,s,l,c,t,n,p,u=this,d=e.cellUID,h=e.focusedDate,m=e.isActiveView,g=e.max,f=e.min,v=e.selectedDates,i=e.selectionRange,y=void 0===i?Ve:i,i=e.viewDate,e=e.isDateDisabled,b=void 0===e?function(){return!1}:e;return i?(r=k.firstDayOfMonth(i),s=k.getDate(r),l=k.lastDayOfMonth(i),c=k.getDate(l),t=k.dayOfWeek(r,this._intlService.firstDay(),-1),n=Z(0,7),p=te(),Z(0,6).map(function(e){var o=k.addDays(t,7*e);return n.map(function(e){var t,n,i,a=u.normalize(k.addDays(o,e),f,g),e=k.getDate(a),e=e<s||c<e;return a<f||g<a?null:(t=u.isEqual(a,y.start),n=u.isEqual(a,y.end),i=!t&&!n&&le(a,y),{formattedValue:u.value(a),id:""+d+a.getTime(),isFocused:u.isEqual(a,h),isSelected:m&&v.some(function(e){return u.isEqual(a,e)}),isWeekend:u.isWeekend(a),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitStart:i&&u.isEqual(a,r),isRangeSplitEnd:i&&u.isEqual(a,l),isToday:u.isEqual(a,p),title:u.cellTitle(a),value:a,isDisabled:b(a),isOtherMonth:e})})})):_e},Ue.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},Ue.prototype.isInArray=function(e,t){var n;return 0!==t.length&&(n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(k.addMonths(t[t.length-1],1)),n<=e&&e<t)},Ue.prototype.isInRange=function(e,t,n){e=k.getDate(e),t=!t||k.getDate(t)<=e,e=!n||e<=k.getDate(n);return t&&e},Ue.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},Ue.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},Ue.prototype.isRangeStart=function(e){return!e.getMonth()},Ue.prototype.move=function(e,t){t=Ye[t];return t?t(e):e},Ue.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},Ue.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},Ue.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},Ue.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},Ue.prototype.skip=function(e,t){return k.durationInMonths(t,e)},Ue.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},Ue.prototype.value=function(e){return e?e.getDate().toString():""},Ue.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addMonths(e,-1*(n-t)):e},Ue.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},Ue.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},Ue.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Ue.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},Ue);function Ue(e){this._intlService=e,this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDays(i,1);return n}}$e.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$e,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),$e.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$e}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$e,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});var Ke=[[]],qe=((We={})[l.Left]=function(e){return k.addMonths(e,-1)},We[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},We[l.Right]=function(e){return k.addMonths(e,1)},We[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},We[l.PrevView]=function(e){return k.addYears(e,-1)},We[l.NextView]=function(e){return k.addYears(e,1)},We[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},We[l.LastInView]=function(e){return k.lastMonthOfYear(e)},We),We=(Ze.prototype.addToDate=function(e,t){return k.addYears(e,t)},Ze.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addYears(t,e)})},Ze.prototype.data=function(e){var o,r,s,l,t,c,p=this,u=e.cellUID,d=e.focusedDate,h=e.isActiveView,m=e.max,g=e.min,f=e.selectedDates,n=e.selectionRange,v=void 0===n?Ve:n,n=e.viewDate;return n?(o=this.abbrMonthNames(),r=k.firstMonthOfYear(n),s=k.lastMonthOfYear(n),l=r.getFullYear(),t=Z(0,4),c=te(),Z(0,3).map(function(e){var a=k.addMonths(r,4*e);return t.map(function(e){var t,n,i=p.normalize(k.addMonths(a,e),g,m),e=l<i.getFullYear();return!p.isInRange(i,g,m)||e?null:(e=p.isEqual(i,v.start),t=p.isEqual(i,v.end),n=!e&&!t&&le(i,v),{formattedValue:o[i.getMonth()],id:""+u+i.getTime(),isFocused:p.isEqual(i,d),isSelected:h&&f.some(function(e){return p.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&p.isEqual(i,s),isRangeSplitStart:n&&p.isEqual(i,r),isToday:p.isEqual(i,c),title:p.cellTitle(i),value:i})})})):Ke},Ze.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},Ze.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear())},Ze.prototype.isInRange=function(e,t,n){e=k.createDate(e.getFullYear(),e.getMonth(),1),t=!t||k.createDate(t.getFullYear(),t.getMonth(),1)<=e,e=!n||e<=k.createDate(n.getFullYear(),n.getMonth(),1);return t&&e},Ze.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},Ze.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ze.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},Ze.prototype.move=function(e,t){t=qe[t];return t?t(e):e},Ze.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},Ze.prototype.navigationTitle=function(e){return this.title(e)},Ze.prototype.title=function(e){return e?e.getFullYear().toString():""},Ze.prototype.rowLength=function(){return 4},Ze.prototype.skip=function(e,t){return k.durationInYears(t,e)},Ze.prototype.total=function(e,t){return k.durationInYears(e,t)+1},Ze.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},Ze.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addYears(e,-1*(n-t)):e},Ze.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},Ze.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Ze);function Ze(e){this._intlService=e,this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addMonths(i,1);return n}}We.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:We,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),We.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:We}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:We,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});(ct={})[f.month]=$e,ct[f.year]=We,ct[f.decade]=u,ct[f.century]=c;var Ge=ct,d=(Xe.prototype.configure=function(e,t){this.bottom=e,this.top=t},Xe.prototype.service=function(e){e=Ge[e];return e?this.injector.get(e):null},Xe.prototype.moveDown=function(e){this.move(e,-1)},Xe.prototype.moveUp=function(e){this.move(e,1)},Xe.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},Xe.prototype.canMoveDown=function(e){return this.bottom<e},Xe.prototype.canMoveUp=function(e){return e<this.top},Xe.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},Xe.prototype.move=function(e,t){t=this.clamp(function(e,t){t=f[f[e+t]];return void 0!==t?t:e}(e,t));t!==e&&this.viewChanged.emit({view:t})},Xe);function Xe(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=f.month,this.top=f.century}d.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:d,deps:[{token:i.Injector}],target:i.ɵɵFactoryTarget.Injectable}),d.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:d}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:d,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:i.Injector}]}});Je.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ie(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var Qe=Je;function Je(e){this.intl=e}Qe.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Qe,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Qe.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Qe}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Qe,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});var et=function(e,t){return(et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),r=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)r.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return r}function nt(e,t,n){if(n||2===arguments.length)for(var i,a=0,o=t.length;a<o;a++)!i&&a in t||((i=i||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function it(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function at(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function ot(){return!1}rt.prototype.initialize=function(t){var n,i,e;"function"==typeof t?this.isDateDisabled=function(e){return t(k.getDate(e))}:(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return"number"==typeof e})?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return e instanceof Date})?(i=new Set(t.map(function(e){return k.getDate(e).getTime()})),this.isDateDisabled=function(e){return i.has(k.getDate(e).getTime())}):(this.isDateDisabled=ot,this.notifyInvalidInput(t)))),this.notifyServiceChange()},rt.prototype.notifyInvalidInput=function(e){if(r(e)&&h.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},rt.prototype.notifyServiceChange=function(){this.changes.next()};var y=rt;function rt(){this.changes=new p.Subject,this.isDateDisabled=ot}y.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:y,deps:[],target:i.ɵɵFactoryTarget.Injectable}),y.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:y}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:y,decorators:[{type:h.Injectable}]});Object.defineProperty(lt.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var st=lt;function lt(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(pt.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),pt.prototype.ngOnChanges=function(t){if("kForOf"in t){t=t.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((t=t).name||typeof t)+"'.")}}},pt.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},pt.prototype._applyChanges=function(e){if(m.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 st(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;n<a;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}};var ct=pt;function pt(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}ct.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ct,deps:[{token:i.ViewContainerRef},{token:i.TemplateRef},{token:i.IterableDiffers}],target:i.ɵɵFactoryTarget.Directive}),ct.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ct,selector:"[kFor][kForOf]",inputs:{kForOf:"kForOf",kForTrackBy:"kForTrackBy",kForTemplate:"kForTemplate"},usesOnChanges:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ct,decorators:[{type:h.Directive,args:[{selector:"[kFor][kForOf]"}]}],ctorParameters:function(){return[{type:i.ViewContainerRef},{type:i.TemplateRef},{type:i.IterableDiffers}]},propDecorators:{kForOf:[{type:h.Input}],kForTrackBy:[{type:h.Input}],kForTemplate:[{type:h.Input}]}});Object.defineProperty(b.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===f.month},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),b.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},b.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))},b.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},b.prototype.isHorizontal=function(){return"horizontal"===this.direction},b.prototype.isMonthView=function(){return this.activeView===f.month},b.prototype.shouldRenderCellContent=function(e){return r(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},b.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},b.prototype.getWeekNumber=function(e){return this.weekNumber?k.weekInYear(e,this.intl.firstDay()):null},b.prototype.getWeekNumberContext=function(e){var t,e=this.firstWeekDateContext(e);return this.weekNumber&&e?{formattedValue:t=k.weekInYear(e.value,this.intl.firstDay()).toString(),id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:t,value:k.cloneDate(e.value)}:null},b.prototype.getStyles=function(e){var n,t=e.isRangeEnd,i=e.isRangeStart,a="end"===this.activeRangeEnd&&t,o="start"===this.activeRangeEnd&&i;return n={"k-range-end":!e.isOtherMonth&&t,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-active":o||a,"k-focus":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-selected":!e.isOtherMonth&&(e.isSelected||i||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},b.prototype.tableCellIndex=function(e,t){return e+":"+t},b.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},b.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},b.prototype.updateData=function(){var e=se(this.selectedDates)||te(),e=xe(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},b.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},b.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},b.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)))},b.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(i=i.getAttribute("data-cell-index"),(i=this.cellByIndex(i)).isDisabled||(t=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:i.value,modifiers:{ctrlKey:t,metaKey:n,shiftKey:e}})))},b.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},b.prototype.cellMouseoverHandler=function(e){var t,e=this.closestCell(e);e?(e=e.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},b.prototype.closestCell=function(e){return it(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},b.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},b.prototype.cellByIndex=function(e){var e=v(e.split(":"),2),t=e[0],e=e[1];return this.data[t][e]};var ut=b;function b(e,t,n,i,a,o,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=o,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.colSpan=0,this.subscriptions=new p.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)))}ut.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ut,deps:[{token:d},{token:o.IntlService},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:i.NgZone},{token:i.Renderer2},{token:y}],target:i.ɵɵFactoryTarget.Component}),ut.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ut,selector:"[kendoCalendarView]",inputs:{direction:"direction",isActive:"isActive",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave"},usesOnChanges:!0,ngImport:i,template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ut,decorators:[{type:h.Component,args:[{selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}]}],ctorParameters:function(){return[{type:d},{type:o.IntlService},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:i.NgZone},{type:i.Renderer2},{type:y}]},propDecorators:{direction:[{type:h.Input}],isActive:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],viewDate:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],selectionRange:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectedDates:[{type:h.Input}],weekNumber:[{type:h.Input}],viewIndex:[{type:h.Input}],templateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}]}});Object.defineProperty(C.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentMonthClass",{get:function(){return this.activeView===f.month},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentYearClass",{get:function(){return this.activeView===f.year},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===f.decade},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===f.century},enumerable:!1,configurable:!0}),C.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=oe(e,"activeView"),e=0<this.views&&oe(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=k.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate)))},C.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},C.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},C.prototype.initService=function(){this.service=this.bus.service(this.activeView)},C.prototype.isMonthView=function(){return this.activeView===f.month},C.prototype.getCaptionTitle=function(e){return this.service.title(e)},C.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},C.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),o=parseFloat(getComputedStyle(i).width),i=(this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===l.NextView?this.nextAnimationDate=k.cloneDate(this.dates[0]):this.prevAnimationDate=k.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",o+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")}),i.getBoundingClientRect()),r=parseFloat(getComputedStyle(n).columnGap),s=e===l.NextView?"translateX(0)":"translateX(-"+(i.width+r)+"px)",e=e===l.NextView?"translateX(-"+(i.width+r)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:s},{transform:e}],{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()})},C.prototype.navigate=function(e){this.animateNavigation&&m.isDocumentAvailable()&&r(this.element.nativeElement.animate)&&this.animateView(e);var e=this.move(e),t=this.service.datesList(e,this.getTake(this.skip));return this.isListInRange(t)&&(this.dates=t),this.activeDate=k.cloneDate(this.dates[0]),this.focusedDate=k.cloneDate(e),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),k.cloneDate(e)},C.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},C.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},C.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},C.prototype.clampDate=function(e){return J(e,this.min,this.max)},C.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},C.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},C.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},C.prototype.getTake=function(e){return Math.min(this.total-e,this.views)};var dt=C;function C(e,t,n,i,a,o){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=o,this.activeView=f.month,this.isActive=!0,this.min=new Date(we),this.max=new Date(De),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}dt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:dt,deps:[{token:d},{token:o.IntlService},{token:Qe},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),dt.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:dt,selector:"kendo-calendar-horizontal",inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",activeRangeEnd:"activeRangeEnd",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectionRange:"selectionRange",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",orientation:"orientation",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange"},host:{properties:{"class.k-calendar-view":"this.getComponentClass","class.k-align-items-start":"this.getComponentClass","class.k-justify-content-center":"this.getComponentClass","class.k-hstack":"this.horizontalHostClass","class.k-vstack":"this.verticalHostClass","class.k-calendar-monthview":"this.getComponentMonthClass","class.k-calendar-yearview":"this.getComponentYearClass","class.k-calendar-decadeview":"this.getComponentDecadeClass","class.k-calendar-centuryview":"this.getComponentCenturyClass"}},usesOnChanges:!0,ngImport:i,template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n role="grid"\n class="k-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 ',isInline:!0,components:[{type:ut,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave"]}],directives:[{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:dt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-horizontal",template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n role="grid"\n class="k-content k-calendar-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 '}]}],ctorParameters:function(){return[{type:d},{type:o.IntlService},{type:Qe},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:i.Renderer2}]},propDecorators:{cellTemplateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],isActive:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectionRange:[{type:h.Input}],selectedDates:[{type:h.Input}],views:[{type:h.Input}],showViewHeader:[{type:h.Input}],animateNavigation:[{type:h.Input}],orientation:[{type:h.Input}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],activeDateChange:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-view"]},{type:h.HostBinding,args:["class.k-align-items-start"]},{type:h.HostBinding,args:["class.k-justify-content-center"]}],horizontalHostClass:[{type:h.HostBinding,args:["class.k-hstack"]}],verticalHostClass:[{type:h.HostBinding,args:["class.k-vstack"]}],getComponentMonthClass:[{type:h.HostBinding,args:["class.k-calendar-monthview"]}],getComponentYearClass:[{type:h.HostBinding,args:["class.k-calendar-yearview"]}],getComponentDecadeClass:[{type:h.HostBinding,args:["class.k-calendar-decadeview"]}],getComponentCenturyClass:[{type:h.HostBinding,args:["class.k-calendar-centuryview"]}]}});Object.defineProperty(mt.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(mt.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),mt.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)))},mt.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=f[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},mt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},mt.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(J(te(),this.min,this.max)))},mt.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},mt.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},mt.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},mt.prototype.getTitle=function(){var e,t,n,i;return this.currentDate?(e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t),t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)):""},mt.prototype.setTodayAvailability=function(){var e=te(),t=G(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var ht=mt;function mt(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(we),this.max=new Date(De),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.orientation="horizontal",this.todayButtonClick=new h.EventEmitter,this.prevButtonClick=new h.EventEmitter,this.nextButtonClick=new h.EventEmitter,this.getComponentClass=!0,this.subscriptions=new p.Subscription}ht.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ht,deps:[{token:d},{token:i.ChangeDetectorRef},{token:a.LocalizationService},{token:o.IntlService},{token:y}],target:i.ɵɵFactoryTarget.Component}),ht.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ht,selector:"kendo-calendar-header",inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",templateRef:"templateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",orientation:"orientation"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},host:{properties:{"class.k-calendar-header":"this.getComponentClass","class.k-hstack":"this.horizontalHostClass","class.k-vstack":"this.verticalHostClass"}},usesOnChanges:!0,ngImport:i,template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-prev"\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-chevron-left"></span>\n </button>\n <span\n class="k-today k-calendar-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-next"\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-chevron-right"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ht,decorators:[{type:h.Component,args:[{selector:"kendo-calendar-header",template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-prev"\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-chevron-left"></span>\n </button>\n <span\n class="k-today k-calendar-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-next"\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-chevron-right"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:d},{type:i.ChangeDetectorRef},{type:a.LocalizationService},{type:o.IntlService},{type:y}]},propDecorators:{activeView:[{type:h.Input}],currentDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeLength:[{type:h.Input}],templateRef:[{type:h.Input}],isPrevDisabled:[{type:h.Input}],isNextDisabled:[{type:h.Input}],showNavigationButtons:[{type:h.Input}],orientation:[{type:h.Input}],todayButtonClick:[{type:h.Output}],prevButtonClick:[{type:h.Output}],nextButtonClick:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-header"]}],horizontalHostClass:[{type:h.HostBinding,args:["class.k-hstack"]}],verticalHostClass:[{type:h.HostBinding,args:["class.k-vstack"]}]}});var gt={33:l.PrevView,34:l.NextView,35:l.LastInView,36:l.FirstInView,37:l.Left,38:l.Up,39:l.Right,40:l.Down,"meta+38":l.UpperView,"meta+40":l.LowerView},ft=(vt.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return gt[e]},vt.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===l.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===l.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},vt);function vt(e){this.bus=e}ft.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ft,deps:[{token:d}],target:i.ɵɵFactoryTarget.Injectable}),ft.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ft}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ft,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:d}]}});bt.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,e=e.selectedDates.slice();return o="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!k.isEqual(e,t)}):e.push(t),t):n.shiftKey?(n=(i=v([o||t,t].filter(r).sort(function(e,t){return e.getTime()-t.getTime()}),2))[0],i=i[1],e=this.bus.service(a).dateRange(n,i),t>e[0]?e[0]:se(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:o}},bt.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var yt=bt;function bt(e){this.bus=e}yt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:yt,deps:[{token:d}],target:i.ɵɵFactoryTarget.Injectable}),yt.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:yt}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:yt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:d}]}});function kt(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function Ct(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function wt(){return null}function Dt(t){return r(t)?function(e){return r(e)&&r(e.start)&&r(e.end)&&!(e.start>e.end)&&(e=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=k.addDays(a,1);return i}(e.start,e.end,t)).length?{disabledDatesInRange:e}:null}:wt}var Tt,It=function(e){this.templateRef=e},Vt=(It.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:It,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),It.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:It,selector:"[kendoCalendarCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:It,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),xt=(Vt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vt,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Vt.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Vt,selector:"[kendoCalendarMonthCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),St=(xt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xt,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),xt.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:xt,selector:"[kendoCalendarYearCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),Et=(St.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:St,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),St.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:St,selector:"[kendoCalendarDecadeCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:St,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),Rt=(Et.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Et,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Et.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Et,selector:"[kendoCalendarCenturyCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Et,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),Ot=(Rt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Rt,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Rt.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Rt,selector:"[kendoCalendarWeekNumberCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Rt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),w=(Ot.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ot,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Ot.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ot,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ot,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarHeaderTitleTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),tt(Mt,Tt=t.ComponentMessages),Mt);function Mt(){return null!==Tt&&Tt.apply(this,arguments)||this}w.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,deps:null,target:i.ɵɵFactoryTarget.Directive}),w.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-multiview-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,decorators:[{type:h.Directive,args:[{selector:"kendo-multiview-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt(Pt,Nt=w);var Nt,Ft=Pt;function Pt(e){var t=Nt.call(this)||this;return t.service=e,t}Ft.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ft,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Ft.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ft,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:w,useExisting:h.forwardRef(function(){return Ft})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ft,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Ft})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var At="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",D={multi:!0,provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Bt})},Lt={multi:!0,provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Bt})},Bt=(Object.defineProperty(T.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||te()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(we)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(De)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(r).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(r).map(function(e){return k.cloneDate(e)});de(e,this.selectedDates)||(t=se(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"activeViewEnum",{get:function(){var e=f[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"bottomViewEnum",{get:function(){return f[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"topViewEnum",{get:function(){return f[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),T.prototype.handleFocusout=function(e){var t=e.relatedTarget;this.element.nativeElement.contains(t)||(this.blurEvent.emit(e),this.onControlTouched()),this.isActive=!1,this.isHovered=!1,this.isHeaderActive=this.headerElement.nativeElement.contains(t)},T.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},T.prototype.handleMouseEnter=function(){this.isHovered=!0},T.prototype.handleMouseLeave=function(){this.isHovered=!1},T.prototype.handleMousedown=function(e){e.preventDefault()},T.prototype.handleClick=function(){this.isActive||this.focus()},T.prototype.keydown=function(e){var t;this.isHeaderActive||(e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e),t=J(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)))},T.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=f[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},T.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),re(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=J(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?Dt(this.disabledDatesService.isDateDisabled):g,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},T.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},T.prototype.ngAfterViewInit=function(){this.updateButtonState()},T.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},T.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},T.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},T.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter(function(e){return!t.disabledDatesService.isDateDisabled(e)}),e=(this.focusedDate=e.focusedDate||this.focusedDate,!n&&de(i,this.selectedDates));this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return k.cloneDate(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},T.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)},T.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},T.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},T.prototype.registerOnChange=function(e){this.onControlChange=e},T.prototype.registerOnTouched=function(e){this.onControlTouched=e},T.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},T.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},T.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},T.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case f.month:return this.monthCellTemplateRef||this.cellTemplateRef;case f.year:return this.yearCellTemplateRef;case f.decade:return this.decadeCellTemplateRef;case f.century:return this.centuryCellTemplateRef;default:return null}},T.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},T.prototype.emitNavigate=function(e){var t=f[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},T.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},T.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},T.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:se(e)})})},T.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},T.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},T.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+At+" 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 "+At+" for possible resolution.")}},T.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()})},T.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(se(e)):e.map(function(e){return k.cloneDate(e)})},T.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},T);function T(e,t,n,i,a,o,r,s){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=a,this.zone=o,this.disabledDatesService=r,this.selectionService=s,this.id=m.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.orientation="horizontal",this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.blurEvent=new h.EventEmitter,this.cellUID=m.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=l.PrevView,this.nextView=l.NextView,this.selectedDates=[],this._min=new Date(we),this._max=new Date(De),this._focusedDate=te(),this.resolvedPromise=Promise.resolve(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesRangeValidateFn=g,this.subscriptions=new p.Subscription,this.setClasses(t.nativeElement)}Bt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bt,deps:[{token:d},{token:i.ElementRef},{token:ft},{token:i.Renderer2},{token:i.ChangeDetectorRef},{token:i.NgZone},{token:y},{token:yt}],target:i.ɵɵFactoryTarget.Component}),Bt.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Bt,selector:"kendo-multiviewcalendar",inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",orientation:"orientation",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur"},host:{listeners:{focusout:"handleFocusout($event)",focus:"handleFocus()",mouseenter:"handleMouseEnter()",mouseleave:"handleMouseLeave()",mousedown:"handleMousedown($event)",click:"handleClick()",keydown:"keydown($event)"},properties:{"attr.id":"this.widgetId","attr.tabindex":"this.calendarTabIndex","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled","attr.aria-activedescendant":"this.ariaActivedescendant"}},providers:[d,D,Lt,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},ft,yt],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:ht,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:dt,descendants:!0}],exportAs:["kendo-multiviewcalendar"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n [orientation]="orientation"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n [orientation]="orientation"\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 ',isInline:!0,components:[{type:ht,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:dt,selector:"kendo-calendar-horizontal",inputs:["cellTemplateRef","weekNumberTemplateRef","activeRangeEnd","activeView","cellUID","focusedDate","isActive","min","max","selectionRange","selectedDates","views","showViewHeader","animateNavigation","orientation","weekNumber"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]}],directives:[{type:Ft,selector:"[kendoMultiViewCalendarLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[d,D,Lt,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},ft,yt],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n [orientation]="orientation"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n [orientation]="orientation"\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 '}]}],ctorParameters:function(){return[{type:d},{type:i.ElementRef},{type:ft},{type:i.Renderer2},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:y},{type:yt}]},propDecorators:{id:[{type:h.Input}],focusedDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesRangeValidation:[{type:h.Input}],selection:[{type:h.Input}],value:[{type:h.Input}],disabled:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],isActive:[{type:h.Input}],disabledDates:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],showViewHeader:[{type:h.Input}],animateNavigation:[{type:h.Input}],weekNumber:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],selectionRange:[{type:h.Input}],views:[{type:h.Input}],orientation:[{type:h.Input}],activeViewChange:[{type:h.Output}],navigate:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],valueChange:[{type:h.Output}],blurEvent:[{type:h.Output,args:["blur"]}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[ht,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[dt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],calendarTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}],ariaActivedescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],handleFocusout:[{type:h.HostListener,args:["focusout",["$event"]]}],handleFocus:[{type:h.HostListener,args:["focus"]}],handleMouseEnter:[{type:h.HostListener,args:["mouseenter"]}],handleMouseLeave:[{type:h.HostListener,args:["mouseleave"]}],handleMousedown:[{type:h.HostListener,args:["mousedown",["$event"]]}],handleClick:[{type:h.HostListener,args:["click"]}],keydown:[{type:h.HostListener,args:["keydown",["$event"]]}]}});jt.prototype.height=function(e){return this.heights[e]},jt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},jt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},jt.prototype.index=function(i){var e;if(!(i<0))return void 0===(e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0))?this.total-1:e},jt.prototype.offset=function(e){return this.offsets[e]},jt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},jt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,nt(nt([],v(n.slice(0,e+1))),v(n.slice(e+1).map(function(e){return e+i}))))};var zt=jt;function jt(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}function Ht(e){return Math.max(e,0)}var _t=function(e){this.offset=e},Yt=function(e){this.skip=e},$t=(Ut.prototype.create=function(e,t,n,i,a,o,r){var s=this,l=(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,new p.ReplaySubject(2)),e=this.rowsForHeight(a),n=Ht(t-e);return l.next(new _t(this.rowOffset(n))),e&&l.next(new Yt(n)),this.subscription=new p.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return l.next(e)}),l},Ut.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},Ut.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?a:e;this.lastScroll!==i&&(a=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(Ht(i-this.topOffset)),i=this.rowHeightService.index(Ht(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new _t(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Yt(this.firstLoaded))),a&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Ht(e-n),t.next(new _t(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Yt(this.firstLoaded))))},Ut.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},Ut.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},Ut.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},Ut);function Ut(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var Kt,qt=new h.InjectionToken("dateinputs-scroll-service-factory");function Wt(e){return new $t(e)}(D=Kt=Kt||{})[D.Backward=0]="Backward",D[D.Forward=1]="Forward";(Lt={})[Kt.Forward]=function(t){return function(e){return e+t}},Lt[Kt.Backward]=function(t){return function(e){return e-t}};var Zt=Lt,Gt=((D={})[Kt.Forward]=function(t){return function(e){return Math.min(e,t)}},D[Kt.Backward]=function(t){return function(e){return Math.max(e,t)}},D),Xt=((Lt={})[Kt.Forward]=function(t){return function(e){return e<t}},Lt[Kt.Backward]=function(t){return function(e){return t<e}},Lt),D=(Object.defineProperty(I.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),I.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},I.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},I.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(z.map(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},I.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},I.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},I.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},I.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},I.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},I.prototype.isIndexVisible=function(e){var t,n,i;return!!this.rowHeightService&&(n=(t=this.containerScrollPosition)+this.containerOffsetSize,e=(i=this.rowHeightService.offset(e))+this.rowHeightService.height(e),t<=i&&e<=n)},I.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},I.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},I.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},I.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},I.prototype.animateToIndex=function(e){var t,n,i,a,o=this,e=(this.animationSubscription&&this.animationSubscription.unsubscribe(),this.rowHeightService.offset(e)),r=this.getContainerScrollDirection(e),e=this.scrollRange(e,r),s=e.start,e=e.end;s!==e&&(t=this.scrollStep(s,e),n=Zt[r](t),i=Gt[r](e),a=Xt[r](n(e)),this.zone.runOutsideAngular(function(){o.animationSubscription=p.combineLatest(p.of(s),p.interval(0,p.animationFrameScheduler)).pipe(z.map(function(e){return e[0]}),z.scan(n),z.takeWhile(a),z.map(i)).subscribe(function(e){return o.scrollTo(e)})}))},I.prototype.scrollRange=function(e,t){var n,i,a=this.containerScrollPosition;return parseInt(e,10)===parseInt(a,10)?{start:e,end:e}:(n=this.containerMaxScroll(),t=t===Kt.Backward?1:-1,i=this.maxScrollDifference,a=Math.min(Math.abs(e-a),i),i=Math.min(e,n),{start:Math.min(Math.max(i+t*a,0),n),end:i})},I.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},I.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},I.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof Yt?t.pageChange:t.scrollChange).emit(e)})},I.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new zt(this.total,e,0)},I.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},I.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},I.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?Kt.Backward:Kt.Forward},I);function I(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.scrollChange=new h.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new p.Subject,this.scroller=e(this.dispatcher)}D.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,deps:[{token:qt},{token:i.ElementRef},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Component}),D.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-virtualization",inputs:{direction:"direction",itemHeight:"itemHeight",itemWidth:"itemWidth",topOffset:"topOffset",bottomOffset:"bottomOffset",maxScrollDifference:"maxScrollDifference",scrollOffsetSize:"scrollOffsetSize",scrollDuration:"scrollDuration",skip:"skip",take:"take",total:"total"},outputs:{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"},host:{properties:{"class.k-flex":"this.wrapperClasses","class.k-content":"this.wrapperClasses","class.k-scrollable":"this.wrapperClasses","class.k-scrollable-horizontal":"this.horizontalClass"}},providers:[{provide:qt,useValue:Wt}],usesOnChanges:!0,ngImport:i,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 ',isInline:!0,directives:[{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,decorators:[{type:h.Component,args:[{providers:[{provide:qt,useValue:Wt}],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 '}]}],ctorParameters:function(){return[{type:void 0,decorators:[{type:h.Inject,args:[qt]}]},{type:i.ElementRef},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{direction:[{type:h.Input}],itemHeight:[{type:h.Input}],itemWidth:[{type:h.Input}],topOffset:[{type:h.Input}],bottomOffset:[{type:h.Input}],maxScrollDifference:[{type:h.Input}],scrollOffsetSize:[{type:h.Input}],scrollDuration:[{type:h.Input}],skip:[{type:h.Input}],take:[{type:h.Input}],total:[{type:h.Input}],activeIndexChange:[{type:h.Output}],pageChange:[{type:h.Output}],scrollChange:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-flex"]},{type:h.HostBinding,args:["class.k-content"]},{type:h.HostBinding,args:["class.k-scrollable"]}],horizontalClass:[{type:h.HostBinding,args:["class.k-scrollable-horizontal"]}]}});function Qt(e,a,o){var r,s=e.cells,l=e.rows;return function(){var e,t,n,i;return m.isDocumentAvailable?(r||(n=l,void 0===(i=s)&&(i=1),n=hn([un([pn([cn("1","k-calendar-th")],"k-calendar-tr")].concat(fn(n,function(){return pn(fn(i,function(e){return ln('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=on([mn(),t?gn():null,vn([n,n])],e,{left:"-10000px",position:"absolute"})),r):null}}function Jt(e){return bn(e).classList.add("k-scrollable-horizontal"),e}function en(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function tn(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function nn(e){return e.querySelector("tbody")}var an,on=ae("div"),rn=ae("ul"),sn=ae("li"),ln=ae("td"),cn=ae("th"),pn=ae("tr"),un=ae("tbody"),dn=ae("thead"),hn=ae("table"),mn=function(){return on('\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title">March 2017</span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <span class="k-today k-calendar-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack")},gn=function(){return hn([dn([pn([cn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},fn=function(e,t){return new Array(e).fill("1").map(t)},vn=function(e){return on(e,"k-flex k-content k-scrollable")},yn=function(){return m.isDocumentAvailable?an=an||on([vn([rn([sn("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},bn=function(e){return e.querySelector(".k-scrollable")},kn=Qt({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Cn=Qt({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),wn=Qt({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Dn=(Tn.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},Tn.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(kn(),function(e){var t=nn(e);n.calendarHeight=en(e),n.monthViewHeight=en(t),n.headerHeight=en(t.children[0]),n.scrollableContentHeight=en(bn(e))}),this.batch(Jt(kn()),function(e){var t=nn(e);n.calendarWidth=tn(e),n.monthViewWidth=tn(t),n.scrollableContentWidth=tn(bn(e))}),this.batch(Cn(),function(e){n.yearViewHeight=en(nn(e)),n.scrollableYearContentHeight=en(bn(e))}),this.batch(Jt(Cn()),function(e){n.yearViewWidth=tn(nn(e))}),this.batch(wn(),function(e){n.decadeViewHeight=en(nn(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(Jt(wn()),function(e){n.decadeViewWidth=tn(nn(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(yn(),function(e){n.navigationItemHeight=en(e.querySelector("li"))}))},Tn.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},Tn.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},Tn.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case f.month:return this["month"+n];case f.year:return this["year"+n];case f.decade:return this["decade"+n];case f.century:return this["century"+n];default:return 1}},Tn.prototype.batch=function(e,t){if(r(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)}}},Tn);function Tn(){}Dn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Dn,deps:[],target:i.ɵɵFactoryTarget.Injectable}),Dn.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Dn}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Dn,decorators:[{type:h.Injectable}]});Object.defineProperty(In.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),In.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))},In.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=f[this.activeView],t=J(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)))},In.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},In.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},In.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},In.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},In.prototype.scrollChange=function(e){var e=e.offset,t=this.list.nativeElement,e="translateY("+e+"px)";this.renderer.setStyle(t,"transform",e),this.renderer.setStyle(t,"-ms-transform",e)},In.prototype.handleDateChange=function(e){var e=it(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(k.cloneDate(e)))},In.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},In.prototype.intlChange=function(){this.activeView===f.month&&this.cdr.markForCheck()};Lt=In;function In(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(we),this.max=new Date(De),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}Lt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Lt,deps:[{token:d},{token:Dn},{token:o.IntlService},{token:i.ChangeDetectorRef},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),Lt.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Lt,selector:"kendo-calendar-navigation",inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},host:{properties:{"class.k-calendar-navigation":"this.getComponentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:i,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 ',isInline:!0,components:[{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Lt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:d},{type:Dn},{type:o.IntlService},{type:i.ChangeDetectorRef},{type:i.Renderer2}]},propDecorators:{activeView:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],focusedDate:[{type:h.Input}],templateRef:[{type:h.Input}],valueChange:[{type:h.Output}],pageChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-navigation"]}]}});Object.defineProperty(xn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===f.month},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentYearClass",{get:function(){return this.activeView===f.year},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===f.decade},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===f.century},enumerable:!1,configurable:!0}),xn.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))},xn.prototype.ngOnChanges=function(e){var t,n,i,a,o;this.service=this.bus.service(this.activeView),this.service&&(this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.weekNames=oe(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,t=oe(e,"activeView"),n=this.focusedDate,a=J(this.service.viewDate(n,this.max,this.minViewsToRender),this.min,this.max),o=this.service.total(this.min,this.max),i=this.total&&this.total!==o||!this.service.isInArray(n,this.dates),this.skip=this.service.skip(a,this.min),this.total=o,this.animateToIndex=!t,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),i&&(this.dates=this.service.datesList(a,this.getTake(this.skip))),o=this.activeDate,a=n,o&&a&&o.getFullYear()===a.getFullYear()&&o.getMonth()===a.getMonth()||(this.activeDate=k.cloneDate(n)),o=oe(e,"focusedDate")||t,(i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min)))},xn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},xn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},xn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},xn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},xn.prototype.scrollChange=function(e){var e=e.offset,t=this.list.nativeElement,e="translateY("+e+"px)";this.renderer.setStyle(t,"transform",e),this.renderer.setStyle(t,"-ms-transform",e)},xn.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},xn.prototype.isMonthView=function(){return this.activeView===f.month},xn.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},xn.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},xn.prototype.getScrollableHeight=function(){return this.activeView===f.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},xn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},xn.prototype.getWeekNames=function(){var e=ie(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},xn.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()};var Vn=xn;function xn(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(we),this.max=new Date(De),this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.todayButtonClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}Vn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vn,deps:[{token:d},{token:i.ChangeDetectorRef},{token:o.IntlService},{token:Dn},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),Vn.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Vn,selector:"kendo-calendar-viewlist",inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},host:{properties:{"class.k-vstack":"this.getComponentClass","class.k-calendar-view":"this.getComponentClass","class.k-calendar-monthview":"this.getComponentMonthClass","class.k-calendar-yearview":"this.getComponentYearClass","class.k-calendar-decadeview":"this.getComponentDecadeClass","class.k-calendar-centuryview":"this.getComponentCenturyClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:i,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">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:ht,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]},{type:ut,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave"]}],directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vn,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:d},{type:i.ChangeDetectorRef},{type:o.IntlService},{type:Dn},{type:i.Renderer2}]},propDecorators:{cellTemplateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],headerTitleTemplateRef:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],isActive:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectedDates:[{type:h.Input}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],activeDateChange:[{type:h.Output}],todayButtonClick:[{type:h.Output}],pageChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-vstack"]},{type:h.HostBinding,args:["class.k-calendar-view"]}],getComponentMonthClass:[{type:h.HostBinding,args:["class.k-calendar-monthview"]}],getComponentYearClass:[{type:h.HostBinding,args:["class.k-calendar-yearview"]}],getComponentDecadeClass:[{type:h.HostBinding,args:["class.k-calendar-decadeview"]}],getComponentCenturyClass:[{type:h.HostBinding,args:["class.k-calendar-centuryview"]}]}});En.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(t=e,function(e){return Math.floor(e/t)}),this.powerByMagnitude=(n=e,function(e){return e*n})},En.prototype.sync=function(e,i){var a=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;a.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,a.scrollSiblingOf(e.target))}),a.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,a.scrollSiblingOf(e.target))})}))},En.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},En.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},En.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},En.prototype.destroy=function(){this.unsubscribe()},En.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var Sn=En;function En(e,t){this.dom=e,this.zone=t}Sn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sn,deps:[{token:Dn},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Injectable}),Sn.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sn}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sn,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:Dn},{type:i.NgZone}]}});function Rn(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var On,Mn=function(e){this.templateRef=e},Nn=(Mn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Mn,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Mn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Mn,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Mn,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),tt(Fn,On=w),Object.defineProperty(Fn.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Fn);function Fn(e){var t=On.call(this)||this;return t.service=e,t}Nn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Nn,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),Nn.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Nn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return Nn})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Nn,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Nn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});tt(An,Pn=t.ComponentMessages);var Pn,w=An;function An(){return null!==Pn&&Pn.apply(this,arguments)||this}w.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,deps:null,target:i.ɵɵFactoryTarget.Directive}),w.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,decorators:[{type:h.Directive,args:[{selector:"kendo-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt(zn,Ln=w);var Ln,Bn=zn;function zn(e){var t=Ln.call(this)||this;return t.service=e,t}Bn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bn,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Bn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Bn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:w,useExisting:h.forwardRef(function(){return Bn})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bn,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Bn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});function jn(e){return e?e.virtualization:null}var Hn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",_n={multi:!0,provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return $n})},V={multi:!0,provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return $n})},Yn={provide:m.KendoInput,useExisting:h.forwardRef(function(){return $n})},$n=(Object.defineProperty(x.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!k.isEqual(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||te(),this.setAriaActivedescendant()},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(we)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(De)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(r).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(r).map(function(e){return k.cloneDate(e)});de(e,this.selectedDates)||(t=se(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.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:!1,configurable:!0}),Object.defineProperty(x.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"activeViewEnum",{get:function(){var e=f[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"bottomViewEnum",{get:function(){return f[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"topViewEnum",{get:function(){return f[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!1,configurable:!0}),x.prototype.ngOnInit=function(){var t=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(f[e])}),this.control=this.injector.get(A.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},x.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),re(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=J(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.onValidatorChange())},x.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},x.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(jn(this.navigationView),jn(this.monthView)))},x.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.domEvents.forEach(function(e){return e()}),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},x.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},x.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;r(e)&&e.focus()},x.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;r(e)&&e.blur()},x.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},x.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(k.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=J(e,this.min,this.max),this.detectChanges())},x.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=p.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},x.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},x.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&&de(a,this.selectedDates)?this.emitSameDate():i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(function(){t.selectedDates=a.map(function(e){return k.cloneDate(e)}),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()}))},x.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},x.prototype.registerOnChange=function(e){this.onControlChange=e},x.prototype.registerOnTouched=function(e){this.onControlTouched=e},x.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},x.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},x.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},x.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case f.month:return this.monthCellTemplateRef||this.cellTemplateRef;case f.year:return this.yearCellTemplateRef;case f.decade:return this.decadeCellTemplateRef;case f.century:return this.centuryCellTemplateRef;default:return null}},x.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},x.prototype.emitNavigate=function(e){var t=f[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},x.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},x.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},x.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},x.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},x.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:se(e)})})},x.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&Y(this.control)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges()))},x.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},x.prototype.handleMultiViewCalendarKeydown=function(e){r(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault()},x.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},x.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},x.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Hn+" 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 "+Hn+" for possible resolution.")}},x.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",$),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},x.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},x.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},x.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=k.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},x.prototype.handleKeydown=function(e){var t;"classic"===this.type&&this.multiViewCalendar.isHeaderActive||(t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),r(this.pickerService)&&t&&e.altKey||(r(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),t=J(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e)))},x.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},x.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},x.prototype.setAriaActivedescendant=function(){var e;r(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))&&("classic"===this.type?this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant"):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)))},x.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(se(e)):e.map(function(e){return k.cloneDate(e)})},x.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},x);function x(e,t,n,i,a,o,r,s,l,c,p,u,d){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=o,this.ngZone=r,this.injector=s,this.scrollSyncService=l,this.disabledDatesService=c,this.localization=p,this.selectionService=u,this.pickerService=d,this.id=m.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=m.guid(),this.selectedDates=[],this._min=new Date(we),this._max=new Date(De),this._focusedDate=te(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,L.validatePackage(ke),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}$n.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$n,deps:[{token:d},{token:Dn},{token:i.ElementRef},{token:ft},{token:i.Renderer2},{token:i.ChangeDetectorRef},{token:i.NgZone},{token:i.Injector},{token:Sn},{token:y},{token:a.LocalizationService},{token:yt},{token:Rn,optional:!0}],target:i.ɵɵFactoryTarget.Component}),$n.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:$n,selector:"kendo-calendar",inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},host:{properties:{"class.k-week-number":"this.weekNumber","attr.id":"this.widgetId","attr.tabindex":"this.calendarTabIndex","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[d,_n,V,Yn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},ft,Sn,yt],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Mn,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:Lt,descendants:!0},{propertyName:"monthView",first:!0,predicate:Vn,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Bt,descendants:!0}],exportAs:["kendo-calendar"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focus)="handleFocus()"\n (blur)="handleBlur($event)"\n (keydown)="handleMultiViewCalendarKeydown($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n ',isInline:!0,components:[{type:Lt,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Vn,selector:"kendo-calendar-viewlist",inputs:["cellTemplateRef","weekNumberTemplateRef","headerTitleTemplateRef","activeView","cellUID","focusedDate","isActive","min","max","selectedDates","weekNumber"],outputs:["cellClick","weekNumberCellClick","activeDateChange","todayButtonClick","pageChange"]},{type:ye.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Bt,selector:"kendo-multiviewcalendar",inputs:["id","focusedDate","min","max","rangeValidation","disabledDatesRangeValidation","selection","value","disabled","tabindex","tabIndex","isActive","disabledDates","activeView","bottomView","topView","showViewHeader","animateNavigation","weekNumber","activeRangeEnd","selectionRange","views","orientation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur"],exportAs:["kendo-multiviewcalendar"]},{type:Nn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Bn,selector:"[kendoCalendarLocalizedMessages]"},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$n,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[d,_n,V,Yn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},ft,Sn,yt],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focus)="handleFocus()"\n (blur)="handleBlur($event)"\n (keydown)="handleMultiViewCalendarKeydown($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:d},{type:Dn},{type:i.ElementRef},{type:ft},{type:i.Renderer2},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:i.Injector},{type:Sn},{type:y},{type:a.LocalizationService},{type:yt},{type:Rn,decorators:[{type:h.Optional}]}]},propDecorators:{id:[{type:h.Input}],focusedDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],selection:[{type:h.Input}],value:[{type:h.Input}],disabled:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],disabledDates:[{type:h.Input}],navigation:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],type:[{type:h.Input}],animateNavigation:[{type:h.Input}],weekNumber:[{type:h.Input},{type:h.HostBinding,args:["class.k-week-number"]}],activeViewChange:[{type:h.Output}],navigate:[{type:h.Output}],activeViewDateChange:[{type:h.Output}],valueChange:[{type:h.Output}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Mn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[Lt,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Vn,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Bt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],calendarTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}]}});function Un(){return function(e,t){return!r(e.value)&&t?{incompleteDate:!0}:null}}(_n=Kn=Kn||{})[_n.Up=0]="Up",_n[_n.Down=1]="Down",_n[_n.None=2]="None",tt(Wn,qn=t.ComponentMessages);var Kn,qn,V=Wn;function Wn(){return null!==qn&&qn.apply(this,arguments)||this}V.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,deps:null,target:i.ɵɵFactoryTarget.Directive}),V.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:V,selector:"kendo-dateinput-messages-base",inputs:{decrement:"decrement",increment:"increment"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});tt(Xn,Zn=V);var Zn,Gn=Xn;function Xn(e){var t=Zn.call(this)||this;return t.service=e,t}Gn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Gn,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Gn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Gn,selector:"[kendoDateInputLocalizedMessages]",providers:[{provide:V,useExisting:h.forwardRef(function(){return Gn})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Gn,decorators:[{type:h.Directive,args:[{providers:[{provide:V,useExisting:h.forwardRef(function(){return Gn})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});function Qn(e){return e.replace(/^0*/,"")}var Jn=/year|month|<day>/,ei=/hour|minute|second|millisecond/,ti=/d|M|H|h|m|s/,ni=function(){this.symbols=""},ii=(S.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},S.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},S.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return k.cloneDate(this.value)},S.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},S.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}},S.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},S.prototype.modifyPart=function(e,t){var n=k.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=k.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},S.prototype.parsePart=function(e,t,n){if(t){for(var i=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,r=!1,s="",l="",c="",p=0;p<i.length;p++)o[p]===e?(l+=this.getExisting(e)?i[p]:"0",r=!0):r?c+=i[p]:s+=i[p];var u=l.length-3,d=null,h=this.matchMonth(t),m=this.matchDayPeriod(t,e),g="0"===t,f=(this.leadingZero||{})[e]||0;g?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,y=n?t:l.substring(p)+t,b=("S"===e&&n&&(y=Array(o.match(/S+(\1)/)[0].length).join("0")+y),parseInt(y,10));if((d=this.intl.parseDate(s+y+c,this.format))||isNaN(b)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(b=b-1)&&b<12&&((d=k.cloneDate(this.value)).setMonth(b),d.getMonth()!==b&&(d=k.lastDayOfMonth(k.addMonths(d,-1)))),"y"===e&&(d=k.createDate(parseInt(y,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&&d.getDate()!==this.value.getDate()&&(d=k.lastDayOfMonth(k.addMonths(d,-1))))),d)return b=this.partPattern(a.partMap,e).pattern,v=this.intl.parseDate(""+s+this.peek(y,b)+c,this.format),b=this.patternLength(b)||b.length,y=f+(Qn(y)||t).length>=b,b=null===v||y,this.shouldNormalizeCentury()&&(d=this.normalizeCentury(d)),this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:b}}if(h&&(d=this.intl.parseDate(s+h+c,this.format)))return this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:!1};if(m&&(d=this.intl.parseDate(s+m+c,this.format)))return this.value=d,{value:this.value,switchToNext:!0};g&&this.setExisting(e,!1)}else this.resetLeadingZero(),this.setExisting(e,!1);return{value:null,switchToNext:!1}},S.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},S.prototype.setLeadingZero=function(e){this.leadingZero=e},S.prototype.normalizeCentury=function(e){var t,n;return r(e)?(t=!r(t=e)||isNaN(t.getTime())?0:Number(t.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t),Se(e,n+t)):e},S.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},S.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},S.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},S.prototype.peek=function(e,t){e=Qn(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},S.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),this.monthNames)for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},S.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},S.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},S.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},S.prototype.patternLength=function(e){return"y"===e[0]?4:ti.test(e)?2:0},S.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<r;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;t=new ni;return t.symbols=i.join(""),t.partMap=a,t},S.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];0<=o&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},S.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},S.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},S);function S(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=k.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"},L.validatePackage(ke),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=k.cloneDate(i);else{this.value=k.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}Object.defineProperty(E.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,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=k.cloneDate(e),this.valueUpdate.emit(k.cloneDate(e)))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode));e=e||Pe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",e)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,e,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,e,this.fillMode))),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&!r(this.pickerService)&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!1,configurable:!0}),E.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},E.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.wrapper.nativeElement}))},E.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?kt(this.min):g,this.maxValidator=this.rangeValidation?Ct(this.max):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&k.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(A.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},E.prototype.ngAfterViewInit=function(){this.setComponentClasses()},E.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},E.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=k.cloneDate(e),this.updateElementValue(this.isActive)},E.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=k.cloneDate(e),this.notify())},E.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(k.cloneDate(e.value)),e.valueChange.emit(k.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=Kn.None,this.modifyDateSegmentValue(e)},E.prototype.modifyDateSegmentValue=function(e){var t,n=this.caret(),n=this.currentFormat[n[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;"S"!==n||this.steps.millisecond||(t=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0}(this.inputFormat),i=Math.pow(10,3-t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},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(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;0<=a&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return a<i&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0)},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(){var e,t;this.hasMousedown=!1,this.isActive&&(t=this.inputElement.selectionStart!==this.inputElement.selectionEnd,e=r(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!t&&e?0:this.caret()[0],this.selectNearestSegment(t))},E.prototype.handleDragAndDrop=function(e){e.preventDefault()},E.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},E.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,m.hasObservers(this.onFocus)?this.ngZone.run(function(){t.emitFocus(e)}):this.emitFocus(e)},E.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),m.hasObservers(this.onBlur)||Y(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,e=new ii(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},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,n=this.kendoDate.getTextAndFormat(n),i=!this.isActive&&r(this.placeholder)&&!this.kendoDate.hasValue(),a=this.inputElement;this.currentFormat=n[1],this.currentValue=i?"":n[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],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(m.isDocumentAvailable()&&document.activeElement!==a&&a.focus(),a.setSelectionRange(e,t)),i=[a.selectionStart,a.selectionEnd])}catch(e){i=[]}return i}},E.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},E.prototype.verifyRange=function(){if(h.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(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},E.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=J(e,this.min,this.max);this.autoCorrect&&!k.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,e=e.time;return{date:n||Jn.test(t.type),time:e||ei.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,t=+(e=r(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},E.prototype.bindEvents=function(){var e=this.wrapper.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))},E.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},E.prototype.handlePaste=function(){this.paste=!0},E.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode===m.Keys.Tab)this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault();else if(e.keyCode===m.Keys.Backspace)this.backspace=!0;else{switch(e.keyCode){case m.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case m.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case m.Keys.ArrowRight:this.switchDateSegment(1);break;case m.Keys.ArrowLeft:this.switchDateSegment(-1);break;case m.Keys.Home:this.selectNearestSegment(0);break;case m.Keys.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}},E.prototype.handleInput=function(){if(!this.disabled&&!this.readonly)if(this.paste)this.updateOnPaste(),this.paste=!1;else{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),e=n.substring(0,i),s=[];if(r===e&&0<i)return s.push([t[i-1],e[i-1]]),s;if(0===r.indexOf(e)&&(0===e.length||t[e.length-1]!==t[e.length])){var l="";1===e.length&&s.push([t[0],e[0]]);for(var c=e.length;c<r.length;c++)t[c]!==l&&"_"!==t[c]&&(l=t[c],s.push([l,""]));return s}if(0!==e.indexOf(r)&&"_"!==t[i-1])return" "===e[e.length-1]||e[e.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],e[i-1]]];for(var p=t[0],c=Math.max(0,r.length-1);c<t.length;c++)if("_"!==t[c]){p=t[c];break}return[[p,e[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(xe(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&&(r(this.ngControl)&&!r(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):r(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},E.prototype.setSpinnerFill=function(e,t,n){"none"!==n&&(this.renderer.removeClass(e,"k-button-"+n),this.renderer.removeClass(e,"k-button-"+n+"-base")),this.renderer.addClass(e,"k-button-"+t),this.renderer.addClass(e,"k-button-"+t+"-base")},E.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var ai=E;function E(e,t,n,i,a,o,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=a,this.injector=o,this.localization=r,this.pickerService=s,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new h.EventEmitter,this.valueUpdate=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.arrow=Kn,this.arrowDirection=Kn.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=g,this.maxValidator=g,this.incompleteValidator=g,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this._size=Fe,this._rounded=Ne,this._fillMode=Pe,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}ai.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ai,deps:[{token:i.ChangeDetectorRef},{token:o.IntlService},{token:i.Renderer2},{token:i.ElementRef},{token:i.NgZone},{token:i.Injector},{token:a.LocalizationService},{token:Rn,optional:!0}],target:i.ɵɵFactoryTarget.Component}),ai.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ai,selector:"kendo-dateinput",inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",tabIndex:"tabIndex",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",max:"max",min:"min",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",value:"value",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-input":"this.wrapperClass","class.k-dateinput":"this.wrapperClass","class.k-disabled":"this.disabledClass"}},providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ai})},t.LocalizationService],viewQueries:[{propertyName:"dateInput",first:!0,predicate:["dateInput"],descendants:!0,static:!0},{propertyName:"spinup",first:!0,predicate:["spinup"],descendants:!0},{propertyName:"spindown",first:!0,predicate:["spindown"],descendants:!0}],exportAs:["kendo-dateinput"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">\n <button\n #spinup\n tabindex="-1"\n class="k-spinner-increase k-button k-icon-button"\n [class.k-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-button-icon k-icon k-i-caret-alt-up"></span>\n </button>\n <button\n #spindown\n tabindex="-1"\n class="k-spinner-decrease k-button k-icon-button"\n (click)="handleButtonClick(-1)"\n [class.k-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-button-icon k-icon k-i-caret-alt-down"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:Gn,selector:"[kendoDateInputLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ai,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ai})},t.LocalizationService],selector:"kendo-dateinput",template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">\n <button\n #spinup\n tabindex="-1"\n class="k-spinner-increase k-button k-icon-button"\n [class.k-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-button-icon k-icon k-i-caret-alt-up"></span>\n </button>\n <button\n #spindown\n tabindex="-1"\n class="k-spinner-decrease k-button k-icon-button"\n (click)="handleButtonClick(-1)"\n [class.k-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-button-icon k-icon k-i-caret-alt-down"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:i.ChangeDetectorRef},{type:o.IntlService},{type:i.Renderer2},{type:i.ElementRef},{type:i.NgZone},{type:i.Injector},{type:a.LocalizationService},{type:Rn,decorators:[{type:h.Optional}]}]},propDecorators:{focusableId:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],title:[{type:h.Input}],tabindex:[{type:h.Input}],role:[{type:h.Input}],ariaReadOnly:[{type:h.Input}],tabIndex:[{type:h.Input}],format:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],steps:[{type:h.Input}],max:[{type:h.Input}],min:[{type:h.Input}],rangeValidation:[{type:h.Input}],autoCorrect:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],value:[{type:h.Input}],spinners:[{type:h.Input}],isPopupOpen:[{type:h.Input}],hasPopup:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],valueUpdate:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],dateInput:[{type:h.ViewChild,args:["dateInput",{static:!0}]}],wrapperClass:[{type:h.HostBinding,args:["class.k-input"]},{type:h.HostBinding,args:["class.k-dateinput"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],spinup:[{type:h.ViewChild,args:["spinup",{static:!1}]}],spindown:[{type:h.ViewChild,args:["spindown",{static:!1}]}]}});ri.prototype.preventDefault=function(){this.prevented=!0},ri.prototype.isDefaultPrevented=function(){return this.prevented};var oi=ri;function ri(){this.prevented=!1}function si(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}var li,ci=new h.InjectionToken("dateinputs-touch-enabled"),pi=(tt(ui,li=w),Object.defineProperty(ui.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),ui);function ui(e){var t=li.call(this)||this;return t.service=e,t}pi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pi,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),pi.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:pi,selector:"kendo-calendar-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return pi})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pi,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return pi})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});tt(hi,di=t.ComponentMessages);var di,Yn=hi;function hi(){return null!==di&&di.apply(this,arguments)||this}Yn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yn,deps:null,target:i.ɵɵFactoryTarget.Directive}),Yn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Yn,selector:"kendo-datepicker-messages-base",inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yn,decorators:[{type:h.Directive,args:[{selector:"kendo-datepicker-messages-base"}]}],propDecorators:{today:[{type:h.Input}],toggle:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt(fi,mi=Yn);var mi,gi=fi;function fi(e){var t=mi.call(this)||this;return t.service=e,t}gi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:gi,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),gi.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:gi,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:Yn,useExisting:h.forwardRef(function(){return gi})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:gi,decorators:[{type:h.Directive,args:[{providers:[{provide:Yn,useExisting:h.forwardRef(function(){return gi})}],selector:"[kendoDatePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(R.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ge("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Pe;"none"!==e&&(this.renderer.addClass(this.toggleButton.nativeElement,ve("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,ve("input",e))),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&m.hasObservers(this.close))?this.togglePopup(e):this.zone.run(function(){t.togglePopup(e)}))},enumerable:!1,configurable:!0}),R.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},R.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(A.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},R.prototype.ngAfterViewInit=function(){this.setComponentClasses()},R.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.disabledDatesValidateFn=this.disabledDatesValidation?si(this.disabledDatesService.isDateDisabled):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange())},R.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(R.prototype,"isOpen",{get:function(){return this.show},enumerable:!1,configurable:!0}),R.prototype.writeValue=function(e){this.verifyValue(e),this.value=k.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},R.prototype.registerOnChange=function(e){this.onControlChange=e},R.prototype.registerOnTouched=function(e){this.onControlTouched=e},R.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},R.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},R.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},R.prototype.focus=function(){this.input.focus()},R.prototype.blur=function(){(this.calendar||this.input).blur()},R.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},R.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},R.prototype.handleMousedown=function(e){e.preventDefault()},R.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(k.cloneDate(e)),this.valueChange.emit(k.cloneDate(e))},R.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(R.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!1,configurable:!0}),R.prototype.mergeTime=function(e){return this.value&&e?xe(e,this.value):e},R.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,e=e.target;i===m.Keys.Escape&&(this.show=!1),t&&(i!==m.Keys.ArrowDown||this.show||(this.show=!0),i===m.Keys.ArrowUp&&(this.show=!1)),i===m.Keys.Tab&&this.show&&this.calendar.isActive&&(t=this.calendarType,i=n,!!r(n=e)&&("infinite"===t||"classic"===t&&i&&n.classList.contains("k-calendar")||!i&&n.classList.contains("k-calendar-nav-next")))&&(this.input.focus(),this.show=!1)},R.prototype.togglePopup=function(e){var t=new oi;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},R.prototype._toggle=function(e){var t=this;e!==this._show&&((this._show=e)?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},R.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},R.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())},R.prototype.verifySettings=function(){if(h.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.")},R.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},R.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),ne()&&(this.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},R.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},R.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},R.prototype.handleBlur=function(e){var t=this,e=e&&U(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||Y(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},R.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},R.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},R.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},R.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,ge("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var vi=R;function R(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.disabledDatesService=l,this.touchEnabled=c,this.focusableId="k-"+m.guid(),this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=k.cloneDate(we),this.max=k.cloneDate(De),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=m.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesValidateFn=g,this.incompleteValidator=g,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=Fe,this._rounded=Ne,this._fillMode=Pe,L.validatePackage(ke),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)))}vi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vi,deps:[{token:i.NgZone},{token:a.LocalizationService},{token:i.ChangeDetectorRef},{token:be.PopupService},{token:i.ElementRef},{token:i.Renderer2},{token:i.Injector},{token:Rn},{token:y},{token:ci,optional:!0}],target:i.ɵɵFactoryTarget.Component}),vi.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vi,selector:"kendo-datepicker",inputs:{cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],focusableId:"focusableId",activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",popupSettings:"popupSettings",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",title:"title",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},host:{properties:{"class.k-datepicker":"this.wrapperClasses","class.k-input":"this.wrapperClasses","class.k-disabled":"this.disabledClass"}},providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return vi})},t.LocalizationService,Rn,y,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Mn,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0}],exportAs:["kendo-datepicker"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n fillMode="none"\n rounded="none"\n size="none"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-calendar"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n ',isInline:!0,components:[{type:ai,selector:"kendo-dateinput",inputs:["focusableId","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:$n,selector:"kendo-calendar",inputs:["id","focusedDate","min","max","rangeValidation","selection","value","disabled","tabindex","tabIndex","disabledDates","navigation","activeView","bottomView","topView","type","animateNavigation","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate"],outputs:["activeViewChange","navigate","activeViewDateChange","valueChange"],exportAs:["kendo-calendar"]},{type:pi,selector:"kendo-calendar-messages"}],directives:[{type:gi,selector:"[kendoDatePickerLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return vi})},t.LocalizationService,Rn,y,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n fillMode="none"\n rounded="none"\n size="none"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-calendar"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n '}]}],ctorParameters:function(){return[{type:i.NgZone},{type:a.LocalizationService},{type:i.ChangeDetectorRef},{type:be.PopupService},{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:Rn},{type:y},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ci]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Mn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],focusableId:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],calendarType:[{type:h.Input}],animateCalendarNavigation:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],popupSettings:[{type:h.Input}],navigation:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],focusedDate:[{type:h.Input}],value:[{type:h.Input}],format:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],disabledDates:[{type:h.Input}],title:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesValidation:[{type:h.Input}],weekNumber:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],close:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-datepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}]}});function yi(e,t){return Ti(24+e-t)}function bi(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:Ee(e,n)}}var ki,_n="dayperiod",w="hour",Ci="millisecond",wi="minute",Di="second",Ti=(ki=24,function(e){return e%ki}),Ii=bi(0),Vi=bi(23),xi=(Si.prototype.apply=function(e,t){return Ee(e,t.getHours())},Si.prototype.configure=function(e){var t=this,n=e.boundRange,n=void 0===n?this.boundRange:n,i=e.insertUndividedMax,i=void 0===i?this.insertUndividedMax:i,a=e.min,a=void 0===a?this.min:a,o=e.max,o=void 0===o?this.max:o,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=n,this.insertUndividedMax=i,this.toListItem=function(e){e=Ee(Ce,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},Si.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Ti(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Si.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Si.prototype.limitRange=function(e,t,n){return this.boundRange?[Ii(e,n),Vi(t,n)]:[e,t]},Si.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},Si.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Si.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},Si.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},Si.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getHours()),e.splice(this.selectedIndex(t),0,n)),e},Si.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(yi(e,t)/this.step)+1},Si.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Si.prototype.isLastMissing=function(e){return this.isMissing(Ee(this.max,this.lastHour(e)))},Si.prototype.divideByStep=function(e){return yi(e.getHours(),this.min.getHours())/this.step},Si.prototype.lastHour=function(e){return this.range(e)[1]},Si.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},Si);function Si(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}xi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),xi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Ei(e,t){return Mi(60+e-t)}function Ri(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:Re(e,n)}}Oi=60;var Oi,Mi=function(e){return e%Oi},Ni=Ri(0),Fi=Ri(59),Pi=(Ai.prototype.apply=function(e,t){return Re(e,t.getMinutes())},Ai.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Re(Ce,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Ai.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Mi(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Ai.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Ai.prototype.limitRange=function(e,t,n){return[Ni(e,n),Fi(t,n)]},Ai.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},Ai.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ai.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},Ai.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Ai.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMinutes()),e.splice(this.selectedIndex(t),0,n)),e},Ai.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(Ei(e,t)/this.step)+1},Ai.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ai.prototype.isLastMissing=function(e){return this.isMissing(Re(this.max,this.lastMinute(e)))},Ai.prototype.divideByStep=function(e){return Ei(e.getMinutes(),this.min.getMinutes())/this.step},Ai.prototype.lastMinute=function(e){return this.range(e)[1]},Ai.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},Ai);function Ai(e){this.intl=e,this.insertUndividedMax=!1}Pi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Pi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Li(e,t){return ji(60+e-t)}function Bi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:Oe(e,n)}}zi=60;var zi,ji=function(e){return e%zi},Hi=Bi(0),_i=Bi(59),Yi=($i.prototype.apply=function(e,t){return Oe(e,t.getSeconds())},$i.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Oe(Ce,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},$i.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return ji(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},$i.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},$i.prototype.limitRange=function(e,t,n){return[Hi(e,n),_i(t,n)]},$i.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},$i.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},$i.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},$i.prototype.divideByStep=function(e){return Li(e.getSeconds(),this.min.getSeconds())/this.step},$i.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},$i.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getSeconds()),e.splice(this.selectedIndex(t),0,n)),e},$i.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(Li(e,t)/this.step)+1},$i.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},$i.prototype.isLastMissing=function(e){return this.isMissing(Oe(this.max,this.lastSecond(e)))},$i.prototype.lastSecond=function(e){return this.range(e)[1]},$i.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},$i);function $i(e){this.intl=e,this.insertUndividedMax=!1}Yi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Yi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Ui(e,t){return Wi(1e3+e-t)}function Ki(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:Me(e,n)}}qi=1e3;var qi,Wi=function(e){return e%qi},Zi=Ki(0),Gi=Ki(999),Xi=(Qi.prototype.apply=function(e,t){return Me(e,t.getMilliseconds())},Qi.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Me(Ce,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,this.step=e},Qi.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Wi(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Qi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Qi.prototype.limitRange=function(e,t,n){return[Zi(e,n),Gi(t,n)]},Qi.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},Qi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Qi.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},Qi.prototype.divideByStep=function(e){return Ui(e.getMilliseconds(),this.min.getMilliseconds())/this.step},Qi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},Qi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMilliseconds()),e.splice(this.selectedIndex(t),0,n)),e},Qi.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(Ui(e,t)/this.step)+1},Qi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Qi.prototype.isLastMissing=function(e){return this.isMissing(Me(this.max,this.lastMillisecond(e)))},Qi.prototype.lastMillisecond=function(e){return this.range(e)[1]},Qi.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMilliseconds(),e.getMilliseconds()]},Qi);function Qi(e){this.intl=e,this.insertUndividedMax=!1}Xi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Xi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Ji(e,t){return(e=k.cloneDate(e)).setHours(t),e}function ea(e){return null!==e&&e<12}function ta(e,t,n){return!t&&!n||t<=e&&e<=n}function na(e,t,n){return!t&&!n||t<=e||e<=n}aa.prototype.apply=function(e,t){var n,i=e.getHours(),a=ea(i),t=ea(t.getHours());return a&&t||!a&&!t?e:(n=(a=v(this.normalizedRange(),2))[0],a=void 0===(a=a[1])?24:a,Ji(e,Math.min(Math.max(n,i+(t?-12:12)),a||24)))},aa.prototype.configure=function(e){var t=e.min,t=void 0===t?this.min:t,n=e.max,n=void 0===n?this.max:n,e=e.part,e=void 0===e?this.part:e;this.min=t,this.max=n,this.part=e},aa.prototype.data=function(e){var t,n,i,a,o=this.part.names;return o?(t=[],n=(i=v(this.normalizedRange(),2))[0],i=i[1],o=this.intl.dateFormatNames(o),ea(n)&&t.push({text:o.am,value:Ji(this.min,n)}),null!==(a=i)&&(!a||11<a)&&t.push({text:o.pm,value:Ji(this.min,Math.max(12,i))}),this.min.getHours()!==n?t.reverse():t):[]},aa.prototype.isRangeChanged=function(e,t){return!1},aa.prototype.limitRange=function(e,t,n){return[e,t]},aa.prototype.total=function(){var e=v(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},aa.prototype.selectedIndex=function(e){return this.valueInList(e)?(e=Math.floor(e.getHours()/12),this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0):-1},aa.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?na:ta)(e.getHours(),this.min.getHours(),this.max.getHours())},aa.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var ia=aa;function aa(e){this.intl=e}ia.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ia,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),ia.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ia}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ia,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});var oa=ae("div"),ra=ae("ul"),sa=ae("li"),O=ae("span"),la=function(){return ra([sa("<span>02</span>","k-item")],"k-reset")},ca=m.isDocumentAvailable()?oa([O("hour","k-title k-timeselector-title"),oa([oa([la()],"k-time-container k-flex k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,pa=(ua.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},ua.prototype.calculateHeights=function(e){var t;m.isDocumentAvailable()&&(t=(e=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(ca),this.timeListHeight=t.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=t.querySelector("li").getBoundingClientRect().height,e.removeChild(t))},ua.prototype.isActive=function(e){return!(!m.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},ua);function ua(){}pa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pa,deps:[],target:i.ɵɵFactoryTarget.Injectable}),pa.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pa}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pa,decorators:[{type:h.Injectable}]});function da(){return null}var ha={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]}},ma=((O={})[_n]=ia,O[w]=xi,O[wi]=Pi,O[Di]=Yi,O[Ci]=Xi,O),oa=(Object.defineProperty(ga.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),ga.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(ma[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=v(this.service.limitRange(this.min,this.max,t),2),a=i[0],i=i[1];(this.service.isRangeChanged(a,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},ga.prototype.ngOnInit=function(){var e=this,t=(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,"translateY("+this.topOffset+"px)");this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},ga.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},ga.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},ga.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},ga.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))},ga.prototype.handleItemClick=function(e){var e=it(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},ga.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},ga.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},ga.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);return!(t===n&&e<2)&&((t=n<t)&&e>=this.bottomThreshold||!t&&e>this.topThreshold)?this.virtualization.itemOffset(n+1):i},ga.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},ga.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},ga.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},t=Object.assign({},t,e);return t.boundRange="hour"!==t.part.type,t},ga.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},ga.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;return!(!t||!e)&&(t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)],t&&e&&t.text!==e.text)},ga.prototype.handleKeyDown=function(e){var t=(ha[e.keyCode]||da)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},ga.prototype.bindEvents=function(){var t=this,e=(this.scrollSubscription=this.virtualization.scroll$().pipe(z.debounceTime(100),z.map(function(e){return e.target.scrollTop}),z.map(function(e){return t.itemOffset(e)}),z.map(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])}),this.element.nativeElement);this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},ga);function ga(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=k.cloneDate(Ce),this.max=k.cloneDate(Ie),this.step=1,this.disabled=!1,this.valueChange=new h.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}oa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:oa,deps:[{token:i.ElementRef},{token:i.Injector},{token:pa},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Component}),oa.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:oa,selector:"kendo-timelist",inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},host:{properties:{"attr.tabindex":"this.tabIndex","class.k-time-list":"this.componentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,descendants:!0,static:!0}],usesOnChanges:!0,ngImport:i,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 ',isInline:!0,components:[{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:oa,decorators:[{type:h.Component,args:[{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 '}]}],ctorParameters:function(){return[{type:i.ElementRef},{type:i.Injector},{type:pa},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{min:[{type:h.Input}],max:[{type:h.Input}],part:[{type:h.Input}],step:[{type:h.Input}],disabled:[{type:h.Input}],value:[{type:h.Input}],valueChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{static:!0}]}],tabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],componentClass:[{type:h.HostBinding,args:["class.k-time-list"]}]}});function fa(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function va(e,t){return fa(e,t)&&e.getSeconds()===t.getSeconds()}function ya(e){return function(t,n){return t.setHours.apply(t,nt([],v(e.map(function(e){return e(t,n)})))),t}}var ba,ka,Ca,la=[{type:w,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:wi,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return fa(e,t)?t.getMinutes():0}},{type:Di,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return va(e,t)?t.getSeconds():0}},{type:Ci,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return va(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],wa=function(n){return function(e,t){return n(e)}},Da=function(n){return function(e,t){return n(t)}},Ta=function(e){return ba.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?Da:wa)(e.getter)}));var t},Ia=(ka=ba=la,function(n){return ka.map(function(e){var i,a,o,t=n[e.type];return t?(i=e.getter,a=e.minGetter,o=t,function(e,t){var n=i(e),e=a(e,t),t=n-e;return t<0?e:n-(e=t%o)+(o/2<e?o:0)}):e.getter})}),O=(tt(Va,Ca=t.ComponentMessages),Va);function Va(){return null!==Ca&&Ca.apply(this,arguments)||this}O.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,deps:null,target:i.ɵɵFactoryTarget.Directive}),O.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-timepicker-messages-base",inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,decorators:[{type:h.Directive,args:[{selector:"kendo-timepicker-messages-base"}]}],propDecorators:{accept:[{type:h.Input}],acceptLabel:[{type:h.Input}],cancel:[{type:h.Input}],cancelLabel:[{type:h.Input}],now:[{type:h.Input}],nowLabel:[{type:h.Input}],toggle:[{type:h.Input}]}});tt(Ea,xa=O);var xa,Sa=Ea;function Ea(e){var t=xa.call(this)||this;return t.service=e,t}Sa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sa,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Sa.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Sa,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Sa})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sa,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Sa})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});function Ra(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(la=Oa=Oa||{})[la.Left=0]="Left",la[la.Right=1]="Right",Object.defineProperty(M.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"current",{get:function(){return this._current},set:function(e){var t,n,i,a,o;this._current=(e=this.snapTime(k.cloneDate(e||Ce),this.min),t=this.min,n=this.max,e&&t&&n?(i=(o=W(e,t,n)).candidateValue,a=o.minValue,o=o.maxValue,i<a?xe(e,t):o<i?xe(e,n):e):e),h.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-focus")}),0<=e&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-focus")))},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cdr.markForCheck()})),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},M.prototype.ngOnChanges=function(e){this.init()},M.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},M.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},M.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},M.prototype.handleAccept=function(){this.handleChange(this.mergeValue(k.cloneDate(this.value||k.getDate(ee())),this.current))},M.prototype.handleNow=function(){this.current=ee(),this.handleChange(this.current),this.cdr.markForCheck()},M.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},M.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},M.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},M.prototype.handleBlur=function(e){var t=U(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},M.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},M.prototype.partStep=function(e){return this.steps[e.type]||1},M.prototype.init=function(e){var i;e&&!oe(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=ya(Ta(this.dateFormatParts))),e&&!oe(e,"steps")||(this.snapTime=(i=Ia(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,nt([],v(i.map(function(e){return e(n,t)})))),n})),e&&!oe(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&X(ee(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(Ra,[]).map(function(e){return t===Oa.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},M.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(k.cloneDate(e))},M.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},M.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},M.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=ya(Ta(this.dateFormatParts)),this.cdr.markForCheck()},M.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)))})},M.prototype.handleKeydown=function(e){var t=e.keyCode,e=e.altKey,n=-1!==[m.Keys.ArrowLeft,m.Keys.ArrowRight].indexOf(t);r(this.pickerService)&&n&&e||(t!==m.Keys.Enter||this.hasActiveButton()?t!==m.Keys.ArrowLeft&&t!==m.Keys.ArrowRight||this.focusList(t===m.Keys.ArrowLeft?Oa.Left:Oa.Right):this.handleAccept())},M.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},M.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},M.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t};var Oa,la=M;function M(e,t,n,i,a,o,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=o,this.renderer=r,this.pickerService=s,this.format="t",this.min=k.cloneDate(Te),this.max=k.cloneDate(Ie),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new h.EventEmitter,this.valueReject=new h.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}la.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:la,deps:[{token:a.LocalizationService},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:o.IntlService},{token:pa},{token:i.NgZone},{token:i.Renderer2},{token:Rn,optional:!0}],target:i.ɵɵFactoryTarget.Component}),la.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:la,selector:"kendo-timeselector",inputs:{format:"format",min:"min",max:"max",cancelButton:"cancelButton",setButton:"setButton",nowButton:"nowButton",disabled:"disabled",steps:"steps",value:"value"},outputs:{valueChange:"valueChange",valueReject:"valueReject"},host:{properties:{"class.k-disabled":"this.disabledClass"}},providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timeselector"}],viewQueries:[{propertyName:"accept",first:!0,predicate:["accept"],descendants:!0},{propertyName:"cancel",first:!0,predicate:["cancel"],descendants:!0},{propertyName:"now",first:!0,predicate:["now"],descendants:!0},{propertyName:"timeLists",predicate:oa,descendants:!0},{propertyName:"timeListWrappers",predicate:["listWrapper"],descendants:!0}],exportAs:["kendo-timeselector"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"\n type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n ',isInline:!0,components:[{type:oa,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:Sa,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:la,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timeselector"}],selector:"kendo-timeselector",template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"\n type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:o.IntlService},{type:pa},{type:i.NgZone},{type:i.Renderer2},{type:Rn,decorators:[{type:h.Optional}]}]},propDecorators:{accept:[{type:h.ViewChild,args:["accept",{static:!1}]}],cancel:[{type:h.ViewChild,args:["cancel",{static:!1}]}],now:[{type:h.ViewChild,args:["now",{static:!1}]}],timeLists:[{type:h.ViewChildren,args:[oa]}],timeListWrappers:[{type:h.ViewChildren,args:["listWrapper"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],format:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],cancelButton:[{type:h.Input}],setButton:[{type:h.Input}],nowButton:[{type:h.Input}],disabled:[{type:h.Input}],steps:[{type:h.Input}],value:[{type:h.Input}],valueChange:[{type:h.Output}],valueReject:[{type:h.Output}]}});tt(Fa,Ma=O),Object.defineProperty(Fa.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var Ma,Na=Fa;function Fa(e){var t=Ma.call(this)||this;return t.service=e,t}Na.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Na,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),Na.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Na,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Na})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Na,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Na})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});tt(La,Pa=O);var Pa,Aa=La;function La(e){var t=Pa.call(this)||this;return t.service=e,t}Aa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Aa,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Aa.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Aa,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Aa})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Aa,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Aa})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ba=new RegExp(w+"|"+wi+"|"+Di+"|"+Ci+"|"+_n+"|literal"),za=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||Te)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||Ie)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ge("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Pe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&m.hasObservers(this.close))?this.togglePopup(e):this.zone.run(function(){t.togglePopup(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!1,configurable:!0}),N.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},N.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(A.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},N.prototype.ngAfterViewInit=function(){this.setComponentClasses()},N.prototype.ngOnChanges=function(e){var n,i;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(n=this.min,i=this.max,function(e){var t;return!(n&&i&&e.value)||(t={timeRangeError:{maxValue:i,minValue:n,value:e.value}},X(e.value,n,i))?null:t}):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange()),e.format&&this.verifyFormat()},N.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()},N.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e===m.Keys.Escape?this.show=!1:t&&(e===m.Keys.ArrowUp&&(this.show=!1),e!==m.Keys.ArrowDown||this.show||(this.show=!0))},N.prototype.writeValue=function(e){this.verifyValue(e),this.value=k.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},N.prototype.registerOnChange=function(e){this.onControlChange=e},N.prototype.registerOnTouched=function(e){this.onControlTouched=e},N.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},N.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},N.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},N.prototype.focus=function(){this.input.focus()},N.prototype.blur=function(){(this.timeSelector||this.input).blur()},N.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(N.prototype,"isOpen",{get:function(){return this.show},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),N.prototype.handleChange=function(e){var t=this;k.isEqual(this.value,e)?(this.focusInput(),this.show=!1):(this.value=k.cloneDate(e),this.zone.run(function(){t.focusInput(),t.show=!1,t.onControlChange(k.cloneDate(e)),t.valueChange.emit(k.cloneDate(e))}))},N.prototype.handleReject=function(){this.show=!1},N.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},N.prototype.handleMousedown=function(e){e.preventDefault()},N.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(N.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),N.prototype.normalizeTime=function(e){return xe(Ce,e)},N.prototype.mergeTime=function(e){return this.value&&e?xe(this.value,e):e},N.prototype.togglePopup=function(e){var t=new oi;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},N.prototype._toggle=function(e){var t=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},N.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},N.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())},N.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},N.prototype.verifyFormat=function(){if(h.isDevMode()&&this.intl.splitDateFormat(this.format).some(function(e){return!Ba.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")},N.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),ne()&&(this.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},N.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},N.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},N.prototype.handleBlur=function(e){var t=this,e=e&&U(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||Y(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},N.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},N.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},N.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,ge("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},N);function N(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.intl=l,this.touchEnabled=c,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=m.guid(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=g,this.incompleteValidator=g,this._min=k.cloneDate(Te),this._max=k.cloneDate(Ie),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=Fe,this._rounded=Ne,this._fillMode=Pe,L.validatePackage(ke),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)))}za.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:za,deps:[{token:i.NgZone},{token:a.LocalizationService},{token:i.ChangeDetectorRef},{token:be.PopupService},{token:i.ElementRef},{token:i.Renderer2},{token:i.Injector},{token:Rn},{token:o.IntlService},{token:ci,optional:!0}],target:i.ɵɵFactoryTarget.Component}),za.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:za,selector:"kendo-timepicker",inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",steps:"steps",popupSettings:"popupSettings",tabindex:"tabindex",tabIndex:"tabIndex",title:"title",rangeValidation:"rangeValidation",value:"value",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},host:{properties:{"class.k-timepicker":"this.wrapperClasses","class.k-input":"this.wrapperClasses","class.k-disabled":"this.disabledClass"}},providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return za})},t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},Rn],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0},{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0}],exportAs:["kendo-timepicker"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:ai,selector:"kendo-dateinput",inputs:["focusableId","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:la,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Na,selector:"kendo-timeselector-messages"}],directives:[{type:Aa,selector:"[kendoTimePickerLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:za,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return za})},t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},Rn],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:i.NgZone},{type:a.LocalizationService},{type:i.ChangeDetectorRef},{type:be.PopupService},{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:Rn},{type:o.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ci]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!1}]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],focusableId:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],format:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],cancelButton:[{type:h.Input}],nowButton:[{type:h.Input}],steps:[{type:h.Input}],popupSettings:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],title:[{type:h.Input}],rangeValidation:[{type:h.Input}],value:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],close:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-timepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}]}});tt(Ha,ja=t.ComponentMessages);var ja,Ci=Ha;function Ha(){return null!==ja&&ja.apply(this,arguments)||this}Ci.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ci,deps:null,target:i.ɵɵFactoryTarget.Directive}),Ci.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ci,selector:"kendo-datetimepicker-messages-base",inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ci,decorators:[{type:h.Directive,args:[{selector:"kendo-datetimepicker-messages-base"}]}],propDecorators:{toggle:[{type:h.Input}],dateTab:[{type:h.Input}],dateTabLabel:[{type:h.Input}],timeTab:[{type:h.Input}],timeTabLabel:[{type:h.Input}],accept:[{type:h.Input}],acceptLabel:[{type:h.Input}],cancel:[{type:h.Input}],cancelLabel:[{type:h.Input}],today:[{type:h.Input}],now:[{type:h.Input}],nowLabel:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt($a,_a=Ci);var _a,Ya=$a;function $a(e){var t=_a.call(this)||this;return t.service=e,t}Ya.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ya,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Ya.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ya,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:Ci,useExisting:h.forwardRef(function(){return Ya})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ya,decorators:[{type:h.Directive,args:[{providers:[{provide:Ci,useExisting:h.forwardRef(function(){return Ya})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ua=new RegExp(w+"|"+wi+"|"+Di+"|"+_n+"|literal"),Ka="date",qa=(Object.defineProperty(F.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"min",{get:function(){return this._min},set:function(e){r(e)&&(this._min=k.cloneDate(e),this.calendarMin=k.getDate(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"max",{get:function(){return this._max},set:function(e){r(e)&&(this._max=k.cloneDate(e),this.calendarMax=me(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isOpen",{get:function(){return r(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||Ka,this.activeTab=this.defaultTab},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ge("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Pe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return r(this.calendar)||r(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(r(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),F.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(z.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))),ne()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return p.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))}))},F.prototype.ngAfterViewInit=function(){this.setComponentClasses()},F.prototype.ngOnChanges=function(e){(r(e.min)||r(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.disabledDatesValidateFn=this.disabledDatesValidation?si(this.disabledDatesService.isDateDisabled):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange())},F.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},F.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},F.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},F.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((r(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},F.prototype.writeValue=function(e){this.value=e},F.prototype.registerOnChange=function(e){this.onControlChange=e},F.prototype.registerOnTouched=function(e){this.onControlTouched=e},F.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},F.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},F.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},F.prototype.isEmpty=function(){return!r(this.value)&&this.input.isEmpty()},F.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||m.hasObservers(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},F.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},F.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.wrapper.nativeElement.classList.contains("ng-untouched")||m.hasObservers(this.onBlur)||this.isOpen&&m.hasObservers(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},F.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(k.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},F.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=he(this.calendar.value,this.timeSelector.current),t=!k.isEqual(this.value,e)||m.hasObservers(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},F.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=m.hasObservers(this.close),this.run(e,function(){return t.togglePopup(!1)}))},F.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},F.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},F.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&m.Keys.ArrowUp:case m.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&m.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&m.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&m.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&r(this.calendarValue)&&m.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},F.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=r(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==m.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},F.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===m.Keys.Tab&&e&&this.input.focus()},F.prototype.popupButtonsClasses=function(e){return(this.size?ge("button",this.size):"")+" "+(this.rounded?fe(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+(e||"base"):"")},F.prototype.preventMouseDown=function(e){e.preventDefault()},F.prototype.verifyValue=function(e){if(h.isDevMode()&&r(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.")},F.prototype.verifyMinMaxRange=function(){if(h.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/.")},F.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},F.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},F.prototype.timeFormatPartFilter=function(e,t,n){n=1<=t&&n[t-1];return n&&"literal"===e.type?Ua.test(n.type):Ua.test(e.type)},F.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new oi,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus()))},F.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},F.prototype.openPopup=function(){var e=this,t=(this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value),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()})},F.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},F.prototype.handleValueChange=function(e){k.isEqual(this.value,e)||(this.value=k.cloneDate(e),this.onControlChange(k.cloneDate(e)),this.valueChange.emit(k.cloneDate(e)))},F.prototype.focusTargetInComponent=function(e){var t;return!!r(e)&&(e=e.relatedTarget||document.activeElement,t=r(this.popupRef)&&this.popupRef.popupElement.contains(e),e=this.wrapper.nativeElement.contains(e),t||e)},F.prototype.setTimeSelectorMinMax=function(e){var t=r(e)&&k.isEqual(k.getDate(e),k.getDate(this.min)),t=(this.timeSelectorMin=k.cloneDate(t?this.min:Te),r(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:Ie)},F.prototype.setCalendarValue=function(e){var t=r(e)&&G(e,this.calendarMin,this.calendarMax);this.calendarValue=t?k.getDate(e):null},F.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},F.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},F.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},F.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,ge("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},F);function F(e,t,n,i,a,o,r,s,l,c){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.wrapper=o,this.touchEnabled=r,this.localization=s,this.disabledDatesService=l,this.renderer=c,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+m.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.activeTab=Ka,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(Te),this.timeSelectorMax=k.cloneDate(Ie),this.calendarValue=null,this.calendarMin=k.cloneDate(we),this.calendarMax=me(De),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=Ka,this._min=he(we,Te),this._max=he(De,Ie),this._isActive=!1,this.onControlTouched=g,this.onControlChange=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesValidateFn=g,this.incompleteValidator=g,this.subscriptions=new p.Subscription,this._size=Fe,this._rounded=Ne,this._fillMode=Pe,L.validatePackage(ke)}qa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:qa,deps:[{token:be.PopupService},{token:o.IntlService},{token:i.ChangeDetectorRef},{token:Rn},{token:i.NgZone},{token:i.ElementRef},{token:ci},{token:a.LocalizationService},{token:y},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),qa.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:qa,selector:"kendo-datetimepicker",inputs:{value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",focusedDate:"focusedDate",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",defaultTab:"defaultTab",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-datetimepicker":"this.hostClasses","class.k-input":"this.hostClasses","class.k-disabled":"this.disabledClass"}},providers:[Rn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return qa})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0}],viewQueries:[{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,read:h.TemplateRef,static:!0}],exportAs:["kendo-datetimepicker"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [focusedDate]="focusedDate"\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [ngClass]="popupButtonsClasses()"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-accept"\n [ngClass]="popupButtonsClasses(\'primary\')"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:ai,selector:"kendo-dateinput",inputs:["focusableId","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:$n,selector:"kendo-calendar",inputs:["id","focusedDate","min","max","rangeValidation","selection","value","disabled","tabindex","tabIndex","disabledDates","navigation","activeView","bottomView","topView","type","animateNavigation","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate"],outputs:["activeViewChange","navigate","activeViewDateChange","valueChange"],exportAs:["kendo-calendar"]},{type:pi,selector:"kendo-calendar-messages"},{type:la,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Na,selector:"kendo-timeselector-messages"}],directives:[{type:Ya,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:qa,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[Rn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return qa})}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [focusedDate]="focusedDate"\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [ngClass]="popupButtonsClasses()"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-accept"\n [ngClass]="popupButtonsClasses(\'primary\')"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:be.PopupService},{type:o.IntlService},{type:i.ChangeDetectorRef},{type:Rn},{type:i.NgZone},{type:i.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[ci]}]},{type:a.LocalizationService},{type:y},{type:i.Renderer2}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-datetimepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],value:[{type:h.Input}],format:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],tabindex:[{type:h.Input}],disabledDates:[{type:h.Input}],popupSettings:[{type:h.Input}],focusableId:[{type:h.Input}],title:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],cancelButton:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],steps:[{type:h.Input}],focusedDate:[{type:h.Input}],calendarType:[{type:h.Input}],animateCalendarNavigation:[{type:h.Input}],weekNumber:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesValidation:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],valueChange:[{type:h.Output}],open:[{type:h.Output}],close:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],defaultTab:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{read:h.TemplateRef,static:!0}]}]}});function Wa(e){return e&&e.isActive||!1}var w=function(e){this.templateRef=e},Za=(w.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),w.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"[kendoDateRangePopupTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),Object.defineProperty(Ga.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),Ga.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},Ga.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},Ga.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},Ga.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},Ga.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=Wa(e),n=Wa(this.startInput$.value),i=Wa(this.endInput$.value);return t||n||i||(t=e)&&t.hasActiveContent()||!1},Ga.prototype.registerStartInput=function(e){this.startInput$.next(e)},Ga.prototype.registerEndInput=function(e){this.endInput$.next(e)},Ga.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},Ga.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},Ga.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},Ga.prototype.setRange=function(e){this.range$.next(e=void 0===e?Ve:e)},Ga);function Ga(){this.activeRangeEnd$=new p.BehaviorSubject(null),this.focusedDate$=new p.BehaviorSubject(null),this.endInput$=new p.BehaviorSubject(null),this.startInput$=new p.BehaviorSubject(null),this.dateRangePopup$=new p.BehaviorSubject(null),this.range$=new p.BehaviorSubject(Ve)}Za.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Za,deps:[],target:i.ɵɵFactoryTarget.Injectable}),Za.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Za}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Za,decorators:[{type:h.Injectable}],ctorParameters:function(){return[]}});Object.defineProperty(Xa.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),ue(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Xa.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!1,configurable:!0}),Object.defineProperty(Xa.prototype,"calendarRange",{get:function(){return this.selectionRange||Ve},enumerable:!1,configurable:!0}),Xa.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=ce(e.min,n.min),n.max=ce(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){k.isEqual(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),p.fromEvent(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},Xa.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},Xa.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},Xa.prototype.isEqualCalendarRange=function(e){return ue(this.calendar.selectionRange,e)},Xa.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(pe(t))},Xa.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",n=n?pe(e):this.updateRange(e);ue(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},Xa.prototype.handleHover=function(e){var t,n,i;this.hasCompleteRange()||(t=(n=this.calendarRange).start,n=n.end,i=this.calendar.activeRangeEnd,(t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e)))},Xa.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||Ve,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},Xa.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},Xa.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},Xa.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},Xa.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},Xa.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};wi=Xa;function Xa(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new h.EventEmitter,this.selectionRangeChange=new h.EventEmitter,this.calendarSubscriptions=new p.Subscription,this.dateRangeService=this.dateRangeService||new Za,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}wi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:wi,deps:[{token:Bt},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:i.Renderer2},{token:Za,optional:!0}],target:i.ɵɵFactoryTarget.Directive}),wi.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:wi,selector:"[kendoDateRangeSelection]",inputs:{autoCorrectOn:"autoCorrectOn",selectionRange:"selectionRange",activeRangeEnd:"activeRangeEnd"},outputs:{activeRangeEndChange:"activeRangeEndChange",selectionRangeChange:"selectionRangeChange"},ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:wi,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Bt},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:i.Renderer2},{type:Za,decorators:[{type:h.Optional}]}]},propDecorators:{autoCorrectOn:[{type:h.Input}],selectionRange:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],activeRangeEndChange:[{type:h.Output}],selectionRangeChange:[{type:h.Output}]}});Object.defineProperty(Qa.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Qa.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(Qa.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new oi,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!1,configurable:!0}),Qa.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},Qa.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),ne()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},Qa.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()},Qa.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular(function(){e.activateSubscription=p.merge(e.contentCalendar.changes,e.viewCalendar.changes).pipe(z.filter(function(e){return e&&e.first}),z.map(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){return e.focus()})})}))},Qa.prototype.focus=function(){this.calendar&&this.calendar.focus()},Qa.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},Qa.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},Qa.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},Qa.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},Qa.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},Qa.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===m.Keys.Escape||n&&e===m.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},Qa.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=p.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=p.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},Qa.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(Qa.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Qa.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return p.fromEvent(t,"keydown").subscribe(n.handleKeydown.bind(n))}),p.fromEvent(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},Qa.prototype.destroyPopup=function(){r(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),r(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};Di=Qa;function Qa(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.cancel=new h.EventEmitter,this.popupUID=m.guid(),this.calendarSubscriptions=new p.Subscription,this.popupSubscriptions=new p.Subscription,this.resolvedPromise=Promise.resolve()}Di.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Di,deps:[{token:be.PopupService},{token:Za},{token:i.ChangeDetectorRef},{token:i.NgZone},{token:t.RTL,optional:!0}],target:i.ɵɵFactoryTarget.Component}),Di.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Di,selector:"kendo-daterange-popup",inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",appendTo:"appendTo",collision:"collision",popupAlign:"popupAlign",margin:"margin"},outputs:{open:"open",close:"close",onBlur:"blur",onFocus:"focus",cancel:"cancel"},queries:[{propertyName:"contentTemplate",first:!0,predicate:w,descendants:!0},{propertyName:"contentCalendar",predicate:Bt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Bt,descendants:!0}],exportAs:["kendo-daterange-popup"],ngImport:i,template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n ",isInline:!0,components:[{type:Bt,selector:"kendo-multiviewcalendar",inputs:["id","focusedDate","min","max","rangeValidation","disabledDatesRangeValidation","selection","value","disabled","tabindex","tabIndex","isActive","disabledDates","activeView","bottomView","topView","showViewHeader","animateNavigation","weekNumber","activeRangeEnd","selectionRange","views","orientation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur"],exportAs:["kendo-multiviewcalendar"]}],directives:[{type:wi,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Di,decorators:[{type:h.Component,args:[{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 "}]}],ctorParameters:function(){return[{type:be.PopupService},{type:Za},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[t.RTL]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!1}]}],defaultTemplate:[{type:h.ViewChild,args:["defaultTemplate",{static:!1}]}],contentTemplate:[{type:h.ContentChild,args:[w,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Bt]}],contentCalendar:[{type:h.ContentChildren,args:[Bt]}],animate:[{type:h.Input}],anchor:[{type:h.Input}],anchorAlign:[{type:h.Input}],appendTo:[{type:h.Input}],collision:[{type:h.Input}],popupAlign:[{type:h.Input}],margin:[{type:h.Input}],open:[{type:h.Output}],close:[{type:h.Output}],onBlur:[{type:h.Output,args:["blur"]}],onFocus:[{type:h.Output,args:["focus"]}],cancel:[{type:h.Output}]}});Object.defineProperty(Ja.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),Ja.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},Ja.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};_n=Ja;function Ja(){this.wrapperClass=!0,this.showDefault=!1,L.validatePackage(ke)}_n.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:_n,deps:[],target:i.ɵɵFactoryTarget.Component}),_n.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:_n,selector:"kendo-daterange",host:{properties:{"class.k-daterangepicker":"this.wrapperClass"}},providers:[Za],queries:[{propertyName:"contentPopup",predicate:Di}],ngImport:i,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:Di,selector:"kendo-daterange-popup",inputs:["animate","anchor","anchorAlign","appendTo","collision","popupAlign","margin"],outputs:["open","close","blur","focus","cancel"],exportAs:["kendo-daterange-popup"]}],directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:_n,decorators:[{type:h.Component,args:[{providers:[Za],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[]},propDecorators:{wrapperClass:[{type:h.HostBinding,args:["class.k-daterangepicker"]}],contentPopup:[{type:h.ContentChildren,args:[Di]}]}});Object.defineProperty(eo.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return r(e)&&r(e.calendar)},enumerable:!1,configurable:!0}),eo.prototype.init=function(){var t=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(z.filter(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),p.fromEvent(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),p.fromEvent(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},eo.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},eo.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()},eo.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},eo.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},eo.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()}))})})},eo.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},eo.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===m.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===m.Keys.ArrowDown&&this.dateRangeService.activatePopup()},eo.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},eo.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};ye=eo;function eo(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 p.Subscription,this.subscriptions=new p.Subscription}tt(no,to=ye),no.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),to.prototype.init.call(this)},no.prototype.ngOnDestroy=function(){to.prototype.destroy.call(this)},no.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return G(e,i,n)?(i=(this.rangeService.selectionRange||Ve).start,this.autoCorrectOn===t&&r(e)&&e<i?pe(e):{start:i,end:k.cloneDate(e)}):null},no.prototype.updateInputValue=function(e){var e=(e||Ve).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&G(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var to,s=no;function no(e,t,n,i,a){n=to.call(this,"end",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}s.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:s,deps:[{token:Za},{token:ai},{token:i.ElementRef},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Directive}),s.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:s,selector:"[kendoDateRangeEndInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:s,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:Za},{type:ai},{type:i.ElementRef},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});tt(ao,io=ye),ao.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),io.prototype.init.call(this)},ao.prototype.ngOnDestroy=function(){io.prototype.destroy.call(this)},ao.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return G(e,i,n)?(i=(this.rangeService.selectionRange||Ve).end,this.autoCorrectOn===t&&i&&i<e?pe(e):{start:k.cloneDate(e),end:i}):null},ao.prototype.updateInputValue=function(e){var e=(e||Ve).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&G(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var io,ye=ao;function ao(e,t,n,i,a){n=io.call(this,"start",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}ye.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ye,deps:[{token:Za},{token:ai},{token:i.ElementRef},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Directive}),ye.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ye,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ye,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:Za},{type:ai},{type:i.ElementRef},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var oo,ro=function(){},P=(ro.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,deps:[],target:i.ɵɵFactoryTarget.NgModule}),ro.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,declarations:[ct,ht,ut],imports:[n.CommonModule,m.EventsModule],exports:[ct,ht,ut]}),ro.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,imports:[[n.CommonModule,m.EventsModule]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,decorators:[{type:h.NgModule,args:[{declarations:[ct,ht,ut],exports:[ct,ht,ut],imports:[n.CommonModule,m.EventsModule]}]}]}),function(){}),so=(P.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P,deps:[],target:i.ɵɵFactoryTarget.NgModule}),P.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P,declarations:[It,Vt,xt,St,Et,Rt,Ot,Mn],exports:[It,Vt,xt,St,Et,Rt,Ot,Mn]}),P.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P,decorators:[{type:h.NgModule,args:[{declarations:[It,Vt,xt,St,Et,Rt,Ot,Mn],exports:[It,Vt,xt,St,Et,Rt,Ot,Mn]}]}]}),function(){}),lo=(so.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,deps:[],target:i.ɵɵFactoryTarget.NgModule}),so.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,declarations:[dt,Ft,Nn,Bt],imports:[n.CommonModule,ro,B.IntlModule,P,j.PopupModule,m.EventsModule],exports:[dt,Ft,Nn,Bt,ro,P]}),so.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,providers:[ft,c,u,$e,We,Qe],imports:[[n.CommonModule,ro,B.IntlModule,P,j.PopupModule,m.EventsModule],ro,P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,decorators:[{type:h.NgModule,args:[{declarations:[dt,Ft,Nn,Bt],exports:[dt,Ft,Nn,Bt,ro,P],imports:[n.CommonModule,ro,B.IntlModule,P,j.PopupModule,m.EventsModule],providers:[ft,c,u,$e,We,Qe]}]}]}),[D]),co=function(){},D=(co.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,deps:[],target:i.ɵɵFactoryTarget.NgModule}),co.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,declarations:[D],imports:[n.CommonModule],exports:[D]}),co.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,imports:[[n.CommonModule]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,decorators:[{type:h.NgModule,args:[{declarations:[lo],exports:[lo],imports:[n.CommonModule]}]}]}),function(){}),lo=(D.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,deps:[],target:i.ɵɵFactoryTarget.NgModule}),D.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,declarations:[$n,Lt,pi,Bn,Vn],imports:[n.CommonModule,ro,so,B.IntlModule,P,co,m.EventsModule,m.ResizeSensorModule],exports:[$n,Lt,pi,Bn,Vn,ro,P]}),D.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,providers:[Dn,c,u,$e,We,Qe],imports:[[n.CommonModule,ro,so,B.IntlModule,P,co,m.EventsModule,m.ResizeSensorModule],ro,P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,decorators:[{type:h.NgModule,args:[{declarations:[$n,Lt,pi,Bn,Vn],exports:[$n,Lt,pi,Bn,Vn,ro,P],imports:[n.CommonModule,ro,so,B.IntlModule,P,co,m.EventsModule,m.ResizeSensorModule],providers:[Dn,c,u,$e,We,Qe]}]}]}),function(){}),po=(lo.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,deps:[],target:i.ɵɵFactoryTarget.NgModule}),lo.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,imports:[D,so],exports:[D,so]}),lo.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,imports:[[D,so],D,so]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,decorators:[{type:h.NgModule,args:[{exports:[D,so],imports:[D,so]}]}]}),tt(uo,oo=V),Object.defineProperty(uo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),uo);function uo(e){var t=oo.call(this)||this;return t.service=e,t}po.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:po,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),po.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:po,selector:"kendo-dateinput-messages",providers:[{provide:V,useExisting:h.forwardRef(function(){return po})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:po,decorators:[{type:h.Component,args:[{providers:[{provide:V,useExisting:h.forwardRef(function(){return po})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var ho,c=function(){},mo=(c.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,deps:[],target:i.ɵɵFactoryTarget.NgModule}),c.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,declarations:[ai,po,Gn],imports:[n.CommonModule,B.IntlModule,m.EventsModule],exports:[ai,po,Gn]}),c.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,imports:[[n.CommonModule,B.IntlModule,m.EventsModule]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,decorators:[{type:h.NgModule,args:[{declarations:[ai,po,Gn],exports:[ai,po,Gn],imports:[n.CommonModule,B.IntlModule,m.EventsModule]}]}]}),tt(go,ho=Yn),Object.defineProperty(go.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),go);function go(e){var t=ho.call(this)||this;return t.service=e,t}mo.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:mo,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),mo.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:mo,selector:"kendo-datepicker-messages",providers:[{provide:Yn,useExisting:h.forwardRef(function(){return mo})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:mo,decorators:[{type:h.Component,args:[{providers:[{provide:Yn,useExisting:h.forwardRef(function(){return mo})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var fo,u=function(){},$e=(u.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,deps:[],target:i.ɵɵFactoryTarget.NgModule}),u.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,declarations:[vi,mo,gi],imports:[n.CommonModule,c,D,B.IntlModule,j.PopupModule,P,m.EventsModule],exports:[vi,mo,gi,P]}),u.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,providers:[{provide:ci,useValue:H.touchEnabled}],imports:[[n.CommonModule,c,D,B.IntlModule,j.PopupModule,P,m.EventsModule],P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,decorators:[{type:h.NgModule,args:[{declarations:[vi,mo,gi],exports:[vi,mo,gi,P],imports:[n.CommonModule,c,D,B.IntlModule,j.PopupModule,P,m.EventsModule],providers:[{provide:ci,useValue:H.touchEnabled}]}]}]}),[_n,Di,w,wi,ye,s]),We=[so,c,j.PopupModule,m.EventsModule],V=function(){},vo=(V.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,deps:[],target:i.ɵɵFactoryTarget.NgModule}),V.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,declarations:[_n,Di,w,wi,ye,s],imports:[n.CommonModule,so,c,j.PopupModule,m.EventsModule],exports:[_n,Di,w,wi,ye,s]}),V.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,imports:[[n.CommonModule,We]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,decorators:[{type:h.NgModule,args:[{declarations:[$e],exports:[$e],imports:[n.CommonModule,We]}]}]}),tt(yo,fo=O),Object.defineProperty(yo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),yo);function yo(e){var t=fo.call(this)||this;return t.service=e,t}vo.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vo,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),vo.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vo,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return vo})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vo,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return vo})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var bo,Yn=[Aa,oa,vo,za,Sa,Na,la],$e=[c,B.IntlModule,j.PopupModule,co,m.EventsModule],We=[pa,xi,Pi,Yi,Xi,ia,{provide:ci,useValue:H.touchEnabled}],O=function(){},ko=(O.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,deps:[],target:i.ɵɵFactoryTarget.NgModule}),O.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,declarations:[Aa,oa,vo,za,Sa,Na,la],imports:[n.CommonModule,c,B.IntlModule,j.PopupModule,co,m.EventsModule],exports:[Aa,oa,vo,za,Sa,Na,la]}),O.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,providers:We,imports:[nt([n.CommonModule],v($e))]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,decorators:[{type:h.NgModule,args:[{declarations:[Yn],exports:[Yn],imports:nt([n.CommonModule],v($e)),providers:We}]}]}),tt(Co,bo=Ci),Object.defineProperty(Co.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Co);function Co(e){var t=bo.call(this)||this;return t.service=e,t}ko.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ko,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),ko.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ko,selector:"kendo-datetimepicker-messages",providers:[{provide:Ci,useExisting:h.forwardRef(function(){return ko})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ko,decorators:[{type:h.Component,args:[{providers:[{provide:Ci,useExisting:h.forwardRef(function(){return ko})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});xi=[qa,ko,Ya],Pi=function(){},Pi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,deps:[],target:i.ɵɵFactoryTarget.NgModule}),Pi.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,declarations:[qa,ko,Ya],imports:[n.CommonModule,B.IntlModule,c,D,O,j.PopupModule,m.EventsModule,P],exports:[qa,ko,Ya,P]}),Pi.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,providers:[{provide:ci,useValue:H.touchEnabled}],imports:[[n.CommonModule,B.IntlModule,c,D,O,j.PopupModule,m.EventsModule,P],P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,decorators:[{type:h.NgModule,args:[{declarations:nt([],v(xi)),exports:nt(nt([],v(xi)),[P]),imports:[n.CommonModule,B.IntlModule,c,D,O,j.PopupModule,m.EventsModule,P],providers:[{provide:ci,useValue:H.touchEnabled}]}]}]}),Yi=[lo,c,u,O,V,Pi],Xi=function(){};Xi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,deps:[],target:i.ɵɵFactoryTarget.NgModule}),Xi.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,imports:[lo,c,u,O,V,Pi],exports:[lo,c,u,O,V,Pi]}),Xi.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,imports:[Yi,lo,c,u,O,V,Pi]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,decorators:[{type:h.NgModule,args:[{exports:Yi,imports:Yi}]}]}),e.CalendarCommonModule=ro,e.CalendarComponent=$n,e.CalendarCustomMessagesComponent=pi,e.CalendarLocalizedMessagesDirective=Bn,e.CalendarModule=D,e.CalendarsModule=lo,e.CellTemplateDirective=It,e.CenturyCellTemplateDirective=Et,e.DateInputComponent=ai,e.DateInputCustomMessagesComponent=po,e.DateInputLocalizedMessagesDirective=Gn,e.DateInputModule=c,e.DateInputsModule=Xi,e.DatePickerComponent=vi,e.DatePickerCustomMessagesComponent=mo,e.DatePickerLocalizedMessagesDirective=gi,e.DatePickerModule=u,e.DateRangeComponent=_n,e.DateRangeEndInputDirective=s,e.DateRangeModule=V,e.DateRangePopupComponent=Di,e.DateRangePopupTemplateDirective=w,e.DateRangeSelectionDirective=wi,e.DateRangeService=Za,e.DateRangeStartInputDirective=ye,e.DateTimePickerComponent=qa,e.DateTimePickerCustomMessagesComponent=ko,e.DateTimePickerModule=Pi,e.DecadeCellTemplateDirective=St,e.HeaderComponent=ht,e.HeaderTitleTemplateDirective=Ot,e.HorizontalViewListComponent=dt,e.KForOf=ct,e.LocalizedMessagesDirective=Ya,e.MonthCellTemplateDirective=Vt,e.MultiViewCalendarComponent=Bt,e.MultiViewCalendarCustomMessagesComponent=Nn,e.MultiViewCalendarLocalizedMessagesDirective=Ft,e.MultiViewCalendarModule=so,e.NavigationComponent=Lt,e.NavigationItemTemplateDirective=Mn,e.PreventableEvent=oi,e.TemplatesModule=P,e.TimeListComponent=oa,e.TimePickerComponent=za,e.TimePickerCustomMessagesComponent=vo,e.TimePickerLocalizedMessagesDirective=Aa,e.TimePickerModule=O,e.TimeSelectorComponent=la,e.TimeSelectorCustomMessagesComponent=Na,e.TimeSelectorLocalizedMessagesDirective=Sa,e.ViewComponent=ut,e.ViewListComponent=Vn,e.WeekNumberCellTemplateDirective=Rt,e.YearCellTemplateDirective=xt,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-intl"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define("KendoAngularDateinputs",["exports","@angular/core","@angular/forms","@progress/kendo-angular-l10n","@progress/kendo-date-math","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-intl","rxjs","@angular/common","rxjs/operators","@progress/kendo-angular-popup","@progress/kendo-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDateinputs={},e.ng.core,e.ng.forms,e.KendoAngularL10N,e.KendoDateMath,e.KendoAngularCommon,e.KendoLicensing,e.KendoAngularIntl,e.rxjs,e.ng.common,e.rxjs.operators,e.KendoAngularPopup,e.KendoCommon)}(this,function(e,h,A,t,k,m,L,B,p,n,z,j,H){"use strict";function _(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}function Y(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function $(e){return e.preventDefault()}function U(e){return e.relatedTarget||document.activeElement}function r(e){return null!=e}function K(e){return null!=e}function q(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function W(e,t,n){return{candidateValue:xe(Ce,e),maxValue:k.addDays(xe(Ce,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:xe(Ce,t)}}function Z(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function G(e,t,n){return!e||!(t&&e<t||n&&n<e)}function X(e,t,n){return!(e&&t&&n)||(t=(e=W(e,t,n)).candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function Q(e,t){return!K(e)||!K(t)||e<=t}function J(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function ee(){return new Date}function te(){return k.getDate(new Date)}function g(e){}function ne(){return"undefined"!=typeof window}function ie(e,t){return e.slice(t).concat(e.slice(0,t))}function ae(a){return function(e,t,n){void 0===t&&(t=""),void 0===n&&(n={});var i=document.createElement(a);return i.className=t,Object.keys(n).map(function(e){return i.style[e]=n[e]}),"string"==typeof e?i.innerHTML=e||"":(e||[]).forEach(function(e){return e&&i.appendChild(e)}),i}}function oe(e,t){return void 0!==e[t]}function re(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function se(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function le(e,t){var n=(t=t||Ve).start,t=t.end;return!(!n||!t)&&(n<e&&e<t)}function ce(e,t){return e||t}function pe(e){return{start:e,end:e}}function ue(e,t){var n=(e=e||Ve).start,e=e.end,i=(t=t||Ve).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function de(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function he(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function me(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}function ge(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function fe(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function ve(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var l,f,i=_(h),a=_(t),ye=_(m),o=_(B),s=_(n),be=_(j),ke={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1663070978,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=((c=l=l||{})[c.Left=0]="Left",c[c.Right=1]="Right",c[c.Up=2]="Up",c[c.Down=3]="Down",c[c.PrevView=4]="PrevView",c[c.NextView=5]="NextView",c[c.FirstInView=6]="FirstInView",c[c.LastInView=7]="LastInView",c[c.LowerView=8]="LowerView",c[c.UpperView=9]="UpperView",(c=f=f||{})[c.month=0]="month",c[c.year=1]="year",c[c.decade=2]="decade",c[c.century=3]="century",new Date(1980,0,1)),we=new Date(1900,0,1),De=new Date(2099,11,31),Te=new Date(1980,0,1),Ie=new Date(1980,0,1,23,59,59),Ve={start:null,end:null},xe=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},Se=q("setFullYear"),Ee=q("setHours"),Re=q("setMinutes"),Oe=q("setSeconds"),Me=q("setMilliseconds"),Ne="medium",Fe="medium",Pe="solid",Ae=[[]],Le=((c={})[l.Left]=function(e){return k.addDecades(e,-1)},c[l.Up]=function(e){return k.addDecades(e,-5)},c[l.Right]=function(e){return k.addDecades(e,1)},c[l.Down]=function(e){return k.addDecades(e,5)},c[l.PrevView]=function(e){return k.addCenturies(e,-1)},c[l.NextView]=function(e){return k.addCenturies(e,1)},c[l.FirstInView]=function(e){return k.firstDecadeOfCentury(e)},c[l.LastInView]=function(e){return k.lastDecadeOfCentury(e)},c),c=(Be.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},Be.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addCenturies(t,e)})},Be.prototype.data=function(e){var t,o,r,s,l=this,c=e.cellUID,p=e.focusedDate,u=e.isActiveView,d=e.max,h=e.min,m=e.selectedDates,n=e.selectionRange,g=void 0===n?Ve:n,n=e.viewDate;return n?(t=Z(0,4),o=k.firstDecadeOfCentury(n),r=k.lastDecadeOfCentury(n),s=te(),Z(0,3).map(function(e){var a=k.addDecades(o,4*e);return t.map(function(e){var t,n,i=l.normalize(k.addDecades(a,e),h,d),e=i.getFullYear()>r.getFullYear();return!l.isInRange(i,h,d)||e?null:(e=l.isEqual(i,g.start),t=l.isEqual(i,g.end),n=!e&&!t&&le(i,g),{formattedValue:l.value(i),id:""+c+i.getTime(),isFocused:l.isEqual(i,p),isSelected:u&&m.some(function(e){return l.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&l.isEqual(i,r),isRangeSplitStart:n&&l.isEqual(i,o),isToday:l.isEqual(i,s),title:l.cellTitle(i),value:i})})})):Ae},Be.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},Be.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99)},Be.prototype.isInRange=function(e,t,n){e=k.firstYearOfDecade(e).getFullYear(),t=!t||k.firstYearOfDecade(t).getFullYear()<=e,e=!n||e<=k.firstYearOfDecade(n).getFullYear();return t&&e},Be.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(k.firstDecadeOfCentury(e)),k.createDate(t.getFullYear(),0,1))},Be.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Be.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},Be.prototype.move=function(e,t){t=Le[t];return t?t(e):e},Be.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},Be.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},Be.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},Be.prototype.rowLength=function(){return 4},Be.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},Be.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},Be.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Be.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addCenturies(e,-1*(n-t)):e},Be.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Be);function Be(){this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDecades(i,1);return n}}c.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,deps:[],target:i.ɵɵFactoryTarget.Injectable}),c.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,decorators:[{type:h.Injectable}]});var ze=[[]],je=((u={})[l.Left]=function(e){return k.addYears(e,-1)},u[l.Up]=function(e){return k.addYears(e,-5)},u[l.Right]=function(e){return k.addYears(e,1)},u[l.Down]=function(e){return k.addYears(e,5)},u[l.PrevView]=function(e){return k.addDecades(e,-1)},u[l.NextView]=function(e){return k.addDecades(e,1)},u[l.FirstInView]=function(e){return k.firstYearOfDecade(e)},u[l.LastInView]=function(e){return k.lastYearOfDecade(e)},u),u=(He.prototype.addToDate=function(e,t){return k.addDecades(e,t)},He.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addDecades(t,e)})},He.prototype.data=function(e){var t,o,r,s,l=this,c=e.cellUID,p=e.focusedDate,u=e.isActiveView,d=e.max,h=e.min,m=e.selectedDates,n=e.selectionRange,g=void 0===n?Ve:n,n=e.viewDate;return n?(t=Z(0,4),o=k.firstYearOfDecade(n),r=k.lastYearOfDecade(n),s=te(),Z(0,3).map(function(e){var a=k.addYears(o,4*e);return t.map(function(e){var t,n,i=l.normalize(k.addYears(a,e),h,d),e=i.getFullYear()>r.getFullYear();return!l.isInRange(i,h,d)||e?null:(e=l.isEqual(i,g.start),t=l.isEqual(i,g.end),n=!e&&!t&&le(i,g),{formattedValue:l.value(i),id:""+c+i.getTime(),isFocused:l.isEqual(i,p),isSelected:u&&m.some(function(e){return l.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&l.isEqual(i,r),isRangeSplitStart:n&&l.isEqual(i,o),isToday:l.isEqual(i,s),title:l.cellTitle(i),value:i})})})):ze},He.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},He.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9)},He.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},He.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(e),k.createDate(t.getFullYear(),0,1))},He.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},He.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},He.prototype.move=function(e,t){t=je[t];return t?t(e):e},He.prototype.cellTitle=function(e){return e.getFullYear().toString()},He.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},He.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},He.prototype.rowLength=function(){return 4},He.prototype.skip=function(e,t){return k.durationInDecades(t,e)},He.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},He.prototype.value=function(e){return e?e.getFullYear().toString():""},He.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addDecades(e,-1*(n-t)):e},He.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},He);function He(){this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addYears(i,1);return n}}u.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,deps:[],target:i.ɵɵFactoryTarget.Injectable}),u.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,decorators:[{type:h.Injectable}]});var _e=[[]],Ye=(($e={})[l.Left]=function(e){return k.addDays(e,-1)},$e[l.Up]=function(e){return k.addWeeks(e,-1)},$e[l.Right]=function(e){return k.addDays(e,1)},$e[l.Down]=function(e){return k.addWeeks(e,1)},$e[l.PrevView]=function(e){return k.addMonths(e,-1)},$e[l.NextView]=function(e){return k.addMonths(e,1)},$e[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},$e[l.LastInView]=function(e){return k.lastDayOfMonth(e)},$e),$e=(Ue.prototype.addToDate=function(e,t){return k.addMonths(e,t)},Ue.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addMonths(t,e)})},Ue.prototype.data=function(e){var r,s,l,c,t,n,p,u=this,d=e.cellUID,h=e.focusedDate,m=e.isActiveView,g=e.max,f=e.min,v=e.selectedDates,i=e.selectionRange,y=void 0===i?Ve:i,i=e.viewDate,e=e.isDateDisabled,b=void 0===e?function(){return!1}:e;return i?(r=k.firstDayOfMonth(i),s=k.getDate(r),l=k.lastDayOfMonth(i),c=k.getDate(l),t=k.dayOfWeek(r,this._intlService.firstDay(),-1),n=Z(0,7),p=te(),Z(0,6).map(function(e){var o=k.addDays(t,7*e);return n.map(function(e){var t,n,i,a=u.normalize(k.addDays(o,e),f,g),e=k.getDate(a),e=e<s||c<e;return a<f||g<a?null:(t=u.isEqual(a,y.start),n=u.isEqual(a,y.end),i=!t&&!n&&le(a,y),{formattedValue:u.value(a),id:""+d+a.getTime(),isFocused:u.isEqual(a,h),isSelected:m&&v.some(function(e){return u.isEqual(a,e)}),isWeekend:u.isWeekend(a),isRangeStart:t,isRangeMid:i,isRangeEnd:n,isRangeSplitStart:i&&u.isEqual(a,r),isRangeSplitEnd:i&&u.isEqual(a,l),isToday:u.isEqual(a,p),title:u.cellTitle(a),value:a,isDisabled:b(a),isOtherMonth:e})})})):_e},Ue.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},Ue.prototype.isInArray=function(e,t){var n;return 0!==t.length&&(n=this.beginningOfPeriod(t[0]),t=this.beginningOfPeriod(k.addMonths(t[t.length-1],1)),n<=e&&e<t)},Ue.prototype.isInRange=function(e,t,n){e=k.getDate(e),t=!t||k.getDate(t)<=e,e=!n||e<=k.getDate(n);return t&&e},Ue.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},Ue.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},Ue.prototype.isRangeStart=function(e){return!e.getMonth()},Ue.prototype.move=function(e,t){t=Ye[t];return t?t(e):e},Ue.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},Ue.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},Ue.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},Ue.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},Ue.prototype.skip=function(e,t){return k.durationInMonths(t,e)},Ue.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},Ue.prototype.value=function(e){return e?e.getDate().toString():""},Ue.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addMonths(e,-1*(n-t)):e},Ue.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,t=t.end,e=e.getDay();return t<n?e<=t||n<=e:n<=e&&e<=t},Ue.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},Ue.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Ue.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},Ue);function Ue(e){this._intlService=e,this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDays(i,1);return n}}$e.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$e,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),$e.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$e}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$e,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});var Ke=[[]],qe=((We={})[l.Left]=function(e){return k.addMonths(e,-1)},We[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},We[l.Right]=function(e){return k.addMonths(e,1)},We[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},We[l.PrevView]=function(e){return k.addYears(e,-1)},We[l.NextView]=function(e){return k.addYears(e,1)},We[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},We[l.LastInView]=function(e){return k.lastMonthOfYear(e)},We),We=(Ze.prototype.addToDate=function(e,t){return k.addYears(e,t)},Ze.prototype.datesList=function(t,e){return Z(0,e).map(function(e){return k.addYears(t,e)})},Ze.prototype.data=function(e){var o,r,s,l,t,c,p=this,u=e.cellUID,d=e.focusedDate,h=e.isActiveView,m=e.max,g=e.min,f=e.selectedDates,n=e.selectionRange,v=void 0===n?Ve:n,n=e.viewDate;return n?(o=this.abbrMonthNames(),r=k.firstMonthOfYear(n),s=k.lastMonthOfYear(n),l=r.getFullYear(),t=Z(0,4),c=te(),Z(0,3).map(function(e){var a=k.addMonths(r,4*e);return t.map(function(e){var t,n,i=p.normalize(k.addMonths(a,e),g,m),e=l<i.getFullYear();return!p.isInRange(i,g,m)||e?null:(e=p.isEqual(i,v.start),t=p.isEqual(i,v.end),n=!e&&!t&&le(i,v),{formattedValue:o[i.getMonth()],id:""+u+i.getTime(),isFocused:p.isEqual(i,d),isSelected:h&&f.some(function(e){return p.isEqual(i,e)}),isWeekend:!1,isRangeStart:e,isRangeMid:n,isRangeEnd:t,isRangeSplitEnd:n&&p.isEqual(i,s),isRangeSplitStart:n&&p.isEqual(i,r),isToday:p.isEqual(i,c),title:p.cellTitle(i),value:i})})})):Ke},Ze.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},Ze.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear())},Ze.prototype.isInRange=function(e,t,n){e=k.createDate(e.getFullYear(),e.getMonth(),1),t=!t||k.createDate(t.getFullYear(),t.getMonth(),1)<=e,e=!n||e<=k.createDate(n.getFullYear(),n.getMonth(),1);return t&&e},Ze.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},Ze.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ze.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},Ze.prototype.move=function(e,t){t=qe[t];return t?t(e):e},Ze.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},Ze.prototype.navigationTitle=function(e){return this.title(e)},Ze.prototype.title=function(e){return e?e.getFullYear().toString():""},Ze.prototype.rowLength=function(){return 4},Ze.prototype.skip=function(e,t){return k.durationInYears(t,e)},Ze.prototype.total=function(e,t){return k.durationInYears(e,t)+1},Ze.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},Ze.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);t=this.total(e,t);return t<n?k.addYears(e,-1*(n-t)):e},Ze.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},Ze.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?k.cloneDate(t):n<e&&this.isEqual(e,n)?k.cloneDate(n):e},Ze);function Ze(e){this._intlService=e,this.dateRange=function(e,t){if(!r(e)||!r(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addMonths(i,1);return n}}We.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:We,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),We.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:We}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:We,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});(ct={})[f.month]=$e,ct[f.year]=We,ct[f.decade]=u,ct[f.century]=c;var Ge=ct,d=(Xe.prototype.configure=function(e,t){this.bottom=e,this.top=t},Xe.prototype.service=function(e){e=Ge[e];return e?this.injector.get(e):null},Xe.prototype.moveDown=function(e){this.move(e,-1)},Xe.prototype.moveUp=function(e){this.move(e,1)},Xe.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},Xe.prototype.canMoveDown=function(e){return this.bottom<e},Xe.prototype.canMoveUp=function(e){return e<this.top},Xe.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},Xe.prototype.move=function(e,t){t=this.clamp(function(e,t){t=f[f[e+t]];return void 0!==t?t:e}(e,t));t!==e&&this.viewChanged.emit({view:t})},Xe);function Xe(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=f.month,this.top=f.century}d.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:d,deps:[{token:i.Injector}],target:i.ɵɵFactoryTarget.Injectable}),d.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:d}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:d,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:i.Injector}]}});Je.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=ie(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var Qe=Je;function Je(e){this.intl=e}Qe.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Qe,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Qe.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Qe}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Qe,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});var et=function(e,t){return(et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),r=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)r.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return r}function nt(e,t,n){if(n||2===arguments.length)for(var i,a=0,o=t.length;a<o;a++)!i&&a in t||((i=i||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function it(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function at(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function ot(){return!1}rt.prototype.initialize=function(t){var n,i,e;"function"==typeof t?this.isDateDisabled=function(e){return t(k.getDate(e))}:(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return"number"==typeof e})?(n=new Set(t),this.isDateDisabled=function(e){return n.has(e.getDay())}):(e=t,Array.isArray(e)&&0<e.length&&e.every(function(e){return e instanceof Date})?(i=new Set(t.map(function(e){return k.getDate(e).getTime()})),this.isDateDisabled=function(e){return i.has(k.getDate(e).getTime())}):(this.isDateDisabled=ot,this.notifyInvalidInput(t)))),this.notifyServiceChange()},rt.prototype.notifyInvalidInput=function(e){if(r(e)&&h.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},rt.prototype.notifyServiceChange=function(){this.changes.next()};var y=rt;function rt(){this.changes=new p.Subject,this.isDateDisabled=ot}y.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:y,deps:[],target:i.ɵɵFactoryTarget.Injectable}),y.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:y}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:y,decorators:[{type:h.Injectable}]});Object.defineProperty(lt.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(lt.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var st=lt;function lt(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(pt.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),pt.prototype.ngOnChanges=function(t){if("kForOf"in t){t=t.kForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((t=t).name||typeof t)+"'.")}}},pt.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},pt.prototype._applyChanges=function(e){if(m.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 st(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;n<a;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var o=this._viewContainer.get(a);o.context.index=a,o.context.count=length,o.context.$implicit=i[a]||null}}};var ct=pt;function pt(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}ct.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ct,deps:[{token:i.ViewContainerRef},{token:i.TemplateRef},{token:i.IterableDiffers}],target:i.ɵɵFactoryTarget.Directive}),ct.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ct,selector:"[kFor][kForOf]",inputs:{kForOf:"kForOf",kForTrackBy:"kForTrackBy",kForTemplate:"kForTemplate"},usesOnChanges:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ct,decorators:[{type:h.Directive,args:[{selector:"[kFor][kForOf]"}]}],ctorParameters:function(){return[{type:i.ViewContainerRef},{type:i.TemplateRef},{type:i.IterableDiffers}]},propDecorators:{kForOf:[{type:h.Input}],kForTrackBy:[{type:h.Input}],kForTemplate:[{type:h.Input}]}});Object.defineProperty(b.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===f.month},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),b.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},b.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))},b.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},b.prototype.isHorizontal=function(){return"horizontal"===this.direction},b.prototype.isMonthView=function(){return this.activeView===f.month},b.prototype.shouldRenderCellContent=function(e){return r(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},b.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},b.prototype.getWeekNumber=function(e){return this.weekNumber?k.weekInYear(e,this.intl.firstDay()):null},b.prototype.getWeekNumberContext=function(e){var t,e=this.firstWeekDateContext(e);return this.weekNumber&&e?{formattedValue:t=k.weekInYear(e.value,this.intl.firstDay()).toString(),id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:t,value:k.cloneDate(e.value)}:null},b.prototype.getStyles=function(e){var n,t=e.isRangeEnd,i=e.isRangeStart,a="end"===this.activeRangeEnd&&t,o="start"===this.activeRangeEnd&&i;return n={"k-range-end":!e.isOtherMonth&&t,"k-range-mid":!e.isOtherMonth&&e.isRangeMid,"k-range-split-end":!e.isOtherMonth&&e.isRangeSplitEnd,"k-range-split-start":!e.isOtherMonth&&e.isRangeSplitStart,"k-range-start":!e.isOtherMonth&&i,"k-active":o||a,"k-focus":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-selected":!e.isOtherMonth&&(e.isSelected||i||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth},Object.keys(n).reduce(function(e,t){return n[t]?e.concat(t):e},[]).join(" ")},b.prototype.tableCellIndex=function(e,t){return e+":"+t},b.prototype.handleWeekNumberClick=function(e){var t=this,e=e.map(function(e){return e.value}).filter(function(e){return!t.disabledDatesService.isDateDisabled(e)});this.weekNumberCellClick.emit(e)},b.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},b.prototype.updateData=function(){var e=se(this.selectedDates)||te(),e=xe(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:e,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},b.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},b.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},b.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)))},b.prototype.clickHandler=function(e){var t,n,i=this.closestCell(e);i&&(i=i.getAttribute("data-cell-index"),(i=this.cellByIndex(i)).isDisabled||(t=e.ctrlKey,n=e.metaKey,e=e.shiftKey,this.cellClick.emit({date:i.value,modifiers:{ctrlKey:t,metaKey:n,shiftKey:e}})))},b.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},b.prototype.cellMouseoverHandler=function(e){var t,e=this.closestCell(e);e?(e=e.getAttribute("data-cell-index"),this.currentCellIndex&&this.currentCellIndex!==e&&this.emitCellLeave(),t=this.cellByIndex(e).value,this.cellEnter.emit(t),this.currentCellIndex=e):this.currentCellIndex&&this.emitCellLeave()},b.prototype.closestCell=function(e){return it(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},b.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},b.prototype.cellByIndex=function(e){var e=v(e.split(":"),2),t=e[0],e=e[1];return this.data[t][e]};var ut=b;function b(e,t,n,i,a,o,r){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=o,this.disabledDatesService=r,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.colSpan=0,this.subscriptions=new p.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)))}ut.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ut,deps:[{token:d},{token:o.IntlService},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:i.NgZone},{token:i.Renderer2},{token:y}],target:i.ɵɵFactoryTarget.Component}),ut.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ut,selector:"[kendoCalendarView]",inputs:{direction:"direction",isActive:"isActive",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave"},usesOnChanges:!0,ngImport:i,template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ut,decorators:[{type:h.Component,args:[{selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td">&nbsp;</td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}]}],ctorParameters:function(){return[{type:d},{type:o.IntlService},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:i.NgZone},{type:i.Renderer2},{type:y}]},propDecorators:{direction:[{type:h.Input}],isActive:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],viewDate:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],selectionRange:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectedDates:[{type:h.Input}],weekNumber:[{type:h.Input}],viewIndex:[{type:h.Input}],templateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}]}});Object.defineProperty(C.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentMonthClass",{get:function(){return this.activeView===f.month},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentYearClass",{get:function(){return this.activeView===f.year},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===f.decade},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===f.century},enumerable:!1,configurable:!0}),C.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service&&(this.views=this.views||2,t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views)),this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max),i=oe(e,"activeView"),e=0<this.views&&oe(e,"views"),!i&&this.isInDates(t)&&!e&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=k.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate)))},C.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},C.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},C.prototype.initService=function(){this.service=this.bus.service(this.activeView)},C.prototype.isMonthView=function(){return this.activeView===f.month},C.prototype.getCaptionTitle=function(e){return this.service.title(e)},C.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},C.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),o=parseFloat(getComputedStyle(i).width),i=(this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===l.NextView?this.nextAnimationDate=k.cloneDate(this.dates[0]):this.prevAnimationDate=k.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach(function(e){t.renderer.setStyle(e,"width",o+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")}),i.getBoundingClientRect()),r=parseFloat(getComputedStyle(n).columnGap),s=e===l.NextView?"translateX(0)":"translateX(-"+(i.width+r)+"px)",e=e===l.NextView?"translateX(-"+(i.width+r)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:s},{transform:e}],{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()})},C.prototype.navigate=function(e){this.animateNavigation&&m.isDocumentAvailable()&&r(this.element.nativeElement.animate)&&this.animateView(e);var e=this.move(e),t=this.service.datesList(e,this.getTake(this.skip));return this.isListInRange(t)&&(this.dates=t),this.activeDate=k.cloneDate(this.dates[0]),this.focusedDate=k.cloneDate(e),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),k.cloneDate(e)},C.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},C.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");t&&(e=parseFloat(getComputedStyle(e).width),this.renderer.setStyle(t,"min-width",e+"px"))},C.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},C.prototype.clampDate=function(e){return J(e,this.min,this.max)},C.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},C.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},C.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},C.prototype.getTake=function(e){return Math.min(this.total-e,this.views)};var dt=C;function C(e,t,n,i,a,o){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=a,this.renderer=o,this.activeView=f.month,this.isActive=!0,this.min=new Date(we),this.max=new Date(De),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}dt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:dt,deps:[{token:d},{token:o.IntlService},{token:Qe},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),dt.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:dt,selector:"kendo-calendar-horizontal",inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",activeRangeEnd:"activeRangeEnd",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectionRange:"selectionRange",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",orientation:"orientation",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange"},host:{properties:{"class.k-calendar-view":"this.getComponentClass","class.k-align-items-start":"this.getComponentClass","class.k-justify-content-center":"this.getComponentClass","class.k-hstack":"this.horizontalHostClass","class.k-vstack":"this.verticalHostClass","class.k-calendar-monthview":"this.getComponentMonthClass","class.k-calendar-yearview":"this.getComponentYearClass","class.k-calendar-decadeview":"this.getComponentDecadeClass","class.k-calendar-centuryview":"this.getComponentCenturyClass"}},usesOnChanges:!0,ngImport:i,template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n role="grid"\n class="k-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 ',isInline:!0,components:[{type:ut,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave"]}],directives:[{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:dt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-horizontal",template:'\n <ng-template #tableTemplate let-date="date" let-class="className">\n <table\n role="grid"\n class="k-content k-calendar-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 '}]}],ctorParameters:function(){return[{type:d},{type:o.IntlService},{type:Qe},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:i.Renderer2}]},propDecorators:{cellTemplateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],isActive:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectionRange:[{type:h.Input}],selectedDates:[{type:h.Input}],views:[{type:h.Input}],showViewHeader:[{type:h.Input}],animateNavigation:[{type:h.Input}],orientation:[{type:h.Input}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],activeDateChange:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-view"]},{type:h.HostBinding,args:["class.k-align-items-start"]},{type:h.HostBinding,args:["class.k-justify-content-center"]}],horizontalHostClass:[{type:h.HostBinding,args:["class.k-hstack"]}],verticalHostClass:[{type:h.HostBinding,args:["class.k-vstack"]}],getComponentMonthClass:[{type:h.HostBinding,args:["class.k-calendar-monthview"]}],getComponentYearClass:[{type:h.HostBinding,args:["class.k-calendar-yearview"]}],getComponentDecadeClass:[{type:h.HostBinding,args:["class.k-calendar-decadeview"]}],getComponentCenturyClass:[{type:h.HostBinding,args:["class.k-calendar-centuryview"]}]}});Object.defineProperty(mt.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(mt.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),mt.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)))},mt.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=f[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},mt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},mt.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(J(te(),this.min,this.max)))},mt.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},mt.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},mt.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},mt.prototype.getTitle=function(){var e,t,n,i;return this.currentDate?(e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t),t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)):""},mt.prototype.setTodayAvailability=function(){var e=te(),t=G(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var ht=mt;function mt(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(we),this.max=new Date(De),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.orientation="horizontal",this.todayButtonClick=new h.EventEmitter,this.prevButtonClick=new h.EventEmitter,this.nextButtonClick=new h.EventEmitter,this.getComponentClass=!0,this.subscriptions=new p.Subscription}ht.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ht,deps:[{token:d},{token:i.ChangeDetectorRef},{token:a.LocalizationService},{token:o.IntlService},{token:y}],target:i.ɵɵFactoryTarget.Component}),ht.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ht,selector:"kendo-calendar-header",inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",templateRef:"templateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",orientation:"orientation"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},host:{properties:{"class.k-calendar-header":"this.getComponentClass","class.k-hstack":"this.horizontalHostClass","class.k-vstack":"this.verticalHostClass"}},usesOnChanges:!0,ngImport:i,template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-prev"\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-chevron-left"></span>\n </button>\n <span\n class="k-today k-calendar-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-next"\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-chevron-right"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ht,decorators:[{type:h.Component,args:[{selector:"kendo-calendar-header",template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-prev"\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-chevron-left"></span>\n </button>\n <span\n class="k-today k-calendar-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-calendar-nav-next"\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-chevron-right"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:d},{type:i.ChangeDetectorRef},{type:a.LocalizationService},{type:o.IntlService},{type:y}]},propDecorators:{activeView:[{type:h.Input}],currentDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeLength:[{type:h.Input}],templateRef:[{type:h.Input}],isPrevDisabled:[{type:h.Input}],isNextDisabled:[{type:h.Input}],showNavigationButtons:[{type:h.Input}],orientation:[{type:h.Input}],todayButtonClick:[{type:h.Output}],prevButtonClick:[{type:h.Output}],nextButtonClick:[{type:h.Output}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-header"]}],horizontalHostClass:[{type:h.HostBinding,args:["class.k-hstack"]}],verticalHostClass:[{type:h.HostBinding,args:["class.k-vstack"]}]}});var gt={33:l.PrevView,34:l.NextView,35:l.LastInView,36:l.FirstInView,37:l.Left,38:l.Up,39:l.Right,40:l.Down,"meta+38":l.UpperView,"meta+40":l.LowerView},ft=(vt.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return gt[e]},vt.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===l.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===l.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},vt);function vt(e){this.bus=e}ft.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ft,deps:[{token:d}],target:i.ɵɵFactoryTarget.Injectable}),ft.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ft}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ft,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:d}]}});bt.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,o=e.rangePivot,e=e.selectedDates.slice();return o="multiple"===i?n.ctrlKey||n.metaKey?(this.isDateSelected(e,t)?e=e.filter(function(e){return!k.isEqual(e,t)}):e.push(t),t):n.shiftKey?(n=(i=v([o||t,t].filter(r).sort(function(e,t){return e.getTime()-t.getTime()}),2))[0],i=i[1],e=this.bus.service(a).dateRange(n,i),t>e[0]?e[0]:se(e)):(e=[t],t):(e=[t],t),{selectedDates:e,rangePivot:o}},bt.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var yt=bt;function bt(e){this.bus=e}yt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:yt,deps:[{token:d}],target:i.ɵɵFactoryTarget.Injectable}),yt.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:yt}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:yt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:d}]}});function kt(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function Ct(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function wt(){return null}function Dt(t){return r(t)?function(e){return r(e)&&r(e.start)&&r(e.end)&&!(e.start>e.end)&&(e=function(e,t,n){if(!(e&&t&&n)||t<e)return[];for(var i=[],a=e;a<=t;)n(a)&&i.push(a),a=k.addDays(a,1);return i}(e.start,e.end,t)).length?{disabledDatesInRange:e}:null}:wt}var Tt,It=function(e){this.templateRef=e},Vt=(It.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:It,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),It.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:It,selector:"[kendoCalendarCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:It,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),xt=(Vt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vt,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Vt.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Vt,selector:"[kendoCalendarMonthCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),St=(xt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xt,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),xt.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:xt,selector:"[kendoCalendarYearCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),Et=(St.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:St,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),St.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:St,selector:"[kendoCalendarDecadeCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:St,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),Rt=(Et.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Et,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Et.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Et,selector:"[kendoCalendarCenturyCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Et,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),Ot=(Rt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Rt,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Rt.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Rt,selector:"[kendoCalendarWeekNumberCellTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Rt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),function(e){this.templateRef=e}),w=(Ot.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ot,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Ot.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ot,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ot,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarHeaderTitleTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),tt(Mt,Tt=t.ComponentMessages),Mt);function Mt(){return null!==Tt&&Tt.apply(this,arguments)||this}w.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,deps:null,target:i.ɵɵFactoryTarget.Directive}),w.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-multiview-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,decorators:[{type:h.Directive,args:[{selector:"kendo-multiview-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt(Pt,Nt=w);var Nt,Ft=Pt;function Pt(e){var t=Nt.call(this)||this;return t.service=e,t}Ft.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ft,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Ft.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ft,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:w,useExisting:h.forwardRef(function(){return Ft})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ft,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Ft})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var At="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",D={multi:!0,provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Bt})},Lt={multi:!0,provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Bt})},Bt=(Object.defineProperty(T.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||te()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(we)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(De)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(r).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(r).map(function(e){return k.cloneDate(e)});de(e,this.selectedDates)||(t=se(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"activeViewEnum",{get:function(){var e=f[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"bottomViewEnum",{get:function(){return f[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"topViewEnum",{get:function(){return f[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),T.prototype.handleFocusout=function(e){var t=e.relatedTarget;this.element.nativeElement.contains(t)||(this.blurEvent.emit(e),this.onControlTouched()),this.isActive=!1,this.isHovered=!1,this.isHeaderActive=this.headerElement.nativeElement.contains(t)},T.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},T.prototype.handleMouseEnter=function(){this.isHovered=!0},T.prototype.handleMouseLeave=function(){this.isHovered=!1},T.prototype.handleMousedown=function(e){e.preventDefault()},T.prototype.handleClick=function(){this.isActive||this.focus()},T.prototype.keydown=function(e){var t;this.isHeaderActive||(e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e),t=J(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,t)||(this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)))},T.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=f[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},T.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),re(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=J(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?Dt(this.disabledDatesService.isDateDisabled):g,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},T.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},T.prototype.ngAfterViewInit=function(){this.updateButtonState()},T.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},T.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},T.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},T.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter(function(e){return!t.disabledDatesService.isDateDisabled(e)}),e=(this.focusedDate=e.focusedDate||this.focusedDate,!n&&de(i,this.selectedDates));this.disabled||e||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map(function(e){return k.cloneDate(e)}),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},T.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)},T.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},T.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},T.prototype.registerOnChange=function(e){this.onControlChange=e},T.prototype.registerOnTouched=function(e){this.onControlTouched=e},T.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},T.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},T.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},T.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case f.month:return this.monthCellTemplateRef||this.cellTemplateRef;case f.year:return this.yearCellTemplateRef;case f.decade:return this.decadeCellTemplateRef;case f.century:return this.centuryCellTemplateRef;default:return null}},T.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},T.prototype.emitNavigate=function(e){var t=f[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},T.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},T.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},T.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:se(e)})})},T.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},T.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},T.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+At+" 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 "+At+" for possible resolution.")}},T.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()})},T.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(se(e)):e.map(function(e){return k.cloneDate(e)})},T.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},T);function T(e,t,n,i,a,o,r,s){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=a,this.zone=o,this.disabledDatesService=r,this.selectionService=s,this.id=m.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.orientation="horizontal",this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.blurEvent=new h.EventEmitter,this.cellUID=m.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=l.PrevView,this.nextView=l.NextView,this.selectedDates=[],this._min=new Date(we),this._max=new Date(De),this._focusedDate=te(),this.resolvedPromise=Promise.resolve(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesRangeValidateFn=g,this.subscriptions=new p.Subscription,this.setClasses(t.nativeElement)}Bt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bt,deps:[{token:d},{token:i.ElementRef},{token:ft},{token:i.Renderer2},{token:i.ChangeDetectorRef},{token:i.NgZone},{token:y},{token:yt}],target:i.ɵɵFactoryTarget.Component}),Bt.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Bt,selector:"kendo-multiviewcalendar",inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",orientation:"orientation",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur"},host:{listeners:{focusout:"handleFocusout($event)",focus:"handleFocus()",mouseenter:"handleMouseEnter()",mouseleave:"handleMouseLeave()",mousedown:"handleMousedown($event)",click:"handleClick()",keydown:"keydown($event)"},properties:{"attr.id":"this.widgetId","attr.tabindex":"this.calendarTabIndex","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled","attr.aria-activedescendant":"this.ariaActivedescendant"}},providers:[d,D,Lt,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},ft,yt],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:ht,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:dt,descendants:!0}],exportAs:["kendo-multiviewcalendar"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n [orientation]="orientation"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n [orientation]="orientation"\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 ',isInline:!0,components:[{type:ht,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:dt,selector:"kendo-calendar-horizontal",inputs:["cellTemplateRef","weekNumberTemplateRef","activeRangeEnd","activeView","cellUID","focusedDate","isActive","min","max","selectionRange","selectedDates","views","showViewHeader","animateNavigation","orientation","weekNumber"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]}],directives:[{type:Ft,selector:"[kendoMultiViewCalendarLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[d,D,Lt,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},ft,yt],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n [orientation]="orientation"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n [orientation]="orientation"\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 '}]}],ctorParameters:function(){return[{type:d},{type:i.ElementRef},{type:ft},{type:i.Renderer2},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:y},{type:yt}]},propDecorators:{id:[{type:h.Input}],focusedDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesRangeValidation:[{type:h.Input}],selection:[{type:h.Input}],value:[{type:h.Input}],disabled:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],isActive:[{type:h.Input}],disabledDates:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],showViewHeader:[{type:h.Input}],animateNavigation:[{type:h.Input}],weekNumber:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],selectionRange:[{type:h.Input}],views:[{type:h.Input}],orientation:[{type:h.Input}],activeViewChange:[{type:h.Output}],navigate:[{type:h.Output}],cellEnter:[{type:h.Output}],cellLeave:[{type:h.Output}],valueChange:[{type:h.Output}],blurEvent:[{type:h.Output,args:["blur"]}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[ht,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[dt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],calendarTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}],ariaActivedescendant:[{type:h.HostBinding,args:["attr.aria-activedescendant"]}],handleFocusout:[{type:h.HostListener,args:["focusout",["$event"]]}],handleFocus:[{type:h.HostListener,args:["focus"]}],handleMouseEnter:[{type:h.HostListener,args:["mouseenter"]}],handleMouseLeave:[{type:h.HostListener,args:["mouseleave"]}],handleMousedown:[{type:h.HostListener,args:["mousedown",["$event"]]}],handleClick:[{type:h.HostListener,args:["click"]}],keydown:[{type:h.HostListener,args:["keydown",["$event"]]}]}});jt.prototype.height=function(e){return this.heights[e]},jt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},jt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},jt.prototype.index=function(i){var e;if(!(i<0))return void 0===(e=this.offsets.reduce(function(e,t,n){return void 0!==e?e:t===i?n:i<t?n-1:void 0},void 0))?this.total-1:e},jt.prototype.offset=function(e){return this.offsets[e]},jt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},jt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,nt(nt([],v(n.slice(0,e+1))),v(n.slice(e+1).map(function(e){return e+i}))))};var zt=jt;function jt(e,t,n){this.total=e=void 0===e?0:e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}function Ht(e){return Math.max(e,0)}var _t=function(e){this.offset=e},Yt=function(e){this.skip=e},$t=(Ut.prototype.create=function(e,t,n,i,a,o,r){var s=this,l=(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,new p.ReplaySubject(2)),e=this.rowsForHeight(a),n=Ht(t-e);return l.next(new _t(this.rowOffset(n))),e&&l.next(new Yt(n)),this.subscription=new p.Observable(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(e){return l.next(e)}),l},Ut.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},Ut.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,a=e.offsetHeight,e=e.offsetWidth,i="vertical"===this.direction?i:n,n="vertical"===this.direction?a:e;this.lastScroll!==i&&(a=this.lastScroll>=i,this.lastScroll=i,e=this.rowHeightService.index(Ht(i-this.topOffset)),i=this.rowHeightService.index(Ht(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new _t(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Yt(this.firstLoaded))),a&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Ht(e-n),t.next(new _t(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new Yt(this.firstLoaded))))},Ut.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},Ut.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},Ut.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},Ut);function Ut(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var Kt,qt=new h.InjectionToken("dateinputs-scroll-service-factory");function Wt(e){return new $t(e)}(D=Kt=Kt||{})[D.Backward=0]="Backward",D[D.Forward=1]="Forward";(Lt={})[Kt.Forward]=function(t){return function(e){return e+t}},Lt[Kt.Backward]=function(t){return function(e){return e-t}};var Zt=Lt,Gt=((D={})[Kt.Forward]=function(t){return function(e){return Math.min(e,t)}},D[Kt.Backward]=function(t){return function(e){return Math.max(e,t)}},D),Xt=((Lt={})[Kt.Forward]=function(t){return function(e){return e<t}},Lt[Kt.Backward]=function(t){return function(e){return t<e}},Lt),D=(Object.defineProperty(I.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),I.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},I.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},I.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(z.map(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},I.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},I.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},I.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},I.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},I.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},I.prototype.isIndexVisible=function(e){var t,n,i;return!!this.rowHeightService&&(n=(t=this.containerScrollPosition)+this.containerOffsetSize,e=(i=this.rowHeightService.offset(e))+this.rowHeightService.height(e),t<=i&&e<=n)},I.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},I.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},I.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},I.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},I.prototype.animateToIndex=function(e){var t,n,i,a,o=this,e=(this.animationSubscription&&this.animationSubscription.unsubscribe(),this.rowHeightService.offset(e)),r=this.getContainerScrollDirection(e),e=this.scrollRange(e,r),s=e.start,e=e.end;s!==e&&(t=this.scrollStep(s,e),n=Zt[r](t),i=Gt[r](e),a=Xt[r](n(e)),this.zone.runOutsideAngular(function(){o.animationSubscription=p.combineLatest(p.of(s),p.interval(0,p.animationFrameScheduler)).pipe(z.map(function(e){return e[0]}),z.scan(n),z.takeWhile(a),z.map(i)).subscribe(function(e){return o.scrollTo(e)})}))},I.prototype.scrollRange=function(e,t){var n,i,a=this.containerScrollPosition;return parseInt(e,10)===parseInt(a,10)?{start:e,end:e}:(n=this.containerMaxScroll(),t=t===Kt.Backward?1:-1,i=this.maxScrollDifference,a=Math.min(Math.abs(e-a),i),i=Math.min(e,n),{start:Math.min(Math.max(i+t*a,0),n),end:i})},I.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},I.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},I.prototype.initServices=function(){var t=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(e){(e instanceof Yt?t.pageChange:t.scrollChange).emit(e)})},I.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new zt(this.total,e,0)},I.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},I.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},I.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?Kt.Backward:Kt.Forward},I);function I(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.scrollChange=new h.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new p.Subject,this.scroller=e(this.dispatcher)}D.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,deps:[{token:qt},{token:i.ElementRef},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Component}),D.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-virtualization",inputs:{direction:"direction",itemHeight:"itemHeight",itemWidth:"itemWidth",topOffset:"topOffset",bottomOffset:"bottomOffset",maxScrollDifference:"maxScrollDifference",scrollOffsetSize:"scrollOffsetSize",scrollDuration:"scrollDuration",skip:"skip",take:"take",total:"total"},outputs:{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"},host:{properties:{"class.k-flex":"this.wrapperClasses","class.k-content":"this.wrapperClasses","class.k-scrollable":"this.wrapperClasses","class.k-scrollable-horizontal":"this.horizontalClass"}},providers:[{provide:qt,useValue:Wt}],usesOnChanges:!0,ngImport:i,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 ',isInline:!0,directives:[{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,decorators:[{type:h.Component,args:[{providers:[{provide:qt,useValue:Wt}],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 '}]}],ctorParameters:function(){return[{type:void 0,decorators:[{type:h.Inject,args:[qt]}]},{type:i.ElementRef},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{direction:[{type:h.Input}],itemHeight:[{type:h.Input}],itemWidth:[{type:h.Input}],topOffset:[{type:h.Input}],bottomOffset:[{type:h.Input}],maxScrollDifference:[{type:h.Input}],scrollOffsetSize:[{type:h.Input}],scrollDuration:[{type:h.Input}],skip:[{type:h.Input}],take:[{type:h.Input}],total:[{type:h.Input}],activeIndexChange:[{type:h.Output}],pageChange:[{type:h.Output}],scrollChange:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-flex"]},{type:h.HostBinding,args:["class.k-content"]},{type:h.HostBinding,args:["class.k-scrollable"]}],horizontalClass:[{type:h.HostBinding,args:["class.k-scrollable-horizontal"]}]}});function Qt(e,a,o){var r,s=e.cells,l=e.rows;return function(){var e,t,n,i;return m.isDocumentAvailable?(r||(n=l,void 0===(i=s)&&(i=1),n=hn([un([pn([cn("1","k-calendar-th")],"k-calendar-tr")].concat(fn(n,function(){return pn(fn(i,function(e){return ln('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=on([mn(),t?gn():null,vn([n,n])],e,{left:"-10000px",position:"absolute"})),r):null}}function Jt(e){return bn(e).classList.add("k-scrollable-horizontal"),e}function en(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function tn(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function nn(e){return e.querySelector("tbody")}var an,on=ae("div"),rn=ae("ul"),sn=ae("li"),ln=ae("td"),cn=ae("th"),pn=ae("tr"),un=ae("tbody"),dn=ae("thead"),hn=ae("table"),mn=function(){return on('\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title">March 2017</span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <span class="k-today k-calendar-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack")},gn=function(){return hn([dn([pn([cn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},fn=function(e,t){return new Array(e).fill("1").map(t)},vn=function(e){return on(e,"k-flex k-content k-scrollable")},yn=function(){return m.isDocumentAvailable?an=an||on([vn([rn([sn("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},bn=function(e){return e.querySelector(".k-scrollable")},kn=Qt({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Cn=Qt({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),wn=Qt({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Dn=(Tn.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},Tn.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(kn(),function(e){var t=nn(e);n.calendarHeight=en(e),n.monthViewHeight=en(t),n.headerHeight=en(t.children[0]),n.scrollableContentHeight=en(bn(e))}),this.batch(Jt(kn()),function(e){var t=nn(e);n.calendarWidth=tn(e),n.monthViewWidth=tn(t),n.scrollableContentWidth=tn(bn(e))}),this.batch(Cn(),function(e){n.yearViewHeight=en(nn(e)),n.scrollableYearContentHeight=en(bn(e))}),this.batch(Jt(Cn()),function(e){n.yearViewWidth=tn(nn(e))}),this.batch(wn(),function(e){n.decadeViewHeight=en(nn(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(Jt(wn()),function(e){n.decadeViewWidth=tn(nn(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(yn(),function(e){n.navigationItemHeight=en(e.querySelector("li"))}))},Tn.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},Tn.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},Tn.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case f.month:return this["month"+n];case f.year:return this["year"+n];case f.decade:return this["decade"+n];case f.century:return this["century"+n];default:return 1}},Tn.prototype.batch=function(e,t){if(r(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)}}},Tn);function Tn(){}Dn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Dn,deps:[],target:i.ɵɵFactoryTarget.Injectable}),Dn.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Dn}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Dn,decorators:[{type:h.Injectable}]});Object.defineProperty(In.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),In.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))},In.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=f[this.activeView],t=J(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)))},In.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},In.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},In.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},In.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},In.prototype.scrollChange=function(e){var e=e.offset,t=this.list.nativeElement,e="translateY("+e+"px)";this.renderer.setStyle(t,"transform",e),this.renderer.setStyle(t,"-ms-transform",e)},In.prototype.handleDateChange=function(e){var e=it(e.target,function(e){return e.hasAttribute("data-date-index")},this.list.nativeElement);e&&(e=parseInt(e.getAttribute("data-date-index"),10),e=this.dates[e],this.valueChange.emit(k.cloneDate(e)))},In.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},In.prototype.intlChange=function(){this.activeView===f.month&&this.cdr.markForCheck()};Lt=In;function In(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(we),this.max=new Date(De),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}Lt.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Lt,deps:[{token:d},{token:Dn},{token:o.IntlService},{token:i.ChangeDetectorRef},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),Lt.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Lt,selector:"kendo-calendar-navigation",inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},host:{properties:{"class.k-calendar-navigation":"this.getComponentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:i,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 ',isInline:!0,components:[{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Lt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:d},{type:Dn},{type:o.IntlService},{type:i.ChangeDetectorRef},{type:i.Renderer2}]},propDecorators:{activeView:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],focusedDate:[{type:h.Input}],templateRef:[{type:h.Input}],valueChange:[{type:h.Output}],pageChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-navigation"]}]}});Object.defineProperty(xn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===f.month},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentYearClass",{get:function(){return this.activeView===f.year},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===f.decade},enumerable:!1,configurable:!0}),Object.defineProperty(xn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===f.century},enumerable:!1,configurable:!0}),xn.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))},xn.prototype.ngOnChanges=function(e){var t,n,i,a,o;this.service=this.bus.service(this.activeView),this.service&&(this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.weekNames=oe(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames,t=oe(e,"activeView"),n=this.focusedDate,a=J(this.service.viewDate(n,this.max,this.minViewsToRender),this.min,this.max),o=this.service.total(this.min,this.max),i=this.total&&this.total!==o||!this.service.isInArray(n,this.dates),this.skip=this.service.skip(a,this.min),this.total=o,this.animateToIndex=!t,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),i&&(this.dates=this.service.datesList(a,this.getTake(this.skip))),o=this.activeDate,a=n,o&&a&&o.getFullYear()===a.getFullYear()&&o.getMonth()===a.getMonth()||(this.activeDate=k.cloneDate(n)),o=oe(e,"focusedDate")||t,(i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min)))},xn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},xn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},xn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},xn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},xn.prototype.scrollChange=function(e){var e=e.offset,t=this.list.nativeElement,e="translateY("+e+"px)";this.renderer.setStyle(t,"transform",e),this.renderer.setStyle(t,"-ms-transform",e)},xn.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},xn.prototype.isMonthView=function(){return this.activeView===f.month},xn.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},xn.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},xn.prototype.getScrollableHeight=function(){return this.activeView===f.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},xn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},xn.prototype.getWeekNames=function(){var e=ie(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},xn.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()};var Vn=xn;function xn(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(we),this.max=new Date(De),this.selectedDates=[],this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.todayButtonClick=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}Vn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vn,deps:[{token:d},{token:i.ChangeDetectorRef},{token:o.IntlService},{token:Dn},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),Vn.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Vn,selector:"kendo-calendar-viewlist",inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},host:{properties:{"class.k-vstack":"this.getComponentClass","class.k-calendar-view":"this.getComponentClass","class.k-calendar-monthview":"this.getComponentMonthClass","class.k-calendar-yearview":"this.getComponentYearClass","class.k-calendar-decadeview":"this.getComponentDecadeClass","class.k-calendar-centuryview":"this.getComponentCenturyClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:i,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">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:ht,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]},{type:ut,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave"]}],directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Vn,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:d},{type:i.ChangeDetectorRef},{type:o.IntlService},{type:Dn},{type:i.Renderer2}]},propDecorators:{cellTemplateRef:[{type:h.Input}],weekNumberTemplateRef:[{type:h.Input}],headerTitleTemplateRef:[{type:h.Input}],activeView:[{type:h.Input}],cellUID:[{type:h.Input}],focusedDate:[{type:h.Input}],isActive:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],selectedDates:[{type:h.Input}],weekNumber:[{type:h.Input}],cellClick:[{type:h.Output}],weekNumberCellClick:[{type:h.Output}],activeDateChange:[{type:h.Output}],todayButtonClick:[{type:h.Output}],pageChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-vstack"]},{type:h.HostBinding,args:["class.k-calendar-view"]}],getComponentMonthClass:[{type:h.HostBinding,args:["class.k-calendar-monthview"]}],getComponentYearClass:[{type:h.HostBinding,args:["class.k-calendar-yearview"]}],getComponentDecadeClass:[{type:h.HostBinding,args:["class.k-calendar-decadeview"]}],getComponentCenturyClass:[{type:h.HostBinding,args:["class.k-calendar-centuryview"]}]}});En.prototype.configure=function(e){var t,n,e=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(t=e,function(e){return Math.floor(e/t)}),this.powerByMagnitude=(n=e,function(e){return e*n})},En.prototype.sync=function(e,i){var a=this;this.unsubscribe(),e&&i&&(this.navigator=e,this.view=i,this.zone.runOutsideAngular(function(){var t,n;a.navSubscription=e.scroll$().subscribe(function(e){n?n=!1:(t=!0,a.scrollSiblingOf(e.target))}),a.viewSubscription=i.scroll$().subscribe(function(e){t?t=!1:(n=!0,a.scrollSiblingOf(e.target))})}))},En.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},En.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},En.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},En.prototype.destroy=function(){this.unsubscribe()},En.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var Sn=En;function En(e,t){this.dom=e,this.zone=t}Sn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sn,deps:[{token:Dn},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Injectable}),Sn.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sn}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sn,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:Dn},{type:i.NgZone}]}});function Rn(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var On,Mn=function(e){this.templateRef=e},Nn=(Mn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Mn,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),Mn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Mn,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Mn,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),tt(Fn,On=w),Object.defineProperty(Fn.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Fn);function Fn(e){var t=On.call(this)||this;return t.service=e,t}Nn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Nn,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),Nn.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Nn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return Nn})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Nn,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Nn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});tt(An,Pn=t.ComponentMessages);var Pn,w=An;function An(){return null!==Pn&&Pn.apply(this,arguments)||this}w.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,deps:null,target:i.ɵɵFactoryTarget.Directive}),w.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"kendo-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,decorators:[{type:h.Directive,args:[{selector:"kendo-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt(zn,Ln=w);var Ln,Bn=zn;function zn(e){var t=Ln.call(this)||this;return t.service=e,t}Bn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bn,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Bn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Bn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:w,useExisting:h.forwardRef(function(){return Bn})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Bn,decorators:[{type:h.Directive,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return Bn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});function jn(e){return e?e.virtualization:null}var Hn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",_n={multi:!0,provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return $n})},V={multi:!0,provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return $n})},Yn={provide:m.KendoInput,useExisting:h.forwardRef(function(){return $n})},$n=(Object.defineProperty(x.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){var t,n;this.activeViewDate&&!k.isEqual(this._focusedDate,e)&&(n=(t=this.bus.service(this.activeViewEnum)).lastDayOfPeriod(this.activeViewDate),t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)),this._focusedDate=e||te(),this.setAriaActivedescendant()},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(we)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(De)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(r).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(r).map(function(e){return k.cloneDate(e)});de(e,this.selectedDates)||(t=se(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.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:!1,configurable:!0}),Object.defineProperty(x.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"activeViewEnum",{get:function(){var e=f[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"bottomViewEnum",{get:function(){return f[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"topViewEnum",{get:function(){return f[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!1,configurable:!0}),x.prototype.ngOnInit=function(){var t=this;"infinite"===this.type&&(this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum)),this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return t.cdr.markForCheck()}),this.viewChangeSubscription=this.bus.viewChanged.subscribe(function(e){e=e.view;return t.handleActiveViewChange(f[e])}),this.control=this.injector.get(A.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},x.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),re(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=J(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.onValidatorChange())},x.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},x.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(jn(this.navigationView),jn(this.monthView)))},x.prototype.ngOnDestroy=function(){this.scrollSyncService.destroy(),this.domEvents.forEach(function(e){return e()}),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0},x.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},x.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;r(e)&&e.focus()},x.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;r(e)&&e.blur()},x.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},x.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(k.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=J(e,this.min,this.max),this.detectChanges())},x.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=p.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},x.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},x.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&&de(a,this.selectedDates)?this.emitSameDate():i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(function(){t.selectedDates=a.map(function(e){return k.cloneDate(e)}),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()}))},x.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},x.prototype.registerOnChange=function(e){this.onControlChange=e},x.prototype.registerOnTouched=function(e){this.onControlTouched=e},x.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},x.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},x.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},x.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case f.month:return this.monthCellTemplateRef||this.cellTemplateRef;case f.year:return this.yearCellTemplateRef;case f.decade:return this.decadeCellTemplateRef;case f.century:return this.centuryCellTemplateRef;default:return null}},x.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},x.prototype.emitNavigate=function(e){var t=f[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},x.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},x.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},x.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},x.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.performSelection(t,e)},x.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:se(e)})})},x.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&Y(this.control)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges()))},x.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},x.prototype.handleMultiViewCalendarKeydown=function(e){r(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault()},x.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},x.prototype.verifyChanges=function(){if(h.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},x.prototype.verifyValue=function(e){if(h.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+Hn+" 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 "+Hn+" for possible resolution.")}},x.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",$),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},x.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},x.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},x.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=k.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},x.prototype.handleKeydown=function(e){var t;"classic"===this.type&&this.multiViewCalendar.isHeaderActive||(t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),r(this.pickerService)&&t&&e.altKey||(r(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),t=J(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,t)||(this.focusedDate=t,this.detectChanges(),e.preventDefault()),e.keyCode===m.Keys.Enter&&this.performSelection(this.focusedDate,e)))},x.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},x.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},x.prototype.setAriaActivedescendant=function(){var e;r(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))&&("classic"===this.type?this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant"):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)))},x.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(se(e)):e.map(function(e){return k.cloneDate(e)})},x.prototype.performSelection=function(e,t){t=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=t.rangePivot,this.handleDateChange({selectedDates:t.selectedDates,focusedDate:e})},x);function x(e,t,n,i,a,o,r,s,l,c,p,u,d){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=a,this.cdr=o,this.ngZone=r,this.injector=s,this.scrollSyncService=l,this.disabledDatesService=c,this.localization=p,this.selectionService=u,this.pickerService=d,this.id=m.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.activeViewDateChange=new h.EventEmitter,this.valueChange=new h.EventEmitter,this.isActive=!1,this.cellUID=m.guid(),this.selectedDates=[],this._min=new Date(we),this._max=new Date(De),this._focusedDate=te(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,L.validatePackage(ke),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}$n.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$n,deps:[{token:d},{token:Dn},{token:i.ElementRef},{token:ft},{token:i.Renderer2},{token:i.ChangeDetectorRef},{token:i.NgZone},{token:i.Injector},{token:Sn},{token:y},{token:a.LocalizationService},{token:yt},{token:Rn,optional:!0}],target:i.ɵɵFactoryTarget.Component}),$n.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:$n,selector:"kendo-calendar",inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},host:{properties:{"class.k-week-number":"this.weekNumber","attr.id":"this.widgetId","attr.tabindex":"this.calendarTabIndex","attr.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[d,_n,V,Yn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},ft,Sn,yt],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Mn,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:Lt,descendants:!0},{propertyName:"monthView",first:!0,predicate:Vn,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Bt,descendants:!0}],exportAs:["kendo-calendar"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focus)="handleFocus()"\n (blur)="handleBlur($event)"\n (keydown)="handleMultiViewCalendarKeydown($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n ',isInline:!0,components:[{type:Lt,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Vn,selector:"kendo-calendar-viewlist",inputs:["cellTemplateRef","weekNumberTemplateRef","headerTitleTemplateRef","activeView","cellUID","focusedDate","isActive","min","max","selectedDates","weekNumber"],outputs:["cellClick","weekNumberCellClick","activeDateChange","todayButtonClick","pageChange"]},{type:ye.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Bt,selector:"kendo-multiviewcalendar",inputs:["id","focusedDate","min","max","rangeValidation","disabledDatesRangeValidation","selection","value","disabled","tabindex","tabIndex","isActive","disabledDates","activeView","bottomView","topView","showViewHeader","animateNavigation","weekNumber","activeRangeEnd","selectionRange","views","orientation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur"],exportAs:["kendo-multiviewcalendar"]},{type:Nn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Bn,selector:"[kendoCalendarLocalizedMessages]"},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:$n,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[d,_n,V,Yn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},ft,Sn,yt],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focus)="handleFocus()"\n (blur)="handleBlur($event)"\n (keydown)="handleMultiViewCalendarKeydown($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:d},{type:Dn},{type:i.ElementRef},{type:ft},{type:i.Renderer2},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:i.Injector},{type:Sn},{type:y},{type:a.LocalizationService},{type:yt},{type:Rn,decorators:[{type:h.Optional}]}]},propDecorators:{id:[{type:h.Input}],focusedDate:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],selection:[{type:h.Input}],value:[{type:h.Input}],disabled:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],disabledDates:[{type:h.Input}],navigation:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],type:[{type:h.Input}],animateNavigation:[{type:h.Input}],weekNumber:[{type:h.Input},{type:h.HostBinding,args:["class.k-week-number"]}],activeViewChange:[{type:h.Output}],navigate:[{type:h.Output}],activeViewDateChange:[{type:h.Output}],valueChange:[{type:h.Output}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Mn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[Lt,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Vn,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Bt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],calendarTabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}]}});function Un(){return function(e,t){return!r(e.value)&&t?{incompleteDate:!0}:null}}(_n=Kn=Kn||{})[_n.Up=0]="Up",_n[_n.Down=1]="Down",_n[_n.None=2]="None",tt(Wn,qn=t.ComponentMessages);var Kn,qn,V=Wn;function Wn(){return null!==qn&&qn.apply(this,arguments)||this}V.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,deps:null,target:i.ɵɵFactoryTarget.Directive}),V.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:V,selector:"kendo-dateinput-messages-base",inputs:{decrement:"decrement",increment:"increment"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});tt(Xn,Zn=V);var Zn,Gn=Xn;function Xn(e){var t=Zn.call(this)||this;return t.service=e,t}Gn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Gn,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Gn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Gn,selector:"[kendoDateInputLocalizedMessages]",providers:[{provide:V,useExisting:h.forwardRef(function(){return Gn})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Gn,decorators:[{type:h.Directive,args:[{providers:[{provide:V,useExisting:h.forwardRef(function(){return Gn})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});function Qn(e){return e.replace(/^0*/,"")}var Jn=/year|month|<day>/,ei=/hour|minute|second|millisecond/,ti=/d|M|H|h|m|s/,ni=function(){this.symbols=""},ii=(S.prototype.hasValue=function(){var n=this;return this.intl.splitDateFormat(this.format).reduce(function(e,t){return e||"literal"!==t.type&&"dayperiod"!==t.type&&n.getExisting(t.pattern[0])},!1)},S.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},S.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return k.cloneDate(this.value)},S.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},S.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}},S.prototype.setExisting=function(e,t){switch(e){case"y":!1===(this.year=t)&&this.value.setFullYear(2e3);break;case"M":!1===(this.month=t)&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},S.prototype.modifyPart=function(e,t){var n=k.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=k.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}0<(n=this.shouldNormalizeCentury()?this.normalizeCentury(n):n).getFullYear()&&(this.setExisting(e,!0),this.value=n)},S.prototype.parsePart=function(e,t,n){if(t){for(var i=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,r=!1,s="",l="",c="",p=0;p<i.length;p++)o[p]===e?(l+=this.getExisting(e)?i[p]:"0",r=!0):r?c+=i[p]:s+=i[p];var u=l.length-3,d=null,h=this.matchMonth(t),m=this.matchDayPeriod(t,e),g="0"===t,f=(this.leadingZero||{})[e]||0;g?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,y=n?t:l.substring(p)+t,b=("S"===e&&n&&(y=Array(o.match(/S+(\1)/)[0].length).join("0")+y),parseInt(y,10));if((d=this.intl.parseDate(s+y+c,this.format))||isNaN(b)||isNaN(parseInt(t,10))||("M"!==e||h||-1<(b=b-1)&&b<12&&((d=k.cloneDate(this.value)).setMonth(b),d.getMonth()!==b&&(d=k.lastDayOfMonth(k.addMonths(d,-1)))),"y"===e&&(d=k.createDate(parseInt(y,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&&d.getDate()!==this.value.getDate()&&(d=k.lastDayOfMonth(k.addMonths(d,-1))))),d)return b=this.partPattern(a.partMap,e).pattern,v=this.intl.parseDate(""+s+this.peek(y,b)+c,this.format),b=this.patternLength(b)||b.length,y=f+(Qn(y)||t).length>=b,b=null===v||y,this.shouldNormalizeCentury()&&(d=this.normalizeCentury(d)),this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:b}}if(h&&(d=this.intl.parseDate(s+h+c,this.format)))return this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:!1};if(m&&(d=this.intl.parseDate(s+m+c,this.format)))return this.value=d,{value:this.value,switchToNext:!0};g&&this.setExisting(e,!1)}else this.resetLeadingZero(),this.setExisting(e,!1);return{value:null,switchToNext:!1}},S.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},S.prototype.setLeadingZero=function(e){this.leadingZero=e},S.prototype.normalizeCentury=function(e){var t,n;return r(e)?(t=!r(t=e)||isNaN(t.getTime())?0:Number(t.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t),Se(e,n+t)):e},S.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},S.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},S.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},S.prototype.peek=function(e,t){e=Qn(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},S.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),this.monthNames)for(;0<this.typedMonthPart.length;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(1<=n&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},S.prototype.matchDayPeriod=function(e,t){e=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(e))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(e))return this.dayPeriods.pm}return""},S.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},S.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},S.prototype.patternLength=function(e){return"y"===e[0]?4:ti.test(e)?2:0},S.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;0<r;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;t=new ni;return t.symbols=i.join(""),t.partMap=a,t},S.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;0<=o;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];0<=o&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},S.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]||("formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t})))},S.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},S);function S(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=k.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"},L.validatePackage(ke),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=k.cloneDate(i);else{this.value=k.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}Object.defineProperty(E.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,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=k.cloneDate(e),this.valueUpdate.emit(k.cloneDate(e)))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode));e=e||Pe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",e)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,e,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,e,this.fillMode))),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&!r(this.pickerService)&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!1,configurable:!0}),E.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},E.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.wrapper.nativeElement}))},E.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?kt(this.min):g,this.maxValidator=this.rangeValidation?Ct(this.max):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&k.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(A.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},E.prototype.ngAfterViewInit=function(){this.setComponentClasses()},E.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},E.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=k.cloneDate(e),this.updateElementValue(this.isActive)},E.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=k.cloneDate(e),this.notify())},E.prototype.notify=function(){var e=this;this.ngZone.run(function(){e.onControlChange(k.cloneDate(e.value)),e.valueChange.emit(k.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=Kn.None,this.modifyDateSegmentValue(e)},E.prototype.modifyDateSegmentValue=function(e){var t,n=this.caret(),n=this.currentFormat[n[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;"S"!==n||this.steps.millisecond||(t=function(e){e=e&&e.match(/S+(\1)/);return e?e[0].length:0}(this.inputFormat),i=Math.pow(10,3-t)),this.kendoDate.modifyPart(n,e*i),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(n),this.updateIncompleteValidationStatus()},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(0<e?t[0]:t[1]-1),this.resetSegmentValue=!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;0<i&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;0<=a&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return a<i&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0)},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(){var e,t;this.hasMousedown=!1,this.isActive&&(t=this.inputElement.selectionStart!==this.inputElement.selectionEnd,e=r(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,t=!t&&e?0:this.caret()[0],this.selectNearestSegment(t))},E.prototype.handleDragAndDrop=function(e){e.preventDefault()},E.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},E.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,m.hasObservers(this.onFocus)?this.ngZone.run(function(){t.emitFocus(e)}):this.emitFocus(e)},E.prototype.handleBlur=function(e){var t=this;this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),m.hasObservers(this.onBlur)||Y(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,e=new ii(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return e.setLeadingZero(this.isActive?t:null),e},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,n=this.kendoDate.getTextAndFormat(n),i=!this.isActive&&r(this.placeholder)&&!this.kendoDate.hasValue(),a=this.inputElement;this.currentFormat=n[1],this.currentValue=i?"":n[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],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(m.isDocumentAvailable()&&document.activeElement!==a&&a.focus(),a.setSelectionRange(e,t)),i=[a.selectionStart,a.selectionEnd])}catch(e){i=[]}return i}},E.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||0<=n;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(0<=n&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},E.prototype.verifyRange=function(){if(h.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(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},E.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=J(e,this.min,this.max);this.autoCorrect&&!k.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,e=e.time;return{date:n||Jn.test(t.type),time:e||ei.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,t=+(e=r(e)&&this.kendoDate.shouldNormalizeCentury()?this.kendoDate.normalizeCentury(e):e)!=+this.value;this.writeValue(e),t&&this.notify()},E.prototype.bindEvents=function(){var e=this.wrapper.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",t),this.renderer.listen(e,"mousewheel",t),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))},E.prototype.handleMouseWheel=function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment(0<(e.wheelDelta||-e.detail)?-1:1):this.modifyDateSegmentValue(0<(e.wheelDelta||-e.detail)?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},E.prototype.handlePaste=function(){this.paste=!0},E.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode===m.Keys.Tab)this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault();else if(e.keyCode===m.Keys.Backspace)this.backspace=!0;else{switch(e.keyCode){case m.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case m.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case m.Keys.ArrowRight:this.switchDateSegment(1);break;case m.Keys.ArrowLeft:this.switchDateSegment(-1);break;case m.Keys.Home:this.selectNearestSegment(0);break;case m.Keys.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}},E.prototype.handleInput=function(){if(!this.disabled&&!this.readonly)if(this.paste)this.updateOnPaste(),this.paste=!1;else{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),e=n.substring(0,i),s=[];if(r===e&&0<i)return s.push([t[i-1],e[i-1]]),s;if(0===r.indexOf(e)&&(0===e.length||t[e.length-1]!==t[e.length])){var l="";1===e.length&&s.push([t[0],e[0]]);for(var c=e.length;c<r.length;c++)t[c]!==l&&"_"!==t[c]&&(l=t[c],s.push([l,""]));return s}if(0!==e.indexOf(r)&&"_"!==t[i-1])return" "===e[e.length-1]||e[e.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],e[i-1]]];for(var p=t[0],c=Math.max(0,r.length-1);c<t.length;c++)if("_"!==t[c]){p=t[c];break}return[[p,e[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(xe(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&&(r(this.ngControl)&&!r(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):r(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},E.prototype.setSpinnerFill=function(e,t,n){"none"!==n&&(this.renderer.removeClass(e,"k-button-"+n),this.renderer.removeClass(e,"k-button-"+n+"-base")),this.renderer.addClass(e,"k-button-"+t),this.renderer.addClass(e,"k-button-"+t+"-base")},E.prototype.setComponentClasses=function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var ai=E;function E(e,t,n,i,a,o,r,s){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=a,this.injector=o,this.localization=r,this.pickerService=s,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new h.EventEmitter,this.valueUpdate=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.arrow=Kn,this.arrowDirection=Kn.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=g,this.maxValidator=g,this.incompleteValidator=g,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this._size=Fe,this._rounded=Ne,this._fillMode=Pe,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}ai.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ai,deps:[{token:i.ChangeDetectorRef},{token:o.IntlService},{token:i.Renderer2},{token:i.ElementRef},{token:i.NgZone},{token:i.Injector},{token:a.LocalizationService},{token:Rn,optional:!0}],target:i.ɵɵFactoryTarget.Component}),ai.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ai,selector:"kendo-dateinput",inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",tabIndex:"tabIndex",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",max:"max",min:"min",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",value:"value",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-input":"this.wrapperClass","class.k-dateinput":"this.wrapperClass","class.k-disabled":"this.disabledClass"}},providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ai})},t.LocalizationService],viewQueries:[{propertyName:"dateInput",first:!0,predicate:["dateInput"],descendants:!0,static:!0},{propertyName:"spinup",first:!0,predicate:["spinup"],descendants:!0},{propertyName:"spindown",first:!0,predicate:["spindown"],descendants:!0}],exportAs:["kendo-dateinput"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">\n <button\n #spinup\n tabindex="-1"\n class="k-spinner-increase k-button k-icon-button"\n [class.k-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-button-icon k-icon k-i-caret-alt-up"></span>\n </button>\n <button\n #spindown\n tabindex="-1"\n class="k-spinner-decrease k-button k-icon-button"\n (click)="handleButtonClick(-1)"\n [class.k-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-button-icon k-icon k-i-caret-alt-down"></span>\n </button>\n </span>\n ',isInline:!0,directives:[{type:Gn,selector:"[kendoDateInputLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ai,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ai}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ai})},t.LocalizationService],selector:"kendo-dateinput",template:'\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment="kendo.dateinput.increment|The label for the **Increment** button in the DateInput"\n increment="Increase value"\n\n i18n-decrement="kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n #dateInput\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [attr.role]="role"\n [attr.aria-readonly]="ariaReadOnly"\n [id]="focusableId"\n [title]="title"\n [tabindex]="tabindex"\n [disabled]="disabled"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [attr.aria-expanded]="isPopupOpen"\n [attr.aria-haspopup]="hasPopup"\n [kendoEventsOutsideAngular]="{\n click: handleClick,\n focus: handleFocus,\n mousedown: handleMousedown,\n touchstart: handleMousedown,\n dragstart: handleDragAndDrop,\n drop: handleDragAndDrop,\n blur: handleBlur\n }"\n [scope]="this"\n />\n <span *ngIf="spinners" class="k-input-spinner k-spin-button" (mousedown)="$event.preventDefault()">\n <button\n #spinup\n tabindex="-1"\n class="k-spinner-increase k-button k-icon-button"\n [class.k-active]="arrowDirection === arrow.Up"\n (mousedown)="arrowDirection = arrow.Up"\n (mouseleave)="arrowDirection = arrow.None"\n (click)="handleButtonClick(1)"\n [title]="localization.get(\'increment\')"\n [attr.aria-label]="localization.get(\'increment\')">\n <span class="k-button-icon k-icon k-i-caret-alt-up"></span>\n </button>\n <button\n #spindown\n tabindex="-1"\n class="k-spinner-decrease k-button k-icon-button"\n (click)="handleButtonClick(-1)"\n [class.k-active]="arrowDirection === arrow.Down"\n (mousedown)="arrowDirection = arrow.Down"\n (mouseleave)="arrowDirection = arrow.None"\n [title]="localization.get(\'decrement\')"\n [attr.aria-label]="localization.get(\'decrement\')">\n <span class="k-button-icon k-icon k-i-caret-alt-down"></span>\n </button>\n </span>\n '}]}],ctorParameters:function(){return[{type:i.ChangeDetectorRef},{type:o.IntlService},{type:i.Renderer2},{type:i.ElementRef},{type:i.NgZone},{type:i.Injector},{type:a.LocalizationService},{type:Rn,decorators:[{type:h.Optional}]}]},propDecorators:{focusableId:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],title:[{type:h.Input}],tabindex:[{type:h.Input}],role:[{type:h.Input}],ariaReadOnly:[{type:h.Input}],tabIndex:[{type:h.Input}],format:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],steps:[{type:h.Input}],max:[{type:h.Input}],min:[{type:h.Input}],rangeValidation:[{type:h.Input}],autoCorrect:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],value:[{type:h.Input}],spinners:[{type:h.Input}],isPopupOpen:[{type:h.Input}],hasPopup:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],valueUpdate:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],dateInput:[{type:h.ViewChild,args:["dateInput",{static:!0}]}],wrapperClass:[{type:h.HostBinding,args:["class.k-input"]},{type:h.HostBinding,args:["class.k-dateinput"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],spinup:[{type:h.ViewChild,args:["spinup",{static:!1}]}],spindown:[{type:h.ViewChild,args:["spindown",{static:!1}]}]}});ri.prototype.preventDefault=function(){this.prevented=!0},ri.prototype.isDefaultPrevented=function(){return this.prevented};var oi=ri;function ri(){this.prevented=!1}function si(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}var li,ci=new h.InjectionToken("dateinputs-touch-enabled"),pi=(tt(ui,li=w),Object.defineProperty(ui.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),ui);function ui(e){var t=li.call(this)||this;return t.service=e,t}pi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pi,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),pi.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:pi,selector:"kendo-calendar-messages",providers:[{provide:w,useExisting:h.forwardRef(function(){return pi})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pi,decorators:[{type:h.Component,args:[{providers:[{provide:w,useExisting:h.forwardRef(function(){return pi})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});tt(hi,di=t.ComponentMessages);var di,Yn=hi;function hi(){return null!==di&&di.apply(this,arguments)||this}Yn.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yn,deps:null,target:i.ɵɵFactoryTarget.Directive}),Yn.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Yn,selector:"kendo-datepicker-messages-base",inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yn,decorators:[{type:h.Directive,args:[{selector:"kendo-datepicker-messages-base"}]}],propDecorators:{today:[{type:h.Input}],toggle:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt(fi,mi=Yn);var mi,gi=fi;function fi(e){var t=mi.call(this)||this;return t.service=e,t}gi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:gi,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),gi.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:gi,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:Yn,useExisting:h.forwardRef(function(){return gi})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:gi,decorators:[{type:h.Directive,args:[{providers:[{provide:Yn,useExisting:h.forwardRef(function(){return gi})}],selector:"[kendoDatePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(R.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ge("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Pe;"none"!==e&&(this.renderer.addClass(this.toggleButton.nativeElement,ve("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,ve("input",e))),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&m.hasObservers(this.close))?this.togglePopup(e):this.zone.run(function(){t.togglePopup(e)}))},enumerable:!1,configurable:!0}),R.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},R.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(A.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},R.prototype.ngAfterViewInit=function(){this.setComponentClasses()},R.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.disabledDatesValidateFn=this.disabledDatesValidation?si(this.disabledDatesService.isDateDisabled):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange())},R.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(R.prototype,"isOpen",{get:function(){return this.show},enumerable:!1,configurable:!0}),R.prototype.writeValue=function(e){this.verifyValue(e),this.value=k.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},R.prototype.registerOnChange=function(e){this.onControlChange=e},R.prototype.registerOnTouched=function(e){this.onControlTouched=e},R.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},R.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},R.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},R.prototype.focus=function(){this.input.focus()},R.prototype.blur=function(){(this.calendar||this.input).blur()},R.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},R.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},R.prototype.handleMousedown=function(e){e.preventDefault()},R.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(k.cloneDate(e)),this.valueChange.emit(k.cloneDate(e))},R.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(R.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!1,configurable:!0}),R.prototype.mergeTime=function(e){return this.value&&e?xe(e,this.value):e},R.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,e=e.target;i===m.Keys.Escape&&(this.show=!1),t&&(i!==m.Keys.ArrowDown||this.show||(this.show=!0),i===m.Keys.ArrowUp&&(this.show=!1)),i===m.Keys.Tab&&this.show&&this.calendar.isActive&&(t=this.calendarType,i=n,!!r(n=e)&&("infinite"===t||"classic"===t&&i&&n.classList.contains("k-calendar")||!i&&n.classList.contains("k-calendar-nav-next")))&&(this.input.focus(),this.show=!1)},R.prototype.togglePopup=function(e){var t=new oi;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},R.prototype._toggle=function(e){var t=this;e!==this._show&&((this._show=e)?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()))},R.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},R.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())},R.prototype.verifySettings=function(){if(h.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.")},R.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},R.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),ne()&&(this.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},R.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},R.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},R.prototype.handleBlur=function(e){var t=this,e=e&&U(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||Y(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},R.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},R.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},R.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},R.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,ge("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var vi=R;function R(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.disabledDatesService=l,this.touchEnabled=c,this.focusableId="k-"+m.guid(),this.activeView=f[f.month],this.bottomView=f[f.month],this.topView=f[f.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=k.cloneDate(we),this.max=k.cloneDate(De),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=m.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesValidateFn=g,this.incompleteValidator=g,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=Fe,this._rounded=Ne,this._fillMode=Pe,L.validatePackage(ke),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)))}vi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vi,deps:[{token:i.NgZone},{token:a.LocalizationService},{token:i.ChangeDetectorRef},{token:be.PopupService},{token:i.ElementRef},{token:i.Renderer2},{token:i.Injector},{token:Rn},{token:y},{token:ci,optional:!0}],target:i.ɵɵFactoryTarget.Component}),vi.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vi,selector:"kendo-datepicker",inputs:{cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],focusableId:"focusableId",activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",popupSettings:"popupSettings",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",title:"title",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},host:{properties:{"class.k-datepicker":"this.wrapperClasses","class.k-input":"this.wrapperClasses","class.k-disabled":"this.disabledClass"}},providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return vi})},t.LocalizationService,Rn,y,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Mn,descendants:!0}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,static:!0},{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0}],exportAs:["kendo-datepicker"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n fillMode="none"\n rounded="none"\n size="none"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-calendar"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n ',isInline:!0,components:[{type:ai,selector:"kendo-dateinput",inputs:["focusableId","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:$n,selector:"kendo-calendar",inputs:["id","focusedDate","min","max","rangeValidation","selection","value","disabled","tabindex","tabIndex","disabledDates","navigation","activeView","bottomView","topView","type","animateNavigation","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate"],outputs:["activeViewChange","navigate","activeViewDateChange","valueChange"],exportAs:["kendo-calendar"]},{type:pi,selector:"kendo-calendar-messages"}],directives:[{type:gi,selector:"[kendoDatePickerLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return vi})},t.LocalizationService,Rn,y,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n fillMode="none"\n rounded="none"\n size="none"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-calendar"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]="calendarType"\n [min]="min"\n [max]="max"\n [navigation]="navigation"\n [animateNavigation]="animateCalendarNavigation"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [navigationItemTemplate]="navigationItemTemplate"\n [focusedDate]="focusedDate"\n [value]="value"\n (valueChange)="handleChange(mergeTime($event))"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown\n }"\n [scope]="this"\n [disabledDates]="disabledDates"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n <ng-template>\n '}]}],ctorParameters:function(){return[{type:i.NgZone},{type:a.LocalizationService},{type:i.ChangeDetectorRef},{type:be.PopupService},{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:Rn},{type:y},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ci]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!0}]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Mn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],focusableId:[{type:h.Input}],activeView:[{type:h.Input}],bottomView:[{type:h.Input}],topView:[{type:h.Input}],calendarType:[{type:h.Input}],animateCalendarNavigation:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],popupSettings:[{type:h.Input}],navigation:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],focusedDate:[{type:h.Input}],value:[{type:h.Input}],format:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],disabledDates:[{type:h.Input}],title:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesValidation:[{type:h.Input}],weekNumber:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],close:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-datepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}]}});function yi(e,t){return Ti(24+e-t)}function bi(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:Ee(e,n)}}var ki,_n="dayperiod",w="hour",Ci="millisecond",wi="minute",Di="second",Ti=(ki=24,function(e){return e%ki}),Ii=bi(0),Vi=bi(23),xi=(Si.prototype.apply=function(e,t){return Ee(e,t.getHours())},Si.prototype.configure=function(e){var t=this,n=e.boundRange,n=void 0===n?this.boundRange:n,i=e.insertUndividedMax,i=void 0===i?this.insertUndividedMax:i,a=e.min,a=void 0===a?this.min:a,o=e.max,o=void 0===o?this.max:o,r=e.part,e=e.step,e=void 0===e?this.step:e;this.boundRange=n,this.insertUndividedMax=i,this.toListItem=function(e){e=Ee(Ce,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},Si.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Ti(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Si.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Si.prototype.limitRange=function(e,t,n){return this.boundRange?[Ii(e,n),Vi(t,n)]:[e,t]},Si.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},Si.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Si.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},Si.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},Si.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getHours()),e.splice(this.selectedIndex(t),0,n)),e},Si.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(yi(e,t)/this.step)+1},Si.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Si.prototype.isLastMissing=function(e){return this.isMissing(Ee(this.max,this.lastHour(e)))},Si.prototype.divideByStep=function(e){return yi(e.getHours(),this.min.getHours())/this.step},Si.prototype.lastHour=function(e){return this.range(e)[1]},Si.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},Si);function Si(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}xi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),xi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:xi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Ei(e,t){return Mi(60+e-t)}function Ri(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:Re(e,n)}}Oi=60;var Oi,Mi=function(e){return e%Oi},Ni=Ri(0),Fi=Ri(59),Pi=(Ai.prototype.apply=function(e,t){return Re(e,t.getMinutes())},Ai.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Re(Ce,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Ai.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Mi(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Ai.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Ai.prototype.limitRange=function(e,t,n){return[Ni(e,n),Fi(t,n)]},Ai.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},Ai.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Ai.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},Ai.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Ai.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMinutes()),e.splice(this.selectedIndex(t),0,n)),e},Ai.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(Ei(e,t)/this.step)+1},Ai.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Ai.prototype.isLastMissing=function(e){return this.isMissing(Re(this.max,this.lastMinute(e)))},Ai.prototype.divideByStep=function(e){return Ei(e.getMinutes(),this.min.getMinutes())/this.step},Ai.prototype.lastMinute=function(e){return this.range(e)[1]},Ai.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},Ai);function Ai(e){this.intl=e,this.insertUndividedMax=!1}Pi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Pi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Li(e,t){return ji(60+e-t)}function Bi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:Oe(e,n)}}zi=60;var zi,ji=function(e){return e%zi},Hi=Bi(0),_i=Bi(59),Yi=($i.prototype.apply=function(e,t){return Oe(e,t.getSeconds())},$i.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,o=e.part,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Oe(Ce,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},$i.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return ji(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},$i.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},$i.prototype.limitRange=function(e,t,n){return[Hi(e,n),_i(t,n)]},$i.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},$i.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},$i.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},$i.prototype.divideByStep=function(e){return Li(e.getSeconds(),this.min.getSeconds())/this.step},$i.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},$i.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getSeconds()),e.splice(this.selectedIndex(t),0,n)),e},$i.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(Li(e,t)/this.step)+1},$i.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},$i.prototype.isLastMissing=function(e){return this.isMissing(Oe(this.max,this.lastSecond(e)))},$i.prototype.lastSecond=function(e){return this.range(e)[1]},$i.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},$i);function $i(e){this.intl=e,this.insertUndividedMax=!1}Yi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Yi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Yi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Ui(e,t){return Wi(1e3+e-t)}function Ki(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:Me(e,n)}}qi=1e3;var qi,Wi=function(e){return e%qi},Zi=Ki(0),Gi=Ki(999),Xi=(Qi.prototype.apply=function(e,t){return Me(e,t.getMilliseconds())},Qi.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,n=void 0===n?this.insertUndividedMax:n,i=e.min,i=void 0===i?this.min:i,a=e.max,a=void 0===a?this.max:a,e=e.step,e=void 0===e?this.step:e;this.insertUndividedMax=n,this.toListItem=function(e){e=Me(Ce,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,this.step=e},Qi.prototype.data=function(e){var t,n,i=this,a=v(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Wi(t+e*n)}),a=Z(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Qi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Qi.prototype.limitRange=function(e,t,n){return[Zi(e,n),Gi(t,n)]},Qi.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},Qi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Qi.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},Qi.prototype.divideByStep=function(e){return Ui(e.getMilliseconds(),this.min.getMilliseconds())/this.step},Qi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},Qi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMilliseconds()),e.splice(this.selectedIndex(t),0,n)),e},Qi.prototype.countFromMin=function(e){var e=v(this.range(e),2),t=e[0],e=e[1];return Math.floor(Ui(e,t)/this.step)+1},Qi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Qi.prototype.isLastMissing=function(e){return this.isMissing(Me(this.max,this.lastMillisecond(e)))},Qi.prototype.lastMillisecond=function(e){return this.range(e)[1]},Qi.prototype.range=function(e){var e=v(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMilliseconds(),e.getMilliseconds()]},Qi);function Qi(e){this.intl=e,this.insertUndividedMax=!1}Xi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),Xi.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});function Ji(e,t){return(e=k.cloneDate(e)).setHours(t),e}function ea(e){return null!==e&&e<12}function ta(e,t,n){return!t&&!n||t<=e&&e<=n}function na(e,t,n){return!t&&!n||t<=e||e<=n}aa.prototype.apply=function(e,t){var n,i=e.getHours(),a=ea(i),t=ea(t.getHours());return a&&t||!a&&!t?e:(n=(a=v(this.normalizedRange(),2))[0],a=void 0===(a=a[1])?24:a,Ji(e,Math.min(Math.max(n,i+(t?-12:12)),a||24)))},aa.prototype.configure=function(e){var t=e.min,t=void 0===t?this.min:t,n=e.max,n=void 0===n?this.max:n,e=e.part,e=void 0===e?this.part:e;this.min=t,this.max=n,this.part=e},aa.prototype.data=function(e){var t,n,i,a,o=this.part.names;return o?(t=[],n=(i=v(this.normalizedRange(),2))[0],i=i[1],o=this.intl.dateFormatNames(o),ea(n)&&t.push({text:o.am,value:Ji(this.min,n)}),null!==(a=i)&&(!a||11<a)&&t.push({text:o.pm,value:Ji(this.min,Math.max(12,i))}),this.min.getHours()!==n?t.reverse():t):[]},aa.prototype.isRangeChanged=function(e,t){return!1},aa.prototype.limitRange=function(e,t,n){return[e,t]},aa.prototype.total=function(){var e=v(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},aa.prototype.selectedIndex=function(e){return this.valueInList(e)?(e=Math.floor(e.getHours()/12),this.min.getHours()===this.normalizedRange()[0]?e:0===e?1:0):-1},aa.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?na:ta)(e.getHours(),this.min.getHours(),this.max.getHours())},aa.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var ia=aa;function aa(e){this.intl=e}ia.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ia,deps:[{token:o.IntlService}],target:i.ɵɵFactoryTarget.Injectable}),ia.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ia}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ia,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:o.IntlService}]}});var oa=ae("div"),ra=ae("ul"),sa=ae("li"),O=ae("span"),la=function(){return ra([sa("<span>02</span>","k-item")],"k-reset")},ca=m.isDocumentAvailable()?oa([O("hour","k-title k-timeselector-title"),oa([oa([la()],"k-time-container k-flex k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,pa=(ua.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},ua.prototype.calculateHeights=function(e){var t;m.isDocumentAvailable()&&(t=(e=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(ca),this.timeListHeight=t.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=t.querySelector("li").getBoundingClientRect().height,e.removeChild(t))},ua.prototype.isActive=function(e){return!(!m.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},ua);function ua(){}pa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pa,deps:[],target:i.ɵɵFactoryTarget.Injectable}),pa.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pa}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:pa,decorators:[{type:h.Injectable}]});function da(){return null}var ha={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]}},ma=((O={})[_n]=ia,O[w]=xi,O[wi]=Pi,O[Di]=Yi,O[Ci]=Xi,O),oa=(Object.defineProperty(ga.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),ga.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(ma[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=v(this.service.limitRange(this.min,this.max,t),2),a=i[0],i=i[1];(this.service.isRangeChanged(a,i)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:i}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},ga.prototype.ngOnInit=function(){var e=this,t=(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,"translateY("+this.topOffset+"px)");this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},ga.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},ga.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},ga.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},ga.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))},ga.prototype.handleItemClick=function(e){var e=it(e.target,function(e){return e.hasAttribute("data-timelist-item-index")},this.element.nativeElement);e&&(e=e.getAttribute("data-timelist-item-index"),this.handleChange(this.data[e]))},ga.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},ga.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},ga.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),e=Math.abs(Math.ceil(e)-i);return!(t===n&&e<2)&&((t=n<t)&&e>=this.bottomThreshold||!t&&e>this.topThreshold)?this.virtualization.itemOffset(n+1):i},ga.prototype.hasMissingValue=function(e){var t=e.previousValue,e=e.currentValue,t=t&&!this.service.valueInList(t),e=e&&!this.service.valueInList(e);return t||e},ga.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},ga.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},t=Object.assign({},t,e);return t.boundRange="hour"!==t.part.type,t},ga.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},ga.prototype.textHasChanged=function(e){var t=e.previousValue,e=e.currentValue;return!(!t||!e)&&(t=this.data[this.selectedIndex(t)],e=this.data[this.selectedIndex(e)],t&&e&&t.text!==e.text)},ga.prototype.handleKeyDown=function(e){var t=(ha[e.keyCode]||da)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},ga.prototype.bindEvents=function(){var t=this,e=(this.scrollSubscription=this.virtualization.scroll$().pipe(z.debounceTime(100),z.map(function(e){return e.target.scrollTop}),z.map(function(e){return t.itemOffset(e)}),z.map(function(e){return t.virtualization.itemIndex(e)})).subscribe(function(e){t.virtualization.scrollToIndex(e),t.handleChange(t.data[e])}),this.element.nativeElement);this.domEvents.push(this.renderer.listen(e,"mouseover",function(){return!t.isActive&&t.focus()}),this.renderer.listen(e,"click",function(){return t.focus()}),this.renderer.listen(e,"blur",function(){return t.isActive=!1}),this.renderer.listen(e,"focus",function(){return t.isActive=!0}),this.renderer.listen(e,"keydown",this.handleKeyDown.bind(this)))},ga);function ga(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=k.cloneDate(Ce),this.max=k.cloneDate(Ie),this.step=1,this.disabled=!1,this.valueChange=new h.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}oa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:oa,deps:[{token:i.ElementRef},{token:i.Injector},{token:pa},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Component}),oa.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:oa,selector:"kendo-timelist",inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},host:{properties:{"attr.tabindex":"this.tabIndex","class.k-time-list":"this.componentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:D,descendants:!0,static:!0}],usesOnChanges:!0,ngImport:i,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 ',isInline:!0,components:[{type:D,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:oa,decorators:[{type:h.Component,args:[{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 '}]}],ctorParameters:function(){return[{type:i.ElementRef},{type:i.Injector},{type:pa},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{min:[{type:h.Input}],max:[{type:h.Input}],part:[{type:h.Input}],step:[{type:h.Input}],disabled:[{type:h.Input}],value:[{type:h.Input}],valueChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[D,{static:!0}]}],tabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],componentClass:[{type:h.HostBinding,args:["class.k-time-list"]}]}});function fa(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function va(e,t){return fa(e,t)&&e.getSeconds()===t.getSeconds()}function ya(e){return function(t,n){return t.setHours.apply(t,nt([],v(e.map(function(e){return e(t,n)})))),t}}var ba,ka,Ca,la=[{type:w,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:wi,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return fa(e,t)?t.getMinutes():0}},{type:Di,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return va(e,t)?t.getSeconds():0}},{type:Ci,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return va(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],wa=function(n){return function(e,t){return n(e)}},Da=function(n){return function(e,t){return n(t)}},Ta=function(e){return ba.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?Da:wa)(e.getter)}));var t},Ia=(ka=ba=la,function(n){return ka.map(function(e){var i,a,o,t=n[e.type];return t?(i=e.getter,a=e.minGetter,o=t,function(e,t){var n=i(e),e=a(e,t),t=n-e;return t<0?e:n-(e=t%o)+(o/2<e?o:0)}):e.getter})}),O=(tt(Va,Ca=t.ComponentMessages),Va);function Va(){return null!==Ca&&Ca.apply(this,arguments)||this}O.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,deps:null,target:i.ɵɵFactoryTarget.Directive}),O.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-timepicker-messages-base",inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,decorators:[{type:h.Directive,args:[{selector:"kendo-timepicker-messages-base"}]}],propDecorators:{accept:[{type:h.Input}],acceptLabel:[{type:h.Input}],cancel:[{type:h.Input}],cancelLabel:[{type:h.Input}],now:[{type:h.Input}],nowLabel:[{type:h.Input}],toggle:[{type:h.Input}]}});tt(Ea,xa=O);var xa,Sa=Ea;function Ea(e){var t=xa.call(this)||this;return t.service=e,t}Sa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sa,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Sa.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Sa,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Sa})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Sa,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Sa})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});function Ra(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(la=Oa=Oa||{})[la.Left=0]="Left",la[la.Right=1]="Right",Object.defineProperty(M.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"current",{get:function(){return this._current},set:function(e){var t,n,i,a,o;this._current=(e=this.snapTime(k.cloneDate(e||Ce),this.min),t=this.min,n=this.max,e&&t&&n?(i=(o=W(e,t,n)).candidateValue,a=o.minValue,o=o.maxValue,i<a?xe(e,t):o<i?xe(e,n):e):e),h.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(function(e){t.renderer.removeClass(e.nativeElement,"k-focus")}),0<=e&&(e=this.listIndex(e),(e=this.timeListWrappers.toArray()[e])&&this.renderer.addClass(e.nativeElement,"k-focus")))},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cdr.markForCheck()})),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},M.prototype.ngOnChanges=function(e){this.init()},M.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(function(e){return e()})},M.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},M.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},M.prototype.handleAccept=function(){this.handleChange(this.mergeValue(k.cloneDate(this.value||k.getDate(ee())),this.current))},M.prototype.handleNow=function(){this.current=ee(),this.handleChange(this.current),this.cdr.markForCheck()},M.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},M.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},M.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},M.prototype.handleBlur=function(e){var t=U(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},M.prototype.containsElement=function(e){var t=this;return Boolean(at(e,function(e){return e===t.element.nativeElement}))},M.prototype.partStep=function(e){return this.steps[e.type]||1},M.prototype.init=function(e){var i;e&&!oe(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=ya(Ta(this.dateFormatParts))),e&&!oe(e,"steps")||(this.snapTime=(i=Ia(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,nt([],v(i.map(function(e){return e(n,t)})))),n})),e&&!oe(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&X(ee(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(Ra,[]).map(function(e){return t===Oa.Right?e.next:e.prev}).map(function(e){return e&&e.focus()})},M.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(k.cloneDate(e))},M.prototype.hasActiveButton=function(){var n=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce(function(e,t){return e||n.dom.isActive(t)},!1)},M.prototype.hasSteps=function(){var n=this,e=Object.keys(this.steps);return e.length!==e.reduce(function(e,t){return e+n.steps[t]},0)},M.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=ya(Ta(this.dateFormatParts)),this.cdr.markForCheck()},M.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)))})},M.prototype.handleKeydown=function(e){var t=e.keyCode,e=e.altKey,n=-1!==[m.Keys.ArrowLeft,m.Keys.ArrowRight].indexOf(t);r(this.pickerService)&&n&&e||(t!==m.Keys.Enter||this.hasActiveButton()?t!==m.Keys.ArrowLeft&&t!==m.Keys.ArrowRight||this.focusList(t===m.Keys.ArrowLeft?Oa.Left:Oa.Right):this.handleAccept())},M.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},M.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},M.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t};var Oa,la=M;function M(e,t,n,i,a,o,r,s){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=o,this.renderer=r,this.pickerService=s,this.format="t",this.min=k.cloneDate(Te),this.max=k.cloneDate(Ie),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new h.EventEmitter,this.valueReject=new h.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}la.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:la,deps:[{token:a.LocalizationService},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:o.IntlService},{token:pa},{token:i.NgZone},{token:i.Renderer2},{token:Rn,optional:!0}],target:i.ɵɵFactoryTarget.Component}),la.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:la,selector:"kendo-timeselector",inputs:{format:"format",min:"min",max:"max",cancelButton:"cancelButton",setButton:"setButton",nowButton:"nowButton",disabled:"disabled",steps:"steps",value:"value"},outputs:{valueChange:"valueChange",valueReject:"valueReject"},host:{properties:{"class.k-disabled":"this.disabledClass"}},providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timeselector"}],viewQueries:[{propertyName:"accept",first:!0,predicate:["accept"],descendants:!0},{propertyName:"cancel",first:!0,predicate:["cancel"],descendants:!0},{propertyName:"now",first:!0,predicate:["now"],descendants:!0},{propertyName:"timeLists",predicate:oa,descendants:!0},{propertyName:"timeListWrappers",predicate:["listWrapper"],descendants:!0}],exportAs:["kendo-timeselector"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"\n type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n ',isInline:!0,components:[{type:oa,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:Sa,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:la,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timeselector"}],selector:"kendo-timeselector",template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now"\n [attr.title]="localization.get(\'nowLabel\')"\n [attr.aria-label]="localization.get(\'nowLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'now\')}}</button>\n </div>\n <div class="k-time-list-container">\n <span class="k-time-highlight"></span>\n <ng-template ngFor [ngForOf]="dateFormatParts" let-part let-idx="index">\n <div\n #listWrapper\n class="k-time-list-wrapper"\n role="presentation" tabindex="-1"\n *ngIf="part.type !== \'literal\'"\n >\n <span class="k-title k-timeselector-title">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]="min"\n [max]="max"\n [part]="part"\n [step]="partStep(part)"\n [disabled]="disabled"\n [(value)]="current"\n [kendoEventsOutsideAngular]="{\n focus: handleListFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [attr.data-timelist-index]="idx"\n ></kendo-timelist>\n </div>\n <div class="k-time-separator" *ngIf="part.type === \'literal\'">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class="k-time-footer k-action-buttons k-actions k-actions-stretched" *ngIf="setButton || cancelButton">\n <button\n #cancel\n *ngIf="cancelButton"\n class="k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base"\n type="button"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'cancel\')}}</button>\n <button\n #accept\n *ngIf="setButton"\n type="button"\n class="k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }"\n [scope]="this"\n [disabled]="disabled"\n >{{localization.get(\'accept\')}}</button>\n </div>\n '}]}],ctorParameters:function(){return[{type:a.LocalizationService},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:o.IntlService},{type:pa},{type:i.NgZone},{type:i.Renderer2},{type:Rn,decorators:[{type:h.Optional}]}]},propDecorators:{accept:[{type:h.ViewChild,args:["accept",{static:!1}]}],cancel:[{type:h.ViewChild,args:["cancel",{static:!1}]}],now:[{type:h.ViewChild,args:["now",{static:!1}]}],timeLists:[{type:h.ViewChildren,args:[oa]}],timeListWrappers:[{type:h.ViewChildren,args:["listWrapper"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],format:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],cancelButton:[{type:h.Input}],setButton:[{type:h.Input}],nowButton:[{type:h.Input}],disabled:[{type:h.Input}],steps:[{type:h.Input}],value:[{type:h.Input}],valueChange:[{type:h.Output}],valueReject:[{type:h.Output}]}});tt(Fa,Ma=O),Object.defineProperty(Fa.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var Ma,Na=Fa;function Fa(e){var t=Ma.call(this)||this;return t.service=e,t}Na.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Na,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),Na.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Na,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Na})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Na,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Na})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});tt(La,Pa=O);var Pa,Aa=La;function La(e){var t=Pa.call(this)||this;return t.service=e,t}Aa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Aa,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Aa.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Aa,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Aa})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Aa,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Aa})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ba=new RegExp(w+"|"+wi+"|"+Di+"|"+Ci+"|"+_n+"|literal"),za=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||Te)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||Ie)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ge("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Pe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isActive",{get:function(){return this._active},set:function(e){var t;this._active=e,this.wrapper&&(t=this.wrapper.nativeElement,e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&m.hasObservers(this.close))?this.togglePopup(e):this.zone.run(function(){t.togglePopup(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!1,configurable:!0}),N.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},N.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.cdr.markForCheck()}),this.control=this.injector.get(A.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(function(){e.bindEvents()}))},N.prototype.ngAfterViewInit=function(){this.setComponentClasses()},N.prototype.ngOnChanges=function(e){var n,i;(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?(n=this.min,i=this.max,function(e){var t;return!(n&&i&&e.value)||(t={timeRangeError:{maxValue:i,minValue:n,value:e.value}},X(e.value,n,i))?null:t}):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange()),e.format&&this.verifyFormat()},N.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()},N.prototype.handleKeydown=function(e){var t=e.altKey,e=e.keyCode;e===m.Keys.Escape?this.show=!1:t&&(e===m.Keys.ArrowUp&&(this.show=!1),e!==m.Keys.ArrowDown||this.show||(this.show=!0))},N.prototype.writeValue=function(e){this.verifyValue(e),this.value=k.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},N.prototype.registerOnChange=function(e){this.onControlChange=e},N.prototype.registerOnTouched=function(e){this.onControlTouched=e},N.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},N.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},N.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},N.prototype.focus=function(){this.input.focus()},N.prototype.blur=function(){(this.timeSelector||this.input).blur()},N.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(N.prototype,"isOpen",{get:function(){return this.show},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),N.prototype.handleChange=function(e){var t=this;k.isEqual(this.value,e)?(this.focusInput(),this.show=!1):(this.value=k.cloneDate(e),this.zone.run(function(){t.focusInput(),t.show=!1,t.onControlChange(k.cloneDate(e)),t.valueChange.emit(k.cloneDate(e))}))},N.prototype.handleReject=function(){this.show=!1},N.prototype.handleInputChange=function(e){e=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(e)},N.prototype.handleMousedown=function(e){e.preventDefault()},N.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(N.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!1,configurable:!0}),N.prototype.normalizeTime=function(e){return xe(Ce,e)},N.prototype.mergeTime=function(e){return this.value&&e?xe(this.value,e):e},N.prototype.togglePopup=function(e){var t=new oi;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},N.prototype._toggle=function(e){var t=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),e?(e=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:e},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:e},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.show=!1})):(this.popupRef.close(),this.popupRef=null))},N.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},N.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())},N.prototype.verifyValue=function(e){if(h.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},N.prototype.verifyFormat=function(){if(h.isDevMode()&&this.intl.splitDateFormat(this.format).some(function(e){return!Ba.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")},N.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),ne()&&(this.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},N.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},N.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.zone.run(function(){e.onFocus.emit()}))},N.prototype.handleBlur=function(e){var t=this,e=e&&U(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||Y(this.control)?this.zone.run(function(){t.blurComponent(),t.cdr.markForCheck()}):this.blurComponent())},N.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},N.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run(function(){return e.onValidatorChange()})},N.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,ge("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},N);function N(e,t,n,i,a,o,r,s,l,c){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=a,this.renderer=o,this.injector=r,this.pickerService=s,this.intl=l,this.touchEnabled=c,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.wrapperClasses=!0,this.popupUID=m.guid(),this.onControlChange=g,this.onControlTouched=g,this.onValidatorChange=g,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=g,this.incompleteValidator=g,this._min=k.cloneDate(Te),this._max=k.cloneDate(Ie),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=Fe,this._rounded=Ne,this._fillMode=Pe,L.validatePackage(ke),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)))}za.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:za,deps:[{token:i.NgZone},{token:a.LocalizationService},{token:i.ChangeDetectorRef},{token:be.PopupService},{token:i.ElementRef},{token:i.Renderer2},{token:i.Injector},{token:Rn},{token:o.IntlService},{token:ci,optional:!0}],target:i.ɵɵFactoryTarget.Component}),za.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:za,selector:"kendo-timepicker",inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",steps:"steps",popupSettings:"popupSettings",tabindex:"tabindex",tabIndex:"tabIndex",title:"title",rangeValidation:"rangeValidation",value:"value",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},host:{properties:{"class.k-timepicker":"this.wrapperClasses","class.k-input":"this.wrapperClasses","class.k-disabled":"this.disabledClass"}},providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return za})},t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},Rn],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0},{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0}],exportAs:["kendo-timepicker"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:ai,selector:"kendo-dateinput",inputs:["focusableId","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:la,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Na,selector:"kendo-timeselector-messages"}],directives:[{type:Aa,selector:"[kendoTimePickerLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:za,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return za}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return za})},t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},Rn],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:i.NgZone},{type:a.LocalizationService},{type:i.ChangeDetectorRef},{type:be.PopupService},{type:i.ElementRef},{type:i.Renderer2},{type:i.Injector},{type:Rn},{type:o.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[ci]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!1}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{static:!1}]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],focusableId:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],format:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],cancelButton:[{type:h.Input}],nowButton:[{type:h.Input}],steps:[{type:h.Input}],popupSettings:[{type:h.Input}],tabindex:[{type:h.Input}],tabIndex:[{type:h.Input}],title:[{type:h.Input}],rangeValidation:[{type:h.Input}],value:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],valueChange:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],open:[{type:h.Output}],close:[{type:h.Output}],wrapperClasses:[{type:h.HostBinding,args:["class.k-timepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}]}});tt(Ha,ja=t.ComponentMessages);var ja,Ci=Ha;function Ha(){return null!==ja&&ja.apply(this,arguments)||this}Ci.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ci,deps:null,target:i.ɵɵFactoryTarget.Directive}),Ci.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ci,selector:"kendo-datetimepicker-messages-base",inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ci,decorators:[{type:h.Directive,args:[{selector:"kendo-datetimepicker-messages-base"}]}],propDecorators:{toggle:[{type:h.Input}],dateTab:[{type:h.Input}],dateTabLabel:[{type:h.Input}],timeTab:[{type:h.Input}],timeTabLabel:[{type:h.Input}],accept:[{type:h.Input}],acceptLabel:[{type:h.Input}],cancel:[{type:h.Input}],cancelLabel:[{type:h.Input}],today:[{type:h.Input}],now:[{type:h.Input}],nowLabel:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}]}});tt($a,_a=Ci);var _a,Ya=$a;function $a(e){var t=_a.call(this)||this;return t.service=e,t}Ya.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ya,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Directive}),Ya.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ya,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:Ci,useExisting:h.forwardRef(function(){return Ya})}],usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Ya,decorators:[{type:h.Directive,args:[{providers:[{provide:Ci,useExisting:h.forwardRef(function(){return Ya})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ua=new RegExp(w+"|"+wi+"|"+Di+"|"+_n+"|literal"),Ka="date",qa=(Object.defineProperty(F.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=k.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;e=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){e=Number(e);this._tabindex=isNaN(e)?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"min",{get:function(){return this._min},set:function(e){r(e)&&(this._min=k.cloneDate(e),this.calendarMin=k.getDate(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"max",{get:function(){return this._max},set:function(e){r(e)&&(this._max=k.cloneDate(e),this.calendarMax=me(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isOpen",{get:function(){return r(this.popupRef)},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||Ka,this.activeTab=this.defaultTab},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,ge("input",this.size));e=e||Fe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ge("input",e))),this._size=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,fe(this.rounded));e=e||Ne;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,fe(e)),this._rounded=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Pe;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return r(this.calendar)||r(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(r(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),F.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(z.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))),ne()&&this.subscriptions.add(this.ngZone.runOutsideAngular(function(){return p.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))}))},F.prototype.ngAfterViewInit=function(){this.setComponentClasses()},F.prototype.ngOnChanges=function(e){(r(e.min)||r(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?kt(this.min):g,this.maxValidateFn=this.rangeValidation?Ct(this.max):g,this.disabledDatesValidateFn=this.disabledDatesValidation?si(this.disabledDatesService.isDateDisabled):g,this.incompleteValidator=this.incompleteDateValidation?Un():g,this.onValidatorChange())},F.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},F.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent:this.input).focus()},F.prototype.blur=function(){(this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent:this.input).blur()},F.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((r(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},F.prototype.writeValue=function(e){this.value=e},F.prototype.registerOnChange=function(e){this.onControlChange=e},F.prototype.registerOnTouched=function(e){this.onControlTouched=e},F.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},F.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},F.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},F.prototype.isEmpty=function(){return!r(this.value)&&this.input.isEmpty()},F.prototype.handleIconClick=function(e){var t=this;this.disabled||this.readonly||(e.preventDefault(),e=!this.isOpen||m.hasObservers(this.close),this.run(e,function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))},F.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,m.hasObservers(this.onFocus)&&this.ngZone.run(function(){return e.onFocus.emit()}))},F.prototype.handleBlur=function(e){var t=this;this.isActive&&!this.focusTargetInComponent(e)&&(this.isActive=!1,e=this.wrapper.nativeElement.classList.contains("ng-untouched")||m.hasObservers(this.onBlur)||this.isOpen&&m.hasObservers(this.close),this.run(e,function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))},F.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(k.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},F.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=he(this.calendar.value,this.timeSelector.current),t=!k.isEqual(this.value,e)||m.hasObservers(this.close),this.run(t,function(){n.handleValueChange(e),n.togglePopup(!1)}))},F.prototype.handleCancel=function(){var e,t=this;this.isOpen&&(e=m.hasObservers(this.close),this.run(e,function(){return t.togglePopup(!1)}))},F.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},F.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},F.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e.keyCode,i=e.altKey;switch(n){case i&&m.Keys.ArrowUp:case m.Keys.Escape:this.handleCancel();break;case!this.isOpen&&i&&m.Keys.ArrowDown:this.ngZone.run(function(){return t.togglePopup(!0)});break;case i&&m.Keys.ArrowRight:this.changeActiveTab("time");break;case i&&m.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&r(this.calendarValue)&&m.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},F.prototype.handleTabOut=function(e){var t=e.keyCode,n=e.shiftKey,e=e.target,e=r(e.nextElementSibling)&&!e.nextElementSibling.disabled;t!==m.Keys.Tab||n||e||(this.input.focus(),this.handleCancel())},F.prototype.handleBackTabOut=function(e){var t=e.keyCode,e=e.shiftKey;t===m.Keys.Tab&&e&&this.input.focus()},F.prototype.popupButtonsClasses=function(e){return(this.size?ge("button",this.size):"")+" "+(this.rounded?fe(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+(e||"base"):"")},F.prototype.preventMouseDown=function(e){e.preventDefault()},F.prototype.verifyValue=function(e){if(h.isDevMode()&&r(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.")},F.prototype.verifyMinMaxRange=function(){if(h.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/.")},F.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce(function(e,t){return e+t.pattern},"")||"t"},F.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},F.prototype.timeFormatPartFilter=function(e,t,n){n=1<=t&&n[t-1];return n&&"literal"===e.type?Ua.test(n.type):Ua.test(e.type)},F.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new oi,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus()))},F.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},F.prototype.openPopup=function(){var e=this,t=(this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value),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()})},F.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},F.prototype.handleValueChange=function(e){k.isEqual(this.value,e)||(this.value=k.cloneDate(e),this.onControlChange(k.cloneDate(e)),this.valueChange.emit(k.cloneDate(e)))},F.prototype.focusTargetInComponent=function(e){var t;return!!r(e)&&(e=e.relatedTarget||document.activeElement,t=r(this.popupRef)&&this.popupRef.popupElement.contains(e),e=this.wrapper.nativeElement.contains(e),t||e)},F.prototype.setTimeSelectorMinMax=function(e){var t=r(e)&&k.isEqual(k.getDate(e),k.getDate(this.min)),t=(this.timeSelectorMin=k.cloneDate(t?this.min:Te),r(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:Ie)},F.prototype.setCalendarValue=function(e){var t=r(e)&&G(e,this.calendarMin,this.calendarMax);this.calendarValue=t?k.getDate(e):null},F.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},F.prototype.run=function(e,t){e?this.ngZone.run(function(){return t()}):t()},F.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})},F.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,ge("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,ge("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,fe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,ve("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,ve("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},F);function F(e,t,n,i,a,o,r,s,l,c){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=a,this.wrapper=o,this.touchEnabled=r,this.localization=s,this.disabledDatesService=l,this.renderer=c,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+m.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new h.EventEmitter,this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.activeTab=Ka,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(Te),this.timeSelectorMax=k.cloneDate(Ie),this.calendarValue=null,this.calendarMin=k.cloneDate(we),this.calendarMax=me(De),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=Ka,this._min=he(we,Te),this._max=he(De,Ie),this._isActive=!1,this.onControlTouched=g,this.onControlChange=g,this.onValidatorChange=g,this.minValidateFn=g,this.maxValidateFn=g,this.disabledDatesValidateFn=g,this.incompleteValidator=g,this.subscriptions=new p.Subscription,this._size=Fe,this._rounded=Ne,this._fillMode=Pe,L.validatePackage(ke)}qa.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:qa,deps:[{token:be.PopupService},{token:o.IntlService},{token:i.ChangeDetectorRef},{token:Rn},{token:i.NgZone},{token:i.ElementRef},{token:ci},{token:a.LocalizationService},{token:y},{token:i.Renderer2}],target:i.ɵɵFactoryTarget.Component}),qa.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:qa,selector:"kendo-datetimepicker",inputs:{value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",focusedDate:"focusedDate",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",defaultTab:"defaultTab",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},host:{properties:{"class.k-datetimepicker":"this.hostClasses","class.k-input":"this.hostClasses","class.k-disabled":"this.disabledClass"}},providers:[Rn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return qa})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:It,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Vt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:xt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:St,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Et,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Rt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Ot,descendants:!0}],viewQueries:[{propertyName:"toggleButton",first:!0,predicate:["toggleButton"],descendants:!0,static:!0},{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef,static:!0},{propertyName:"popupTemplate",first:!0,predicate:["popupTemplate"],descendants:!0,read:h.TemplateRef,static:!0}],exportAs:["kendo-datetimepicker"],usesOnChanges:!0,ngImport:i,template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [focusedDate]="focusedDate"\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [ngClass]="popupButtonsClasses()"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-accept"\n [ngClass]="popupButtonsClasses(\'primary\')"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:ai,selector:"kendo-dateinput",inputs:["focusableId","disabled","readonly","title","tabindex","role","ariaReadOnly","tabIndex","format","formatPlaceholder","placeholder","steps","max","min","rangeValidation","autoCorrect","incompleteDateValidation","twoDigitYearMax","value","spinners","isPopupOpen","hasPopup","size","rounded","fillMode"],outputs:["valueChange","valueUpdate","focus","blur"],exportAs:["kendo-dateinput"]},{type:$n,selector:"kendo-calendar",inputs:["id","focusedDate","min","max","rangeValidation","selection","value","disabled","tabindex","tabIndex","disabledDates","navigation","activeView","bottomView","topView","type","animateNavigation","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate"],outputs:["activeViewChange","navigate","activeViewDateChange","valueChange"],exportAs:["kendo-calendar"]},{type:pi,selector:"kendo-calendar-messages"},{type:la,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Na,selector:"kendo-timeselector-messages"}],directives:[{type:Ya,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:ye.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:i.ChangeDetectionStrategy.OnPush}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:qa,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[Rn,t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:A.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:A.NG_VALIDATORS,useExisting:h.forwardRef(function(){return qa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return qa})}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [focusedDate]="focusedDate"\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [ngClass]="popupButtonsClasses()"\n [attr.title]="localization.get(\'cancelLabel\')"\n [attr.aria-label]="localization.get(\'cancelLabel\')"\n [kendoEventsOutsideAngular]="{\n click: handleCancel\n }"\n [scope]="this"\n >\n {{localization.get(\'cancel\')}}\n </button>\n <button\n type="button"\n class="k-button k-time-accept"\n [ngClass]="popupButtonsClasses(\'primary\')"\n [attr.title]="localization.get(\'acceptLabel\')"\n [attr.aria-label]="localization.get(\'acceptLabel\')"\n [disabled]="!calendarValue"\n [kendoEventsOutsideAngular]="{\n click: handleAccept\n }"\n [scope]="this"\n >\n {{localization.get(\'accept\')}}\n </button>\n </div>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:be.PopupService},{type:o.IntlService},{type:i.ChangeDetectorRef},{type:Rn},{type:i.NgZone},{type:i.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[ci]}]},{type:a.LocalizationService},{type:y},{type:i.Renderer2}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-datetimepicker"]},{type:h.HostBinding,args:["class.k-input"]}],disabledClass:[{type:h.HostBinding,args:["class.k-disabled"]}],toggleButton:[{type:h.ViewChild,args:["toggleButton",{static:!0}]}],value:[{type:h.Input}],format:[{type:h.Input}],twoDigitYearMax:[{type:h.Input}],tabindex:[{type:h.Input}],disabledDates:[{type:h.Input}],popupSettings:[{type:h.Input}],focusableId:[{type:h.Input}],title:[{type:h.Input}],disabled:[{type:h.Input}],readonly:[{type:h.Input}],readOnlyInput:[{type:h.Input}],cancelButton:[{type:h.Input}],formatPlaceholder:[{type:h.Input}],placeholder:[{type:h.Input}],steps:[{type:h.Input}],focusedDate:[{type:h.Input}],calendarType:[{type:h.Input}],animateCalendarNavigation:[{type:h.Input}],weekNumber:[{type:h.Input}],min:[{type:h.Input}],max:[{type:h.Input}],rangeValidation:[{type:h.Input}],disabledDatesValidation:[{type:h.Input}],incompleteDateValidation:[{type:h.Input}],valueChange:[{type:h.Output}],open:[{type:h.Output}],close:[{type:h.Output}],onFocus:[{type:h.Output,args:["focus"]}],onBlur:[{type:h.Output,args:["blur"]}],defaultTab:[{type:h.Input}],size:[{type:h.Input}],rounded:[{type:h.Input}],fillMode:[{type:h.Input}],cellTemplate:[{type:h.ContentChild,args:[It,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Vt,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[xt,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[St,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[Et,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[Rt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[Ot,{static:!1}]}],container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!0}]}],popupTemplate:[{type:h.ViewChild,args:["popupTemplate",{read:h.TemplateRef,static:!0}]}]}});function Wa(e){return e&&e.isActive||!1}var w=function(e){this.templateRef=e},Za=(w.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,deps:[{token:i.TemplateRef}],target:i.ɵɵFactoryTarget.Directive}),w.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:w,selector:"[kendoDateRangePopupTemplate]",ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:w,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:i.TemplateRef}]}}),Object.defineProperty(Ga.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(Ga.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),Ga.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},Ga.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},Ga.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},Ga.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},Ga.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=Wa(e),n=Wa(this.startInput$.value),i=Wa(this.endInput$.value);return t||n||i||(t=e)&&t.hasActiveContent()||!1},Ga.prototype.registerStartInput=function(e){this.startInput$.next(e)},Ga.prototype.registerEndInput=function(e){this.endInput$.next(e)},Ga.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},Ga.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},Ga.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},Ga.prototype.setRange=function(e){this.range$.next(e=void 0===e?Ve:e)},Ga);function Ga(){this.activeRangeEnd$=new p.BehaviorSubject(null),this.focusedDate$=new p.BehaviorSubject(null),this.endInput$=new p.BehaviorSubject(null),this.startInput$=new p.BehaviorSubject(null),this.dateRangePopup$=new p.BehaviorSubject(null),this.range$=new p.BehaviorSubject(Ve)}Za.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Za,deps:[],target:i.ɵɵFactoryTarget.Injectable}),Za.ɵprov=i.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Za}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Za,decorators:[{type:h.Injectable}],ctorParameters:function(){return[]}});Object.defineProperty(Xa.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),ue(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Xa.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!1,configurable:!0}),Object.defineProperty(Xa.prototype,"calendarRange",{get:function(){return this.selectionRange||Ve},enumerable:!1,configurable:!0}),Xa.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=ce(e.min,n.min),n.max=ce(e.max,n.max),this.addSubscriptions(n.cellEnter.subscribe(function(e){return t.handleHover(e)}),n.valueChange.subscribe(function(e){return t.handleChange(e)}),e.focusedDate$.subscribe(function(e){k.isEqual(n.focusedDate,e)||(n.focusedDate=e)}),e.activeRangeEnd$.subscribe(function(e){n.activeRangeEnd!==e&&(n.activeRangeEnd=e,t.activeRangeEndChange.emit(e),t.cdr.markForCheck())}),e.range$.subscribe(function(e){t.isEqualCalendarRange(e)||t.acceptAndEmit(e),t.updateFocusedDate(e)}),p.fromEvent(this.element.nativeElement,"blur").subscribe(function(){return t.handleBlur()}))},Xa.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},Xa.prototype.addSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.map(function(e){return t.calendarSubscriptions.add(e)})},Xa.prototype.isEqualCalendarRange=function(e){return ue(this.calendar.selectionRange,e)},Xa.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,e=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==e&&e<t&&this.dateRangeService.setRange(pe(t))},Xa.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",n=n?pe(e):this.updateRange(e);ue(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},Xa.prototype.handleHover=function(e){var t,n,i;this.hasCompleteRange()||(t=(n=this.calendarRange).start,n=n.end,i=this.calendar.activeRangeEnd,(t&&"end"===i||n&&"start"===i)&&this.setSelectionRange(this.updateRange(e)))},Xa.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||Ve,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},Xa.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&n<e:null!==t&&e<t},Xa.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},Xa.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,t=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:t,end:e}},Xa.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},Xa.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};wi=Xa;function Xa(e,t,n,i,a){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=a,this.autoCorrectOn="change",this.activeRangeEndChange=new h.EventEmitter,this.selectionRangeChange=new h.EventEmitter,this.calendarSubscriptions=new p.Subscription,this.dateRangeService=this.dateRangeService||new Za,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}wi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:wi,deps:[{token:Bt},{token:i.ChangeDetectorRef},{token:i.ElementRef},{token:i.Renderer2},{token:Za,optional:!0}],target:i.ɵɵFactoryTarget.Directive}),wi.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:wi,selector:"[kendoDateRangeSelection]",inputs:{autoCorrectOn:"autoCorrectOn",selectionRange:"selectionRange",activeRangeEnd:"activeRangeEnd"},outputs:{activeRangeEndChange:"activeRangeEndChange",selectionRangeChange:"selectionRangeChange"},ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:wi,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Bt},{type:i.ChangeDetectorRef},{type:i.ElementRef},{type:i.Renderer2},{type:Za,decorators:[{type:h.Optional}]}]},propDecorators:{autoCorrectOn:[{type:h.Input}],selectionRange:[{type:h.Input}],activeRangeEnd:[{type:h.Input}],activeRangeEndChange:[{type:h.Output}],selectionRangeChange:[{type:h.Output}]}});Object.defineProperty(Qa.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(Qa.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(Qa.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new oi,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!1,configurable:!0}),Qa.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},Qa.prototype.ngAfterViewInit=function(){var t=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function(e){return t.calendar=e.first})),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function(e){return t.calendar=e.first})),ne()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},Qa.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()},Qa.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular(function(){e.activateSubscription=p.merge(e.contentCalendar.changes,e.viewCalendar.changes).pipe(z.filter(function(e){return e&&e.first}),z.map(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){return e.focus()})})}))},Qa.prototype.focus=function(){this.calendar&&this.calendar.focus()},Qa.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},Qa.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},Qa.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},Qa.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},Qa.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},Qa.prototype.handleKeydown=function(e){var t=this,n=e.altKey,e=e.keyCode;(e===m.Keys.Escape||n&&e===m.Keys.ArrowUp)&&this.zone.run(function(){return t.cancelPopup()})},Qa.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement,this.blurSubscription=p.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=p.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},Qa.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(Qa.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Qa.prototype._toggle=function(e){var t,n=this;this._show=e,this.popupRef&&this.destroyPopup(),this._show&&(e=this.rtl?"right":"left",this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:e},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:e},positionMode:"absolute"}),e=this.popupRef,t=e.popupElement,e=e.popupAnchorViewportLeave,t.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular(function(){return p.fromEvent(t,"keydown").subscribe(n.handleKeydown.bind(n))}),p.fromEvent(t,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),e.subscribe(function(){return n.cancelPopup()})))},Qa.prototype.destroyPopup=function(){r(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),r(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};Di=Qa;function Qa(e,t,n,i,a){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=a,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new h.EventEmitter,this.close=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.cancel=new h.EventEmitter,this.popupUID=m.guid(),this.calendarSubscriptions=new p.Subscription,this.popupSubscriptions=new p.Subscription,this.resolvedPromise=Promise.resolve()}Di.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Di,deps:[{token:be.PopupService},{token:Za},{token:i.ChangeDetectorRef},{token:i.NgZone},{token:t.RTL,optional:!0}],target:i.ɵɵFactoryTarget.Component}),Di.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Di,selector:"kendo-daterange-popup",inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",appendTo:"appendTo",collision:"collision",popupAlign:"popupAlign",margin:"margin"},outputs:{open:"open",close:"close",onBlur:"blur",onFocus:"focus",cancel:"cancel"},queries:[{propertyName:"contentTemplate",first:!0,predicate:w,descendants:!0},{propertyName:"contentCalendar",predicate:Bt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Bt,descendants:!0}],exportAs:["kendo-daterange-popup"],ngImport:i,template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n ",isInline:!0,components:[{type:Bt,selector:"kendo-multiviewcalendar",inputs:["id","focusedDate","min","max","rangeValidation","disabledDatesRangeValidation","selection","value","disabled","tabindex","tabIndex","isActive","disabledDates","activeView","bottomView","topView","showViewHeader","animateNavigation","weekNumber","activeRangeEnd","selectionRange","views","orientation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate"],outputs:["activeViewChange","navigate","cellEnter","cellLeave","valueChange","blur"],exportAs:["kendo-multiviewcalendar"]}],directives:[{type:wi,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Di,decorators:[{type:h.Component,args:[{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 "}]}],ctorParameters:function(){return[{type:be.PopupService},{type:Za},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[t.RTL]}]}]},propDecorators:{container:[{type:h.ViewChild,args:["container",{read:h.ViewContainerRef,static:!1}]}],defaultTemplate:[{type:h.ViewChild,args:["defaultTemplate",{static:!1}]}],contentTemplate:[{type:h.ContentChild,args:[w,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Bt]}],contentCalendar:[{type:h.ContentChildren,args:[Bt]}],animate:[{type:h.Input}],anchor:[{type:h.Input}],anchorAlign:[{type:h.Input}],appendTo:[{type:h.Input}],collision:[{type:h.Input}],popupAlign:[{type:h.Input}],margin:[{type:h.Input}],open:[{type:h.Output}],close:[{type:h.Output}],onBlur:[{type:h.Output,args:["blur"]}],onFocus:[{type:h.Output,args:["focus"]}],cancel:[{type:h.Output}]}});Object.defineProperty(Ja.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),Ja.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},Ja.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};_n=Ja;function Ja(){this.wrapperClass=!0,this.showDefault=!1,L.validatePackage(ke)}_n.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:_n,deps:[],target:i.ɵɵFactoryTarget.Component}),_n.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:_n,selector:"kendo-daterange",host:{properties:{"class.k-daterangepicker":"this.wrapperClass"}},providers:[Za],queries:[{propertyName:"contentPopup",predicate:Di}],ngImport:i,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:Di,selector:"kendo-daterange-popup",inputs:["animate","anchor","anchorAlign","appendTo","collision","popupAlign","margin"],outputs:["open","close","blur","focus","cancel"],exportAs:["kendo-daterange-popup"]}],directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:_n,decorators:[{type:h.Component,args:[{providers:[Za],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[]},propDecorators:{wrapperClass:[{type:h.HostBinding,args:["class.k-daterangepicker"]}],contentPopup:[{type:h.ContentChildren,args:[Di]}]}});Object.defineProperty(eo.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return r(e)&&r(e.calendar)},enumerable:!1,configurable:!0}),eo.prototype.init=function(){var t=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe(function(){return t.deactivate()}),this.input.onFocus.pipe(z.filter(function(){return!t.popupCalendarActivated})).subscribe(function(){return t.activate()}),this.input.valueUpdate.subscribe(function(e){return t.updateRange(e,"change")}),this.dateRangeService.activeRangeEnd$.subscribe(function(){t.navigateCalendarOnFocus&&t.focusActiveDate(),t.toggleActiveClass(t.isActiveEnd)}),this.dateRangeService.dateRangePopup$.subscribe(function(e){return t.initPopup(e)}),this.dateRangeService.range$.subscribe(function(e){return t.updateInputValue(e)}),p.fromEvent(this.element.nativeElement,"click").subscribe(function(){return t.activate()}),p.fromEvent(this.element.nativeElement,"keydown").subscribe(function(e){return t.togglePopup(e||{})})].map(function(e){return t.subscriptions.add(e)})},eo.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},eo.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()},eo.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},eo.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},eo.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()}))})})},eo.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},eo.prototype.togglePopup=function(e){var t=e.altKey,e=e.keyCode;e===m.Keys.Escape?this.dateRangeService.cancelPopup():t&&e===m.Keys.ArrowDown&&this.dateRangeService.activatePopup()},eo.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},eo.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};ye=eo;function eo(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 p.Subscription,this.subscriptions=new p.Subscription}tt(no,to=ye),no.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),to.prototype.init.call(this)},no.prototype.ngOnDestroy=function(){to.prototype.destroy.call(this)},no.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return G(e,i,n)?(i=(this.rangeService.selectionRange||Ve).start,this.autoCorrectOn===t&&r(e)&&e<i?pe(e):{start:i,end:k.cloneDate(e)}):null},no.prototype.updateInputValue=function(e){var e=(e||Ve).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&G(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var to,s=no;function no(e,t,n,i,a){n=to.call(this,"end",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}s.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:s,deps:[{token:Za},{token:ai},{token:i.ElementRef},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Directive}),s.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:s,selector:"[kendoDateRangeEndInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:s,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:Za},{type:ai},{type:i.ElementRef},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});tt(ao,io=ye),ao.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),io.prototype.init.call(this)},ao.prototype.ngOnDestroy=function(){io.prototype.destroy.call(this)},ao.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return G(e,i,n)?(i=(this.rangeService.selectionRange||Ve).end,this.autoCorrectOn===t&&i&&i<e?pe(e):{start:k.cloneDate(e),end:i}):null},ao.prototype.updateInputValue=function(e){var e=(e||Ve).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&G(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var io,ye=ao;function ao(e,t,n,i,a){n=io.call(this,"start",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}ye.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ye,deps:[{token:Za},{token:ai},{token:i.ElementRef},{token:i.Renderer2},{token:i.NgZone}],target:i.ɵɵFactoryTarget.Directive}),ye.ɵdir=i.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ye,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:i}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ye,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:Za},{type:ai},{type:i.ElementRef},{type:i.Renderer2},{type:i.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var oo,ro=function(){},P=(ro.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,deps:[],target:i.ɵɵFactoryTarget.NgModule}),ro.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,declarations:[ct,ht,ut],imports:[n.CommonModule,m.EventsModule],exports:[ct,ht,ut]}),ro.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,imports:[[n.CommonModule,m.EventsModule]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ro,decorators:[{type:h.NgModule,args:[{declarations:[ct,ht,ut],exports:[ct,ht,ut],imports:[n.CommonModule,m.EventsModule]}]}]}),function(){}),so=(P.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P,deps:[],target:i.ɵɵFactoryTarget.NgModule}),P.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P,declarations:[It,Vt,xt,St,Et,Rt,Ot,Mn],exports:[It,Vt,xt,St,Et,Rt,Ot,Mn]}),P.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:P,decorators:[{type:h.NgModule,args:[{declarations:[It,Vt,xt,St,Et,Rt,Ot,Mn],exports:[It,Vt,xt,St,Et,Rt,Ot,Mn]}]}]}),function(){}),lo=(so.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,deps:[],target:i.ɵɵFactoryTarget.NgModule}),so.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,declarations:[dt,Ft,Nn,Bt],imports:[n.CommonModule,ro,B.IntlModule,P,j.PopupModule,m.EventsModule],exports:[dt,Ft,Nn,Bt,ro,P]}),so.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,providers:[ft,c,u,$e,We,Qe],imports:[[n.CommonModule,ro,B.IntlModule,P,j.PopupModule,m.EventsModule],ro,P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:so,decorators:[{type:h.NgModule,args:[{declarations:[dt,Ft,Nn,Bt],exports:[dt,Ft,Nn,Bt,ro,P],imports:[n.CommonModule,ro,B.IntlModule,P,j.PopupModule,m.EventsModule],providers:[ft,c,u,$e,We,Qe]}]}]}),[D]),co=function(){},D=(co.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,deps:[],target:i.ɵɵFactoryTarget.NgModule}),co.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,declarations:[D],imports:[n.CommonModule],exports:[D]}),co.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,imports:[[n.CommonModule]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:co,decorators:[{type:h.NgModule,args:[{declarations:[lo],exports:[lo],imports:[n.CommonModule]}]}]}),function(){}),lo=(D.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,deps:[],target:i.ɵɵFactoryTarget.NgModule}),D.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,declarations:[$n,Lt,pi,Bn,Vn],imports:[n.CommonModule,ro,so,B.IntlModule,P,co,m.EventsModule,m.ResizeSensorModule],exports:[$n,Lt,pi,Bn,Vn,ro,P]}),D.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,providers:[Dn,c,u,$e,We,Qe],imports:[[n.CommonModule,ro,so,B.IntlModule,P,co,m.EventsModule,m.ResizeSensorModule],ro,P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:D,decorators:[{type:h.NgModule,args:[{declarations:[$n,Lt,pi,Bn,Vn],exports:[$n,Lt,pi,Bn,Vn,ro,P],imports:[n.CommonModule,ro,so,B.IntlModule,P,co,m.EventsModule,m.ResizeSensorModule],providers:[Dn,c,u,$e,We,Qe]}]}]}),function(){}),po=(lo.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,deps:[],target:i.ɵɵFactoryTarget.NgModule}),lo.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,imports:[D,so],exports:[D,so]}),lo.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,imports:[[D,so],D,so]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:lo,decorators:[{type:h.NgModule,args:[{exports:[D,so],imports:[D,so]}]}]}),tt(uo,oo=V),Object.defineProperty(uo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),uo);function uo(e){var t=oo.call(this)||this;return t.service=e,t}po.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:po,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),po.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:po,selector:"kendo-dateinput-messages",providers:[{provide:V,useExisting:h.forwardRef(function(){return po})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:po,decorators:[{type:h.Component,args:[{providers:[{provide:V,useExisting:h.forwardRef(function(){return po})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var ho,c=function(){},mo=(c.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,deps:[],target:i.ɵɵFactoryTarget.NgModule}),c.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,declarations:[ai,po,Gn],imports:[n.CommonModule,B.IntlModule,m.EventsModule],exports:[ai,po,Gn]}),c.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,imports:[[n.CommonModule,B.IntlModule,m.EventsModule]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:c,decorators:[{type:h.NgModule,args:[{declarations:[ai,po,Gn],exports:[ai,po,Gn],imports:[n.CommonModule,B.IntlModule,m.EventsModule]}]}]}),tt(go,ho=Yn),Object.defineProperty(go.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),go);function go(e){var t=ho.call(this)||this;return t.service=e,t}mo.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:mo,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),mo.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:mo,selector:"kendo-datepicker-messages",providers:[{provide:Yn,useExisting:h.forwardRef(function(){return mo})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:mo,decorators:[{type:h.Component,args:[{providers:[{provide:Yn,useExisting:h.forwardRef(function(){return mo})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var fo,u=function(){},$e=(u.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,deps:[],target:i.ɵɵFactoryTarget.NgModule}),u.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,declarations:[vi,mo,gi],imports:[n.CommonModule,c,D,B.IntlModule,j.PopupModule,P,m.EventsModule],exports:[vi,mo,gi,P]}),u.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,providers:[{provide:ci,useValue:H.touchEnabled}],imports:[[n.CommonModule,c,D,B.IntlModule,j.PopupModule,P,m.EventsModule],P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:u,decorators:[{type:h.NgModule,args:[{declarations:[vi,mo,gi],exports:[vi,mo,gi,P],imports:[n.CommonModule,c,D,B.IntlModule,j.PopupModule,P,m.EventsModule],providers:[{provide:ci,useValue:H.touchEnabled}]}]}]}),[_n,Di,w,wi,ye,s]),We=[so,c,j.PopupModule,m.EventsModule],V=function(){},vo=(V.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,deps:[],target:i.ɵɵFactoryTarget.NgModule}),V.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,declarations:[_n,Di,w,wi,ye,s],imports:[n.CommonModule,so,c,j.PopupModule,m.EventsModule],exports:[_n,Di,w,wi,ye,s]}),V.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,imports:[[n.CommonModule,We]]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:V,decorators:[{type:h.NgModule,args:[{declarations:[$e],exports:[$e],imports:[n.CommonModule,We]}]}]}),tt(yo,fo=O),Object.defineProperty(yo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),yo);function yo(e){var t=fo.call(this)||this;return t.service=e,t}vo.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vo,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),vo.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vo,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return vo})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:vo,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return vo})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var bo,Yn=[Aa,oa,vo,za,Sa,Na,la],$e=[c,B.IntlModule,j.PopupModule,co,m.EventsModule],We=[pa,xi,Pi,Yi,Xi,ia,{provide:ci,useValue:H.touchEnabled}],O=function(){},ko=(O.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,deps:[],target:i.ɵɵFactoryTarget.NgModule}),O.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,declarations:[Aa,oa,vo,za,Sa,Na,la],imports:[n.CommonModule,c,B.IntlModule,j.PopupModule,co,m.EventsModule],exports:[Aa,oa,vo,za,Sa,Na,la]}),O.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,providers:We,imports:[nt([n.CommonModule],v($e))]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:O,decorators:[{type:h.NgModule,args:[{declarations:[Yn],exports:[Yn],imports:nt([n.CommonModule],v($e)),providers:We}]}]}),tt(Co,bo=Ci),Object.defineProperty(Co.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Co);function Co(e){var t=bo.call(this)||this;return t.service=e,t}ko.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ko,deps:[{token:a.LocalizationService}],target:i.ɵɵFactoryTarget.Component}),ko.ɵcmp=i.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ko,selector:"kendo-datetimepicker-messages",providers:[{provide:Ci,useExisting:h.forwardRef(function(){return ko})}],usesInheritance:!0,ngImport:i,template:"",isInline:!0}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:ko,decorators:[{type:h.Component,args:[{providers:[{provide:Ci,useExisting:h.forwardRef(function(){return ko})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});xi=[qa,ko,Ya],Pi=function(){},Pi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,deps:[],target:i.ɵɵFactoryTarget.NgModule}),Pi.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,declarations:[qa,ko,Ya],imports:[n.CommonModule,B.IntlModule,c,D,O,j.PopupModule,m.EventsModule,P],exports:[qa,ko,Ya,P]}),Pi.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,providers:[{provide:ci,useValue:H.touchEnabled}],imports:[[n.CommonModule,B.IntlModule,c,D,O,j.PopupModule,m.EventsModule,P],P]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Pi,decorators:[{type:h.NgModule,args:[{declarations:nt([],v(xi)),exports:nt(nt([],v(xi)),[P]),imports:[n.CommonModule,B.IntlModule,c,D,O,j.PopupModule,m.EventsModule,P],providers:[{provide:ci,useValue:H.touchEnabled}]}]}]}),Yi=[lo,c,u,O,V,Pi],Xi=function(){};Xi.ɵfac=i.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,deps:[],target:i.ɵɵFactoryTarget.NgModule}),Xi.ɵmod=i.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,imports:[lo,c,u,O,V,Pi],exports:[lo,c,u,O,V,Pi]}),Xi.ɵinj=i.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,imports:[Yi,lo,c,u,O,V,Pi]}),i.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:i,type:Xi,decorators:[{type:h.NgModule,args:[{exports:Yi,imports:Yi}]}]}),e.CalendarCommonModule=ro,e.CalendarComponent=$n,e.CalendarCustomMessagesComponent=pi,e.CalendarLocalizedMessagesDirective=Bn,e.CalendarModule=D,e.CalendarsModule=lo,e.CellTemplateDirective=It,e.CenturyCellTemplateDirective=Et,e.DateInputComponent=ai,e.DateInputCustomMessagesComponent=po,e.DateInputLocalizedMessagesDirective=Gn,e.DateInputModule=c,e.DateInputsModule=Xi,e.DatePickerComponent=vi,e.DatePickerCustomMessagesComponent=mo,e.DatePickerLocalizedMessagesDirective=gi,e.DatePickerModule=u,e.DateRangeComponent=_n,e.DateRangeEndInputDirective=s,e.DateRangeModule=V,e.DateRangePopupComponent=Di,e.DateRangePopupTemplateDirective=w,e.DateRangeSelectionDirective=wi,e.DateRangeService=Za,e.DateRangeStartInputDirective=ye,e.DateTimePickerComponent=qa,e.DateTimePickerCustomMessagesComponent=ko,e.DateTimePickerModule=Pi,e.DecadeCellTemplateDirective=St,e.HeaderComponent=ht,e.HeaderTitleTemplateDirective=Ot,e.HorizontalViewListComponent=dt,e.KForOf=ct,e.LocalizedMessagesDirective=Ya,e.MonthCellTemplateDirective=Vt,e.MultiViewCalendarComponent=Bt,e.MultiViewCalendarCustomMessagesComponent=Nn,e.MultiViewCalendarLocalizedMessagesDirective=Ft,e.MultiViewCalendarModule=so,e.NavigationComponent=Lt,e.NavigationItemTemplateDirective=Mn,e.PreventableEvent=oi,e.TemplatesModule=P,e.TimeListComponent=oa,e.TimePickerComponent=za,e.TimePickerCustomMessagesComponent=vo,e.TimePickerLocalizedMessagesDirective=Aa,e.TimePickerModule=O,e.TimeSelectorComponent=la,e.TimeSelectorCustomMessagesComponent=Na,e.TimeSelectorLocalizedMessagesDirective=Sa,e.ViewComponent=ut,e.ViewListComponent=Vn,e.WeekNumberCellTemplateDirective=Rt,e.YearCellTemplateDirective=xt,Object.defineProperty(e,"__esModule",{value:!0})});