@progress/kendo-angular-dateinputs 7.1.2 → 7.1.3-dev.202210211241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/bundles/kendo-angular-dateinputs.umd.js +1 -1
  2. package/calendar/calendar.component.d.ts +7 -2
  3. package/calendar/header.component.d.ts +4 -1
  4. package/calendar/horizontal-view-list.component.d.ts +17 -1
  5. package/calendar/localization/calendar-messages.d.ts +5 -1
  6. package/calendar/localization/multiview-calendar-messages.d.ts +5 -1
  7. package/calendar/multiview-calendar.component.d.ts +21 -11
  8. package/calendar/services/bus-view.service.d.ts +1 -0
  9. package/calendar/services/selection.service.d.ts +2 -0
  10. package/calendar/services/weeknames.service.d.ts +1 -1
  11. package/calendar/view-list.component.d.ts +9 -1
  12. package/calendar/view.component.d.ts +3 -1
  13. package/common/utils.d.ts +33 -0
  14. package/dateinput/dateinput.component.d.ts +16 -6
  15. package/datepicker/datepicker.component.d.ts +1 -5
  16. package/daterange/date-range-end-input.directive.d.ts +1 -0
  17. package/daterange/date-range-input.d.ts +4 -1
  18. package/daterange/date-range-start-input.directive.d.ts +2 -0
  19. package/daterange/date-range.component.d.ts +7 -1
  20. package/daterange/date-range.service.d.ts +6 -2
  21. package/datetimepicker/datetimepicker.component.d.ts +5 -4
  22. package/esm2015/calendar/calendar.component.js +85 -48
  23. package/esm2015/calendar/header.component.js +30 -3
  24. package/esm2015/calendar/horizontal-view-list.component.js +83 -11
  25. package/esm2015/calendar/localization/calendar-messages.js +3 -1
  26. package/esm2015/calendar/localization/multiview-calendar-messages.js +3 -1
  27. package/esm2015/calendar/multiview-calendar.component.js +87 -45
  28. package/esm2015/calendar/services/bus-view.service.js +2 -0
  29. package/esm2015/calendar/services/month-view.service.js +1 -1
  30. package/esm2015/calendar/services/selection.service.js +4 -0
  31. package/esm2015/calendar/services/weeknames.service.js +2 -2
  32. package/esm2015/calendar/view-list.component.js +45 -9
  33. package/esm2015/calendar/view.component.js +16 -3
  34. package/esm2015/common/utils.js +34 -0
  35. package/esm2015/dateinput/dateinput.component.js +52 -23
  36. package/esm2015/datepicker/datepicker.component.js +25 -11
  37. package/esm2015/daterange/date-range-end-input.directive.js +5 -1
  38. package/esm2015/daterange/date-range-input.js +10 -0
  39. package/esm2015/daterange/date-range-popup.component.js +4 -4
  40. package/esm2015/daterange/date-range-selection.directive.js +1 -1
  41. package/esm2015/daterange/date-range-start-input.directive.js +7 -0
  42. package/esm2015/daterange/date-range.component.js +29 -11
  43. package/esm2015/daterange/date-range.service.js +28 -4
  44. package/esm2015/datetimepicker/datetimepicker.component.js +36 -11
  45. package/esm2015/package-metadata.js +1 -1
  46. package/esm2015/timepicker/localization/messages.js +11 -1
  47. package/esm2015/timepicker/timelist.component.js +57 -10
  48. package/esm2015/timepicker/timepicker.component.js +71 -24
  49. package/esm2015/util.js +2 -2
  50. package/fesm2015/kendo-angular-dateinputs.js +773 -280
  51. package/package.json +1 -1
  52. package/timepicker/localization/messages.d.ts +21 -1
  53. package/timepicker/timelist.component.d.ts +10 -1
  54. package/timepicker/timepicker.component.d.ts +5 -7
@@ -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:1663071420,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})});
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,n,t,k,m,A,L,p,i,B,z,j){"use strict";function H(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 _(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)}function $(e){return e.preventDefault()}function Y(e){return e.relatedTarget||document.activeElement}function o(e){return null!=e}function K(e){return e.shiftKey&&(e.keyCode===U.ArrowRight||e.keyCode===U.ArrowLeft||e.keyCode===U.ArrowDown||e.keyCode===U.ArrowUp)}var l,g,U,a=H(h),r=H(t),s=H(m),c=H(L),u=H(i),W=H(z),q={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1666356015,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"},Z=((d=l=l||{})[d.Left=0]="Left",d[d.Right=1]="Right",d[d.Up=2]="Up",d[d.Down=3]="Down",d[d.PrevView=4]="PrevView",d[d.NextView=5]="NextView",d[d.FirstInView=6]="FirstInView",d[d.LastInView=7]="LastInView",d[d.LowerView=8]="LowerView",d[d.UpperView=9]="UpperView",(d=g=g||{})[d.month=0]="month",d[d.year=1]="year",d[d.decade=2]="decade",d[d.century=3]="century",new Date(1980,0,1)),G=new Date(1900,0,1),X=new Date(2099,11,31),Q=new Date(1980,0,1),J=new Date(1980,0,1,23,59,59),ee={start:null,end:null};(d=U=U||{})[d.ArrowDown=40]="ArrowDown",d[d.ArrowLeft=37]="ArrowLeft",d[d.ArrowRight=39]="ArrowRight",d[d.ArrowUp=38]="ArrowUp";function te(e){return null!=e}function ne(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function ie(e,t,n){return{candidateValue:Le(Z,e),maxValue:k.addDays(Le(Z,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:Le(Z,t)}}function ae(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function oe(e,t,n){return!e||!(t&&e<t||n&&n<e)}function re(e,t,n){return!(e&&t&&n)||(t=(e=ie(e,t,n)).candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function se(e,t){return!te(e)||!te(t)||e<=t}function le(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function ce(){return new Date}function pe(){return k.getDate(new Date)}function f(e){}function ue(){return"undefined"!=typeof window}function de(e,t){return e.slice(t).concat(e.slice(0,t))}function he(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 me(e,t){return void 0!==e[t]}function ge(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function fe(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function ve(e,t){var n=(t=t||ee).start,t=t.end;return!(!n||!t)&&(n<e&&e<t)}function ye(e,t){return e||t}function be(e){return{start:e,end:e}}function ke(e,t){var n=(e=e||ee).start,e=e.end,i=(t=t||ee).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function Ce(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function we(e){return e.filter(o).sort(function(e,t){return e.getTime()-t.getTime()})}function De(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null}function Ie(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null}function Te(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function Ve(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function xe(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var Se=".k-content .k-calendar-table",Ee=".k-content.k-calendar-table",Re="aria-activedescendant",Oe="aria-controls",Me="aria-expanded",Ne="aria-haspopup",Fe="valuenow",Pe="valuetext",Ae="aria-invalid",Le=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},Be=ne("setFullYear"),ze=ne("setHours"),je=ne("setMinutes"),He=ne("setSeconds"),_e=ne("setMilliseconds"),$e="medium",Ye="medium",Ke="solid",Ue=[[]],We=((d={})[l.Left]=function(e){return k.addDecades(e,-1)},d[l.Up]=function(e){return k.addDecades(e,-5)},d[l.Right]=function(e){return k.addDecades(e,1)},d[l.Down]=function(e){return k.addDecades(e,5)},d[l.PrevView]=function(e){return k.addCenturies(e,-1)},d[l.NextView]=function(e){return k.addCenturies(e,1)},d[l.FirstInView]=function(e){return k.firstDecadeOfCentury(e)},d[l.LastInView]=function(e){return k.lastDecadeOfCentury(e)},d),d=(qe.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},qe.prototype.datesList=function(t,e){return ae(0,e).map(function(e){return k.addCenturies(t,e)})},qe.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?ee:n,n=e.viewDate;return n?(t=ae(0,4),o=k.firstDecadeOfCentury(n),r=k.lastDecadeOfCentury(n),s=pe(),ae(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&&ve(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})})})):Ue},qe.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},qe.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+99)},qe.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},qe.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(k.firstDecadeOfCentury(e)),k.createDate(t.getFullYear(),0,1))},qe.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},qe.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},qe.prototype.move=function(e,t){t=We[t];return t?t(e):e},qe.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},qe.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},qe.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},qe.prototype.rowLength=function(){return 4},qe.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},qe.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},qe.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},qe.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},qe.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},qe);function qe(){this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDecades(i,1);return n}}d.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,deps:[],target:a.ɵɵFactoryTarget.Injectable}),d.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:h.Injectable}]});var Ze=[[]],Ge=((v={})[l.Left]=function(e){return k.addYears(e,-1)},v[l.Up]=function(e){return k.addYears(e,-5)},v[l.Right]=function(e){return k.addYears(e,1)},v[l.Down]=function(e){return k.addYears(e,5)},v[l.PrevView]=function(e){return k.addDecades(e,-1)},v[l.NextView]=function(e){return k.addDecades(e,1)},v[l.FirstInView]=function(e){return k.firstYearOfDecade(e)},v[l.LastInView]=function(e){return k.lastYearOfDecade(e)},v),v=(Xe.prototype.addToDate=function(e,t){return k.addDecades(e,t)},Xe.prototype.datesList=function(t,e){return ae(0,e).map(function(e){return k.addDecades(t,e)})},Xe.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?ee:n,n=e.viewDate;return n?(t=ae(0,4),o=k.firstYearOfDecade(n),r=k.lastYearOfDecade(n),s=pe(),ae(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&&ve(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},Xe.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},Xe.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear()+9)},Xe.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},Xe.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(e),k.createDate(t.getFullYear(),0,1))},Xe.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Xe.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},Xe.prototype.move=function(e,t){t=Ge[t];return t?t(e):e},Xe.prototype.cellTitle=function(e){return e.getFullYear().toString()},Xe.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Xe.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},Xe.prototype.rowLength=function(){return 4},Xe.prototype.skip=function(e,t){return k.durationInDecades(t,e)},Xe.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},Xe.prototype.value=function(e){return e?e.getFullYear().toString():""},Xe.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},Xe.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},Xe);function Xe(){this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addYears(i,1);return n}}v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:[],target:a.ɵɵFactoryTarget.Injectable}),v.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,decorators:[{type:h.Injectable}]});var Qe=[[]],Je=((et={})[l.Left]=function(e){return k.addDays(e,-1)},et[l.Up]=function(e){return k.addWeeks(e,-1)},et[l.Right]=function(e){return k.addDays(e,1)},et[l.Down]=function(e){return k.addWeeks(e,1)},et[l.PrevView]=function(e){return k.addMonths(e,-1)},et[l.NextView]=function(e){return k.addMonths(e,1)},et[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},et[l.LastInView]=function(e){return k.lastDayOfMonth(e)},et),et=(tt.prototype.addToDate=function(e,t){return k.addMonths(e,t)},tt.prototype.datesList=function(t,e){return ae(0,e).map(function(e){return k.addMonths(t,e)})},tt.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?ee: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=ae(0,7),p=pe(),ae(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&&ve(a,y),{formattedValue:u.value(a),id:""+d+(e?a.getTime()+"1":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})})})):Qe},tt.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},tt.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)},tt.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},tt.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},tt.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},tt.prototype.isRangeStart=function(e){return!e.getMonth()},tt.prototype.move=function(e,t){t=Je[t];return t?t(e):e},tt.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},tt.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},tt.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},tt.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},tt.prototype.skip=function(e,t){return k.durationInMonths(t,e)},tt.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},tt.prototype.value=function(e){return e?e.getDate().toString():""},tt.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},tt.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},tt.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},tt.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},tt.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},tt);function tt(e){this._intlService=e,this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addDays(i,1);return n}}et.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:et,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),et.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:et}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:et,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});var nt=[[]],it=((at={})[l.Left]=function(e){return k.addMonths(e,-1)},at[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},at[l.Right]=function(e){return k.addMonths(e,1)},at[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},at[l.PrevView]=function(e){return k.addYears(e,-1)},at[l.NextView]=function(e){return k.addYears(e,1)},at[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},at[l.LastInView]=function(e){return k.lastMonthOfYear(e)},at),at=(ot.prototype.addToDate=function(e,t){return k.addYears(e,t)},ot.prototype.datesList=function(t,e){return ae(0,e).map(function(e){return k.addYears(t,e)})},ot.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?ee:n,n=e.viewDate;return n?(o=this.abbrMonthNames(),r=k.firstMonthOfYear(n),s=k.lastMonthOfYear(n),l=r.getFullYear(),t=ae(0,4),c=pe(),ae(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&&ve(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})})})):nt},ot.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},ot.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e&&e<=t[t.length-1].getFullYear())},ot.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},ot.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},ot.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},ot.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},ot.prototype.move=function(e,t){t=it[t];return t?t(e):e},ot.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},ot.prototype.navigationTitle=function(e){return this.title(e)},ot.prototype.title=function(e){return e?e.getFullYear().toString():""},ot.prototype.rowLength=function(){return 4},ot.prototype.skip=function(e,t){return k.durationInYears(t,e)},ot.prototype.total=function(e,t){return k.durationInYears(e,t)+1},ot.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},ot.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},ot.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},ot.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},ot);function ot(e){this._intlService=e,this.dateRange=function(e,t){if(!o(e)||!o(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=k.addMonths(i,1);return n}}at.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:at,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),at.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:at}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:at,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});(kt={})[g.month]=et,kt[g.year]=at,kt[g.decade]=v,kt[g.century]=d;var rt=kt,st=0,y=(lt.prototype.configure=function(e,t){this.bottom=e,this.top=t},lt.prototype.service=function(e){e=rt[e];return e?this.injector.get(e):null},lt.prototype.moveDown=function(e){this.move(e,-1)},lt.prototype.moveUp=function(e){this.move(e,1)},lt.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},lt.prototype.canMoveDown=function(e){return this.bottom<e},lt.prototype.canMoveUp=function(e){return e<this.top},lt.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},lt.prototype.move=function(e,t){t=this.clamp(function(e,t){t=g[g[e+t]];return void 0!==t?t:e}(e,t));t!==e&&this.viewChanged.emit({view:t})},lt);function lt(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=g.month,this.top=g.century,this.calendarId=st++}y.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,deps:[{token:a.Injector}],target:a.ɵɵFactoryTarget.Injectable}),y.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:y,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:a.Injector}]}});pt.prototype.getWeekNames=function(e,t){void 0===e&&(e=!1);t=de(this.intl.dateFormatNames({nameType:t,type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var ct=pt;function pt(e){this.intl=e}ct.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ct,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ct.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ct}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ct,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});var ut=function(e,t){return(ut=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 dt(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}ut(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function b(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 ht(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 mt(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function gt(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function ft(){return!1}vt.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=ft,this.notifyInvalidInput(t)))),this.notifyServiceChange()},vt.prototype.notifyInvalidInput=function(e){if(o(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.")},vt.prototype.notifyServiceChange=function(){this.changes.next()};var C=vt;function vt(){this.changes=new p.Subject,this.isDateDisabled=ft}C.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,deps:[],target:a.ɵɵFactoryTarget.Injectable}),C.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,decorators:[{type:h.Injectable}]});Object.defineProperty(bt.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(bt.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(bt.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(bt.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var yt=bt;function bt(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(Ct.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),Ct.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)+"'.")}}},Ct.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},Ct.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 yt(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 kt=Ct;function Ct(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}kt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kt,deps:[{token:a.ViewContainerRef},{token:a.TemplateRef},{token:a.IterableDiffers}],target:a.ɵɵFactoryTarget.Directive}),kt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:kt,selector:"[kFor][kForOf]",inputs:{kForOf:"kForOf",kForTrackBy:"kForTrackBy",kForTemplate:"kForTemplate"},usesOnChanges:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:kt,decorators:[{type:h.Directive,args:[{selector:"[kFor][kForOf]"}]}],ctorParameters:function(){return[{type:a.ViewContainerRef},{type:a.TemplateRef},{type:a.IterableDiffers}]},propDecorators:{kForOf:[{type:h.Input}],kForTrackBy:[{type:h.Input}],kForTemplate:[{type:h.Input}]}});Object.defineProperty(w.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===g.month},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),w.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},w.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))},w.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},w.prototype.isHorizontal=function(){return"horizontal"===this.direction},w.prototype.isMonthView=function(){return this.activeView===g.month},w.prototype.shouldRenderCellContent=function(e){return o(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},w.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},w.prototype.getWeekNumber=function(e){return this.weekNumber?k.weekInYear(e,this.intl.firstDay()):null},w.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},w.prototype.getStyles=function(e){!e.isOtherMonth&&this.isActive&&e.isFocused&&this.focusedCellId.emit(e.id);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(" ")},w.prototype.tableCellIndex=function(e,t){return e+":"+t},w.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)},w.prototype.getMonthLabel=function(e){return 1===this.activeView?this.intl.formatDate(e,"MMMM"):null},w.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},w.prototype.updateData=function(){var e=fe(this.selectedDates)||pe(),e=Le(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})},w.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},w.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},w.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)))},w.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}})))},w.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},w.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()},w.prototype.closestCell=function(e){return mt(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},w.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},w.prototype.cellByIndex=function(e){var e=b(e.split(":"),2),t=e[0],e=e[1];return this.data[t][e]};var wt=w;function w(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.focusedCellId=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)))}wt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wt,deps:[{token:y},{token:c.IntlService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.NgZone},{token:a.Renderer2},{token:C}],target:a.ɵɵFactoryTarget.Component}),wt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:wt,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",focusedCellId:"focusedCellId"},usesOnChanges:!0,ngImport:a,template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&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 role="gridcell"\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 [attr.aria-label]="getMonthLabel(cell.value)"\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:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:kt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wt,decorators:[{type:h.Component,args:[{selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td" role="gridcell">&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 role="gridcell"\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 [attr.aria-label]="getMonthLabel(cell.value)"\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:y},{type:c.IntlService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.NgZone},{type:a.Renderer2},{type:C}]},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}],focusedCellId:[{type:h.Output}]}});D.prototype.handleFocus=function(){this.focusCalendar.emit()},Object.defineProperty(D.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"getActiveDescendant",{get:function(){return 1===this.views?this.activeDescendant:null},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"getTabIndex",{get:function(){return this.disabled||2===this.views?null:this.tabIndex},enumerable:!1,configurable:!0}),D.prototype.ngOnChanges=function(e){var t,n,i;this.initService(),0!==this.weekNames.length&&!e.weekNumber||(this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide")),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=me(e,"activeView"),e=0<this.views&&me(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)),this.setAriaActivedescendant(),2===this.views&&this.renderer.setAttribute(this.element.nativeElement,"tabindex",this.tabIndex.toString()))},D.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},D.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},D.prototype.initService=function(){this.service=this.bus.service(this.activeView)},D.prototype.isMonthView=function(){return this.activeView===g.month},D.prototype.getCaptionTitle=function(e){return this.service.title(e)},D.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},D.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()})},D.prototype.navigate=function(e){this.animateNavigation&&m.isDocumentAvailable()&&o(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)},D.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},D.prototype.getWeekNames=function(e){return this.weekService.getWeekNames(this.weekNumber,e)},D.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"))},D.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()},D.prototype.clampDate=function(e){return le(e,this.min,this.max)},D.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},D.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},D.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},D.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},D.prototype.setAriaActivedescendant=function(){2===this.views&&this.renderer.setAttribute(this.element.nativeElement,Re,this.activeDescendant)};var Dt=D;function D(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=g.month,this.isActive=!0,this.min=new Date(G),this.max=new Date(X),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.tabIndex=0,this.disabled=!1,this.cellClick=new h.EventEmitter,this.weekNumberCellClick=new h.EventEmitter,this.cellEnter=new h.EventEmitter,this.cellLeave=new h.EventEmitter,this.activeDateChange=new h.EventEmitter,this.focusCalendar=new h.EventEmitter,this.blurCalendar=new h.EventEmitter,this.focusedCellChange=new h.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.wideWeekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}Dt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,deps:[{token:y},{token:c.IntlService},{token:ct},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Dt.ɵcmp=a.ɵɵ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",activeDescendant:"activeDescendant",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},host:{listeners:{focus:"handleFocus()"},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:a,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 [attr.aria-labelledby]="id"\n [attr.aria-activedescendant]="getActiveDescendant"\n [attr.tabindex]="getTabIndex"\n (focus)="focusCalendar.emit()"\n (focusout)="blurCalendar.emit($event)"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead" role="rowgroup">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames; let i = index;"\n class="k-calendar-th"\n scope="col"\n [attr.aria-label]="wideWeekNames[i]"\n role="columnheader"\n >{{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 (focusedCellId)="focusedCellChange.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:wt,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId"]}],directives:[{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:kt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,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 [attr.aria-labelledby]="id"\n [attr.aria-activedescendant]="getActiveDescendant"\n [attr.tabindex]="getTabIndex"\n (focus)="focusCalendar.emit()"\n (focusout)="blurCalendar.emit($event)"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead" role="rowgroup">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames; let i = index;"\n class="k-calendar-th"\n scope="col"\n [attr.aria-label]="wideWeekNames[i]"\n role="columnheader"\n >{{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 (focusedCellId)="focusedCellChange.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:y},{type:c.IntlService},{type:ct},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2}]},propDecorators:{handleFocus:[{type:h.HostListener,args:["focus"]}],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}],activeDescendant:[{type:h.Input}],tabIndex:[{type:h.Input}],disabled:[{type:h.Input}],id:[{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}],focusCalendar:[{type:h.Output}],blurCalendar:[{type:h.Output}],focusedCellChange:[{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(Tt.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Tt.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)))},Tt.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=g[this.activeView],this.todayMessage=this.localization.get("today"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},Tt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Tt.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(le(pe(),this.min,this.max)))},Tt.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},Tt.prototype.isDisabled=function(){return this.navigate?null:""},Tt.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},Tt.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},Tt.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)):""},Tt.prototype.setTodayAvailability=function(){var e=pe(),t=oe(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var It=Tt;function Tt(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(G),this.max=new Date(X),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}It.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:It,deps:[{token:y},{token:a.ChangeDetectorRef},{token:r.LocalizationService},{token:c.IntlService},{token:C}],target:a.ɵɵFactoryTarget.Component}),It.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:It,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",id:"id"},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:a,template:'\n <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title"\n role="button"\n [id]="id"\n tabindex="-1"\n [class.k-disabled]="!navigate"\n [attr.aria-disabled]="isDisabled()"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [title]="parentViewButtonTitle"\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 tabindex="-1"\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 tabindex="-1"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n role="link"\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 tabindex="-1"\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:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:It,decorators:[{type:h.Component,args:[{selector:"kendo-calendar-header",template:'\n <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title"\n role="button"\n [id]="id"\n tabindex="-1"\n [class.k-disabled]="!navigate"\n [attr.aria-disabled]="isDisabled()"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [title]="parentViewButtonTitle"\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 tabindex="-1"\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 tabindex="-1"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n role="link"\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 tabindex="-1"\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:y},{type:a.ChangeDetectorRef},{type:r.LocalizationService},{type:c.IntlService},{type:C}]},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}],id:[{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"]}]}});xt.prototype.performSelection=function(e){var t,n=e.date,i=e.modifiers,a=e.selectionMode,o=e.activeViewEnum,r=e.rangePivot,e=e.selectedDates.slice();return"multiple"===a?i.ctrlKey||i.metaKey?(this.isDateSelected(e,n)?e=e.filter(function(e){return!k.isEqual(e,n)}):e.push(n),r=n):i.shiftKey?(t=(a=b(we([r||n,n]),2))[0],a=a[1],e=this.bus.service(o).dateRange(t,a),r=n>e[0]?e[0]:fe(e),i.anyArrow&&(t=(o=b(we([this.lastClicked||n,n]),2))[0],a=o[1],e=this.bus.service(0).dateRange(t,a))):(e=[n],r=n):(e=[n],r=n),{selectedDates:e,rangePivot:r}},xt.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var Vt=xt;function xt(e){this.bus=e}Vt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vt,deps:[{token:y}],target:a.ɵɵFactoryTarget.Injectable}),Vt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:y}]}});function St(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function Et(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function Rt(){return null}function Ot(t){return o(t)?function(e){return o(e)&&o(e.start)&&o(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}:Rt}var Mt=function(e){this.templateRef=e},Nt=(Mt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Mt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Mt,selector:"[kendoCalendarCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Ft=(Nt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Nt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Nt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Nt,selector:"[kendoCalendarMonthCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Nt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Pt=(Ft.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Ft.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ft,selector:"[kendoCalendarYearCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),At=(Pt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Pt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pt,selector:"[kendoCalendarDecadeCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Lt=(At.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:At,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),At.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:At,selector:"[kendoCalendarCenturyCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:At,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),Bt=(Lt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Lt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Lt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Lt,selector:"[kendoCalendarWeekNumberCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Lt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),zt=(Bt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Bt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Bt,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarHeaderTitleTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),{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}),jt=(Ht.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return zt[e]},Ht.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},Ht);function Ht(e){this.bus=e}jt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jt,deps:[{token:y}],target:a.ɵɵFactoryTarget.Injectable}),jt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:y}]}});dt($t,_t=t.ComponentMessages);var _t,I=$t;function $t(){return null!==_t&&_t.apply(this,arguments)||this}I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:null,target:a.ɵɵFactoryTarget.Directive}),I.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"kendo-multiview-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:h.Directive,args:[{selector:"kendo-multiview-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}],parentViewButtonTitle:[{type:h.Input}]}});dt(Ut,Yt=I);var Yt,Kt=Ut;function Ut(e){var t=Yt.call(this)||this;return t.service=e,t}Kt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kt,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Kt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Kt,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:I,useExisting:h.forwardRef(function(){return Kt})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kt,decorators:[{type:h.Directive,args:[{providers:[{provide:I,useExisting:h.forwardRef(function(){return Kt})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Wt="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",T={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Zt})},qt={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Zt})},Zt=(Object.defineProperty(V.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||pe()},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"headerId",{get:function(){return this.id+"header-"},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"multiViewCalendarHeaderIdLabel",{get:function(){return 2===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"calendarHeaderIdLabel",{get:function(){return 1===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(G)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(X)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(o).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(o).map(function(e){return k.cloneDate(e)});Ce(e,this.selectedDates)||(t=fe(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"activeViewEnum",{get:function(){var e=g[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"bottomViewEnum",{get:function(){return g[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"topViewEnum",{get:function(){return g[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"widgetId",{get:function(){return 2===this.views?this.id:null},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),V.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},V.prototype.handleFocus=function(){this.isActive=!0,this.focusCalendar.emit()},V.prototype.handleMouseEnter=function(){this.isHovered=!0},V.prototype.handleMouseLeave=function(){this.isHovered=!1},V.prototype.handleMousedown=function(e){e.preventDefault()},V.prototype.handleClick=function(){this.isActive||this.focus()},V.prototype.keydown=function(e){var t=e.keyCode===m.Keys.ArrowRight&&(e.ctrlKey||e.metaKey),n=e.keyCode===m.Keys.ArrowLeft&&(e.ctrlKey||e.metaKey),i=e.keyCode===m.Keys.KeyT,a=e.keyCode===m.Keys.Enter;t?(e.preventDefault(),this.navigateView(this.nextView)):n?(e.preventDefault(),this.navigateView(this.prevView)):i?(this.focusedDate=pe(),this.bus.moveToBottom(this.activeViewEnum)):(a&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e)),t=le(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),K(e)&&(e.anyArrow=!0,this.performSelection(this.focusedDate,e))))},V.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.bus.viewChanged.subscribe(function(e){e=e.view;t.activeView=g[e],t.activeViewChange.emit(t.activeView),t.cdr.detectChanges(),t.updateButtonState()}))},V.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),ge(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=le(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?St(this.min):f,this.maxValidateFn=this.rangeValidation?Et(this.max):f,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?Ot(this.disabledDatesService.isDateDisabled):f,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},V.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},V.prototype.ngAfterViewInit=function(){this.updateButtonState()},V.prototype.focus=function(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus()},V.prototype.blur=function(){this.element&&(2===this.views?this.element.nativeElement.querySelector(".k-calendar-view"):this.element.nativeElement.querySelector(".k-content.k-calendar-table")).blur()},V.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&&Ce(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))))},V.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)},V.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},V.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},V.prototype.registerOnChange=function(e){this.onControlChange=e},V.prototype.registerOnTouched=function(e){this.onControlTouched=e},V.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},V.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},V.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},V.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case g.month:return this.monthCellTemplateRef||this.cellTemplateRef;case g.year:return this.yearCellTemplateRef;case g.decade:return this.decadeCellTemplateRef;case g.century:return this.centuryCellTemplateRef;default:return null}},V.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},V.prototype.emitNavigate=function(e){var t=g[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},V.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},V.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.selectionService.lastClicked=t,this.performSelection(t,e),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},V.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:fe(e)})})},V.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-md"),this.renderer.addClass(e,"k-calendar-range")},V.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.")}},V.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 "+Wt+" 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 "+Wt+" for possible resolution.")}},V.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()})},V.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(fe(e)):e.map(function(e){return k.cloneDate(e)})},V.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})},V);function V(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.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=g[g.month],this.bottomView=g[g.month],this.topView=g[g.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.focusCalendar=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(G),this._max=new Date(X),this._focusedDate=pe(),this.resolvedPromise=Promise.resolve(),this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.disabledDatesRangeValidateFn=f,this.subscriptions=new p.Subscription,this.setClasses(t.nativeElement),this.id="kendo-multiviewcalendarid-"+this.bus.calendarId+"-"}Zt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zt,deps:[{token:y},{token:a.ElementRef},{token:jt},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:C},{token:Vt}],target:a.ɵɵFactoryTarget.Component}),Zt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Zt,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",focusCalendar:"focusCalendar"},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.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[y,T,qt,t.LocalizationService,C,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},jt,Vt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Bt,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:It,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:Dt,descendants:!0}],exportAs:["kendo-multiviewcalendar"],usesOnChanges:!0,ngImport:a,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 i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"\n parentViewButtonTitle="Navigate to parent view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="headerId"\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 >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [id]="calendarHeaderIdLabel"\n [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"\n [activeView]="activeViewEnum"\n [activeDescendant]="ariaActivedescendant"\n [isActive]="isActive || isHovered"\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 [tabIndex]="tabIndex"\n [disabled]="disabled"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n (focusCalendar)="handleFocus()"\n (blurCalendar)="handleFocusout($event)"\n >\n </kendo-calendar-horizontal>\n ',isInline:!0,components:[{type:It,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","id"],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","activeDescendant","tabIndex","disabled","id","weekNumber"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange","focusCalendar","blurCalendar","focusedCellChange"]}],directives:[{type:Kt,selector:"[kendoMultiViewCalendarLocalizedMessages]"}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[y,T,qt,t.LocalizationService,C,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},jt,Vt],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 i18n-parentViewButtonTitle="kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header"\n parentViewButtonTitle="Navigate to parent view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="headerId"\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 >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [id]="calendarHeaderIdLabel"\n [attr.aria-labelledby]="multiViewCalendarHeaderIdLabel"\n [activeView]="activeViewEnum"\n [activeDescendant]="ariaActivedescendant"\n [isActive]="isActive || isHovered"\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 [tabIndex]="tabIndex"\n [disabled]="disabled"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n (focusCalendar)="handleFocus()"\n (blurCalendar)="handleFocusout($event)"\n >\n </kendo-calendar-horizontal>\n '}]}],ctorParameters:function(){return[{type:y},{type:a.ElementRef},{type:jt},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:C},{type:Vt}]},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"]}],focusCalendar:[{type:h.Output}],cellTemplate:[{type:h.ContentChild,args:[Mt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[It,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[Dt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}],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"]]}]}});Xt.prototype.height=function(e){return this.heights[e]},Xt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},Xt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},Xt.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},Xt.prototype.offset=function(e){return this.offsets[e]},Xt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},Xt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,ht(ht([],b(n.slice(0,e+1))),b(n.slice(e+1).map(function(e){return e+i}))))};var Gt=Xt;function Xt(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 Qt(e){return Math.max(e,0)}var Jt=function(e){this.offset=e},en=function(e){this.skip=e},tn=(nn.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=Qt(t-e);return l.next(new Jt(this.rowOffset(n))),e&&l.next(new en(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},nn.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},nn.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(Qt(i-this.topOffset)),i=this.rowHeightService.index(Qt(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new Jt(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new en(this.firstLoaded))),a&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Qt(e-n),t.next(new Jt(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new en(this.firstLoaded))))},nn.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},nn.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},nn.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},nn);function nn(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var an,on=new h.InjectionToken("dateinputs-scroll-service-factory");function rn(e){return new tn(e)}(T=an=an||{})[T.Backward=0]="Backward",T[T.Forward=1]="Forward";(qt={})[an.Forward]=function(t){return function(e){return e+t}},qt[an.Backward]=function(t){return function(e){return e-t}};var sn=qt,ln=((T={})[an.Forward]=function(t){return function(e){return Math.min(e,t)}},T[an.Backward]=function(t){return function(e){return Math.max(e,t)}},T),cn=((qt={})[an.Forward]=function(t){return function(e){return e<t}},qt[an.Backward]=function(t){return function(e){return t<e}},qt),T=(Object.defineProperty(x.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),x.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},x.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},x.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular(function(){t.containerScrollSubscription=t.scroll$().pipe(B.map(function(e){return e.target})).subscribe(function(e){t.dispatcher.next(e),t.emitActiveIndex()})})},x.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},x.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},x.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},x.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},x.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},x.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)},x.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},x.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},x.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},x.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},x.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=sn[r](t),i=ln[r](e),a=cn[r](n(e)),this.zone.runOutsideAngular(function(){o.animationSubscription=p.combineLatest(p.of(s),p.interval(0,p.animationFrameScheduler)).pipe(B.map(function(e){return e[0]}),B.scan(n),B.takeWhile(a),B.map(i)).subscribe(function(e){return o.scrollTo(e)})}))},x.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===an.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})},x.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},x.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},x.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 en?t.pageChange:t.scrollChange).emit(e)})},x.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Gt(this.total,e,0)},x.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},x.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},x.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?an.Backward:an.Forward},x);function x(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)}T.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,deps:[{token:on},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Component}),T.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:T,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:on,useValue:rn}],usesOnChanges:!0,ngImport:a,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:u.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:h.Component,args:[{providers:[{provide:on,useValue:rn}],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:[on]}]},{type:a.ElementRef},{type:a.Renderer2},{type:a.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 pn(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=In([wn([Cn([kn("1","k-calendar-th")],"k-calendar-tr")].concat(xn(n,function(){return Cn(xn(i,function(e){return bn('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=fn([Tn(),t?Vn():null,Sn([n,n])],e,{left:"-10000px",position:"absolute"})),r):null}}function un(e){return Rn(e).classList.add("k-scrollable-horizontal"),e}function dn(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function hn(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function mn(e){return e.querySelector("tbody")}var gn,fn=he("div"),vn=he("ul"),yn=he("li"),bn=he("td"),kn=he("th"),Cn=he("tr"),wn=he("tbody"),Dn=he("thead"),In=he("table"),Tn=function(){return fn('\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")},Vn=function(){return In([Dn([Cn([kn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},xn=function(e,t){return new Array(e).fill("1").map(t)},Sn=function(e){return fn(e,"k-flex k-content k-scrollable")},En=function(){return m.isDocumentAvailable?gn=gn||fn([Sn([vn([yn("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},Rn=function(e){return e.querySelector(".k-scrollable")},On=pn({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Mn=pn({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Nn=pn({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Fn=(Pn.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},Pn.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(On(),function(e){var t=mn(e);n.calendarHeight=dn(e),n.monthViewHeight=dn(t),n.headerHeight=dn(t.children[0]),n.scrollableContentHeight=dn(Rn(e))}),this.batch(un(On()),function(e){var t=mn(e);n.calendarWidth=hn(e),n.monthViewWidth=hn(t),n.scrollableContentWidth=hn(Rn(e))}),this.batch(Mn(),function(e){n.yearViewHeight=dn(mn(e)),n.scrollableYearContentHeight=dn(Rn(e))}),this.batch(un(Mn()),function(e){n.yearViewWidth=hn(mn(e))}),this.batch(Nn(),function(e){n.decadeViewHeight=dn(mn(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(un(Nn()),function(e){n.decadeViewWidth=hn(mn(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(En(),function(e){n.navigationItemHeight=dn(e.querySelector("li"))}))},Pn.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},Pn.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},Pn.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case g.month:return this["month"+n];case g.year:return this["year"+n];case g.decade:return this["decade"+n];case g.century:return this["century"+n];default:return 1}},Pn.prototype.batch=function(e,t){if(o(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},Pn);function Pn(){}Fn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fn,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Fn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fn,decorators:[{type:h.Injectable}]});Object.defineProperty(An.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),An.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))},An.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=g[this.activeView],t=le(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)))},An.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},An.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},An.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},An.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},An.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)},An.prototype.handleDateChange=function(e){var e=mt(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)))},An.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},An.prototype.intlChange=function(){this.activeView===g.month&&this.cdr.markForCheck()};qt=An;function An(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(G),this.max=new Date(X),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}qt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qt,deps:[{token:y},{token:Fn},{token:c.IntlService},{token:a.ChangeDetectorRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),qt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:qt,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:T,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a,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:T,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:kt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qt,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:y},{type:Fn},{type:c.IntlService},{type:a.ChangeDetectorRef},{type:a.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:[T,{static:!1}]}],list:[{type:h.ViewChild,args:["list",{static:!0}]}],getComponentClass:[{type:h.HostBinding,args:["class.k-calendar-navigation"]}]}});Object.defineProperty(Bn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(Bn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(Bn.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(Bn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(Bn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),Bn.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),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))},Bn.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=me(e,"weekNumber")&&this.weekNumber?this.getWeekNames("short"):this.weekNames,this.wideWeekNames=me(e,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames,t=me(e,"activeView"),n=this.focusedDate,a=le(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=me(e,"focusedDate")||t,(i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min)))},Bn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Bn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Bn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},Bn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Bn.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)},Bn.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},Bn.prototype.isMonthView=function(){return this.activeView===g.month},Bn.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},Bn.prototype.getTabIndex=function(){return this.disabled?null:this.tabIndex},Bn.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},Bn.prototype.getScrollableHeight=function(){return this.activeView===g.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},Bn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Bn.prototype.getWeekNames=function(e){e=de(this.intl.dateFormatNames({nameType:e,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},Bn.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()};var Ln=Bn;function Bn(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(G),this.max=new Date(X),this.selectedDates=[],this.tabIndex=0,this.disabled=!1,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.focusCalendar=new h.EventEmitter,this.blurCalendar=new h.EventEmitter,this.focusedCellChange=new h.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.wideWeekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}Ln.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ln,deps:[{token:y},{token:a.ChangeDetectorRef},{token:c.IntlService},{token:Fn},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Ln.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ln,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",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},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:T,descendants:!0},{propertyName:"list",first:!0,predicate:["list"],descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a,template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [id]="id"\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; let i = index;" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{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 [attr.tabindex]="getTabIndex()"\n [attr.aria-labelledby]="id"\n (focus)="focusCalendar.emit()"\n (focusout)="blurCalendar.emit($event)"\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 (focusedCellId)="focusedCellChange.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:It,selector:"kendo-calendar-header",inputs:["activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","id"],outputs:["todayButtonClick","prevButtonClick","nextButtonClick"]},{type:T,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]},{type:wt,selector:"[kendoCalendarView]",inputs:["direction","isActive","activeView","cellUID","focusedDate","viewDate","activeRangeEnd","selectionRange","min","max","selectedDates","weekNumber","viewIndex","templateRef","weekNumberTemplateRef"],outputs:["cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId"]}],directives:[{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:kt,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ln,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 [id]="id"\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; let i = index;" scope="col" [attr.aria-label]="wideWeekNames[i]" role="columnheader">{{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 [attr.tabindex]="getTabIndex()"\n [attr.aria-labelledby]="id"\n (focus)="focusCalendar.emit()"\n (focusout)="blurCalendar.emit($event)"\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 (focusedCellId)="focusedCellChange.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:y},{type:a.ChangeDetectorRef},{type:c.IntlService},{type:Fn},{type:a.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}],tabIndex:[{type:h.Input}],disabled:[{type:h.Input}],id:[{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}],focusCalendar:[{type:h.Output}],blurCalendar:[{type:h.Output}],focusedCellChange:[{type:h.Output}],virtualization:[{type:h.ViewChild,args:[T,{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"]}]}});jn.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})},jn.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))})}))},jn.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},jn.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},jn.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},jn.prototype.destroy=function(){this.unsubscribe()},jn.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var zn=jn;function jn(e,t){this.dom=e,this.zone=t}zn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zn,deps:[{token:Fn},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),zn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zn,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:Fn},{type:a.NgZone}]}});function Hn(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var _n,$n=function(e){this.templateRef=e},Yn=($n.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$n,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),$n.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:$n,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:$n,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),dt(Kn,_n=I),Object.defineProperty(Kn.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Kn);function Kn(e){var t=_n.call(this)||this;return t.service=e,t}Yn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Yn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Yn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Yn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:I,useExisting:h.forwardRef(function(){return Yn})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Yn,decorators:[{type:h.Component,args:[{providers:[{provide:I,useExisting:h.forwardRef(function(){return Yn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});dt(Wn,Un=t.ComponentMessages);var Un,I=Wn;function Wn(){return null!==Un&&Un.apply(this,arguments)||this}I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:null,target:a.ɵɵFactoryTarget.Directive}),I.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"kendo-calendar-messages-base",inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:h.Directive,args:[{selector:"kendo-calendar-messages-base"}]}],propDecorators:{today:[{type:h.Input}],prevButtonTitle:[{type:h.Input}],nextButtonTitle:[{type:h.Input}],parentViewButtonTitle:[{type:h.Input}]}});dt(Gn,qn=I);var qn,Zn=Gn;function Gn(e){var t=qn.call(this)||this;return t.service=e,t}Zn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Zn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Zn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:I,useExisting:h.forwardRef(function(){return Zn})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zn,decorators:[{type:h.Directive,args:[{providers:[{provide:I,useExisting:h.forwardRef(function(){return Zn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function Xn(e){return e?e.virtualization:null}var Qn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Jn={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ni})},ei={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ni})},ti={provide:m.KendoInput,useExisting:h.forwardRef(function(){return ni})},ni=(Object.defineProperty(S.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||pe(),this.setAriaActivedescendant()},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"headerId",{get:function(){return this.id+"header-"},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(G)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(X)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(o).map(function(e){return k.cloneDate(e)}):k.cloneDate(e);var t,e=[].concat(e).filter(o).map(function(e){return k.cloneDate(e)});Ce(e,this.selectedDates)||(t=fe(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.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(S.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"activeViewEnum",{get:function(){var e=g[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"bottomViewEnum",{get:function(){return g[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"topViewEnum",{get:function(){return g[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"widgetId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!1,configurable:!0}),S.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(g[e])}),this.control=this.injector.get(n.NgControl,null),this.element&&this.ngZone.runOutsideAngular(function(){t.bindEvents()})},S.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),ge(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=le(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?St(this.min):f,this.maxValidateFn=this.rangeValidation?Et(this.max):f,this.onValidatorChange())},S.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},S.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Xn(this.navigationView),Xn(this.monthView)))},S.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},S.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},S.prototype.focus=function(){var e;this.currentlyFocusedElement="infinite"===this.type?null==(e=this.element)?void 0:e.nativeElement.querySelector(Se):this.currentlyFocusedElement=null==(e=this.element)?void 0:e.nativeElement.querySelector(Ee),null!=(e=this.currentlyFocusedElement)&&e.focus()},S.prototype.blur=function(){var e="infinite"===this.type?this.currentlyFocusedElement:this.multiViewCalendar;o(e)&&e.blur()},S.prototype.containsElement=function(e){var t=this;return Boolean(gt(e,function(e){return e===t.element.nativeElement}))},S.prototype.handleNavigation=function(e){this.disabled||(e=e?new Date(k.cloneDate(e).setDate(1)):this.focusedDate,this.focusedDate=le(e,this.min,this.max),this.detectChanges())},S.prototype.onPageChange=function(){var e=this;h.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=p.from(this.resolvedPromise).subscribe(function(){e.detectChanges()}))},S.prototype.handleMultiViewCalendarValueChange=function(e,t){e=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:e,focusedDate:t})},S.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&&Ce(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()}))},S.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},S.prototype.registerOnChange=function(e){this.onControlChange=e},S.prototype.registerOnTouched=function(e){this.onControlTouched=e},S.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},S.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},S.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},S.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case g.month:return this.monthCellTemplateRef||this.cellTemplateRef;case g.year:return this.yearCellTemplateRef;case g.decade:return this.decadeCellTemplateRef;case g.century:return this.centuryCellTemplateRef;default:return null}},S.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},S.prototype.emitNavigate=function(e){var t=g[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},S.prototype.emitEvent=function(e,t){m.hasObservers(e)&&this.ngZone.run(function(){e.emit(t)})},S.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},S.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},S.prototype.handleCellClick=function(e){var t=e.date,e=e.modifiers;this.focus(),this.selectionService.lastClicked=t,this.performSelection(t,e)},S.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:fe(e)})})},S.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&_(this.control)?this.ngZone.run(function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()}):(this.emitBlur(e),this.detectChanges()))},S.prototype.handleFocus=function(){this.isActive=!0,h.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},S.prototype.handleMultiViewCalendarKeydown=function(e){o(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault()},S.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-md"),this.renderer.addClass(e,"k-calendar-"+this.type)},S.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.")}},S.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 "+Qn+" 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 "+Qn+" for possible resolution.")}},S.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)))},S.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},S.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},S.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=k.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},S.prototype.handleKeydown=function(e){var t;"infinite"===this.type&&(t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),o(this.pickerService)&&t&&e.altKey||(o(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),t=le(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.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e)),e.keyCode===m.Keys.KeyT&&this.focusToday(),K(e)&&(e.anyArrow=!0,this.performSelection(this.focusedDate,e))))},S.prototype.focusToday=function(){this.focusedDate=pe(),this.bus.moveToBottom(this.activeViewEnum),this.cdr.detectChanges()},S.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},S.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},S.prototype.setAriaActivedescendant=function(){var e,t=null==(t=this.element.nativeElement)?void 0:t.querySelector(Se);o(t)&&("classic"!==this.type||t.hasAttribute(Re))&&("classic"===this.type?this.renderer.removeAttribute(t,Re):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(t,Re,e)))},S.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(fe(e)):e.map(function(e){return k.cloneDate(e)})},S.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})},S);function S(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.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=g[g.month],this.bottomView=g[g.month],this.topView=g[g.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(G),this._max=new Date(X),this._focusedDate=pe(),this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,A.validatePackage(q),this.id="kendo-calendarid-"+this.bus.calendarId+"-",this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}ni.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ni,deps:[{token:y},{token:Fn},{token:a.ElementRef},{token:jt},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Injector},{token:zn},{token:C},{token:r.LocalizationService},{token:Vt},{token:Hn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),ni.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ni,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.aria-disabled":"this.ariaDisabled","class.k-disabled":"this.ariaDisabled"}},providers:[y,Jn,ei,ti,t.LocalizationService,C,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},jt,zn,Vt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:$n,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:qt,descendants:!0},{propertyName:"monthView",first:!0,predicate:Ln,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Zt,descendants:!0}],exportAs:["kendo-calendar"],usesOnChanges:!0,ngImport:a,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 i18n-parentViewButtonTitle="kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header"\n parentViewButtonTitle="Navigate to parent 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 [id]="headerId"\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 [tabIndex]="tabIndex"\n [disabled]="disabled"\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 (focusCalendar)="handleFocus()"\n (blurCalendar)="handleBlur($event)"\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 [id]="id"\n [isActive]="isActive"\n [tabIndex]="tabIndex"\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 (focusCalendar)="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 [parentViewButtonTitle]="localization.get(\'parentViewButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n ',isInline:!0,components:[{type:qt,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Ln,selector:"kendo-calendar-viewlist",inputs:["cellTemplateRef","weekNumberTemplateRef","headerTitleTemplateRef","activeView","cellUID","focusedDate","isActive","min","max","selectedDates","tabIndex","disabled","id","weekNumber"],outputs:["cellClick","weekNumberCellClick","activeDateChange","todayButtonClick","pageChange","focusCalendar","blurCalendar","focusedCellChange"]},{type:s.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Zt,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","focusCalendar"],exportAs:["kendo-multiviewcalendar"]},{type:Yn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Zn,selector:"[kendoCalendarLocalizedMessages]"},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ni,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[y,Jn,ei,ti,t.LocalizationService,C,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},jt,zn,Vt],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 i18n-parentViewButtonTitle="kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header"\n parentViewButtonTitle="Navigate to parent 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 [id]="headerId"\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 [tabIndex]="tabIndex"\n [disabled]="disabled"\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 (focusCalendar)="handleFocus()"\n (blurCalendar)="handleBlur($event)"\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 [id]="id"\n [isActive]="isActive"\n [tabIndex]="tabIndex"\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 (focusCalendar)="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 [parentViewButtonTitle]="localization.get(\'parentViewButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:y},{type:Fn},{type:a.ElementRef},{type:jt},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Injector},{type:zn},{type:C},{type:r.LocalizationService},{type:Vt},{type:Hn,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:[Mt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[$n,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[qt,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Ln,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Zt,{static:!1}]}],widgetId:[{type:h.HostBinding,args:["attr.id"]}],ariaDisabled:[{type:h.HostBinding,args:["attr.aria-disabled"]},{type:h.HostBinding,args:["class.k-disabled"]}]}});function ii(){return function(e,t){return!o(e.value)&&t?{incompleteDate:!0}:null}}(Jn=ai=ai||{})[Jn.Up=0]="Up",Jn[Jn.Down=1]="Down",Jn[Jn.None=2]="None",dt(ri,oi=t.ComponentMessages);var ai,oi,ei=ri;function ri(){return null!==oi&&oi.apply(this,arguments)||this}ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,deps:null,target:a.ɵɵFactoryTarget.Directive}),ei.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ei,selector:"kendo-dateinput-messages-base",inputs:{decrement:"decrement",increment:"increment"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});dt(ci,si=ei);var si,li=ci;function ci(e){var t=si.call(this)||this;return t.service=e,t}li.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:li,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),li.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:li,selector:"[kendoDateInputLocalizedMessages]",providers:[{provide:ei,useExisting:h.forwardRef(function(){return li})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:li,decorators:[{type:h.Directive,args:[{providers:[{provide:ei,useExisting:h.forwardRef(function(){return li})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function pi(e){return e.replace(/^0*/,"")}var ui=/year|month|<day>/,di=/hour|minute|second|millisecond/,hi=/d|M|H|h|m|s/,mi=function(){this.symbols=""},gi=(fi.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)},fi.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},fi.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)},fi.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},fi.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}},fi.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}},fi.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)},fi.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+(pi(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}},fi.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},fi.prototype.setLeadingZero=function(e){this.leadingZero=e},fi.prototype.normalizeCentury=function(e){var t,n;return o(e)?(t=!o(t=e)||isNaN(t.getTime())?0:Number(t.getFullYear().toString().slice(-2)),n=this.getNormalizedCenturyBase(t),Be(e,n+t)):e},fi.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},fi.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},fi.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},fi.prototype.peek=function(e,t){e=pi(e)+"0";return t=t.length-e.length,new Array(Math.max(t,0)).fill("0").join("")+e},fi.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""},fi.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""},fi.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},fi.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},fi.prototype.patternLength=function(e){return"y"===e[0]?4:hi.test(e)?2:0},fi.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 mi;return t.symbols=i.join(""),t.partMap=a,t},fi.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]},fi.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})))},fi.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},fi);function fi(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"},A.validatePackage(q),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&&!oe(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,Te("input",this.size));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Te("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,Ve(this.rounded));e=e||$e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve(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,xe("input",this.fillMode));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,xe("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&&!o(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,"formControl",{get:function(){var e=this.injector.get(n.NgControl,null);return(null==e?void 0:e.control)||null},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(gt(e,function(e){return e===t.wrapper.nativeElement}))},E.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.subs.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.ngControl=this.injector.get(n.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))},E.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?St(this.min):f,this.maxValidator=this.rangeValidation?Et(this.max):f,this.incompleteValidator=this.incompleteDateValidation?ii():f,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.ngAfterViewInit=function(){var e=this,t=(this.setComponentClasses(),null==(t=this.injector.get(n.NgControl,null))?void 0:t.control);this.control=t,this.subs.add(null==(t=this.formControl)?void 0:t.statusChanges.subscribe(function(){return e.setAriaInvalid()})),this.setAriaInvalid()},E.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})},E.prototype.setAriaInvalid=function(){this.control&&(this.control.invalid?this.renderer.setAttribute(this.inputElement,Ae,"true"):this.renderer.setAttribute(this.inputElement,Ae,"false"))},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.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=ai.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=o(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)||_(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||{}).leadingZero,e=new gi(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&&o(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()&&!se(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=le(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||ui.test(t.type),time:e||di.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=o(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(Le(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&&(o(this.ngControl)&&!o(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(function(){return e.onValidatorChange()})):o(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,Te("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Ve(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,xe("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var vi=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="textbox",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=ai,this.arrowDirection=ai.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=f,this.maxValidator=f,this.incompleteValidator=f,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this._size=Ye,this._rounded=$e,this._fillMode=Ke,this.subs=new p.Subscription,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}vi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:vi,deps:[{token:a.ChangeDetectorRef},{token:c.IntlService},{token:a.Renderer2},{token:a.ElementRef},{token:a.NgZone},{token:a.Injector},{token:r.LocalizationService},{token:Hn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),vi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:vi,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:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return vi})},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:a,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:li,selector:"[kendoDateInputLocalizedMessages]"},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:vi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return vi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return vi})},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:a.ChangeDetectorRef},{type:c.IntlService},{type:a.Renderer2},{type:a.ElementRef},{type:a.NgZone},{type:a.Injector},{type:r.LocalizationService},{type:Hn,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}]}]}});bi.prototype.preventDefault=function(){this.prevented=!0},bi.prototype.isDefaultPrevented=function(){return this.prevented};var yi=bi;function bi(){this.prevented=!1}function ki(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}var Ci,wi=new h.InjectionToken("dateinputs-touch-enabled"),Di=(dt(Ii,Ci=I),Object.defineProperty(Ii.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ii);function Ii(e){var t=Ci.call(this)||this;return t.service=e,t}Di.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Di,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Di.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Di,selector:"kendo-calendar-messages",providers:[{provide:I,useExisting:h.forwardRef(function(){return Di})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Di,decorators:[{type:h.Component,args:[{providers:[{provide:I,useExisting:h.forwardRef(function(){return Di})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});dt(Vi,Ti=t.ComponentMessages);var Ti,ti=Vi;function Vi(){return null!==Ti&&Ti.apply(this,arguments)||this}ti.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ti,deps:null,target:a.ɵɵFactoryTarget.Directive}),ti.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:ti,selector:"kendo-datepicker-messages-base",inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ti,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}]}});dt(Ei,xi=ti);var xi,Si=Ei;function Ei(e){var t=xi.call(this)||this;return t.service=e,t}Si.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Si,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Si.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Si,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:ti,useExisting:h.forwardRef(function(){return Si})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Si,decorators:[{type:h.Directive,args:[{providers:[{provide:ti,useExisting:h.forwardRef(function(){return Si})}],selector:"[kendoDatePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.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,Te("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Te("input",this.size));e=e||Ye;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Te("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Te("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,Ve(this.rounded));e=e||$e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve(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,xe("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,xe("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ke;"none"!==e&&(this.renderer.addClass(this.toggleButton.nativeElement,xe("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,xe("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,"popupUID",{get:function(){var e;return null==(e=this.calendar)?void 0:e.id},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(n.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?St(this.min):f,this.maxValidateFn=this.rangeValidation?Et(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?ki(this.disabledDatesService.isDateDisabled):f,this.incompleteValidator=this.incompleteDateValidation?ii():f,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?Le(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,!!o(n=e)&&("infinite"===t||"classic"===t&&i&&n.classList.contains("k-calendar-table")||!i&&n.classList.contains("k-calendar-table"))&&(this.input.focus(),this.show=!1))},R.prototype.togglePopup=function(e){var t=new yi;!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,n=this;e!==this._show&&(this._show=e,t=this.wrapper.nativeElement.querySelector("input"),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"}),"infinite"===this.calendar.type?this.pickerSubscriptions.add(this.calendar.monthView.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Re,e)})):this.pickerSubscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Re,e)})),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(t,Oe,this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(function(){return n.show=!1})):(this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe(),this.renderer.removeAttribute(t,Oe),this.renderer.removeAttribute(t,Re),this.cdr.detectChanges()))},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()&&!se(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))),ue()&&(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&&Y(e);e&&(this.input.containsElement(e)||this.calendar&&this.calendar.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||_(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,Te("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Te("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Ve(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,xe("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,xe("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var Ri=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-datepicker-"+(null==(e=this.calendar)?void 0:e.id)+"-",this.activeView=g[g.month],this.bottomView=g[g.month],this.topView=g[g.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=k.cloneDate(G),this.max=k.cloneDate(X),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._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.disabledDatesValidateFn=f,this.incompleteValidator=f,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=Ye,this._rounded=$e,this._fillMode=Ke,A.validatePackage(q),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)))}Ri.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ri,deps:[{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:W.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:Hn},{token:C},{token:wi,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ri.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ri,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:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ri}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ri}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ri})},t.LocalizationService,Hn,C,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:$n,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:a,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]="\'combobox\'"\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:vi,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:ni,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:Di,selector:"kendo-calendar-messages"}],directives:[{type:Si,selector:"[kendoDatePickerLocalizedMessages]"},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ri,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ri}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ri}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ri})},t.LocalizationService,Hn,C,{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]="\'combobox\'"\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:a.NgZone},{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:W.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:Hn},{type:C},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[wi]}]}]},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:[Mt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[$n,{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 Oi(e,t){return Li(24+e-t)}function Mi(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:ze(e,n)}}var Ni,Jn="dayperiod",I="hour",Fi="millisecond",Pi="minute",Ai="second",Li=(Ni=24,function(e){return e%Ni}),Bi=Mi(0),zi=Mi(23),ji=(Hi.prototype.apply=function(e,t){return ze(e,t.getHours())},Hi.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=ze(Z,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},Hi.prototype.data=function(e){var t,n,i=this,a=b(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Li(t+e*n)}),a=ae(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Hi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Hi.prototype.limitRange=function(e,t,n){return this.boundRange?[Bi(e,n),zi(t,n)]:[e,t]},Hi.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},Hi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Hi.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},Hi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},Hi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getHours()),e.splice(this.selectedIndex(t),0,n)),e},Hi.prototype.countFromMin=function(e){var e=b(this.range(e),2),t=e[0],e=e[1];return Math.floor(Oi(e,t)/this.step)+1},Hi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Hi.prototype.isLastMissing=function(e){return this.isMissing(ze(this.max,this.lastHour(e)))},Hi.prototype.divideByStep=function(e){return Oi(e.getHours(),this.min.getHours())/this.step},Hi.prototype.lastHour=function(e){return this.range(e)[1]},Hi.prototype.range=function(e){var e=b(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},Hi);function Hi(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}ji.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ji,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ji.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ji}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ji,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});function _i(e,t){return Ki(60+e-t)}function $i(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:je(e,n)}}Yi=60;var Yi,Ki=function(e){return e%Yi},Ui=$i(0),Wi=$i(59),qi=(Zi.prototype.apply=function(e,t){return je(e,t.getMinutes())},Zi.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=je(Z,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Zi.prototype.data=function(e){var t,n,i=this,a=b(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Ki(t+e*n)}),a=ae(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Zi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Zi.prototype.limitRange=function(e,t,n){return[Ui(e,n),Wi(t,n)]},Zi.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},Zi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Zi.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},Zi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Zi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMinutes()),e.splice(this.selectedIndex(t),0,n)),e},Zi.prototype.countFromMin=function(e){var e=b(this.range(e),2),t=e[0],e=e[1];return Math.floor(_i(e,t)/this.step)+1},Zi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Zi.prototype.isLastMissing=function(e){return this.isMissing(je(this.max,this.lastMinute(e)))},Zi.prototype.divideByStep=function(e){return _i(e.getMinutes(),this.min.getMinutes())/this.step},Zi.prototype.lastMinute=function(e){return this.range(e)[1]},Zi.prototype.range=function(e){var e=b(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},Zi);function Zi(e){this.intl=e,this.insertUndividedMax=!1}qi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),qi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});function Gi(e,t){return Ji(60+e-t)}function Xi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:He(e,n)}}Qi=60;var Qi,Ji=function(e){return e%Qi},ea=Xi(0),ta=Xi(59),na=(ia.prototype.apply=function(e,t){return He(e,t.getSeconds())},ia.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=He(Z,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},ia.prototype.data=function(e){var t,n,i=this,a=b(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Ji(t+e*n)}),a=ae(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},ia.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},ia.prototype.limitRange=function(e,t,n){return[ea(e,n),ta(t,n)]},ia.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},ia.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},ia.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},ia.prototype.divideByStep=function(e){return Gi(e.getSeconds(),this.min.getSeconds())/this.step},ia.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},ia.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getSeconds()),e.splice(this.selectedIndex(t),0,n)),e},ia.prototype.countFromMin=function(e){var e=b(this.range(e),2),t=e[0],e=e[1];return Math.floor(Gi(e,t)/this.step)+1},ia.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},ia.prototype.isLastMissing=function(e){return this.isMissing(He(this.max,this.lastSecond(e)))},ia.prototype.lastSecond=function(e){return this.range(e)[1]},ia.prototype.range=function(e){var e=b(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},ia);function ia(e){this.intl=e,this.insertUndividedMax=!1}na.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:na,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),na.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:na}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:na,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});function aa(e,t){return sa(1e3+e-t)}function oa(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:_e(e,n)}}ra=1e3;var ra,sa=function(e){return e%ra},la=oa(0),ca=oa(999),pa=(ua.prototype.apply=function(e,t){return _e(e,t.getMilliseconds())},ua.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=_e(Z,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,this.step=e},ua.prototype.data=function(e){var t,n,i=this,a=b(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return sa(t+e*n)}),a=ae(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},ua.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},ua.prototype.limitRange=function(e,t,n){return[la(e,n),ca(t,n)]},ua.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},ua.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},ua.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},ua.prototype.divideByStep=function(e){return aa(e.getMilliseconds(),this.min.getMilliseconds())/this.step},ua.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},ua.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMilliseconds()),e.splice(this.selectedIndex(t),0,n)),e},ua.prototype.countFromMin=function(e){var e=b(this.range(e),2),t=e[0],e=e[1];return Math.floor(aa(e,t)/this.step)+1},ua.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},ua.prototype.isLastMissing=function(e){return this.isMissing(_e(this.max,this.lastMillisecond(e)))},ua.prototype.lastMillisecond=function(e){return this.range(e)[1]},ua.prototype.range=function(e){var e=b(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMilliseconds(),e.getMilliseconds()]},ua);function ua(e){this.intl=e,this.insertUndividedMax=!1}pa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),pa.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});function da(e,t){return(e=k.cloneDate(e)).setHours(t),e}function ha(e){return null!==e&&e<12}function ma(e,t,n){return!t&&!n||t<=e&&e<=n}function ga(e,t,n){return!t&&!n||t<=e||e<=n}va.prototype.apply=function(e,t){var n,i=e.getHours(),a=ha(i),t=ha(t.getHours());return a&&t||!a&&!t?e:(n=(a=b(this.normalizedRange(),2))[0],a=void 0===(a=a[1])?24:a,da(e,Math.min(Math.max(n,i+(t?-12:12)),a||24)))},va.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},va.prototype.data=function(e){var t,n,i,a,o=this.part.names;return o?(t=[],n=(i=b(this.normalizedRange(),2))[0],i=i[1],o=this.intl.dateFormatNames(o),ha(n)&&t.push({text:o.am,value:da(this.min,n)}),null!==(a=i)&&(!a||11<a)&&t.push({text:o.pm,value:da(this.min,Math.max(12,i))}),this.min.getHours()!==n?t.reverse():t):[]},va.prototype.isRangeChanged=function(e,t){return!1},va.prototype.limitRange=function(e,t,n){return[e,t]},va.prototype.total=function(){var e=b(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},va.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},va.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?ga:ma)(e.getHours(),this.min.getHours(),this.max.getHours())},va.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var fa=va;function va(e){this.intl=e}fa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fa,deps:[{token:c.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),fa.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fa}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:fa,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:c.IntlService}]}});var ya=he("div"),ba=he("ul"),ka=he("li"),O=he("span"),Ca=function(){return ba([ka("<span>02</span>","k-item")],"k-reset")},wa=m.isDocumentAvailable()?ya([O("hour","k-title k-timeselector-title"),ya([ya([Ca()],"k-time-container k-flex k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,Da=(Ia.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},Ia.prototype.calculateHeights=function(e){var t;m.isDocumentAvailable()&&(t=(e=e&&e.querySelector(".k-time-list-container")||document.body).appendChild(wa),this.timeListHeight=t.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=t.querySelector("li").getBoundingClientRect().height,e.removeChild(t))},Ia.prototype.isActive=function(e){return!(!m.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},Ia);function Ia(){}Da.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Da,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Da.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Da}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Da,decorators:[{type:h.Injectable}]});function Ta(){return null}var Va={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]}},xa=((O={})[Jn]=fa,O[I]=ji,O[Pi]=qi,O[Ai]=na,O[Fi]=pa,O),ya=(Object.defineProperty(Sa.prototype,"roleAttribute",{get:function(){return this.isDayPeriod?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(Sa.prototype,"ariaLabel",{get:function(){var e;return this.localization.get(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Object.defineProperty(Sa.prototype,"valueMin",{get:function(){var e;return null==(e=this.data[0])?void 0:e.text},enumerable:!1,configurable:!0}),Object.defineProperty(Sa.prototype,"valueMax",{get:function(){var e;return null==(e=this.data[this.data.length-1])?void 0:e.text},enumerable:!1,configurable:!0}),Object.defineProperty(Sa.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(Sa.prototype,"isDayPeriod",{get:function(){var e;return"dayperiod"===(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Sa.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(xa[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=b(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),this.renderer.setAttribute(this.hostElement,Fe,null==(e=this.getCurrentItem())?void 0:e.value.toString()),this.renderer.setAttribute(this.hostElement,Pe,null==(a=this.getCurrentItem())?void 0:a.text)},Sa.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()})},Sa.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},Sa.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},Sa.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},Sa.prototype.getCurrentItem=function(){return 0<=this.indexToScroll?this.data[this.indexToScroll]:null},Sa.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))},Sa.prototype.handleItemClick=function(e){var e=mt(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]))},Sa.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Sa.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Sa.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},Sa.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},Sa.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},Sa.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},Sa.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},Sa.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)},Sa.prototype.handleKeyDown=function(e){var t=(Va[e.keyCode]||Ta)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},Sa.prototype.bindEvents=function(){var t=this,e=(this.scrollSubscription=this.virtualization.scroll$().pipe(B.debounceTime(100),B.map(function(e){return e.target.scrollTop}),B.map(function(e){return t.itemOffset(e)}),B.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)))},Sa);function Sa(e,t,n,i,a,o){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.localization=o,this.min=k.cloneDate(Z),this.max=k.cloneDate(J),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=[],this.hostElement=this.element.nativeElement}ya.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ya,deps:[{token:a.ElementRef},{token:a.Injector},{token:Da},{token:a.Renderer2},{token:a.NgZone},{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),ya.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ya,selector:"kendo-timelist",inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},host:{properties:{"attr.role":"this.roleAttribute","attr.aria-label":"this.ariaLabel","attr.valuemin":"this.valueMin","attr.valuemax":"this.valueMax","attr.tabindex":"this.tabIndex","class.k-time-list":"this.componentClass"}},viewQueries:[{propertyName:"virtualization",first:!0,predicate:T,descendants:!0,static:!0}],usesOnChanges:!0,ngImport:a,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 [attr.role]="isDayPeriod ? \'presentation\' : null"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index"\n [attr.role]="isDayPeriod ? \'option\' : null"\n >\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n ',isInline:!0,components:[{type:T,selector:"kendo-virtualization",inputs:["direction","itemHeight","itemWidth","topOffset","bottomOffset","maxScrollDifference","scrollOffsetSize","scrollDuration","skip","take","total"],outputs:["activeIndexChange","pageChange","scrollChange"]}],directives:[{type:u.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ya,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 [attr.role]="isDayPeriod ? \'presentation\' : null"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index"\n [attr.role]="isDayPeriod ? \'option\' : null"\n >\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}]}],ctorParameters:function(){return[{type:a.ElementRef},{type:a.Injector},{type:Da},{type:a.Renderer2},{type:a.NgZone},{type:r.LocalizationService}]},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:[T,{static:!0}]}],roleAttribute:[{type:h.HostBinding,args:["attr.role"]}],ariaLabel:[{type:h.HostBinding,args:["attr.aria-label"]}],valueMin:[{type:h.HostBinding,args:["attr.valuemin"]}],valueMax:[{type:h.HostBinding,args:["attr.valuemax"]}],tabIndex:[{type:h.HostBinding,args:["attr.tabindex"]}],componentClass:[{type:h.HostBinding,args:["class.k-time-list"]}]}});function Ea(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function Ra(e,t){return Ea(e,t)&&e.getSeconds()===t.getSeconds()}function Oa(e){return function(t,n){return t.setHours.apply(t,ht([],b(e.map(function(e){return e(t,n)})))),t}}var Ma,Na,Fa,Ca=[{type:I,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Pi,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return Ea(e,t)?t.getMinutes():0}},{type:Ai,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Ra(e,t)?t.getSeconds():0}},{type:Fi,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return Ra(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],Pa=function(n){return function(e,t){return n(e)}},Aa=function(n){return function(e,t){return n(t)}},La=function(e){return Ma.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?Aa:Pa)(e.getter)}));var t},Ba=(Na=Ma=Ca,function(n){return Na.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=(dt(za,Fa=t.ComponentMessages),za);function za(){return null!==Fa&&Fa.apply(this,arguments)||this}O.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,deps:null,target:a.ɵɵFactoryTarget.Directive}),O.ɵdir=a.ɵɵ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",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",dayperiod:"dayperiod"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,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}],hour:[{type:h.Input}],minute:[{type:h.Input}],second:[{type:h.Input}],millisecond:[{type:h.Input}],dayperiod:[{type:h.Input}]}});dt(_a,ja=O);var ja,Ha=_a;function _a(e){var t=ja.call(this)||this;return t.service=e,t}Ha.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ha,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ha.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ha,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ha})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ha,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ha})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function $a(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(Ca=Ya=Ya||{})[Ca.Left=0]="Left",Ca[Ca.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||Z),this.min),t=this.min,n=this.max,e&&t&&n?(i=(o=ie(e,t,n)).candidateValue,a=o.minValue,o=o.maxValue,i<a?Le(e,t):o<i?Le(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(ce())),this.current))},M.prototype.handleNow=function(){this.current=ce(),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=Y(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},M.prototype.containsElement=function(e){var t=this;return Boolean(gt(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&&!me(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Oa(La(this.dateFormatParts))),e&&!me(e,"steps")||(this.snapTime=(i=Ba(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,ht([],b(i.map(function(e){return e(n,t)})))),n})),e&&!me(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&re(ce(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce($a,[]).map(function(e){return t===Ya.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=Oa(La(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);o(this.pickerService)&&n&&e||(t!==m.Keys.Enter||this.hasActiveButton()?t!==m.Keys.ArrowLeft&&t!==m.Keys.ArrowRight||this.focusList(t===m.Keys.ArrowLeft?Ya.Left:Ya.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 Ya,Ca=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(Q),this.max=k.cloneDate(J),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)}Ca.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ca,deps:[{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:c.IntlService},{token:Da},{token:a.NgZone},{token:a.Renderer2},{token:Hn,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ca.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ca,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:ya,descendants:!0},{propertyName:"timeListWrappers",predicate:["listWrapper"],descendants:!0}],exportAs:["kendo-timeselector"],usesOnChanges:!0,ngImport:a,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:ya,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:Ha,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ca,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:r.LocalizationService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:c.IntlService},{type:Da},{type:a.NgZone},{type:a.Renderer2},{type:Hn,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:[ya]}],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}]}});dt(Wa,Ka=O),Object.defineProperty(Wa.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var Ka,Ua=Wa;function Wa(e){var t=Ka.call(this)||this;return t.service=e,t}Ua.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ua,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ua.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ua,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ua})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ua,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ua})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});dt(Ga,qa=O);var qa,Za=Ga;function Ga(e){var t=qa.call(this)||this;return t.service=e,t}Za.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Za,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Za.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Za,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Za})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Za,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Za})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Xa=new RegExp(I+"|"+Pi+"|"+Ai+"|"+Fi+"|"+Jn+"|literal"),Qa=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||Q)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||J)},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,Te("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Te("input",this.size));e=e||Ye;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Te("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Te("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,Ve(this.rounded));e=e||$e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve(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,xe("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,xe("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,xe("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,xe("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,"popupUID",{get:function(){return"k-timepicker-popup-"+this.bus.calendarId+"-"},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(n.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}},re(e.value,n,i))?null:t}):f,this.incompleteValidator=this.incompleteDateValidation?ii():f,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 Le(Z,e)},N.prototype.mergeTime=function(e){return this.value&&e?Le(this.value,e):e},N.prototype.togglePopup=function(e){var t=new yi;!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,n=this;e!==this.isOpen&&(this._show=e,this.cdr.markForCheck(),t=this.wrapper.nativeElement.querySelector("input"),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.renderer.setAttribute(t,Oe,this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return n.show=!1})):(this.popupRef.close(),this.popupRef=null,this.renderer.removeAttribute(t,Oe)))},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!Xa.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))),ue()&&(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&&Y(e);e&&(this.input.containsElement(e)||this.timeSelector&&this.timeSelector.containsElement(e))||(m.hasObservers(this.onBlur)||this.show&&m.hasObservers(this.close)||_(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,Te("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Te("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Ve(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,xe("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,xe("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,p){this.bus=e,this.zone=t,this.localization=n,this.cdr=i,this.popupService=a,this.wrapper=o,this.renderer=r,this.injector=s,this.pickerService=l,this.intl=c,this.touchEnabled=p,this.focusableId="k-timepicker-"+this.bus.calendarId+"-",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.onControlChange=f,this.onControlTouched=f,this.onValidatorChange=f,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=f,this.incompleteValidator=f,this._min=k.cloneDate(Q),this._max=k.cloneDate(J),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=Ye,this._rounded=$e,this._fillMode=Ke,A.validatePackage(q),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)))}Qa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qa,deps:[{token:y},{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:W.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:Hn},{token:c.IntlService},{token:wi,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Qa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Qa,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:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Qa}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Qa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Qa})},t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},Hn],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:a,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 i18n-hour="kendo.timepicker.hour|The label for the hour part in the timepicker component"\n hour="Hour"\n\n i18n-minute="kendo.timepicker.minute|The label for the minute part in the timepicker component"\n minute="Minute"\n\n i18n-second="kendo.timepicker.second|The label for the second part in the timepicker component"\n second="Second"\n\n i18n-millisecond="kendo.timepicker.millisecond|The label for the millisecond part in the timepicker component"\n millisecond="Millisecond"\n\n i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"\n dayperiod="Dayperiod"\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]="\'combobox\'"\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 tabindex="-1"\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 [hour]="localization.get(\'hour\')"\n [minute]="localization.get(\'minute\')"\n [second]="localization.get(\'second\')"\n [millisecond]="localization.get(\'millisecond\')"\n [dayperiod]="localization.get(\'dayperiod\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n ',isInline:!0,components:[{type:vi,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:Ca,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Ua,selector:"kendo-timeselector-messages"}],directives:[{type:Za,selector:"[kendoTimePickerLocalizedMessages]"},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Qa,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Qa}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Qa}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Qa})},t.LocalizationService,y,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},Hn],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 i18n-hour="kendo.timepicker.hour|The label for the hour part in the timepicker component"\n hour="Hour"\n\n i18n-minute="kendo.timepicker.minute|The label for the minute part in the timepicker component"\n minute="Minute"\n\n i18n-second="kendo.timepicker.second|The label for the second part in the timepicker component"\n second="Second"\n\n i18n-millisecond="kendo.timepicker.millisecond|The label for the millisecond part in the timepicker component"\n millisecond="Millisecond"\n\n i18n-dayperiod="kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component"\n dayperiod="Dayperiod"\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]="\'combobox\'"\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 tabindex="-1"\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 [hour]="localization.get(\'hour\')"\n [minute]="localization.get(\'minute\')"\n [second]="localization.get(\'second\')"\n [millisecond]="localization.get(\'millisecond\')"\n [dayperiod]="localization.get(\'dayperiod\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}]}],ctorParameters:function(){return[{type:y},{type:a.NgZone},{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:W.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:Hn},{type:c.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[wi]}]}]},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"]}]}});dt(eo,Ja=t.ComponentMessages);var Ja,Fi=eo;function eo(){return null!==Ja&&Ja.apply(this,arguments)||this}Fi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fi,deps:null,target:a.ɵɵFactoryTarget.Directive}),Fi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Fi,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:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Fi,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}]}});dt(io,to=Fi);var to,no=io;function io(e){var t=to.call(this)||this;return t.service=e,t}no.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:no,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),no.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:no,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:Fi,useExisting:h.forwardRef(function(){return no})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:no,decorators:[{type:h.Directive,args:[{providers:[{provide:Fi,useExisting:h.forwardRef(function(){return no})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var ao=new RegExp(I+"|"+Pi+"|"+Ai+"|"+Jn+"|literal"),oo="date",ro=(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,"inputElement",{get:function(){return this.wrapper.nativeElement.querySelector("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){o(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){o(e)&&(this._max=k.cloneDate(e),this.calendarMax=Ie(e))},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isOpen",{get:function(){return o(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||oo,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,Te("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Te("input",this.size));e=e||Ye;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Te("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Te("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,Ve(this.rounded));e=e||$e;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve(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,xe("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,xe("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,xe("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,xe("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,"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 o(this.calendar)||o(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(o(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"popupUID",{get:function(){var e;return null==(e=this.calendar)?void 0:e.id},enumerable:!1,configurable:!0}),F.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(B.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))),ue()&&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){(o(e.min)||o(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?St(this.min):f,this.maxValidateFn=this.rangeValidation?Et(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?ki(this.disabledDatesService.isDateDisabled):f,this.incompleteValidator=this.incompleteDateValidation?ii():f,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||((o(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!o(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&&("time"===this.activeTab&&this.renderer.removeAttribute(this.inputElement,Re),this.activeTabComponent.focus())},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=De(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&&o(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=o(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?Te("button",this.size):"")+" "+(this.rounded?Ve(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()&&o(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},F.prototype.verifyMinMaxRange=function(){if(h.isDevMode()&&!se(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?ao.test(n.type):ao.test(e.type)},F.prototype.togglePopup=function(e){var t;e!==this.isOpen&&(t=new yi,(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 t=this,e=(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:e},popupAlign:{vertical:"top",horizontal:e}}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.inputElement,Oe,this.popupUID),"date"===this.activeTab&&("infinite"===this.calendar.type?this.subscriptions.add(this.calendar.monthView.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Re,e)})):this.subscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Re,e)}))),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.handleCancel()})},F.prototype.closePopup=function(){this.isOpen&&(this.renderer.removeAttribute(this.inputElement,Oe),this.renderer.removeAttribute(this.inputElement,Re),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!!o(e)&&(e=e.relatedTarget||document.activeElement,t=o(this.popupRef)&&this.popupRef.popupElement.contains(e),e=this.wrapper.nativeElement.contains(e),t||e)},F.prototype.setTimeSelectorMinMax=function(e){var t=o(e)&&k.isEqual(k.getDate(e),k.getDate(this.min)),t=(this.timeSelectorMin=k.cloneDate(t?this.min:Q),o(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:J)},F.prototype.setCalendarValue=function(e){var t=o(e)&&oe(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,Te("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Te("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Ve(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,xe("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,xe("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-datetimepicker-"+(null==(e=this.calendar)?void 0:e.id)+"-",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=oo,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(Q),this.timeSelectorMax=k.cloneDate(J),this.calendarValue=null,this.calendarMin=k.cloneDate(G),this.calendarMax=Ie(X),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=oo,this._min=De(G,Q),this._max=De(X,J),this._isActive=!1,this.onControlTouched=f,this.onControlChange=f,this.onValidatorChange=f,this.minValidateFn=f,this.maxValidateFn=f,this.disabledDatesValidateFn=f,this.incompleteValidator=f,this.subscriptions=new p.Subscription,this._size=Ye,this._rounded=$e,this._fillMode=Ke,A.validatePackage(q)}ro.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,deps:[{token:W.PopupService},{token:c.IntlService},{token:a.ChangeDetectorRef},{token:Hn},{token:a.NgZone},{token:a.ElementRef},{token:wi},{token:r.LocalizationService},{token:C},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),ro.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ro,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:[Hn,t.LocalizationService,C,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ro}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ro}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ro})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Mt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:Bt,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:a,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]="\'combobox\'"\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:vi,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:ni,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:Di,selector:"kendo-calendar-messages"},{type:Ca,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Ua,selector:"kendo-timeselector-messages"}],directives:[{type:no,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:s.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ro,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[Hn,t.LocalizationService,C,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ro}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return ro}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return ro})}],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]="\'combobox\'"\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:W.PopupService},{type:c.IntlService},{type:a.ChangeDetectorRef},{type:Hn},{type:a.NgZone},{type:a.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[wi]}]},{type:r.LocalizationService},{type:C},{type:a.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:[Mt,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Nt,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[Bt,{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 so(e){return e&&e.isActive||!1}var I=function(e){this.templateRef=e},lo=(I.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),I.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:I,selector:"[kendoDateRangePopupTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:I,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Object.defineProperty(co.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(co.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(co.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(co.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(co.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),co.prototype.activatePopup=function(){var e,t,n=this,i=this.dateRangePopup$.value;i&&(this.startInput$.value&&(t=this.startInput$.value.dateInput.nativeElement,this.renderer.setAttribute(t,Oe,i.popupUID),this.renderer.setAttribute(t,Me,"true"),this.focusedCellChange=null==(e=i.viewCalendar.first)?void 0:e.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Re,e)})),i.activate())},co.prototype.deactivatePopup=function(){var e,t,n=this.dateRangePopup$.value;n&&n.show&&(this.startInput$.value&&(t=this.startInput$.value.dateInput.nativeElement,this.renderer.removeAttribute(t,Oe),this.renderer.setAttribute(t,Me,"false"),null!=(e=this.focusedCellChange)&&e.unsubscribe(),this.renderer.removeAttribute(t,Re)),n.show=!1)},co.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},co.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},co.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=so(e),n=so(this.startInput$.value),i=so(this.endInput$.value);return t||n||i||((t=e)&&t.hasActiveContent()||!1)},co.prototype.registerStartInput=function(e){this.startInput$.next(e)},co.prototype.registerEndInput=function(e){this.endInput$.next(e)},co.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},co.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},co.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},co.prototype.setRange=function(e){this.range$.next(e=void 0===e?ee:e)},co);function co(e){this.renderer=e,this.focusedCellChange=new p.Subscription,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(ee)}lo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo,deps:[{token:a.Renderer2,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),lo.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:lo,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:a.Renderer2,decorators:[{type:h.Optional}]}]}});Object.defineProperty(po.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),ke(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(po.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(po.prototype,"calendarRange",{get:function(){return this.selectionRange||ee},enumerable:!1,configurable:!0}),po.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=ye(e.min,n.min),n.max=ye(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()}))},po.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},po.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)})},po.prototype.isEqualCalendarRange=function(e){return ke(this.calendar.selectionRange,e)},po.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(be(t))},po.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?be(e):this.updateRange(e);ke(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},po.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)))},po.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||ee,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},po.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},po.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},po.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}},po.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},po.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};Pi=po;function po(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 lo(i),i.setAttribute(n.nativeElement,"aria-multiselectable","true")}Pi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pi,deps:[{token:Zt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2},{token:lo,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),Pi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pi,selector:"[kendoDateRangeSelection]",inputs:{autoCorrectOn:"autoCorrectOn",selectionRange:"selectionRange",activeRangeEnd:"activeRangeEnd"},outputs:{activeRangeEndChange:"activeRangeEndChange",selectionRangeChange:"selectionRangeChange"},ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pi,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Zt},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2},{type:lo,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(uo.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(uo.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(uo.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show!==e&&(t=new yi,(e?this.open:this.close).emit(t),t.isDefaultPrevented()||this._toggle(e))},enumerable:!1,configurable:!0}),uo.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},uo.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})),ue()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},uo.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()},uo.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(B.filter(function(e){return e&&e.first}),B.map(function(e){return e.first})).subscribe(function(e){return setTimeout(function(){return e.focus()})})}))},uo.prototype.focus=function(){this.calendar&&this.calendar.focus()},uo.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},uo.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},uo.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},uo.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},uo.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},uo.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()})},uo.prototype.subscribeFocusBlur=function(e){var t=this;this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e&&(e=e.element.nativeElement.querySelector(".k-calendar-view"),this.blurSubscription=p.fromEvent(e,"blur").subscribe(function(){return t.onBlur.emit()}),this.focusSubscription=p.fromEvent(e,"focus").subscribe(function(){return t.onFocus.emit()}))},uo.prototype.addPopupSubscriptions=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),e.map(function(e){return t.popupSubscriptions.add(e)})},Object.defineProperty(uo.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),uo.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()})))},uo.prototype.destroyPopup=function(){o(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),o(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};Ai=uo;function uo(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()}Ai.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ai,deps:[{token:W.PopupService},{token:lo},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:t.RTL,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ai.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ai,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:I,descendants:!0},{propertyName:"contentCalendar",predicate:Zt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Zt,descendants:!0}],exportAs:["kendo-daterange-popup"],ngImport:a,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:Zt,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","focusCalendar"],exportAs:["kendo-multiviewcalendar"]}],directives:[{type:Pi,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ai,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:W.PopupService},{type:lo},{type:a.ChangeDetectorRef},{type:a.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:[I,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Zt]}],contentCalendar:[{type:h.ContentChildren,args:[Zt]}],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}]}});ho.prototype.keydown=function(e){e.keyCode===m.Keys.ArrowDown&&e.altKey&&this.dateRangeService.activatePopup(),(e.keyCode===m.Keys.ArrowUp&&e.altKey||e.keyCode===m.Keys.Escape)&&this.dateRangeService.deactivatePopup()},Object.defineProperty(ho.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),ho.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},ho.prototype.ngOnDestroy=function(){var e;null!=(e=this.subscription)&&e.unsubscribe()};Jn=ho;function ho(e){this.dateRangeService=e,this.wrapperClass=!0,this.showDefault=!1,A.validatePackage(q)}Jn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Jn,deps:[{token:lo}],target:a.ɵɵFactoryTarget.Component}),Jn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Jn,selector:"kendo-daterange",host:{listeners:{keydown:"keydown($event)"},properties:{"class.k-daterangepicker":"this.wrapperClass"}},providers:[lo],queries:[{propertyName:"contentPopup",predicate:Ai}],ngImport:a,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:Ai,selector:"kendo-daterange-popup",inputs:["animate","anchor","anchorAlign","appendTo","collision","popupAlign","margin"],outputs:["open","close","blur","focus","cancel"],exportAs:["kendo-daterange-popup"]}],directives:[{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Jn,decorators:[{type:h.Component,args:[{providers:[lo],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[{type:lo}]},propDecorators:{keydown:[{type:h.HostListener,args:["keydown",["$event"]]}],wrapperClass:[{type:h.HostBinding,args:["class.k-daterangepicker"]}],contentPopup:[{type:h.ContentChildren,args:[Ai]}]}});Object.defineProperty(mo.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(mo.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return o(e)&&o(e.calendar)},enumerable:!1,configurable:!0}),mo.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(B.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)})},mo.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},mo.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()},mo.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},mo.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},mo.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()}))})})},mo.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},mo.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()},mo.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},mo.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};s=mo;function mo(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}s.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:s,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),s.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:s,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:s,decorators:[{type:h.Directive,args:[{}]}],ctorParameters:function(){return[{type:void 0},{type:lo},{type:vi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]}});dt(fo,go=s),fo.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),go.prototype.init.call(this)},fo.prototype.ngAfterViewInit=function(){var e=this.dateInput.inputElement;this.renderer.removeAttribute(e,Me)},fo.prototype.ngOnDestroy=function(){go.prototype.destroy.call(this)},fo.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return oe(e,i,n)?(i=(this.rangeService.selectionRange||ee).start,this.autoCorrectOn===t&&o(e)&&e<i?be(e):{start:i,end:k.cloneDate(e)}):null},fo.prototype.updateInputValue=function(e){var e=(e||ee).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&oe(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var go,u=fo;function fo(e,t,n,i,a){n=go.call(this,"end",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[{token:lo},{token:vi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),u.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:u,selector:"[kendoDateRangeEndInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:lo},{type:vi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});dt(yo,vo=s),yo.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),vo.prototype.init.call(this)},yo.prototype.ngAfterViewInit=function(){var e=this.dateInput.inputElement;this.renderer.setAttribute(e,"role","combobox"),this.renderer.setAttribute(e,Ne,"true")},yo.prototype.ngOnDestroy=function(){vo.prototype.destroy.call(this)},yo.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return oe(e,i,n)?(i=(this.rangeService.selectionRange||ee).end,this.autoCorrectOn===t&&i&&i<e?be(e):{start:k.cloneDate(e),end:i}):null},yo.prototype.updateInputValue=function(e){var e=(e||ee).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&oe(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var vo,s=yo;function yo(e,t,n,i,a){n=vo.call(this,"start",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.renderer=i,n.navigateCalendarOnFocus=!1,n}s.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:s,deps:[{token:lo},{token:vi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),s.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:s,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:s,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:lo},{type:vi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var bo,ko=function(){},P=(ko.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,deps:[],target:a.ɵɵFactoryTarget.NgModule}),ko.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,declarations:[kt,It,wt],imports:[i.CommonModule,m.EventsModule],exports:[kt,It,wt]}),ko.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,imports:[[i.CommonModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ko,decorators:[{type:h.NgModule,args:[{declarations:[kt,It,wt],exports:[kt,It,wt],imports:[i.CommonModule,m.EventsModule]}]}]}),function(){}),Co=(P.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,deps:[],target:a.ɵɵFactoryTarget.NgModule}),P.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,declarations:[Mt,Nt,Ft,Pt,At,Lt,Bt,$n],exports:[Mt,Nt,Ft,Pt,At,Lt,Bt,$n]}),P.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,decorators:[{type:h.NgModule,args:[{declarations:[Mt,Nt,Ft,Pt,At,Lt,Bt,$n],exports:[Mt,Nt,Ft,Pt,At,Lt,Bt,$n]}]}]}),function(){}),wo=(Co.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Co.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,declarations:[Dt,Kt,Yn,Zt],imports:[i.CommonModule,ko,L.IntlModule,P,z.PopupModule,m.EventsModule],exports:[Dt,Kt,Yn,Zt,ko,P]}),Co.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,providers:[jt,d,v,et,at,ct],imports:[[i.CommonModule,ko,L.IntlModule,P,z.PopupModule,m.EventsModule],ko,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Co,decorators:[{type:h.NgModule,args:[{declarations:[Dt,Kt,Yn,Zt],exports:[Dt,Kt,Yn,Zt,ko,P],imports:[i.CommonModule,ko,L.IntlModule,P,z.PopupModule,m.EventsModule],providers:[jt,d,v,et,at,ct]}]}]}),[T]),Do=function(){},T=(Do.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Do.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,declarations:[T],imports:[i.CommonModule],exports:[T]}),Do.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,imports:[[i.CommonModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,decorators:[{type:h.NgModule,args:[{declarations:[wo],exports:[wo],imports:[i.CommonModule]}]}]}),function(){}),wo=(T.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,deps:[],target:a.ɵɵFactoryTarget.NgModule}),T.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,declarations:[ni,qt,Di,Zn,Ln],imports:[i.CommonModule,ko,Co,L.IntlModule,P,Do,m.EventsModule,m.ResizeSensorModule],exports:[ni,qt,Di,Zn,Ln,ko,P]}),T.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,providers:[Fn,d,v,et,at,ct],imports:[[i.CommonModule,ko,Co,L.IntlModule,P,Do,m.EventsModule,m.ResizeSensorModule],ko,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:h.NgModule,args:[{declarations:[ni,qt,Di,Zn,Ln],exports:[ni,qt,Di,Zn,Ln,ko,P],imports:[i.CommonModule,ko,Co,L.IntlModule,P,Do,m.EventsModule,m.ResizeSensorModule],providers:[Fn,d,v,et,at,ct]}]}]}),function(){}),Io=(wo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,deps:[],target:a.ɵɵFactoryTarget.NgModule}),wo.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,imports:[T,Co],exports:[T,Co]}),wo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,imports:[[T,Co],T,Co]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,decorators:[{type:h.NgModule,args:[{exports:[T,Co],imports:[T,Co]}]}]}),dt(To,bo=ei),Object.defineProperty(To.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),To);function To(e){var t=bo.call(this)||this;return t.service=e,t}Io.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Io.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Io,selector:"kendo-dateinput-messages",providers:[{provide:ei,useExisting:h.forwardRef(function(){return Io})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,decorators:[{type:h.Component,args:[{providers:[{provide:ei,useExisting:h.forwardRef(function(){return Io})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Vo,d=function(){},xo=(d.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,deps:[],target:a.ɵɵFactoryTarget.NgModule}),d.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,declarations:[vi,Io,li],imports:[i.CommonModule,L.IntlModule,m.EventsModule],exports:[vi,Io,li]}),d.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,imports:[[i.CommonModule,L.IntlModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:h.NgModule,args:[{declarations:[vi,Io,li],exports:[vi,Io,li],imports:[i.CommonModule,L.IntlModule,m.EventsModule]}]}]}),dt(So,Vo=ti),Object.defineProperty(So.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),So);function So(e){var t=Vo.call(this)||this;return t.service=e,t}xo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),xo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:xo,selector:"kendo-datepicker-messages",providers:[{provide:ti,useExisting:h.forwardRef(function(){return xo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xo,decorators:[{type:h.Component,args:[{providers:[{provide:ti,useExisting:h.forwardRef(function(){return xo})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Eo,v=function(){},et=(v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:[],target:a.ɵɵFactoryTarget.NgModule}),v.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,declarations:[Ri,xo,Si],imports:[i.CommonModule,d,T,L.IntlModule,z.PopupModule,P,m.EventsModule],exports:[Ri,xo,Si,P]}),v.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,providers:[{provide:wi,useValue:j.touchEnabled}],imports:[[i.CommonModule,d,T,L.IntlModule,z.PopupModule,P,m.EventsModule],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,decorators:[{type:h.NgModule,args:[{declarations:[Ri,xo,Si],exports:[Ri,xo,Si,P],imports:[i.CommonModule,d,T,L.IntlModule,z.PopupModule,P,m.EventsModule],providers:[{provide:wi,useValue:j.touchEnabled}]}]}]}),[Jn,Ai,I,Pi,s,u]),at=[Co,d,z.PopupModule,m.EventsModule],ei=function(){},Ro=(ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,deps:[],target:a.ɵɵFactoryTarget.NgModule}),ei.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,declarations:[Jn,Ai,I,Pi,s,u],imports:[i.CommonModule,Co,d,z.PopupModule,m.EventsModule],exports:[Jn,Ai,I,Pi,s,u]}),ei.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,imports:[[i.CommonModule,at]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,decorators:[{type:h.NgModule,args:[{declarations:[et],exports:[et],imports:[i.CommonModule,at]}]}]}),dt(Oo,Eo=O),Object.defineProperty(Oo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Oo);function Oo(e){var t=Eo.call(this)||this;return t.service=e,t}Ro.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ro,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ro.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ro,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ro})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ro,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ro})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Mo,ti=[Za,ya,Ro,Qa,Ha,Ua,Ca],et=[d,L.IntlModule,z.PopupModule,Do,m.EventsModule],at=[Da,ji,qi,na,pa,fa,{provide:wi,useValue:j.touchEnabled}],O=function(){},No=(O.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,deps:[],target:a.ɵɵFactoryTarget.NgModule}),O.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,declarations:[Za,ya,Ro,Qa,Ha,Ua,Ca],imports:[i.CommonModule,d,L.IntlModule,z.PopupModule,Do,m.EventsModule],exports:[Za,ya,Ro,Qa,Ha,Ua,Ca]}),O.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,providers:at,imports:[ht([i.CommonModule],b(et))]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:h.NgModule,args:[{declarations:[ti],exports:[ti],imports:ht([i.CommonModule],b(et)),providers:at}]}]}),dt(Fo,Mo=Fi),Object.defineProperty(Fo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Fo);function Fo(e){var t=Mo.call(this)||this;return t.service=e,t}No.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:No,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),No.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:No,selector:"kendo-datetimepicker-messages",providers:[{provide:Fi,useExisting:h.forwardRef(function(){return No})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:No,decorators:[{type:h.Component,args:[{providers:[{provide:Fi,useExisting:h.forwardRef(function(){return No})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ji=[ro,No,no],qi=function(){},qi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi,deps:[],target:a.ɵɵFactoryTarget.NgModule}),qi.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi,declarations:[ro,No,no],imports:[i.CommonModule,L.IntlModule,d,T,O,z.PopupModule,m.EventsModule,P],exports:[ro,No,no,P]}),qi.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi,providers:[{provide:wi,useValue:j.touchEnabled}],imports:[[i.CommonModule,L.IntlModule,d,T,O,z.PopupModule,m.EventsModule,P],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:qi,decorators:[{type:h.NgModule,args:[{declarations:ht([],b(ji)),exports:ht(ht([],b(ji)),[P]),imports:[i.CommonModule,L.IntlModule,d,T,O,z.PopupModule,m.EventsModule,P],providers:[{provide:wi,useValue:j.touchEnabled}]}]}]}),na=[wo,d,v,O,ei,qi],pa=function(){};pa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa,deps:[],target:a.ɵɵFactoryTarget.NgModule}),pa.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa,imports:[wo,d,v,O,ei,qi],exports:[wo,d,v,O,ei,qi]}),pa.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa,imports:[na,wo,d,v,O,ei,qi]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pa,decorators:[{type:h.NgModule,args:[{exports:na,imports:na}]}]}),e.CalendarCommonModule=ko,e.CalendarComponent=ni,e.CalendarCustomMessagesComponent=Di,e.CalendarLocalizedMessagesDirective=Zn,e.CalendarModule=T,e.CalendarsModule=wo,e.CellTemplateDirective=Mt,e.CenturyCellTemplateDirective=At,e.DateInputComponent=vi,e.DateInputCustomMessagesComponent=Io,e.DateInputLocalizedMessagesDirective=li,e.DateInputModule=d,e.DateInputsModule=pa,e.DatePickerComponent=Ri,e.DatePickerCustomMessagesComponent=xo,e.DatePickerLocalizedMessagesDirective=Si,e.DatePickerModule=v,e.DateRangeComponent=Jn,e.DateRangeEndInputDirective=u,e.DateRangeModule=ei,e.DateRangePopupComponent=Ai,e.DateRangePopupTemplateDirective=I,e.DateRangeSelectionDirective=Pi,e.DateRangeService=lo,e.DateRangeStartInputDirective=s,e.DateTimePickerComponent=ro,e.DateTimePickerCustomMessagesComponent=No,e.DateTimePickerModule=qi,e.DecadeCellTemplateDirective=Pt,e.HeaderComponent=It,e.HeaderTitleTemplateDirective=Bt,e.HorizontalViewListComponent=Dt,e.KForOf=kt,e.LocalizedMessagesDirective=no,e.MonthCellTemplateDirective=Nt,e.MultiViewCalendarComponent=Zt,e.MultiViewCalendarCustomMessagesComponent=Yn,e.MultiViewCalendarLocalizedMessagesDirective=Kt,e.MultiViewCalendarModule=Co,e.NavigationComponent=qt,e.NavigationItemTemplateDirective=$n,e.PreventableEvent=yi,e.TemplatesModule=P,e.TimeListComponent=ya,e.TimePickerComponent=Qa,e.TimePickerCustomMessagesComponent=Ro,e.TimePickerLocalizedMessagesDirective=Za,e.TimePickerModule=O,e.TimeSelectorComponent=Ca,e.TimeSelectorCustomMessagesComponent=Ua,e.TimeSelectorLocalizedMessagesDirective=Ha,e.ViewComponent=wt,e.ViewListComponent=Ln,e.WeekNumberCellTemplateDirective=Lt,e.YearCellTemplateDirective=Ft,Object.defineProperty(e,"__esModule",{value:!0})});