@progress/kendo-angular-dateinputs 7.1.3 → 7.1.4-dev.202210261943

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-intl"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define("KendoAngularDateinputs",["exports","@angular/core","@angular/forms","@progress/kendo-angular-l10n","@progress/kendo-date-math","@progress/kendo-angular-common","@progress/kendo-licensing","@progress/kendo-angular-intl","rxjs","@angular/common","rxjs/operators","@progress/kendo-angular-popup","@progress/kendo-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDateinputs={},e.ng.core,e.ng.forms,e.KendoAngularL10N,e.KendoDateMath,e.KendoAngularCommon,e.KendoLicensing,e.KendoAngularIntl,e.rxjs,e.ng.common,e.rxjs.operators,e.KendoAngularPopup,e.KendoCommon)}(this,function(e,h,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),W=H(m),s=H(L),c=H(i),q=H(z),Z={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1666769918,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"},G=((u=l=l||{})[u.Left=0]="Left",u[u.Right=1]="Right",u[u.Up=2]="Up",u[u.Down=3]="Down",u[u.PrevView=4]="PrevView",u[u.NextView=5]="NextView",u[u.FirstInView=6]="FirstInView",u[u.LastInView=7]="LastInView",u[u.LowerView=8]="LowerView",u[u.UpperView=9]="UpperView",(u=g=g||{})[u.month=0]="month",u[u.year=1]="year",u[u.decade=2]="decade",u[u.century=3]="century",new Date(1980,0,1)),X=new Date(1900,0,1),Q=new Date(2099,11,31),J=new Date(1980,0,1),ee=new Date(1980,0,1,23,59,59),te={start:null,end:null};(u=U=U||{})[u.ArrowDown=40]="ArrowDown",u[u.ArrowLeft=37]="ArrowLeft",u[u.ArrowRight=39]="ArrowRight",u[u.ArrowUp=38]="ArrowUp";function ne(e){return null!=e}function ie(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function ae(e,t,n){return{candidateValue:Be(G,e),maxValue:k.addDays(Be(G,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:Be(G,t)}}function oe(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function re(e,t,n){return!e||!(t&&e<t||n&&n<e)}function se(e,t,n){return!(e&&t&&n)||(t=(e=ae(e,t,n)).candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function le(e,t){return!ne(e)||!ne(t)||e<=t}function ce(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function pe(){return new Date}function ue(){return k.getDate(new Date)}function f(e){}function de(){return"undefined"!=typeof window}function he(e,t){return e.slice(t).concat(e.slice(0,t))}function me(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 ge(e,t){return void 0!==e[t]}function fe(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function ve(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function ye(e,t){var n=(t=t||te).start,t=t.end;return!(!n||!t)&&n<e&&e<t}function be(e,t){return e||t}function ke(e){return{start:e,end:e}}function Ce(e,t){var n=(e=e||te).start,e=e.end,i=(t=t||te).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function we(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function De(e){return e.filter(o).sort(function(e,t){return e.getTime()-t.getTime()})}function Te(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 Ve(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function xe(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function Se(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var Ee=".k-content .k-calendar-table",Re=".k-content.k-calendar-table",Oe="aria-activedescendant",Me="aria-controls",Ne="aria-expanded",Fe="aria-haspopup",Pe="aria-valuenow",Ae="aria-valuetext",Le="aria-invalid",Be=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},ze=ie("setFullYear"),je=ie("setHours"),He=ie("setMinutes"),_e=ie("setSeconds"),$e=ie("setMilliseconds"),Ye="medium",Ke="medium",Ue="solid",We=[[]],qe=((u={})[l.Left]=function(e){return k.addDecades(e,-1)},u[l.Up]=function(e){return k.addDecades(e,-5)},u[l.Right]=function(e){return k.addDecades(e,1)},u[l.Down]=function(e){return k.addDecades(e,5)},u[l.PrevView]=function(e){return k.addCenturies(e,-1)},u[l.NextView]=function(e){return k.addCenturies(e,1)},u[l.FirstInView]=function(e){return k.firstDecadeOfCentury(e)},u[l.LastInView]=function(e){return k.lastDecadeOfCentury(e)},u),u=(Ze.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},Ze.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addCenturies(t,e)})},Ze.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?te:n,n=e.viewDate;return n?(t=oe(0,4),o=k.firstDecadeOfCentury(n),r=k.lastDecadeOfCentury(n),s=ue(),oe(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&&ye(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})})})):We},Ze.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},Ze.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()+99},Ze.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},Ze.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(k.firstDecadeOfCentury(e)),k.createDate(t.getFullYear(),0,1))},Ze.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ze.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},Ze.prototype.move=function(e,t){t=qe[t];return t?t(e):e},Ze.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},Ze.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},Ze.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},Ze.prototype.rowLength=function(){return 4},Ze.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},Ze.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},Ze.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Ze.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},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(){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}}u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.Injectable}),u.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.Injectable}]});var Ge=[[]],Xe=((d={})[l.Left]=function(e){return k.addYears(e,-1)},d[l.Up]=function(e){return k.addYears(e,-5)},d[l.Right]=function(e){return k.addYears(e,1)},d[l.Down]=function(e){return k.addYears(e,5)},d[l.PrevView]=function(e){return k.addDecades(e,-1)},d[l.NextView]=function(e){return k.addDecades(e,1)},d[l.FirstInView]=function(e){return k.firstYearOfDecade(e)},d[l.LastInView]=function(e){return k.lastYearOfDecade(e)},d),d=(Qe.prototype.addToDate=function(e,t){return k.addDecades(e,t)},Qe.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addDecades(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?te:n,n=e.viewDate;return n?(t=oe(0,4),o=k.firstYearOfDecade(n),r=k.lastYearOfDecade(n),s=ue(),oe(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&&ye(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})})})):Ge},Qe.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},Qe.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()+9},Qe.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},Qe.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(e),k.createDate(t.getFullYear(),0,1))},Qe.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Qe.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},Qe.prototype.move=function(e,t){t=Xe[t];return t?t(e):e},Qe.prototype.cellTitle=function(e){return e.getFullYear().toString()},Qe.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Qe.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},Qe.prototype.rowLength=function(){return 4},Qe.prototype.skip=function(e,t){return k.durationInDecades(t,e)},Qe.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},Qe.prototype.value=function(e){return e?e.getFullYear().toString():""},Qe.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},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.addYears(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 Je=[[]],et=((tt={})[l.Left]=function(e){return k.addDays(e,-1)},tt[l.Up]=function(e){return k.addWeeks(e,-1)},tt[l.Right]=function(e){return k.addDays(e,1)},tt[l.Down]=function(e){return k.addWeeks(e,1)},tt[l.PrevView]=function(e){return k.addMonths(e,-1)},tt[l.NextView]=function(e){return k.addMonths(e,1)},tt[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},tt[l.LastInView]=function(e){return k.lastDayOfMonth(e)},tt),tt=(nt.prototype.addToDate=function(e,t){return k.addMonths(e,t)},nt.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addMonths(t,e)})},nt.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?te: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=oe(0,7),p=ue(),oe(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&&ye(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})})})):Je},nt.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},nt.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},nt.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},nt.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},nt.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},nt.prototype.isRangeStart=function(e){return!e.getMonth()},nt.prototype.move=function(e,t){t=et[t];return t?t(e):e},nt.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},nt.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},nt.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},nt.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},nt.prototype.skip=function(e,t){return k.durationInMonths(t,e)},nt.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},nt.prototype.value=function(e){return e?e.getDate().toString():""},nt.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},nt.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},nt.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},nt.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},nt.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},nt);function nt(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}}tt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:tt,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),tt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:tt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:tt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var it=[[]],at=((ot={})[l.Left]=function(e){return k.addMonths(e,-1)},ot[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},ot[l.Right]=function(e){return k.addMonths(e,1)},ot[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},ot[l.PrevView]=function(e){return k.addYears(e,-1)},ot[l.NextView]=function(e){return k.addYears(e,1)},ot[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},ot[l.LastInView]=function(e){return k.lastMonthOfYear(e)},ot),ot=(rt.prototype.addToDate=function(e,t){return k.addYears(e,t)},rt.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addYears(t,e)})},rt.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?te:n,n=e.viewDate;return n?(o=this.abbrMonthNames(),r=k.firstMonthOfYear(n),s=k.lastMonthOfYear(n),l=r.getFullYear(),t=oe(0,4),c=ue(),oe(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&&ye(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})})})):it},rt.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},rt.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()},rt.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},rt.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},rt.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},rt.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},rt.prototype.move=function(e,t){t=at[t];return t?t(e):e},rt.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},rt.prototype.navigationTitle=function(e){return this.title(e)},rt.prototype.title=function(e){return e?e.getFullYear().toString():""},rt.prototype.rowLength=function(){return 4},rt.prototype.skip=function(e,t){return k.durationInYears(t,e)},rt.prototype.total=function(e,t){return k.durationInYears(e,t)+1},rt.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},rt.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},rt.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},rt.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},rt);function rt(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}}ot.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ot.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});(Ct={})[g.month]=tt,Ct[g.year]=ot,Ct[g.decade]=d,Ct[g.century]=u;var st=Ct,lt=0,v=(ct.prototype.configure=function(e,t){this.bottom=e,this.top=t},ct.prototype.service=function(e){e=st[e];return e?this.injector.get(e):null},ct.prototype.moveDown=function(e){this.move(e,-1)},ct.prototype.moveUp=function(e){this.move(e,1)},ct.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},ct.prototype.canMoveDown=function(e){return this.bottom<e},ct.prototype.canMoveUp=function(e){return e<this.top},ct.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},ct.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})},ct);function ct(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=g.month,this.top=g.century,this.calendarId=lt++}v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:[{token:a.Injector}],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}],ctorParameters:function(){return[{type:a.Injector}]}});ut.prototype.getWeekNames=function(e,t){void 0===e&&(e=!1);t=he(this.intl.dateFormatNames({nameType:t,type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var pt=ut;function ut(e){this.intl=e}pt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),pt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var dt=function(e,t){return(dt=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 ht(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}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function y(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 mt(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 gt(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function ft(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function vt(){return!1}yt.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=vt,this.notifyInvalidInput(t)))),this.notifyServiceChange()},yt.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.")},yt.prototype.notifyServiceChange=function(){this.changes.next()};var b=yt;function yt(){this.changes=new p.Subject,this.isDateDisabled=vt}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[],target:a.ɵɵFactoryTarget.Injectable}),b.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:h.Injectable}]});Object.defineProperty(kt.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var bt=kt;function kt(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(wt.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),wt.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)+"'.")}}},wt.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},wt.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 bt(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=wt;function wt(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}Ct.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ct,deps:[{token:a.ViewContainerRef},{token:a.TemplateRef},{token:a.IterableDiffers}],target:a.ɵɵFactoryTarget.Directive}),Ct.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ct,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:Ct,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(C.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===g.month},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),C.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},C.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)},C.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},C.prototype.isHorizontal=function(){return"horizontal"===this.direction},C.prototype.isMonthView=function(){return this.activeView===g.month},C.prototype.shouldRenderCellContent=function(e){return o(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},C.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},C.prototype.getWeekNumber=function(e){return this.weekNumber?k.weekInYear(e,this.intl.firstDay()):null},C.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},C.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(" ")},C.prototype.tableCellIndex=function(e,t){return e+":"+t},C.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)},C.prototype.getMonthLabel=function(e){return 1===this.activeView?this.intl.formatDate(e,"MMMM"):null},C.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},C.prototype.updateData=function(){var e=ve(this.selectedDates)||ue(),e=Be(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})},C.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},C.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},C.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)))},C.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}})))},C.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},C.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()},C.prototype.closestCell=function(e){return gt(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},C.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},C.prototype.cellByIndex=function(e){var e=y(e.split(":"),2),t=e[0],e=e[1];return this.data[t][e]};var Dt=C;function C(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)))}Dt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,deps:[{token:v},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.NgZone},{token:a.Renderer2},{token:b}],target:a.ɵɵFactoryTarget.Component}),Dt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Dt,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:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,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:v},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.NgZone},{type:a.Renderer2},{type:b}]},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}]}});w.prototype.handleFocus=function(){this.focusCalendar.emit()},Object.defineProperty(w.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getActiveDescendant",{get:function(){return 1===this.views?this.activeDescendant:null},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getTabIndex",{get:function(){return this.disabled||2===this.views?null:this.tabIndex},enumerable:!1,configurable:!0}),w.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=ge(e,"activeView"),e=0<this.views&&ge(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())},w.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},w.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},w.prototype.initService=function(){this.service=this.bus.service(this.activeView)},w.prototype.isMonthView=function(){return this.activeView===g.month},w.prototype.getCaptionTitle=function(e){return this.service.title(e)},w.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},w.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()})},w.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)},w.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},w.prototype.getWeekNames=function(e){return this.weekService.getWeekNames(this.weekNumber,e)},w.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"))},w.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()},w.prototype.clampDate=function(e){return ce(e,this.min,this.max)},w.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},w.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},w.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},w.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},w.prototype.setAriaActivedescendant=function(){2===this.views&&this.renderer.setAttribute(this.element.nativeElement,Oe,this.activeDescendant)};var Tt=w;function w(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(X),this.max=new Date(Q),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))}Tt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,deps:[{token:v},{token:s.IntlService},{token:pt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Tt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Tt,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:Dt,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:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,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:v},{type:s.IntlService},{type:pt},{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(Vt.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(Vt.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Vt.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)))},Vt.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())},Vt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Vt.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(ce(ue(),this.min,this.max)))},Vt.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},Vt.prototype.isDisabled=function(){return this.navigate?null:""},Vt.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},Vt.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()},Vt.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)):""},Vt.prototype.setTodayAvailability=function(){var e=ue(),t=re(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var It=Vt;function Vt(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(X),this.max=new Date(Q),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:v},{token:a.ChangeDetectorRef},{token:r.LocalizationService},{token:s.IntlService},{token:b}],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:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.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:v},{type:a.ChangeDetectorRef},{type:r.LocalizationService},{type:s.IntlService},{type:b}]},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"]}]}});St.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=y(De([r||n,n]),2))[0],a=a[1],e=this.bus.service(o).dateRange(t,a),r=n>e[0]?e[0]:ve(e),i.anyArrow&&(t=(o=y(De([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}},St.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var xt=St;function St(e){this.bus=e}xt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),xt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});function Et(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function Rt(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function Ot(){return null}function Mt(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}:Ot}var Nt=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:"[kendoCalendarCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Nt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],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:"[kendoCalendarMonthCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],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:"[kendoCalendarYearCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],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:"[kendoCalendarDecadeCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:At,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],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:"[kendoCalendarCenturyCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Lt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],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:"[kendoCalendarWeekNumberCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),jt=(zt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),zt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:zt,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zt,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}),Ht=(_t.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return jt[e]},_t.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},_t);function _t(e){this.bus=e}Ht.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ht,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),Ht.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ht}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ht,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});ht(Yt,$t=t.ComponentMessages);var $t,D=Yt;function Yt(){return null!==$t&&$t.apply(this,arguments)||this}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:null,target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,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:D,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}]}});ht(Wt,Kt=D);var Kt,Ut=Wt;function Wt(e){var t=Kt.call(this)||this;return t.service=e,t}Ut.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ut,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ut.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ut,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:D,useExisting:h.forwardRef(function(){return Ut})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ut,decorators:[{type:h.Directive,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Ut})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var qt="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 Gt})},Zt={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Gt})},Gt=(Object.defineProperty(I.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||ue()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"headerId",{get:function(){return this.id+"header-"},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"multiViewCalendarHeaderIdLabel",{get:function(){return 2===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"calendarHeaderIdLabel",{get:function(){return 1===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(X)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Q)},enumerable:!1,configurable:!0}),Object.defineProperty(I.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)});we(e,this.selectedDates)||(t=ve(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeViewEnum",{get:function(){var e=g[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"bottomViewEnum",{get:function(){return g[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"topViewEnum",{get:function(){return g[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"widgetId",{get:function(){return 2===this.views?this.id:null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),I.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},I.prototype.handleFocus=function(){this.isActive=!0,this.focusCalendar.emit()},I.prototype.handleMouseEnter=function(){this.isHovered=!0},I.prototype.handleMouseLeave=function(){this.isHovered=!1},I.prototype.handleMousedown=function(e){e.preventDefault()},I.prototype.handleClick=function(){this.isActive||this.focus()},I.prototype.keydown=function(e){var t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowDown].indexOf(e.keyCode),n=e.ctrlKey||e.metaKey,i=e.keyCode===m.Keys.ArrowRight&&n,a=e.keyCode===m.Keys.ArrowLeft&&n,o=e.keyCode===m.Keys.KeyT,r=e.keyCode===m.Keys.Enter;if(i)e.preventDefault(),this.navigateView(this.nextView);else if(a)e.preventDefault(),this.navigateView(this.prevView);else{if(n&&t)e.preventDefault();else{if(o)return this.focusedDate=ue(),void this.bus.moveToBottom(this.activeViewEnum);r&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e))}i=ce(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);k.isEqual(this.focusedDate,i)||(this.focusedDate=i,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)))}},I.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()}))},I.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),fe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=ce(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?Mt(this.disabledDatesService.isDateDisabled):f,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},I.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},I.prototype.ngAfterViewInit=function(){this.updateButtonState()},I.prototype.focus=function(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus()},I.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()},I.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&&we(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))))},I.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)},I.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},I.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},I.prototype.registerOnChange=function(e){this.onControlChange=e},I.prototype.registerOnTouched=function(e){this.onControlTouched=e},I.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},I.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},I.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},I.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}},I.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},I.prototype.emitNavigate=function(e){var t=g[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},I.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},I.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)},I.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:ve(e)})})},I.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},I.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.")}},I.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 "+qt+" 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 "+qt+" for possible resolution.")}},I.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()})},I.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(ve(e)):e.map(function(e){return k.cloneDate(e)})},I.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})},I);function I(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(X),this._max=new Date(Q),this._focusedDate=ue(),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+"-"}Gt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gt,deps:[{token:v},{token:a.ElementRef},{token:Ht},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:b},{token:xt}],target:a.ɵɵFactoryTarget.Component}),Gt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Gt,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:[v,T,Zt,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},Ht,xt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:It,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:Tt,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:Tt,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:Ut,selector:"[kendoMultiViewCalendarLocalizedMessages]"}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[v,T,Zt,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},Ht,xt],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:v},{type:a.ElementRef},{type:Ht},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:b},{type:xt}]},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:[Nt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[It,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[Tt,{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"]]}]}});Qt.prototype.height=function(e){return this.heights[e]},Qt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},Qt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},Qt.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},Qt.prototype.offset=function(e){return this.offsets[e]},Qt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},Qt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,mt(mt([],y(n.slice(0,e+1))),y(n.slice(e+1).map(function(e){return e+i}))))};var Xt=Qt;function Qt(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 Jt(e){return Math.max(e,0)}var en=function(e){this.offset=e},tn=function(e){this.skip=e},nn=(an.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=Jt(t-e);return l.next(new en(this.rowOffset(n))),e&&l.next(new tn(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},an.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},an.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(Jt(i-this.topOffset)),i=this.rowHeightService.index(Jt(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new en(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new tn(this.firstLoaded))),a)&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Jt(e-n),t.next(new en(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new tn(this.firstLoaded)))},an.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},an.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},an.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},an);function an(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var on,rn=new h.InjectionToken("dateinputs-scroll-service-factory");function sn(e){return new nn(e)}(T=on=on||{})[T.Backward=0]="Backward",T[T.Forward=1]="Forward";(Zt={})[on.Forward]=function(t){return function(e){return e+t}},Zt[on.Backward]=function(t){return function(e){return e-t}};var ln=Zt,cn=((T={})[on.Forward]=function(t){return function(e){return Math.min(e,t)}},T[on.Backward]=function(t){return function(e){return Math.max(e,t)}},T),pn=((Zt={})[on.Forward]=function(t){return function(e){return e<t}},Zt[on.Backward]=function(t){return function(e){return t<e}},Zt),T=(Object.defineProperty(V.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),V.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},V.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},V.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()})})},V.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},V.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},V.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},V.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},V.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},V.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},V.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},V.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},V.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},V.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},V.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=ln[r](t),i=cn[r](e),a=pn[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)})}))},V.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===on.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})},V.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},V.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},V.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 tn?t.pageChange:t.scrollChange).emit(e)})},V.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Xt(this.total,e,0)},V.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},V.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},V.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?on.Backward:on.Forward},V);function V(e,t,n,i,a){this.container=t,this.renderer=n,this.zone=i,this.scrollBarWidthService=a,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:rn},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone},{token:W.ScrollbarWidthService}],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:rn,useValue:sn}],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:c.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:rn,useValue:sn}],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:[rn]}]},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone},{type:W.ScrollbarWidthService}]},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 un(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([Dn([wn([Cn("1","k-calendar-th")],"k-calendar-tr")].concat(Sn(n,function(){return wn(Sn(i,function(e){return kn('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=vn([Vn(),t?xn():null,En([n,n])],e,{left:"-10000px",position:"absolute"})),r):null}}function dn(e){return On(e).classList.add("k-scrollable-horizontal"),e}function hn(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function mn(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function gn(e){return e.querySelector("tbody")}var fn,vn=me("div"),yn=me("ul"),bn=me("li"),kn=me("td"),Cn=me("th"),wn=me("tr"),Dn=me("tbody"),Tn=me("thead"),In=me("table"),Vn=function(){return vn('\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")},xn=function(){return In([Tn([wn([Cn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},Sn=function(e,t){return new Array(e).fill("1").map(t)},En=function(e){return vn(e,"k-flex k-content k-scrollable")},Rn=function(){return m.isDocumentAvailable?fn=fn||vn([En([yn([bn("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},On=function(e){return e.querySelector(".k-scrollable")},Mn=un({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Nn=un({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Fn=un({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Pn=(An.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},An.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(Mn(),function(e){var t=gn(e);n.calendarHeight=hn(e),n.monthViewHeight=hn(t),n.headerHeight=hn(t.children[0]),n.scrollableContentHeight=hn(On(e))}),this.batch(dn(Mn()),function(e){var t=gn(e);n.calendarWidth=mn(e),n.monthViewWidth=mn(t),n.scrollableContentWidth=mn(On(e))}),this.batch(Nn(),function(e){n.yearViewHeight=hn(gn(e)),n.scrollableYearContentHeight=hn(On(e))}),this.batch(dn(Nn()),function(e){n.yearViewWidth=mn(gn(e))}),this.batch(Fn(),function(e){n.decadeViewHeight=hn(gn(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(dn(Fn()),function(e){n.decadeViewWidth=mn(gn(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(Rn(),function(e){n.navigationItemHeight=hn(e.querySelector("li"))}))},An.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},An.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},An.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}},An.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)}}},An);function An(){}Pn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Pn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,decorators:[{type:h.Injectable}]});Object.defineProperty(Ln.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Ln.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))},Ln.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=g[this.activeView],t=ce(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))},Ln.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Ln.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Ln.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Ln.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Ln.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)},Ln.prototype.handleDateChange=function(e){var e=gt(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)))},Ln.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Ln.prototype.intlChange=function(){this.activeView===g.month&&this.cdr.markForCheck()};Zt=Ln;function Ln(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(X),this.max=new Date(Q),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}Zt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zt,deps:[{token:v},{token:Pn},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Zt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Zt,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:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],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,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:v},{type:Pn},{type:s.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(zn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),zn.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))},zn.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=ge(e,"weekNumber")&&this.weekNumber?this.getWeekNames("short"):this.weekNames,this.wideWeekNames=ge(e,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames,t=ge(e,"activeView"),n=this.focusedDate,a=ce(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=ge(e,"focusedDate")||t,i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min))},zn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},zn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},zn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},zn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},zn.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)},zn.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},zn.prototype.isMonthView=function(){return this.activeView===g.month},zn.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},zn.prototype.getTabIndex=function(){return this.disabled?null:this.tabIndex},zn.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},zn.prototype.getScrollableHeight=function(){return this.activeView===g.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},zn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},zn.prototype.getWeekNames=function(e){e=he(this.intl.dateFormatNames({nameType:e,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},zn.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()};var Bn=zn;function zn(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(X),this.max=new Date(Q),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}Bn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bn,deps:[{token:v},{token:a.ChangeDetectorRef},{token:s.IntlService},{token:Pn},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Bn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Bn,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:Dt,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:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bn,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:v},{type:a.ChangeDetectorRef},{type:s.IntlService},{type:Pn},{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"]}]}});Hn.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})},Hn.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))})}))},Hn.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},Hn.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},Hn.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},Hn.prototype.destroy=function(){this.unsubscribe()},Hn.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var jn=Hn;function Hn(e,t){this.dom=e,this.zone=t}jn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn,deps:[{token:Pn},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),jn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:Pn},{type:a.NgZone}]}});function _n(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var $n,Yn=function(e){this.templateRef=e},Kn=(Yn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Yn,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Yn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Yn,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Yn,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),ht(Un,$n=D),Object.defineProperty(Un.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Un);function Un(e){var t=$n.call(this)||this;return t.service=e,t}Kn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Kn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Kn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:D,useExisting:h.forwardRef(function(){return Kn})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kn,decorators:[{type:h.Component,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Kn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ht(qn,Wn=t.ComponentMessages);var Wn,D=qn;function qn(){return null!==Wn&&Wn.apply(this,arguments)||this}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:null,target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,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:D,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}]}});ht(Xn,Zn=D);var Zn,Gn=Xn;function Xn(e){var t=Zn.call(this)||this;return t.service=e,t}Gn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Gn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Gn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:D,useExisting:h.forwardRef(function(){return Gn})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gn,decorators:[{type:h.Directive,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Gn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function Qn(e){return e?e.virtualization:null}var Jn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",ei={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ni})},x={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||ue(),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(X)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Q)},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)});we(e,this.selectedDates)||(t=ve(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),fe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=ce(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.onValidatorChange())},S.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},S.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Qn(this.navigationView),Qn(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(Ee):this.currentlyFocusedElement=null==(e=this.element)?void 0:e.nativeElement.querySelector(Re),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(ft(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=ce(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&&we(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:ve(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-"+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 "+Jn+" 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 "+Jn+" 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,n;"infinite"===this.type&&(n=e.ctrlKey||e.metaKey,t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),o(this.pickerService)&&t&&e.altKey||(n&&t&&e.preventDefault(),o(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),n=ce(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,n)||(this.focusedDate=n,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=ue(),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(Ee);o(t)&&("classic"!==this.type||t.hasAttribute(Oe))&&("classic"===this.type?this.renderer.removeAttribute(t,Oe):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(t,Oe,e)))},S.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(ve(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(X),this._max=new Date(Q),this._focusedDate=ue(),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(Z),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:v},{token:Pn},{token:a.ElementRef},{token:Ht},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Injector},{token:jn},{token:b},{token:r.LocalizationService},{token:xt},{token:_n,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:[v,ei,x,ti,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},Ht,jn,xt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Yn,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:Zt,descendants:!0},{propertyName:"monthView",first:!0,predicate:Bn,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Gt,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:Zt,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Bn,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:W.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Gt,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:Kn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Gn,selector:"[kendoCalendarLocalizedMessages]"},{type:c.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:[v,ei,x,ti,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},Ht,jn,xt],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:v},{type:Pn},{type:a.ElementRef},{type:Ht},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Injector},{type:jn},{type:b},{type:r.LocalizationService},{type:xt},{type:_n,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:[Nt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Yn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[Zt,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Bn,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Gt,{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}}(ei=ai=ai||{})[ei.Up=0]="Up",ei[ei.Down=1]="Down",ei[ei.None=2]="None",ht(ri,oi=t.ComponentMessages);var ai,oi,x=ri;function ri(){return null!==oi&&oi.apply(this,arguments)||this}x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:null,target:a.ɵɵFactoryTarget.Directive}),x.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:x,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:x,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});ht(ci,si=x);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:x,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:x,useExisting:h.forwardRef(function(){return li})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function pi(e){return e.replace(/^0*/,"")}var ui=0,di=/year|month|<day>/,hi=/hour|minute|second|millisecond/,mi=/d|M|H|h|m|s/,gi=function(){this.symbols=""},fi=(vi.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)},vi.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},vi.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)},vi.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},vi.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}},vi.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}},vi.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)},vi.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}},vi.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},vi.prototype.setLeadingZero=function(e){this.leadingZero=e},vi.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),ze(e,n+t)):e},vi.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},vi.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},vi.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},vi.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},vi.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""},vi.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""},vi.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},vi.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},vi.prototype.patternLength=function(e){return"y"===e[0]?4:mi.test(e)?2:0},vi.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 gi;return t.symbols=i.join(""),t.partMap=a,t},vi.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]},vi.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})))},vi.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},vi);function vi(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(Z),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),ui++,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,"focusableId",{get:function(){return this.pickerType?this.pickerType+"-"+ui:"dateinput-"+ui},enumerable:!1,configurable:!0}),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&&!re(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,Ve("input",this.size));e=e||Ke;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode));e=e||Ue;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Se("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(ft(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?Et(this.min):f,this.maxValidator=this.rangeValidation?Rt(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,Le,"true"):this.renderer.setAttribute(this.inputElement,Le,"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 fi(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()&&!le(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=ce(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||di.test(t.type),time:e||hi.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(Be(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,Ve("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var yi=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.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.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=Ke,this._rounded=Ye,this._fillMode=Ue,this.subs=new p.Subscription,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}yi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yi,deps:[{token:a.ChangeDetectorRef},{token:s.IntlService},{token:a.Renderer2},{token:a.ElementRef},{token:a.NgZone},{token:a.Injector},{token:r.LocalizationService},{token:_n,optional:!0}],target:a.ɵɵFactoryTarget.Component}),yi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:yi,selector:"kendo-dateinput",inputs:{pickerType:"pickerType",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 yi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return yi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return yi})},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:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return yi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return yi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return yi})},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:s.IntlService},{type:a.Renderer2},{type:a.ElementRef},{type:a.NgZone},{type:a.Injector},{type:r.LocalizationService},{type:_n,decorators:[{type:h.Optional}]}]},propDecorators:{pickerType:[{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}]}]}});ki.prototype.preventDefault=function(){this.prevented=!0},ki.prototype.isDefaultPrevented=function(){return this.prevented};var bi=ki;function ki(){this.prevented=!1}function Ci(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}var wi,Di=new h.InjectionToken("dateinputs-touch-enabled"),Ti=(ht(Ii,wi=D),Object.defineProperty(Ii.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ii);function Ii(e){var t=wi.call(this)||this;return t.service=e,t}Ti.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ti.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ti,selector:"kendo-calendar-messages",providers:[{provide:D,useExisting:h.forwardRef(function(){return Ti})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti,decorators:[{type:h.Component,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Ti})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ht(xi,Vi=t.ComponentMessages);var Vi,ti=xi;function xi(){return null!==Vi&&Vi.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}]}});ht(Ri,Si=ti);var Si,Ei=Ri;function Ri(e){var t=Si.call(this)||this;return t.service=e,t}Ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ei,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ei.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ei,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:ti,useExisting:h.forwardRef(function(){return Ei})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ei,decorators:[{type:h.Directive,args:[{providers:[{provide:ti,useExisting:h.forwardRef(function(){return Ei})}],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,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ue;"none"!==e&&(this.renderer.addClass(this.toggleButton.nativeElement,Se("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,Se("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?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?Ci(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?Be(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 bi;!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,Oe,e)})):this.pickerSubscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Oe,e)})),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(t,Me,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,Me),this.renderer.removeAttribute(t,Oe),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()&&!le(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))),de()&&(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,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var Oi=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.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(X),this.max=k.cloneDate(Q),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=Ke,this._rounded=Ye,this._fillMode=Ue,A.validatePackage(Z),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)))}Oi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Oi,deps:[{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:q.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:_n},{token:b},{token:Di,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Oi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Oi,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"],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 Oi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Oi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Oi})},t.LocalizationService,_n,b,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Yn,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 pickerType="datepicker"\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:yi,selector:"kendo-dateinput",inputs:["pickerType","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:Ti,selector:"kendo-calendar-messages"}],directives:[{type:Ei,selector:"[kendoDatePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Oi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Oi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Oi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Oi})},t.LocalizationService,_n,b,{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 pickerType="datepicker"\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:q.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:_n},{type:b},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Di]}]}]},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:[Nt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Yn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],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 Mi(e,t){return Bi(24+e-t)}function Ni(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:je(e,n)}}var Fi,ei="dayperiod",D="hour",Pi="millisecond",Ai="minute",Li="second",Bi=(Fi=24,function(e){return e%Fi}),zi=Ni(0),ji=Ni(23),Hi=(_i.prototype.apply=function(e,t){return je(e,t.getHours())},_i.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=je(G,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},_i.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Bi(t+e*n)}),a=oe(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 this.boundRange?[zi(e,n),ji(t,n)]:[e,t]},_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.lastHour(e)===e.getHours()||!this.isMissing(e)},_i.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},_i.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getHours()),e.splice(this.selectedIndex(t),0,n)),e},_i.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Mi(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(je(this.max,this.lastHour(e)))},_i.prototype.divideByStep=function(e){return Mi(e.getHours(),this.min.getHours())/this.step},_i.prototype.lastHour=function(e){return this.range(e)[1]},_i.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},_i);function _i(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}Hi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Hi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function $i(e,t){return Ui(60+e-t)}function Yi(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:He(e,n)}}Ki=60;var Ki,Ui=function(e){return e%Ki},Wi=Yi(0),qi=Yi(59),Zi=(Gi.prototype.apply=function(e,t){return He(e,t.getMinutes())},Gi.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(G,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Gi.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Ui(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Gi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Gi.prototype.limitRange=function(e,t,n){return[Wi(e,n),qi(t,n)]},Gi.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},Gi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Gi.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},Gi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Gi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMinutes()),e.splice(this.selectedIndex(t),0,n)),e},Gi.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor($i(e,t)/this.step)+1},Gi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Gi.prototype.isLastMissing=function(e){return this.isMissing(He(this.max,this.lastMinute(e)))},Gi.prototype.divideByStep=function(e){return $i(e.getMinutes(),this.min.getMinutes())/this.step},Gi.prototype.lastMinute=function(e){return this.range(e)[1]},Gi.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},Gi);function Gi(e){this.intl=e,this.insertUndividedMax=!1}Zi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Zi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function Xi(e,t){return ea(60+e-t)}function Qi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:_e(e,n)}}Ji=60;var Ji,ea=function(e){return e%Ji},ta=Qi(0),na=Qi(59),ia=(aa.prototype.apply=function(e,t){return _e(e,t.getSeconds())},aa.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=_e(G,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},aa.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return ea(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},aa.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},aa.prototype.limitRange=function(e,t,n){return[ta(e,n),na(t,n)]},aa.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},aa.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},aa.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},aa.prototype.divideByStep=function(e){return Xi(e.getSeconds(),this.min.getSeconds())/this.step},aa.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},aa.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getSeconds()),e.splice(this.selectedIndex(t),0,n)),e},aa.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Xi(e,t)/this.step)+1},aa.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},aa.prototype.isLastMissing=function(e){return this.isMissing(_e(this.max,this.lastSecond(e)))},aa.prototype.lastSecond=function(e){return this.range(e)[1]},aa.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},aa);function aa(e){this.intl=e,this.insertUndividedMax=!1}ia.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ia,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ia.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ia}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ia,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function oa(e,t){return la(1e3+e-t)}function ra(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:$e(e,n)}}sa=1e3;var sa,la=function(e){return e%sa},ca=ra(0),pa=ra(999),ua=(da.prototype.apply=function(e,t){return $e(e,t.getMilliseconds())},da.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(G,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,this.step=e},da.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return la(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},da.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},da.prototype.limitRange=function(e,t,n){return[ca(e,n),pa(t,n)]},da.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},da.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},da.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},da.prototype.divideByStep=function(e){return oa(e.getMilliseconds(),this.min.getMilliseconds())/this.step},da.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},da.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMilliseconds()),e.splice(this.selectedIndex(t),0,n)),e},da.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(oa(e,t)/this.step)+1},da.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},da.prototype.isLastMissing=function(e){return this.isMissing($e(this.max,this.lastMillisecond(e)))},da.prototype.lastMillisecond=function(e){return this.range(e)[1]},da.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMilliseconds(),e.getMilliseconds()]},da);function da(e){this.intl=e,this.insertUndividedMax=!1}ua.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ua.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function ha(e,t){return(e=k.cloneDate(e)).setHours(t),e}function ma(e){return null!==e&&e<12}function ga(e,t,n){return!t&&!n||t<=e&&e<=n}function fa(e,t,n){return!t&&!n||t<=e||e<=n}ya.prototype.apply=function(e,t){var n,i=e.getHours(),a=ma(i),t=ma(t.getHours());return a&&t||!a&&!t?e:(n=(a=y(this.normalizedRange(),2))[0],a=void 0===(a=a[1])?24:a,ha(e,Math.min(Math.max(n,i+(t?-12:12)),a||24)))},ya.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},ya.prototype.data=function(e){var t,n,i,a,o=this.part.names;return o?(t=[],n=(i=y(this.normalizedRange(),2))[0],i=i[1],o=this.intl.dateFormatNames(o),ma(n)&&t.push({text:o.am,value:ha(this.min,n)}),null!==(a=i)&&(!a||11<a)&&t.push({text:o.pm,value:ha(this.min,Math.max(12,i))}),this.min.getHours()!==n?t.reverse():t):[]},ya.prototype.isRangeChanged=function(e,t){return!1},ya.prototype.limitRange=function(e,t,n){return[e,t]},ya.prototype.total=function(){var e=y(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},ya.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},ya.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?fa:ga)(e.getHours(),this.min.getHours(),this.max.getHours())},ya.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var va=ya;function ya(e){this.intl=e}va.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:va,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),va.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:va}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:va,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var ba=me("div"),ka=me("ul"),Ca=me("li"),O=me("span"),wa=function(){return ka([Ca("<span>02</span>","k-item")],"k-reset")},Da=m.isDocumentAvailable()?ba([O("hour","k-title k-timeselector-title"),ba([ba([wa()],"k-time-container k-flex k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,Ta=(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(Da),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(){}Ta.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ta,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Ta.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ta}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ta,decorators:[{type:h.Injectable}]});function Va(){return null}var xa={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]}},Sa=((O={})[ei]=va,O[D]=Hi,O[Ai]=Zi,O[Li]=ia,O[Pi]=ua,O),ba=(Object.defineProperty(Ea.prototype,"roleAttribute",{get:function(){return this.isDayPeriod?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.prototype,"ariaLabel",{get:function(){var e;return this.localization.get(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.prototype,"valueMin",{get:function(){var e;return null==(e=this.data[0])?void 0:e.text},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.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(Ea.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.prototype,"isDayPeriod",{get:function(){var e;return"dayperiod"===(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Ea.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Sa[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=y(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,Pe,null==(e=this.getCurrentItem())?void 0:e.value.toString()),this.renderer.setAttribute(this.hostElement,Ae,null==(a=this.getCurrentItem())?void 0:a.text)},Ea.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()})},Ea.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},Ea.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},Ea.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},Ea.prototype.getCurrentItem=function(){return 0<=this.indexToScroll?this.data[this.indexToScroll]:null},Ea.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))},Ea.prototype.handleItemClick=function(e){var e=gt(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]))},Ea.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Ea.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Ea.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},Ea.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},Ea.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},Ea.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},Ea.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},Ea.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},Ea.prototype.handleKeyDown=function(e){var t=(xa[e.keyCode]||Va)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},Ea.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)))},Ea);function Ea(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(G),this.max=k.cloneDate(ee),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}ba.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ba,deps:[{token:a.ElementRef},{token:a.Injector},{token:Ta},{token:a.Renderer2},{token:a.NgZone},{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),ba.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ba,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:c.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ba,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:Ta},{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 Ra(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function Oa(e,t){return Ra(e,t)&&e.getSeconds()===t.getSeconds()}function Ma(e){return function(t,n){return t.setHours.apply(t,mt([],y(e.map(function(e){return e(t,n)})))),t}}var Na,Fa,Pa,wa=[{type:D,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Ai,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return Ra(e,t)?t.getMinutes():0}},{type:Li,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Oa(e,t)?t.getSeconds():0}},{type:Pi,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return Oa(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],Aa=function(n){return function(e,t){return n(e)}},La=function(n){return function(e,t){return n(t)}},Ba=function(e){return Na.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?La:Aa)(e.getter)}));var t},za=(Fa=Na=wa,function(n){return Fa.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=(ht(ja,Pa=t.ComponentMessages),ja);function ja(){return null!==Pa&&Pa.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}]}});ht($a,Ha=O);var Ha,_a=$a;function $a(e){var t=Ha.call(this)||this;return t.service=e,t}_a.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_a,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),_a.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:_a,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return _a})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_a,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return _a})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function Ya(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(wa=Ka=Ka||{})[wa.Left=0]="Left",wa[wa.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||G),this.min),t=this.min,n=this.max,e&&t&&n?(i=(o=ae(e,t,n)).candidateValue,a=o.minValue,o=o.maxValue,i<a?Be(e,t):o<i?Be(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(pe())),this.current))},M.prototype.handleNow=function(){this.current=pe(),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(ft(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&&!ge(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Ma(Ba(this.dateFormatParts))),e&&!ge(e,"steps")||(this.snapTime=(i=za(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,mt([],y(i.map(function(e){return e(n,t)})))),n})),e&&!ge(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&se(pe(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(Ya,[]).map(function(e){return t===Ka.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=Ma(Ba(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?Ka.Left:Ka.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 Ka,wa=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(J),this.max=k.cloneDate(ee),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)}wa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wa,deps:[{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:s.IntlService},{token:Ta},{token:a.NgZone},{token:a.Renderer2},{token:_n,optional:!0}],target:a.ɵɵFactoryTarget.Component}),wa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:wa,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:ba,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:ba,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:_a,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.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:wa,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:s.IntlService},{type:Ta},{type:a.NgZone},{type:a.Renderer2},{type:_n,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:[ba]}],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}]}});ht(qa,Ua=O),Object.defineProperty(qa.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var Ua,Wa=qa;function qa(e){var t=Ua.call(this)||this;return t.service=e,t}Wa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Wa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Wa,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Wa})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Wa})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ht(Xa,Za=O);var Za,Ga=Xa;function Xa(e){var t=Za.call(this)||this;return t.service=e,t}Ga.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ga,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ga.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ga,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ga})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ga,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ga})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Qa=new RegExp(D+"|"+Ai+"|"+Li+"|"+Pi+"|"+ei+"|literal"),Ja=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||J)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||ee)},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,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ue;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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}},se(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,n=e.keyCode;n===m.Keys.Escape?this.show=!1:t&&(n===m.Keys.ArrowUp&&(e.preventDefault(),this.show=!1),n!==m.Keys.ArrowDown||this.show||(e.preventDefault(),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 Be(G,e)},N.prototype.mergeTime=function(e){return this.value&&e?Be(this.value,e):e},N.prototype.togglePopup=function(e){var t=new bi;!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,Me,this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return n.show=!1})):(this.popupRef.close(),this.popupRef=null,this.renderer.removeAttribute(t,Me)))},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!Qa.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))),de()&&(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,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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.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(J),this._max=k.cloneDate(ee),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=Ke,this._rounded=Ye,this._fillMode=Ue,A.validatePackage(Z),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)))}Ja.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ja,deps:[{token:v},{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:q.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:_n},{token:s.IntlService},{token:Di,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ja.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ja,selector:"kendo-timepicker",inputs:{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 Ja}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ja}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ja})},t.LocalizationService,v,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},_n],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 pickerType="timepicker"\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:yi,selector:"kendo-dateinput",inputs:["pickerType","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:wa,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Wa,selector:"kendo-timeselector-messages"}],directives:[{type:Ga,selector:"[kendoTimePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ja,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ja}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ja}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ja})},t.LocalizationService,v,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},_n],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 pickerType="timepicker"\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:v},{type:a.NgZone},{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:q.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:_n},{type:s.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Di]}]}]},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}]}],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"]}]}});ht(to,eo=t.ComponentMessages);var eo,Pi=to;function to(){return null!==eo&&eo.apply(this,arguments)||this}Pi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pi,deps:null,target:a.ɵɵFactoryTarget.Directive}),Pi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pi,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:Pi,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}]}});ht(ao,no=Pi);var no,io=ao;function ao(e){var t=no.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.Directive}),io.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:io,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:Pi,useExisting:h.forwardRef(function(){return io})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:io,decorators:[{type:h.Directive,args:[{providers:[{provide:Pi,useExisting:h.forwardRef(function(){return io})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var oo=new RegExp(D+"|"+Ai+"|"+Li+"|"+ei+"|literal"),ro="date",so=(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||ro,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,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ue;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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))),de()&&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?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?Ci(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,Oe),this.activeTabComponent.focus())},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=Te(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?Ve("button",this.size):"")+" "+(this.rounded?xe(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()&&!le(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?oo.test(n.type):oo.test(e.type)},F.prototype.togglePopup=function(e){var t;e===this.isOpen||(t=new bi,(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,Me,this.popupUID),"date"===this.activeTab&&("infinite"===this.calendar.type?this.subscriptions.add(this.calendar.monthView.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Oe,e)})):this.subscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Oe,e)}))),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.handleCancel()})},F.prototype.closePopup=function(){this.isOpen&&(this.renderer.removeAttribute(this.inputElement,Me),this.renderer.removeAttribute(this.inputElement,Oe),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:J),o(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:ee)},F.prototype.setCalendarValue=function(e){var t=o(e)&&re(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,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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.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=ro,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(J),this.timeSelectorMax=k.cloneDate(ee),this.calendarValue=null,this.calendarMin=k.cloneDate(X),this.calendarMax=Ie(Q),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=ro,this._min=Te(X,J),this._max=Te(Q,ee),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=Ke,this._rounded=Ye,this._fillMode=Ue,A.validatePackage(Z)}so.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,deps:[{token:q.PopupService},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:_n},{token:a.NgZone},{token:a.ElementRef},{token:Di},{token:r.LocalizationService},{token:b},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),so.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:so,selector:"kendo-datetimepicker",inputs:{value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",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:[_n,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return so})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,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 pickerType="datetimepicker"\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:yi,selector:"kendo-dateinput",inputs:["pickerType","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:Ti,selector:"kendo-calendar-messages"},{type:wa,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Wa,selector:"kendo-timeselector-messages"}],directives:[{type:io,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[_n,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return so})}],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 pickerType="datetimepicker"\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:q.PopupService},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:_n},{type:a.NgZone},{type:a.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[Di]}]},{type:r.LocalizationService},{type:b},{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}],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:[Nt,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{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 lo(e){return e&&e.isActive||!1}var D=function(e){this.templateRef=e},co=(D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"[kendoDateRangePopupTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Object.defineProperty(po.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),po.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,Me,i.popupUID),this.renderer.setAttribute(t,Ne,"true"),this.focusedCellChange=null==(e=i.viewCalendar.first)?void 0:e.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Oe,e)})),i.activate())},po.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,Me),this.renderer.setAttribute(t,Ne,"false"),null!=(e=this.focusedCellChange)&&e.unsubscribe(),this.renderer.removeAttribute(t,Oe)),n.show=!1)},po.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},po.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},po.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=lo(e),n=lo(this.startInput$.value),i=lo(this.endInput$.value);return t||n||i||(t=e)&&t.hasActiveContent()||!1},po.prototype.registerStartInput=function(e){this.startInput$.next(e)},po.prototype.registerEndInput=function(e){this.endInput$.next(e)},po.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},po.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},po.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},po.prototype.setRange=function(e){this.range$.next(e=void 0===e?te:e)},po);function po(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(te)}co.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co,deps:[{token:a.Renderer2,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),co.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:a.Renderer2,decorators:[{type:h.Optional}]}]}});Object.defineProperty(uo.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),Ce(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(uo.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(uo.prototype,"calendarRange",{get:function(){return this.selectionRange||te},enumerable:!1,configurable:!0}),uo.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=be(e.min,n.min),n.max=be(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()}))},uo.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},uo.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)})},uo.prototype.isEqualCalendarRange=function(e){return Ce(this.calendar.selectionRange,e)},uo.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(ke(t))},uo.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?ke(e):this.updateRange(e);Ce(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},uo.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))},uo.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||te,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},uo.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},uo.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},uo.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}},uo.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},uo.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};Ai=uo;function uo(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 co(i),i.setAttribute(n.nativeElement,"aria-multiselectable","true")}Ai.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ai,deps:[{token:Gt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2},{token:co,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),Ai.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ai,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:Ai,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Gt},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2},{type:co,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(ho.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(ho.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(ho.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show===e||(t=new bi,(e?this.open:this.close).emit(t),t.isDefaultPrevented())||this._toggle(e)},enumerable:!1,configurable:!0}),ho.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},ho.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})),de()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},ho.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()},ho.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()})})}))},ho.prototype.focus=function(){this.calendar&&this.calendar.focus()},ho.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},ho.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},ho.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},ho.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},ho.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},ho.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()})},ho.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()}))},ho.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(ho.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),ho.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()})))},ho.prototype.destroyPopup=function(){o(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),o(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};Li=ho;function ho(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()}Li.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Li,deps:[{token:q.PopupService},{token:co},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:t.RTL,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Li.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Li,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:D,descendants:!0},{propertyName:"contentCalendar",predicate:Gt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Gt,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:Gt,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:Ai,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Li,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:q.PopupService},{type:co},{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:[D,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Gt]}],contentCalendar:[{type:h.ContentChildren,args:[Gt]}],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}]}});mo.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(mo.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),mo.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},mo.prototype.ngOnDestroy=function(){var e;null!=(e=this.subscription)&&e.unsubscribe()};ei=mo;function mo(e){this.dateRangeService=e,this.wrapperClass=!0,this.showDefault=!1,A.validatePackage(Z)}ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,deps:[{token:co}],target:a.ɵɵFactoryTarget.Component}),ei.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ei,selector:"kendo-daterange",host:{listeners:{keydown:"keydown($event)"},properties:{"class.k-daterangepicker":"this.wrapperClass"}},providers:[co],queries:[{propertyName:"contentPopup",predicate:Li}],ngImport:a,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:Li,selector:"kendo-daterange-popup",inputs:["animate","anchor","anchorAlign","appendTo","collision","popupAlign","margin"],outputs:["open","close","blur","focus","cancel"],exportAs:["kendo-daterange-popup"]}],directives:[{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,decorators:[{type:h.Component,args:[{providers:[co],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[{type:co}]},propDecorators:{keydown:[{type:h.HostListener,args:["keydown",["$event"]]}],wrapperClass:[{type:h.HostBinding,args:["class.k-daterangepicker"]}],contentPopup:[{type:h.ContentChildren,args:[Li]}]}});Object.defineProperty(go.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(go.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return o(e)&&o(e.calendar)},enumerable:!1,configurable:!0}),go.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)})},go.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},go.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()},go.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},go.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},go.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()}))})})},go.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},go.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()},go.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},go.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};c=go;function go(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}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),c.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:h.Directive,args:[{}]}],ctorParameters:function(){return[{type:void 0},{type:co},{type:yi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]}});ht(yo,fo=c),yo.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),fo.prototype.init.call(this)},yo.prototype.ngAfterViewInit=function(){var e=this.dateInput.inputElement;this.renderer.removeAttribute(e,Ne),this.dateInput.pickerType="daterangeend"},yo.prototype.ngOnDestroy=function(){fo.prototype.destroy.call(this)},yo.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return re(e,i,n)?(i=(this.rangeService.selectionRange||te).start,this.autoCorrectOn===t&&o(e)&&e<i?ke(e):{start:i,end:k.cloneDate(e)}):null},yo.prototype.updateInputValue=function(e){var e=(e||te).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&re(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var fo,vo=yo;function yo(e,t,n,i,a){n=fo.call(this,"end",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}vo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:vo,deps:[{token:co},{token:yi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),vo.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:vo,selector:"[kendoDateRangeEndInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:vo,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:co},{type:yi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});ht(ko,bo=c),ko.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),bo.prototype.init.call(this)},ko.prototype.ngAfterViewInit=function(){var e=this.dateInput.inputElement;this.renderer.setAttribute(e,"role","combobox"),this.renderer.setAttribute(e,Fe,"true"),this.dateInput.pickerType="daterangestart",this.renderer.setAttribute(e,Ne,"false")},ko.prototype.ngOnDestroy=function(){bo.prototype.destroy.call(this)},ko.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return re(e,i,n)?(i=(this.rangeService.selectionRange||te).end,this.autoCorrectOn===t&&i&&i<e?ke(e):{start:k.cloneDate(e),end:i}):null},ko.prototype.updateInputValue=function(e){var e=(e||te).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&re(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var bo,c=ko;function ko(e,t,n,i,a){n=bo.call(this,"start",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.renderer=i,n.navigateCalendarOnFocus=!1,n}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:[{token:co},{token:yi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),c.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:co},{type:yi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var Co,wo=function(){},P=(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,declarations:[Ct,It,Dt],imports:[i.CommonModule,m.EventsModule],exports:[Ct,It,Dt]}),wo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,imports:[[i.CommonModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,decorators:[{type:h.NgModule,args:[{declarations:[Ct,It,Dt],exports:[Ct,It,Dt],imports:[i.CommonModule,m.EventsModule]}]}]}),function(){}),Do=(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:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn],exports:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn]}),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:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn],exports:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn]}]}]}),function(){}),To=(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:[Tt,Ut,Kn,Gt],imports:[i.CommonModule,wo,L.IntlModule,P,z.PopupModule,m.EventsModule],exports:[Tt,Ut,Kn,Gt,wo,P]}),Do.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,providers:[Ht,u,d,tt,ot,pt],imports:[[i.CommonModule,wo,L.IntlModule,P,z.PopupModule,m.EventsModule],wo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,decorators:[{type:h.NgModule,args:[{declarations:[Tt,Ut,Kn,Gt],exports:[Tt,Ut,Kn,Gt,wo,P],imports:[i.CommonModule,wo,L.IntlModule,P,z.PopupModule,m.EventsModule],providers:[Ht,u,d,tt,ot,pt]}]}]}),[T]),Io=function(){},T=(Io.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Io.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,declarations:[T],imports:[i.CommonModule],exports:[T]}),Io.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,imports:[[i.CommonModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,decorators:[{type:h.NgModule,args:[{declarations:[To],exports:[To],imports:[i.CommonModule]}]}]}),function(){}),To=(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,Zt,Ti,Gn,Bn],imports:[i.CommonModule,wo,Do,L.IntlModule,P,Io,m.EventsModule,m.ResizeSensorModule],exports:[ni,Zt,Ti,Gn,Bn,wo,P]}),T.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,providers:[Pn,u,d,tt,ot,pt],imports:[[i.CommonModule,wo,Do,L.IntlModule,P,Io,m.EventsModule,m.ResizeSensorModule],wo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:h.NgModule,args:[{declarations:[ni,Zt,Ti,Gn,Bn],exports:[ni,Zt,Ti,Gn,Bn,wo,P],imports:[i.CommonModule,wo,Do,L.IntlModule,P,Io,m.EventsModule,m.ResizeSensorModule],providers:[Pn,u,d,tt,ot,pt]}]}]}),function(){}),Vo=(To.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,deps:[],target:a.ɵɵFactoryTarget.NgModule}),To.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,imports:[T,Do],exports:[T,Do]}),To.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,imports:[[T,Do],T,Do]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,decorators:[{type:h.NgModule,args:[{exports:[T,Do],imports:[T,Do]}]}]}),ht(xo,Co=x),Object.defineProperty(xo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),xo);function xo(e){var t=Co.call(this)||this;return t.service=e,t}Vo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Vo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Vo,selector:"kendo-dateinput-messages",providers:[{provide:x,useExisting:h.forwardRef(function(){return Vo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vo,decorators:[{type:h.Component,args:[{providers:[{provide:x,useExisting:h.forwardRef(function(){return Vo})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var So,u=function(){},Eo=(u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.NgModule}),u.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,declarations:[yi,Vo,li],imports:[i.CommonModule,L.IntlModule,m.EventsModule],exports:[yi,Vo,li]}),u.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,imports:[[i.CommonModule,L.IntlModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.NgModule,args:[{declarations:[yi,Vo,li],exports:[yi,Vo,li],imports:[i.CommonModule,L.IntlModule,m.EventsModule]}]}]}),ht(Ro,So=ti),Object.defineProperty(Ro.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ro);function Ro(e){var t=So.call(this)||this;return t.service=e,t}Eo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Eo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Eo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Eo,selector:"kendo-datepicker-messages",providers:[{provide:ti,useExisting:h.forwardRef(function(){return Eo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Eo,decorators:[{type:h.Component,args:[{providers:[{provide:ti,useExisting:h.forwardRef(function(){return Eo})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Oo,d=function(){},tt=(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:[Oi,Eo,Ei],imports:[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],exports:[Oi,Eo,Ei,P]}),d.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,providers:[{provide:Di,useValue:j.touchEnabled}],imports:[[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:h.NgModule,args:[{declarations:[Oi,Eo,Ei],exports:[Oi,Eo,Ei,P],imports:[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],providers:[{provide:Di,useValue:j.touchEnabled}]}]}]}),[ei,Li,D,Ai,c,vo]),ot=[Do,u,z.PopupModule,m.EventsModule],x=function(){},Mo=(x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:[],target:a.ɵɵFactoryTarget.NgModule}),x.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,declarations:[ei,Li,D,Ai,c,vo],imports:[i.CommonModule,Do,u,z.PopupModule,m.EventsModule],exports:[ei,Li,D,Ai,c,vo]}),x.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,imports:[[i.CommonModule,ot]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,decorators:[{type:h.NgModule,args:[{declarations:[tt],exports:[tt],imports:[i.CommonModule,ot]}]}]}),ht(No,Oo=O),Object.defineProperty(No.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),No);function No(e){var t=Oo.call(this)||this;return t.service=e,t}Mo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Mo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Mo,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Mo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mo,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Mo})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Fo,ti=[Ga,ba,Mo,Ja,_a,Wa,wa],tt=[u,L.IntlModule,z.PopupModule,Io,m.EventsModule],ot=[Ta,Hi,Zi,ia,ua,va,{provide:Di,useValue:j.touchEnabled}],O=function(){},Po=(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:[Ga,ba,Mo,Ja,_a,Wa,wa],imports:[i.CommonModule,u,L.IntlModule,z.PopupModule,Io,m.EventsModule],exports:[Ga,ba,Mo,Ja,_a,Wa,wa]}),O.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,providers:ot,imports:[mt([i.CommonModule],y(tt))]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:h.NgModule,args:[{declarations:[ti],exports:[ti],imports:mt([i.CommonModule],y(tt)),providers:ot}]}]}),ht(Ao,Fo=Pi),Object.defineProperty(Ao.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ao);function Ao(e){var t=Fo.call(this)||this;return t.service=e,t}Po.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Po,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Po.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Po,selector:"kendo-datetimepicker-messages",providers:[{provide:Pi,useExisting:h.forwardRef(function(){return Po})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Po,decorators:[{type:h.Component,args:[{providers:[{provide:Pi,useExisting:h.forwardRef(function(){return Po})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});Hi=[so,Po,io],Zi=function(){},Zi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Zi.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,declarations:[so,Po,io],imports:[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],exports:[so,Po,io,P]}),Zi.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,providers:[{provide:Di,useValue:j.touchEnabled}],imports:[[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,decorators:[{type:h.NgModule,args:[{declarations:mt([],y(Hi)),exports:mt(mt([],y(Hi)),[P]),imports:[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],providers:[{provide:Di,useValue:j.touchEnabled}]}]}]}),ia=[To,u,d,O,x,Zi],ua=function(){};ua.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,deps:[],target:a.ɵɵFactoryTarget.NgModule}),ua.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,imports:[To,u,d,O,x,Zi],exports:[To,u,d,O,x,Zi]}),ua.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,imports:[ia,To,u,d,O,x,Zi]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,decorators:[{type:h.NgModule,args:[{exports:ia,imports:ia}]}]}),e.CalendarCommonModule=wo,e.CalendarComponent=ni,e.CalendarCustomMessagesComponent=Ti,e.CalendarLocalizedMessagesDirective=Gn,e.CalendarModule=T,e.CalendarsModule=To,e.CellTemplateDirective=Nt,e.CenturyCellTemplateDirective=Lt,e.DateInputComponent=yi,e.DateInputCustomMessagesComponent=Vo,e.DateInputLocalizedMessagesDirective=li,e.DateInputModule=u,e.DateInputsModule=ua,e.DatePickerComponent=Oi,e.DatePickerCustomMessagesComponent=Eo,e.DatePickerLocalizedMessagesDirective=Ei,e.DatePickerModule=d,e.DateRangeComponent=ei,e.DateRangeEndInputDirective=vo,e.DateRangeModule=x,e.DateRangePopupComponent=Li,e.DateRangePopupTemplateDirective=D,e.DateRangeSelectionDirective=Ai,e.DateRangeService=co,e.DateRangeStartInputDirective=c,e.DateTimePickerComponent=so,e.DateTimePickerCustomMessagesComponent=Po,e.DateTimePickerModule=Zi,e.DecadeCellTemplateDirective=At,e.HeaderComponent=It,e.HeaderTitleTemplateDirective=zt,e.HorizontalViewListComponent=Tt,e.KForOf=Ct,e.LocalizedMessagesDirective=io,e.MonthCellTemplateDirective=Ft,e.MultiViewCalendarComponent=Gt,e.MultiViewCalendarCustomMessagesComponent=Kn,e.MultiViewCalendarLocalizedMessagesDirective=Ut,e.MultiViewCalendarModule=Do,e.NavigationComponent=Zt,e.NavigationItemTemplateDirective=Yn,e.PreventableEvent=bi,e.TemplatesModule=P,e.TimeListComponent=ba,e.TimePickerComponent=Ja,e.TimePickerCustomMessagesComponent=Mo,e.TimePickerLocalizedMessagesDirective=Ga,e.TimePickerModule=O,e.TimeSelectorComponent=wa,e.TimeSelectorCustomMessagesComponent=Wa,e.TimeSelectorLocalizedMessagesDirective=_a,e.ViewComponent=Dt,e.ViewListComponent=Bn,e.WeekNumberCellTemplateDirective=Bt,e.YearCellTemplateDirective=Pt,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),W=H(m),s=H(L),c=H(i),q=H(z),Z={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1666813307,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"},G=((u=l=l||{})[u.Left=0]="Left",u[u.Right=1]="Right",u[u.Up=2]="Up",u[u.Down=3]="Down",u[u.PrevView=4]="PrevView",u[u.NextView=5]="NextView",u[u.FirstInView=6]="FirstInView",u[u.LastInView=7]="LastInView",u[u.LowerView=8]="LowerView",u[u.UpperView=9]="UpperView",(u=g=g||{})[u.month=0]="month",u[u.year=1]="year",u[u.decade=2]="decade",u[u.century=3]="century",new Date(1980,0,1)),X=new Date(1900,0,1),Q=new Date(2099,11,31),J=new Date(1980,0,1),ee=new Date(1980,0,1,23,59,59),te={start:null,end:null};(u=U=U||{})[u.ArrowDown=40]="ArrowDown",u[u.ArrowLeft=37]="ArrowLeft",u[u.ArrowRight=39]="ArrowRight",u[u.ArrowUp=38]="ArrowUp";function ne(e){return null!=e}function ie(n){return function(e,t){e=k.cloneDate(e);return e[n](t),e}}function ae(e,t,n){return{candidateValue:Be(G,e),maxValue:k.addDays(Be(G,n),t.getHours()<n.getHours()||t.getHours()===n.getHours()&&t.getMinutes()<n.getMinutes()?0:1),minValue:Be(G,t)}}function oe(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i}function re(e,t,n){return!e||!(t&&e<t||n&&n<e)}function se(e,t,n){return!(e&&t&&n)||(t=(e=ae(e,t,n)).candidateValue,n=e.minValue,e=e.maxValue,n<=t&&t<=e)}function le(e,t){return!ne(e)||!ne(t)||e<=t}function ce(e,t,n){return e&&(t&&e<t?k.cloneDate(t):n&&n<e?k.cloneDate(n):e)}function pe(){return new Date}function ue(){return k.getDate(new Date)}function f(e){}function de(){return"undefined"!=typeof window}function he(e,t){return e.slice(t).concat(e.slice(0,t))}function me(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 ge(e,t){return void 0!==e[t]}function fe(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue}function ve(e){return(e=void 0===e?[]:e)&&e[e.length-1]}function ye(e,t){var n=(t=t||te).start,t=t.end;return!(!n||!t)&&n<e&&e<t}function be(e,t){return e||t}function ke(e){return{start:e,end:e}}function Ce(e,t){var n=(e=e||te).start,e=e.end,i=(t=t||te).start,t=t.end;return k.isEqual(n,i)&&k.isEqual(e,t)}function we(e,n){return n=n||[],(e=e||[]).length===n.length&&e.every(function(e,t){return k.isEqual(e,n[t])})}function De(e){return e.filter(o).sort(function(e,t){return e.getTime()-t.getTime()})}function Te(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 Ve(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function xe(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]}function Se(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}var Ee=".k-content .k-calendar-table",Re=".k-content.k-calendar-table",Oe="aria-activedescendant",Me="aria-controls",Ne="aria-expanded",Fe="aria-haspopup",Pe="aria-valuenow",Ae="aria-valuetext",Le="aria-invalid",Be=function(e,t){e=k.cloneDate(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},ze=ie("setFullYear"),je=ie("setHours"),He=ie("setMinutes"),_e=ie("setSeconds"),$e=ie("setMilliseconds"),Ye="medium",Ke="medium",Ue="solid",We=[[]],qe=((u={})[l.Left]=function(e){return k.addDecades(e,-1)},u[l.Up]=function(e){return k.addDecades(e,-5)},u[l.Right]=function(e){return k.addDecades(e,1)},u[l.Down]=function(e){return k.addDecades(e,5)},u[l.PrevView]=function(e){return k.addCenturies(e,-1)},u[l.NextView]=function(e){return k.addCenturies(e,1)},u[l.FirstInView]=function(e){return k.firstDecadeOfCentury(e)},u[l.LastInView]=function(e){return k.lastDecadeOfCentury(e)},u),u=(Ze.prototype.addToDate=function(e,t){return k.addCenturies(e,t)},Ze.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addCenturies(t,e)})},Ze.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?te:n,n=e.viewDate;return n?(t=oe(0,4),o=k.firstDecadeOfCentury(n),r=k.lastDecadeOfCentury(n),s=ue(),oe(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&&ye(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})})})):We},Ze.prototype.isEqual=function(e,t){return!(!e||!t)&&k.firstYearOfDecade(e).getFullYear()===k.firstYearOfDecade(t).getFullYear()},Ze.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()+99},Ze.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},Ze.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(k.firstDecadeOfCentury(e)),k.createDate(t.getFullYear(),0,1))},Ze.prototype.lastDayOfPeriod=function(e){e=k.lastDecadeOfCentury(e),e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Ze.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},Ze.prototype.move=function(e,t){t=qe[t];return t?t(e):e},Ze.prototype.cellTitle=function(e){return k.firstYearOfDecade(e).getFullYear().toString()},Ze.prototype.navigationTitle=function(e){return e?k.firstDecadeOfCentury(e).getFullYear().toString():""},Ze.prototype.title=function(e){return e?k.firstDecadeOfCentury(e).getFullYear()+" - "+k.lastDecadeOfCentury(e).getFullYear():""},Ze.prototype.rowLength=function(){return 4},Ze.prototype.skip=function(e,t){return k.durationInCenturies(t,e)},Ze.prototype.total=function(e,t){return k.durationInCenturies(e,t)+1},Ze.prototype.value=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Ze.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},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(){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}}u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.Injectable}),u.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.Injectable}]});var Ge=[[]],Xe=((d={})[l.Left]=function(e){return k.addYears(e,-1)},d[l.Up]=function(e){return k.addYears(e,-5)},d[l.Right]=function(e){return k.addYears(e,1)},d[l.Down]=function(e){return k.addYears(e,5)},d[l.PrevView]=function(e){return k.addDecades(e,-1)},d[l.NextView]=function(e){return k.addDecades(e,1)},d[l.FirstInView]=function(e){return k.firstYearOfDecade(e)},d[l.LastInView]=function(e){return k.lastYearOfDecade(e)},d),d=(Qe.prototype.addToDate=function(e,t){return k.addDecades(e,t)},Qe.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addDecades(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?te:n,n=e.viewDate;return n?(t=oe(0,4),o=k.firstYearOfDecade(n),r=k.lastYearOfDecade(n),s=ue(),oe(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&&ye(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})})})):Ge},Qe.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},Qe.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()+9},Qe.prototype.isInRange=function(e,t,n){e=e.getFullYear(),t=!t||t.getFullYear()<=e,e=!n||e<=n.getFullYear();return t&&e},Qe.prototype.beginningOfPeriod=function(e){var t;return e&&(t=k.firstYearOfDecade(e),k.createDate(t.getFullYear(),0,1))},Qe.prototype.lastDayOfPeriod=function(e){e=k.lastYearOfDecade(e),e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},Qe.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},Qe.prototype.move=function(e,t){t=Xe[t];return t?t(e):e},Qe.prototype.cellTitle=function(e){return e.getFullYear().toString()},Qe.prototype.navigationTitle=function(e){return e?k.firstYearOfDecade(e).getFullYear().toString():""},Qe.prototype.title=function(e){return e?k.firstYearOfDecade(e).getFullYear()+" - "+k.lastYearOfDecade(e).getFullYear():""},Qe.prototype.rowLength=function(){return 4},Qe.prototype.skip=function(e,t){return k.durationInDecades(t,e)},Qe.prototype.total=function(e,t){return k.durationInDecades(e,t)+1},Qe.prototype.value=function(e){return e?e.getFullYear().toString():""},Qe.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},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.addYears(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 Je=[[]],et=((tt={})[l.Left]=function(e){return k.addDays(e,-1)},tt[l.Up]=function(e){return k.addWeeks(e,-1)},tt[l.Right]=function(e){return k.addDays(e,1)},tt[l.Down]=function(e){return k.addWeeks(e,1)},tt[l.PrevView]=function(e){return k.addMonths(e,-1)},tt[l.NextView]=function(e){return k.addMonths(e,1)},tt[l.FirstInView]=function(e){return k.firstDayOfMonth(e)},tt[l.LastInView]=function(e){return k.lastDayOfMonth(e)},tt),tt=(nt.prototype.addToDate=function(e,t){return k.addMonths(e,t)},nt.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addMonths(t,e)})},nt.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?te: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=oe(0,7),p=ue(),oe(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&&ye(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})})})):Je},nt.prototype.isEqual=function(e,t){return!(!e||!t)&&k.getDate(e).getTime()===k.getDate(t).getTime()},nt.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},nt.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},nt.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),e.getMonth(),1)},nt.prototype.lastDayOfPeriod=function(e){return k.lastDayOfMonth(e)},nt.prototype.isRangeStart=function(e){return!e.getMonth()},nt.prototype.move=function(e,t){t=et[t];return t?t(e):e},nt.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},nt.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},nt.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},nt.prototype.rowLength=function(e){return 7+((e=void 0===e?{}:e).prependCell?1:0)},nt.prototype.skip=function(e,t){return k.durationInMonths(t,e)},nt.prototype.total=function(e,t){return k.durationInMonths(e,t)+1},nt.prototype.value=function(e){return e?e.getDate().toString():""},nt.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},nt.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},nt.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},nt.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},nt.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},nt);function nt(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}}tt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:tt,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),tt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:tt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:tt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var it=[[]],at=((ot={})[l.Left]=function(e){return k.addMonths(e,-1)},ot[l.Up]=function(e){return k.addMonths(e,4<(e=e.getMonth())?-5:e<2?-2:-7)},ot[l.Right]=function(e){return k.addMonths(e,1)},ot[l.Down]=function(e){return k.addMonths(e,(e=e.getMonth())<7?5:e<10?7:2)},ot[l.PrevView]=function(e){return k.addYears(e,-1)},ot[l.NextView]=function(e){return k.addYears(e,1)},ot[l.FirstInView]=function(e){return k.firstMonthOfYear(e)},ot[l.LastInView]=function(e){return k.lastMonthOfYear(e)},ot),ot=(rt.prototype.addToDate=function(e,t){return k.addYears(e,t)},rt.prototype.datesList=function(t,e){return oe(0,e).map(function(e){return k.addYears(t,e)})},rt.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?te:n,n=e.viewDate;return n?(o=this.abbrMonthNames(),r=k.firstMonthOfYear(n),s=k.lastMonthOfYear(n),l=r.getFullYear(),t=oe(0,4),c=ue(),oe(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&&ye(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})})})):it},rt.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},rt.prototype.isInArray=function(e,t){return!!t.length&&(e=e.getFullYear(),t[0].getFullYear()<=e)&&e<=t[t.length-1].getFullYear()},rt.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},rt.prototype.beginningOfPeriod=function(e){return e&&k.createDate(e.getFullYear(),0,1)},rt.prototype.lastDayOfPeriod=function(e){e=k.lastMonthOfYear(e);return k.lastDayOfMonth(e)},rt.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},rt.prototype.move=function(e,t){t=at[t];return t?t(e):e},rt.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},rt.prototype.navigationTitle=function(e){return this.title(e)},rt.prototype.title=function(e){return e?e.getFullYear().toString():""},rt.prototype.rowLength=function(){return 4},rt.prototype.skip=function(e,t){return k.durationInYears(t,e)},rt.prototype.total=function(e,t){return k.durationInYears(e,t)+1},rt.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},rt.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},rt.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},rt.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},rt);function rt(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}}ot.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ot.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ot,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});(Ct={})[g.month]=tt,Ct[g.year]=ot,Ct[g.decade]=d,Ct[g.century]=u;var st=Ct,lt=0,v=(ct.prototype.configure=function(e,t){this.bottom=e,this.top=t},ct.prototype.service=function(e){e=st[e];return e?this.injector.get(e):null},ct.prototype.moveDown=function(e){this.move(e,-1)},ct.prototype.moveUp=function(e){this.move(e,1)},ct.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},ct.prototype.canMoveDown=function(e){return this.bottom<e},ct.prototype.canMoveUp=function(e){return e<this.top},ct.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},ct.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})},ct);function ct(e){this.injector=e,this.viewChanged=new h.EventEmitter,this.bottom=g.month,this.top=g.century,this.calendarId=lt++}v.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:v,deps:[{token:a.Injector}],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}],ctorParameters:function(){return[{type:a.Injector}]}});ut.prototype.getWeekNames=function(e,t){void 0===e&&(e=!1);t=he(this.intl.dateFormatNames({nameType:t,type:"days"}),this.intl.firstDay());return e?[""].concat(t):t};var pt=ut;function ut(e){this.intl=e}pt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),pt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:pt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var dt=function(e,t){return(dt=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 ht(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}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function y(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 mt(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 gt(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e}function ft(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function vt(){return!1}yt.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=vt,this.notifyInvalidInput(t)))),this.notifyServiceChange()},yt.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.")},yt.prototype.notifyServiceChange=function(){this.changes.next()};var b=yt;function yt(){this.changes=new p.Subject,this.isDateDisabled=vt}b.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,deps:[],target:a.ɵɵFactoryTarget.Injectable}),b.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:b,decorators:[{type:h.Injectable}]});Object.defineProperty(kt.prototype,"first",{get:function(){return 0===this.index},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"even",{get:function(){return this.index%2==0},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"odd",{get:function(){return!this.even},enumerable:!1,configurable:!0});var bt=kt;function kt(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}Object.defineProperty(wt.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!1,configurable:!0}),wt.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)+"'.")}}},wt.prototype.ngDoCheck=function(){var e;this._differ&&(e=this._differ.diff(this.kForOf))&&this._applyChanges(e)},wt.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 bt(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=wt;function wt(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}Ct.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ct,deps:[{token:a.ViewContainerRef},{token:a.TemplateRef},{token:a.IterableDiffers}],target:a.ɵɵFactoryTarget.Directive}),Ct.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ct,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:Ct,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(C.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===g.month},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),C.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular(function(){e.bindEvents()})},C.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)},C.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach(function(e){return e()})},C.prototype.isHorizontal=function(){return"horizontal"===this.direction},C.prototype.isMonthView=function(){return this.activeView===g.month},C.prototype.shouldRenderCellContent=function(e){return o(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},C.prototype.firstDate=function(e){e=this.firstWeekDateContext(e);return e?e.value:null},C.prototype.getWeekNumber=function(e){return this.weekNumber?k.weekInYear(e,this.intl.firstDay()):null},C.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},C.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(" ")},C.prototype.tableCellIndex=function(e,t){return e+":"+t},C.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)},C.prototype.getMonthLabel=function(e){return 1===this.activeView?this.intl.formatDate(e,"MMMM"):null},C.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},C.prototype.updateData=function(){var e=ve(this.selectedDates)||ue(),e=Be(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})},C.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},C.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},C.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)))},C.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}})))},C.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},C.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()},C.prototype.closestCell=function(e){return gt(e.target,function(e){return e.hasAttribute("data-cell-index")},this.element.nativeElement)},C.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},C.prototype.cellByIndex=function(e){var e=y(e.split(":"),2),t=e[0],e=e[1];return this.data[t][e]};var Dt=C;function C(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)))}Dt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,deps:[{token:v},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.NgZone},{token:a.Renderer2},{token:b}],target:a.ɵɵFactoryTarget.Component}),Dt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Dt,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:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Dt,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:v},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.NgZone},{type:a.Renderer2},{type:b}]},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}]}});w.prototype.handleFocus=function(){this.focusCalendar.emit()},Object.defineProperty(w.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getActiveDescendant",{get:function(){return 1===this.views?this.activeDescendant:null},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"getTabIndex",{get:function(){return this.disabled||2===this.views?null:this.tabIndex},enumerable:!1,configurable:!0}),w.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=ge(e,"activeView"),e=0<this.views&&ge(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())},w.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},w.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},w.prototype.initService=function(){this.service=this.bus.service(this.activeView)},w.prototype.isMonthView=function(){return this.activeView===g.month},w.prototype.getCaptionTitle=function(e){return this.service.title(e)},w.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},w.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()})},w.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)},w.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},w.prototype.getWeekNames=function(e){return this.weekService.getWeekNames(this.weekNumber,e)},w.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"))},w.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()},w.prototype.clampDate=function(e){return ce(e,this.min,this.max)},w.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},w.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},w.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},w.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},w.prototype.setAriaActivedescendant=function(){2===this.views&&this.renderer.setAttribute(this.element.nativeElement,Oe,this.activeDescendant)};var Tt=w;function w(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(X),this.max=new Date(Q),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))}Tt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,deps:[{token:v},{token:s.IntlService},{token:pt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Tt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Tt,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:Dt,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:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Tt,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:v},{type:s.IntlService},{type:pt},{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(Vt.prototype,"horizontalHostClass",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(Vt.prototype,"verticalHostClass",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Vt.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)))},Vt.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())},Vt.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Vt.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(ce(ue(),this.min,this.max)))},Vt.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},Vt.prototype.isDisabled=function(){return this.navigate?null:""},Vt.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},Vt.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()},Vt.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)):""},Vt.prototype.setTodayAvailability=function(){var e=ue(),t=re(e,k.getDate(this.min),k.getDate(this.max)),e=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!e,this.cdr.markForCheck()};var It=Vt;function Vt(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(X),this.max=new Date(Q),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:v},{token:a.ChangeDetectorRef},{token:r.LocalizationService},{token:s.IntlService},{token:b}],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:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.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:v},{type:a.ChangeDetectorRef},{type:r.LocalizationService},{type:s.IntlService},{type:b}]},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"]}]}});St.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=y(De([r||n,n]),2))[0],a=a[1],e=this.bus.service(o).dateRange(t,a),r=n>e[0]?e[0]:ve(e),i.anyArrow&&(t=(o=y(De([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}},St.prototype.isDateSelected=function(e,t){return e.some(function(e){return k.isEqual(e,t)})};var xt=St;function St(e){this.bus=e}xt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),xt.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:xt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});function Et(n){return function(e){var t={minError:{minValue:n,value:e.value}};return n&&e.value&&e.value<n?t:null}}function Rt(n){return function(e){var t={maxError:{maxValue:n,value:e.value}};return n&&e.value&&e.value>n?t:null}}function Ot(){return null}function Mt(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}:Ot}var Nt=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:"[kendoCalendarCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Nt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCellTemplate]"}]}],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:"[kendoCalendarMonthCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ft,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarMonthCellTemplate]"}]}],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:"[kendoCalendarYearCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarYearCellTemplate]"}]}],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:"[kendoCalendarDecadeCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:At,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarDecadeCellTemplate]"}]}],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:"[kendoCalendarCenturyCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Lt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarCenturyCellTemplate]"}]}],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:"[kendoCalendarWeekNumberCellTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bt,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarWeekNumberCellTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),function(e){this.templateRef=e}),jt=(zt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zt,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),zt.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:zt,selector:"[kendoCalendarHeaderTitleTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:zt,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}),Ht=(_t.prototype.action=function(e){e=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return jt[e]},_t.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},_t);function _t(e){this.bus=e}Ht.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ht,deps:[{token:v}],target:a.ɵɵFactoryTarget.Injectable}),Ht.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ht}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ht,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:v}]}});ht(Yt,$t=t.ComponentMessages);var $t,D=Yt;function Yt(){return null!==$t&&$t.apply(this,arguments)||this}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:null,target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,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:D,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}]}});ht(Wt,Kt=D);var Kt,Ut=Wt;function Wt(e){var t=Kt.call(this)||this;return t.service=e,t}Ut.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ut,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ut.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ut,selector:"[kendoMultiViewCalendarLocalizedMessages]",providers:[{provide:D,useExisting:h.forwardRef(function(){return Ut})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ut,decorators:[{type:h.Directive,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Ut})}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var qt="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 Gt})},Zt={multi:!0,provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Gt})},Gt=(Object.defineProperty(I.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||ue()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"headerId",{get:function(){return this.id+"header-"},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"multiViewCalendarHeaderIdLabel",{get:function(){return 2===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"calendarHeaderIdLabel",{get:function(){return 1===this.views?this.id+"header-":null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(X)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Q)},enumerable:!1,configurable:!0}),Object.defineProperty(I.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)});we(e,this.selectedDates)||(t=ve(e),this.rangePivot=k.cloneDate(t),this.focusedDate=k.cloneDate(t)||this.focusedDate,this.selectedDates=e)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeViewEnum",{get:function(){var e=g[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"bottomViewEnum",{get:function(){return g[this.bottomView]},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"topViewEnum",{get:function(){return g[this.topView]},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"widgetId",{get:function(){return 2===this.views?this.id:null},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!1,configurable:!0}),I.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},I.prototype.handleFocus=function(){this.isActive=!0,this.focusCalendar.emit()},I.prototype.handleMouseEnter=function(){this.isHovered=!0},I.prototype.handleMouseLeave=function(){this.isHovered=!1},I.prototype.handleMousedown=function(e){e.preventDefault()},I.prototype.handleClick=function(){this.isActive||this.focus()},I.prototype.keydown=function(e){var t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowDown].indexOf(e.keyCode),n=e.ctrlKey||e.metaKey,i=e.keyCode===m.Keys.ArrowRight&&n,a=e.keyCode===m.Keys.ArrowLeft&&n,o=e.keyCode===m.Keys.KeyT,r=e.keyCode===m.Keys.Enter;if(i)e.preventDefault(),this.navigateView(this.nextView);else if(a)e.preventDefault(),this.navigateView(this.prevView);else{if(n&&t)e.preventDefault();else{if(o)return this.focusedDate=ue(),void this.bus.moveToBottom(this.activeViewEnum);r&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,e))}i=ce(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);k.isEqual(this.focusedDate,i)||(this.focusedDate=i,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)))}},I.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()}))},I.prototype.ngOnChanges=function(e){var t;this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),fe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=ce(t,this.min,this.max)),(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?Mt(this.disabledDatesService.isDateDisabled):f,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},I.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},I.prototype.ngAfterViewInit=function(){this.updateButtonState()},I.prototype.focus=function(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus()},I.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()},I.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&&we(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))))},I.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)},I.prototype.setActiveDate=function(e){this.activeDate=k.cloneDate(e),this.cdr.detectChanges()},I.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},I.prototype.registerOnChange=function(e){this.onControlChange=e},I.prototype.registerOnTouched=function(e){this.onControlTouched=e},I.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},I.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},I.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},I.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}},I.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},I.prototype.emitNavigate=function(e){var t=g[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},I.prototype.emitCellEvent=function(e,t){m.hasObservers(e)&&this.zone.run(function(){e.emit(t)})},I.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)},I.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run(function(){t.handleDateChange({selectedDates:e,focusedDate:ve(e)})})},I.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},I.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.")}},I.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 "+qt+" 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 "+qt+" for possible resolution.")}},I.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()})},I.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(ve(e)):e.map(function(e){return k.cloneDate(e)})},I.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})},I);function I(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(X),this._max=new Date(Q),this._focusedDate=ue(),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+"-"}Gt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gt,deps:[{token:v},{token:a.ElementRef},{token:Ht},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:b},{token:xt}],target:a.ɵɵFactoryTarget.Component}),Gt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Gt,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:[v,T,Zt,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},Ht,xt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,descendants:!0}],viewQueries:[{propertyName:"headerElement",first:!0,predicate:It,descendants:!0,read:h.ElementRef},{propertyName:"viewList",first:!0,predicate:Tt,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:Tt,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:Ut,selector:"[kendoMultiViewCalendarLocalizedMessages]"}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gt,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[v,T,Zt,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},Ht,xt],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:v},{type:a.ElementRef},{type:Ht},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:b},{type:xt}]},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:[Nt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],headerElement:[{type:h.ViewChild,args:[It,{static:!1,read:h.ElementRef}]}],viewList:[{type:h.ViewChild,args:[Tt,{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"]]}]}});Qt.prototype.height=function(e){return this.heights[e]},Qt.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},Qt.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},Qt.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},Qt.prototype.offset=function(e){return this.offsets[e]},Qt.prototype.totalHeight=function(){return this.heights.reduce(function(e,t){return e+t},0)},Qt.prototype.updateRowHeight=function(e,t){var n,i;this.heights[e]+=t,this.offsets=(n=this.offsets,e=e,i=t,mt(mt([],y(n.slice(0,e+1))),y(n.slice(e+1).map(function(e){return e+i}))))};var Xt=Qt;function Qt(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 Jt(e){return Math.max(e,0)}var en=function(e){this.offset=e},tn=function(e){this.skip=e},nn=(an.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=Jt(t-e);return l.next(new en(this.rowOffset(n))),e&&l.next(new tn(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},an.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},an.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(Jt(i-this.topOffset)),i=this.rowHeightService.index(Jt(i+n-this.bottomOffset)),!a&&i>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=e,t.next(new en(this.rowOffset(e))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new tn(this.firstLoaded))),a)&&e<=this.firstLoaded&&(n=Math.floor(.3*this.take),this.firstLoaded=Jt(e-n),t.next(new en(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new tn(this.firstLoaded)))},an.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},an.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},an.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},an);function an(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}var on,rn=new h.InjectionToken("dateinputs-scroll-service-factory");function sn(e){return new nn(e)}(T=on=on||{})[T.Backward=0]="Backward",T[T.Forward=1]="Forward";(Zt={})[on.Forward]=function(t){return function(e){return e+t}},Zt[on.Backward]=function(t){return function(e){return e-t}};var ln=Zt,cn=((T={})[on.Forward]=function(t){return function(e){return Math.min(e,t)}},T[on.Backward]=function(t){return function(e){return Math.max(e,t)}},T),pn=((Zt={})[on.Forward]=function(t){return function(e){return e<t}},Zt[on.Backward]=function(t){return function(e){return t<e}},Zt),T=(Object.defineProperty(V.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!1,configurable:!0}),V.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},V.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},V.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()})})},V.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},V.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},V.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},V.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},V.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},V.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},V.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},V.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},V.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular(function(){t.resolvedPromise.then(function(){t.scrollTo(t.rowHeightService.offset(e))})})},V.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},V.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=ln[r](t),i=cn[r](e),a=pn[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)})}))},V.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===on.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})},V.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},V.prototype.scroll$=function(){return m.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},V.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 tn?t.pageChange:t.scrollChange).emit(e)})},V.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new Xt(this.total,e,0)},V.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},V.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},V.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?on.Backward:on.Forward},V);function V(e,t,n,i,a){this.container=t,this.renderer=n,this.zone=i,this.scrollBarWidthService=a,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:rn},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone},{token:W.ScrollbarWidthService}],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:rn,useValue:sn}],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:c.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:rn,useValue:sn}],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:[rn]}]},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone},{type:W.ScrollbarWidthService}]},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 un(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([Dn([wn([Cn("1","k-calendar-th")],"k-calendar-tr")].concat(Sn(n,function(){return wn(Sn(i,function(e){return kn('<span class="k-link">'+e+"</span>","k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table"),e=a,t=o,r=vn([Vn(),t?xn():null,En([n,n])],e,{left:"-10000px",position:"absolute"})),r):null}}function dn(e){return On(e).classList.add("k-scrollable-horizontal"),e}function hn(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight}function mn(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth}function gn(e){return e.querySelector("tbody")}var fn,vn=me("div"),yn=me("ul"),bn=me("li"),kn=me("td"),Cn=me("th"),wn=me("tr"),Dn=me("tbody"),Tn=me("thead"),In=me("table"),Vn=function(){return vn('\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")},xn=function(){return In([Tn([wn([Cn("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table")},Sn=function(e,t){return new Array(e).fill("1").map(t)},En=function(e){return vn(e,"k-flex k-content k-scrollable")},Rn=function(){return m.isDocumentAvailable?fn=fn||vn([En([yn([bn("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"}):null},On=function(e){return e.querySelector(".k-scrollable")},Mn=un({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Nn=un({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Fn=un({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),Pn=(An.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},An.prototype.calculateHeights=function(e){var n=this;m.isDocumentAvailable()&&(this.hostContainer=e,this.batch(Mn(),function(e){var t=gn(e);n.calendarHeight=hn(e),n.monthViewHeight=hn(t),n.headerHeight=hn(t.children[0]),n.scrollableContentHeight=hn(On(e))}),this.batch(dn(Mn()),function(e){var t=gn(e);n.calendarWidth=mn(e),n.monthViewWidth=mn(t),n.scrollableContentWidth=mn(On(e))}),this.batch(Nn(),function(e){n.yearViewHeight=hn(gn(e)),n.scrollableYearContentHeight=hn(On(e))}),this.batch(dn(Nn()),function(e){n.yearViewWidth=mn(gn(e))}),this.batch(Fn(),function(e){n.decadeViewHeight=hn(gn(e)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(dn(Fn()),function(e){n.decadeViewWidth=mn(gn(e)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(Rn(),function(e){n.navigationItemHeight=hn(e.querySelector("li"))}))},An.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},An.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},An.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}},An.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)}}},An);function An(){}Pn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Pn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pn,decorators:[{type:h.Injectable}]});Object.defineProperty(Ln.prototype,"getComponentClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Ln.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))},Ln.prototype.ngOnChanges=function(e){var t,n,i;this.service=this.bus.service(this.activeView),this.service&&(this.activeViewValue=g[this.activeView],t=ce(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))},Ln.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},Ln.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Ln.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},Ln.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},Ln.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)},Ln.prototype.handleDateChange=function(e){var e=gt(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)))},Ln.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},Ln.prototype.intlChange=function(){this.activeView===g.month&&this.cdr.markForCheck()};Zt=Ln;function Ln(e,t,n,i,a){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=a,this.min=new Date(X),this.max=new Date(Q),this.focusedDate=new Date,this.valueChange=new h.EventEmitter,this.pageChange=new h.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}Zt.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zt,deps:[{token:v},{token:Pn},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Zt.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Zt,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:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],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,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:v},{type:Pn},{type:s.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(zn.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentMonthClass",{get:function(){return this.activeView===g.month},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentYearClass",{get:function(){return this.activeView===g.year},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===g.decade},enumerable:!1,configurable:!0}),Object.defineProperty(zn.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===g.century},enumerable:!1,configurable:!0}),zn.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))},zn.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=ge(e,"weekNumber")&&this.weekNumber?this.getWeekNames("short"):this.weekNames,this.wideWeekNames=ge(e,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames,t=ge(e,"activeView"),n=this.focusedDate,a=ce(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=ge(e,"focusedDate")||t,i||o||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(n,this.min))},zn.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},zn.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},zn.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},zn.prototype.onPageChange=function(e){e=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,e),this.getTake(e)),this.pageChange.emit()},zn.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)},zn.prototype.setActiveDate=function(e){e=this.service.addToDate(this.min,e);this.activeDate=e,this.activeDateChange.emit(e),this.cdr.detectChanges()},zn.prototype.isMonthView=function(){return this.activeView===g.month},zn.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},zn.prototype.getTabIndex=function(){return this.disabled?null:this.tabIndex},zn.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},zn.prototype.getScrollableHeight=function(){return this.activeView===g.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},zn.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},zn.prototype.getWeekNames=function(e){e=he(this.intl.dateFormatNames({nameType:e,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},zn.prototype.intlChange=function(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()};var Bn=zn;function zn(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(X),this.max=new Date(Q),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}Bn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bn,deps:[{token:v},{token:a.ChangeDetectorRef},{token:s.IntlService},{token:Pn},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),Bn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Bn,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:Dt,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:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:Ct,selector:"[kFor][kForOf]",inputs:["kForOf","kForTrackBy","kForTemplate"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Bn,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:v},{type:a.ChangeDetectorRef},{type:s.IntlService},{type:Pn},{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"]}]}});Hn.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})},Hn.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))})}))},Hn.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),e=this.calculateScroll(t,e.scrollTop);t.scrollTo(e)},Hn.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},Hn.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},Hn.prototype.destroy=function(){this.unsubscribe()},Hn.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()};var jn=Hn;function Hn(e,t){this.dom=e,this.zone=t}jn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn,deps:[{token:Pn},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Injectable}),jn.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:jn,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:Pn},{type:a.NgZone}]}});function _n(){this.onFocus=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.sameDateSelected=new h.EventEmitter,this.dateCompletenessChange=new h.EventEmitter}var $n,Yn=function(e){this.templateRef=e},Kn=(Yn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Yn,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),Yn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Yn,selector:"[kendoCalendarNavigationItemTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Yn,decorators:[{type:h.Directive,args:[{selector:"[kendoCalendarNavigationItemTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),ht(Un,$n=D),Object.defineProperty(Un.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Un);function Un(e){var t=$n.call(this)||this;return t.service=e,t}Kn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Kn.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Kn,selector:"kendo-multiviewcalendar-messages",providers:[{provide:D,useExisting:h.forwardRef(function(){return Kn})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Kn,decorators:[{type:h.Component,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Kn})}],selector:"kendo-multiviewcalendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ht(qn,Wn=t.ComponentMessages);var Wn,D=qn;function qn(){return null!==Wn&&Wn.apply(this,arguments)||this}D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:null,target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,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:D,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}]}});ht(Xn,Zn=D);var Zn,Gn=Xn;function Xn(e){var t=Zn.call(this)||this;return t.service=e,t}Gn.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gn,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Gn.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Gn,selector:"[kendoCalendarLocalizedMessages]",providers:[{provide:D,useExisting:h.forwardRef(function(){return Gn})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Gn,decorators:[{type:h.Directive,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Gn})}],selector:"[kendoCalendarLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function Qn(e){return e?e.virtualization:null}var Jn="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",ei={multi:!0,provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return ni})},x={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||ue(),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(X)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(Q)},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)});we(e,this.selectedDates)||(t=ve(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),fe(e,"focusedDate")&&(t=e.focusedDate.currentValue,this.focusedDate=ce(t,this.min,this.max)),e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.onValidatorChange())},S.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},S.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Qn(this.navigationView),Qn(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(Ee):this.currentlyFocusedElement=null==(e=this.element)?void 0:e.nativeElement.querySelector(Re),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(ft(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=ce(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&&we(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:ve(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-"+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 "+Jn+" 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 "+Jn+" 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,n;"infinite"===this.type&&(n=e.ctrlKey||e.metaKey,t=-1!==[m.Keys.ArrowUp,m.Keys.ArrowRight,m.Keys.ArrowDown,m.Keys.ArrowLeft].indexOf(e.keyCode),o(this.pickerService)&&t&&e.altKey||(n&&t&&e.preventDefault(),o(this.pickerService)&&e.keyCode===m.Keys.Enter&&e.preventDefault(),n=ce(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max),k.isEqual(this.focusedDate,n)||(this.focusedDate=n,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=ue(),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(Ee);o(t)&&("classic"!==this.type||t.hasAttribute(Oe))&&("classic"===this.type?this.renderer.removeAttribute(t,Oe):(e=this.cellUID+this.focusedDate.getTime(),this.renderer.setAttribute(t,Oe,e)))},S.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?k.cloneDate(ve(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(X),this._max=new Date(Q),this._focusedDate=ue(),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(Z),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:v},{token:Pn},{token:a.ElementRef},{token:Ht},{token:a.Renderer2},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:a.Injector},{token:jn},{token:b},{token:r.LocalizationService},{token:xt},{token:_n,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:[v,ei,x,ti,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},Ht,jn,xt],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Yn,descendants:!0}],viewQueries:[{propertyName:"navigationView",first:!0,predicate:Zt,descendants:!0},{propertyName:"monthView",first:!0,predicate:Bn,descendants:!0},{propertyName:"multiViewCalendar",first:!0,predicate:Gt,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:Zt,selector:"kendo-calendar-navigation",inputs:["activeView","min","max","focusedDate","templateRef"],outputs:["valueChange","pageChange"]},{type:Bn,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:W.ResizeSensorComponent,selector:"kendo-resize-sensor",inputs:["rateLimit"],outputs:["resize"]},{type:Gt,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:Kn,selector:"kendo-multiviewcalendar-messages"}],directives:[{type:Gn,selector:"[kendoCalendarLocalizedMessages]"},{type:c.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:[v,ei,x,ti,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.calendar"},Ht,jn,xt],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:v},{type:Pn},{type:a.ElementRef},{type:Ht},{type:a.Renderer2},{type:a.ChangeDetectorRef},{type:a.NgZone},{type:a.Injector},{type:jn},{type:b},{type:r.LocalizationService},{type:xt},{type:_n,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:[Nt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Yn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],navigationView:[{type:h.ViewChild,args:[Zt,{static:!1}]}],monthView:[{type:h.ViewChild,args:[Bn,{static:!1}]}],multiViewCalendar:[{type:h.ViewChild,args:[Gt,{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}}(ei=ai=ai||{})[ei.Up=0]="Up",ei[ei.Down=1]="Down",ei[ei.None=2]="None",ht(ri,oi=t.ComponentMessages);var ai,oi,x=ri;function ri(){return null!==oi&&oi.apply(this,arguments)||this}x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:null,target:a.ɵɵFactoryTarget.Directive}),x.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:x,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:x,decorators:[{type:h.Directive,args:[{selector:"kendo-dateinput-messages-base"}]}],propDecorators:{decrement:[{type:h.Input}],increment:[{type:h.Input}]}});ht(ci,si=x);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:x,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:x,useExisting:h.forwardRef(function(){return li})}],selector:"[kendoDateInputLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function pi(e){return e.replace(/^0*/,"")}var ui=0,di=/year|month|<day>/,hi=/hour|minute|second|millisecond/,mi=/d|M|H|h|m|s/,gi=function(){this.symbols=""},fi=(vi.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)},vi.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some(function(e){return"yy"===e.pattern})},vi.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)},vi.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},vi.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}},vi.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}},vi.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)},vi.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}},vi.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},vi.prototype.setLeadingZero=function(e){this.leadingZero=e},vi.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),ze(e,n+t)):e},vi.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},vi.prototype.isAbbrMonth=function(e,t){e=this.partPattern(e,t);return"month"===e.type&&e.names},vi.prototype.partPattern=function(e,t){return e.filter(function(e){return-1!==e.pattern.indexOf(t)})[0]},vi.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},vi.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""},vi.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""},vi.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},vi.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},vi.prototype.patternLength=function(e){return"y"===e[0]?4:mi.test(e)?2:0},vi.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 gi;return t.symbols=i.join(""),t.partMap=a,t},vi.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]},vi.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})))},vi.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},vi);function vi(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(Z),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),ui++,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,"focusableId",{get:function(){return this.pickerType?this.pickerType+"-"+ui:"dateinput-"+ui},enumerable:!1,configurable:!0}),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&&!re(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,Ve("input",this.size));e=e||Ke;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode));e=e||Ue;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Se("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(ft(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?Et(this.min):f,this.maxValidator=this.rangeValidation?Rt(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,Le,"true"):this.renderer.setAttribute(this.inputElement,Le,"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 fi(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()&&!le(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=ce(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||di.test(t.type),time:e||hi.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(Be(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,Ve("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))};var yi=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.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.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=Ke,this._rounded=Ye,this._fillMode=Ue,this.subs=new p.Subscription,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}yi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yi,deps:[{token:a.ChangeDetectorRef},{token:s.IntlService},{token:a.Renderer2},{token:a.ElementRef},{token:a.NgZone},{token:a.Injector},{token:r.LocalizationService},{token:_n,optional:!0}],target:a.ɵɵFactoryTarget.Component}),yi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:yi,selector:"kendo-dateinput",inputs:{pickerType:"pickerType",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 yi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return yi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return yi})},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:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:yi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return yi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return yi}),multi:!0},{provide:t.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return yi})},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:s.IntlService},{type:a.Renderer2},{type:a.ElementRef},{type:a.NgZone},{type:a.Injector},{type:r.LocalizationService},{type:_n,decorators:[{type:h.Optional}]}]},propDecorators:{pickerType:[{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}]}]}});ki.prototype.preventDefault=function(){this.prevented=!0},ki.prototype.isDefaultPrevented=function(){return this.prevented};var bi=ki;function ki(){this.prevented=!1}function Ci(t){return function(e){return t&&e.value&&t(e.value)?{disabledDate:!0}:null}}var wi,Di=new h.InjectionToken("dateinputs-touch-enabled"),Ti=(ht(Ii,wi=D),Object.defineProperty(Ii.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ii);function Ii(e){var t=wi.call(this)||this;return t.service=e,t}Ti.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Ti.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ti,selector:"kendo-calendar-messages",providers:[{provide:D,useExisting:h.forwardRef(function(){return Ti})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ti,decorators:[{type:h.Component,args:[{providers:[{provide:D,useExisting:h.forwardRef(function(){return Ti})}],selector:"kendo-calendar-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ht(xi,Vi=t.ComponentMessages);var Vi,ti=xi;function xi(){return null!==Vi&&Vi.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}]}});ht(Ri,Si=ti);var Si,Ei=Ri;function Ri(e){var t=Si.call(this)||this;return t.service=e,t}Ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ei,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ei.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ei,selector:"[kendoDatePickerLocalizedMessages]",providers:[{provide:ti,useExisting:h.forwardRef(function(){return Ei})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ei,decorators:[{type:h.Directive,args:[{providers:[{provide:ti,useExisting:h.forwardRef(function(){return Ei})}],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,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ue;"none"!==e&&(this.renderer.addClass(this.toggleButton.nativeElement,Se("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,Se("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?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?Ci(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?Be(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 bi;!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,Oe,e)})):this.pickerSubscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Oe,e)})),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(t,Me,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,Me),this.renderer.removeAttribute(t,Oe),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()&&!le(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))),de()&&(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,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))};var Oi=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.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(X),this.max=k.cloneDate(Q),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=Ke,this._rounded=Ye,this._fillMode=Ue,A.validatePackage(Z),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)))}Oi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Oi,deps:[{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:q.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:_n},{token:b},{token:Di,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Oi.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Oi,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"],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 Oi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Oi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Oi})},t.LocalizationService,_n,b,{provide:t.L10N_PREFIX,useValue:"kendo.datepicker"}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,descendants:!0},{propertyName:"navigationItemTemplate",first:!0,predicate:Yn,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 pickerType="datepicker"\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:yi,selector:"kendo-dateinput",inputs:["pickerType","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:Ti,selector:"kendo-calendar-messages"}],directives:[{type:Ei,selector:"[kendoDatePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Oi,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Oi}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Oi}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Oi})},t.LocalizationService,_n,b,{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 pickerType="datepicker"\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:q.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:_n},{type:b},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Di]}]}]},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:[Nt,{static:!1}]}],cellTemplateRef:[{type:h.Input,args:["cellTemplate"]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],monthCellTemplateRef:[{type:h.Input,args:["monthCellTemplate"]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],yearCellTemplateRef:[{type:h.Input,args:["yearCellTemplate"]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],decadeCellTemplateRef:[{type:h.Input,args:["decadeCellTemplate"]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],centuryCellTemplateRef:[{type:h.Input,args:["centuryCellTemplate"]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],weekNumberTemplateRef:[{type:h.Input,args:["weekNumberTemplate"]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{static:!1}]}],headerTitleTemplateRef:[{type:h.Input,args:["headerTitleTemplate"]}],navigationItemTemplate:[{type:h.ContentChild,args:[Yn,{static:!1}]}],navigationItemTemplateRef:[{type:h.Input,args:["navigationItemTemplate"]}],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 Mi(e,t){return Bi(24+e-t)}function Ni(n){return function(e,t){return!t||k.getDate(e).getTime()===k.getDate(t).getTime()?e:je(e,n)}}var Fi,ei="dayperiod",D="hour",Pi="millisecond",Ai="minute",Li="second",Bi=(Fi=24,function(e){return e%Fi}),zi=Ni(0),ji=Ni(23),Hi=(_i.prototype.apply=function(e,t){return je(e,t.getHours())},_i.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=je(G,e);return{text:t.intl.formatDate(e,r.pattern),value:e}},this.min=a,this.max=o,this.step=e},_i.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Bi(t+e*n)}),a=oe(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 this.boundRange?[zi(e,n),ji(t,n)]:[e,t]},_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.lastHour(e)===e.getHours()||!this.isMissing(e)},_i.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},_i.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getHours()),e.splice(this.selectedIndex(t),0,n)),e},_i.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Mi(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(je(this.max,this.lastHour(e)))},_i.prototype.divideByStep=function(e){return Mi(e.getHours(),this.min.getHours())/this.step},_i.prototype.lastHour=function(e){return this.range(e)[1]},_i.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getHours(),e.getHours()]},_i);function _i(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}Hi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Hi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Hi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function $i(e,t){return Ui(60+e-t)}function Yi(n){return function(e,t){return!t||e.getHours()===t.getHours()?e:He(e,n)}}Ki=60;var Ki,Ui=function(e){return e%Ki},Wi=Yi(0),qi=Yi(59),Zi=(Gi.prototype.apply=function(e,t){return He(e,t.getMinutes())},Gi.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(G,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},Gi.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return Ui(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},Gi.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},Gi.prototype.limitRange=function(e,t,n){return[Wi(e,n),qi(t,n)]},Gi.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},Gi.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},Gi.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e)},Gi.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},Gi.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMinutes()),e.splice(this.selectedIndex(t),0,n)),e},Gi.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor($i(e,t)/this.step)+1},Gi.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},Gi.prototype.isLastMissing=function(e){return this.isMissing(He(this.max,this.lastMinute(e)))},Gi.prototype.divideByStep=function(e){return $i(e.getMinutes(),this.min.getMinutes())/this.step},Gi.prototype.lastMinute=function(e){return this.range(e)[1]},Gi.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMinutes(),e.getMinutes()]},Gi);function Gi(e){this.intl=e,this.insertUndividedMax=!1}Zi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),Zi.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function Xi(e,t){return ea(60+e-t)}function Qi(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()?e:_e(e,n)}}Ji=60;var Ji,ea=function(e){return e%Ji},ta=Qi(0),na=Qi(59),ia=(aa.prototype.apply=function(e,t){return _e(e,t.getSeconds())},aa.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=_e(G,e);return{text:t.intl.formatDate(e,o.pattern),value:e}},this.min=i,this.max=a,this.step=e},aa.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return ea(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},aa.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},aa.prototype.limitRange=function(e,t,n){return[ta(e,n),na(t,n)]},aa.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},aa.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},aa.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e)},aa.prototype.divideByStep=function(e){return Xi(e.getSeconds(),this.min.getSeconds())/this.step},aa.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},aa.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getSeconds()),e.splice(this.selectedIndex(t),0,n)),e},aa.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(Xi(e,t)/this.step)+1},aa.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},aa.prototype.isLastMissing=function(e){return this.isMissing(_e(this.max,this.lastSecond(e)))},aa.prototype.lastSecond=function(e){return this.range(e)[1]},aa.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getSeconds(),e.getSeconds()]},aa);function aa(e){this.intl=e,this.insertUndividedMax=!1}ia.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ia,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ia.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ia}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ia,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function oa(e,t){return la(1e3+e-t)}function ra(n){return function(e,t){return!t||e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()&&e.getSeconds()===t.getSeconds()?e:$e(e,n)}}sa=1e3;var sa,la=function(e){return e%sa},ca=ra(0),pa=ra(999),ua=(da.prototype.apply=function(e,t){return $e(e,t.getMilliseconds())},da.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(G,e);return{text:t.intl.formatDate(e,"SSS"),value:e}},this.min=i,this.max=a,this.step=e},da.prototype.data=function(e){var t,n,i=this,a=y(this.range(e),1)[0],o=(t=a,n=this.step,function(e){return la(t+e*n)}),a=oe(0,this.countFromMin(e)).map(function(e){return i.toListItem(o(e))});return this.addLast(a),this.addMissing(a,e),a},da.prototype.isRangeChanged=function(e,t){return!k.isEqual(this.min,e)||!k.isEqual(this.max,t)},da.prototype.limitRange=function(e,t,n){return[ca(e,n),pa(t,n)]},da.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},da.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},da.prototype.valueInList=function(e){return!e||this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e)},da.prototype.divideByStep=function(e){return oa(e.getMilliseconds(),this.min.getMilliseconds())/this.step},da.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},da.prototype.addMissing=function(e,t){var n;return this.valueInList(t)||(n=this.toListItem(t.getMilliseconds()),e.splice(this.selectedIndex(t),0,n)),e},da.prototype.countFromMin=function(e){var e=y(this.range(e),2),t=e[0],e=e[1];return Math.floor(oa(e,t)/this.step)+1},da.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},da.prototype.isLastMissing=function(e){return this.isMissing($e(this.max,this.lastMillisecond(e)))},da.prototype.lastMillisecond=function(e){return this.range(e)[1]},da.prototype.range=function(e){var e=y(this.limitRange(this.min,this.max,e),2),t=e[0],e=e[1];return[t.getMilliseconds(),e.getMilliseconds()]},da);function da(e){this.intl=e,this.insertUndividedMax=!1}ua.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),ua.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});function ha(e,t){return(e=k.cloneDate(e)).setHours(t),e}function ma(e){return null!==e&&e<12}function ga(e,t,n){return!t&&!n||t<=e&&e<=n}function fa(e,t,n){return!t&&!n||t<=e||e<=n}ya.prototype.apply=function(e,t){var n,i=e.getHours(),a=ma(i),t=ma(t.getHours());return a&&t||!a&&!t?e:(n=(a=y(this.normalizedRange(),2))[0],a=void 0===(a=a[1])?24:a,ha(e,Math.min(Math.max(n,i+(t?-12:12)),a||24)))},ya.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},ya.prototype.data=function(e){var t,n,i,a,o=this.part.names;return o?(t=[],n=(i=y(this.normalizedRange(),2))[0],i=i[1],o=this.intl.dateFormatNames(o),ma(n)&&t.push({text:o.am,value:ha(this.min,n)}),null!==(a=i)&&(!a||11<a)&&t.push({text:o.pm,value:ha(this.min,Math.max(12,i))}),this.min.getHours()!==n?t.reverse():t):[]},ya.prototype.isRangeChanged=function(e,t){return!1},ya.prototype.limitRange=function(e,t,n){return[e,t]},ya.prototype.total=function(){var e=y(this.normalizedRange(),2),t=e[0],e=e[1];return(t||e)&&(11<t||e<12)?1:2},ya.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},ya.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?fa:ga)(e.getHours(),this.min.getHours(),this.max.getHours())},ya.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]};var va=ya;function ya(e){this.intl=e}va.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:va,deps:[{token:s.IntlService}],target:a.ɵɵFactoryTarget.Injectable}),va.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:va}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:va,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:s.IntlService}]}});var ba=me("div"),ka=me("ul"),Ca=me("li"),O=me("span"),wa=function(){return ka([Ca("<span>02</span>","k-item")],"k-reset")},Da=m.isDocumentAvailable()?ba([O("hour","k-title k-timeselector-title"),ba([ba([wa()],"k-time-container k-flex k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,Ta=(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(Da),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(){}Ta.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ta,deps:[],target:a.ɵɵFactoryTarget.Injectable}),Ta.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ta}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ta,decorators:[{type:h.Injectable}]});function Va(){return null}var xa={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]}},Sa=((O={})[ei]=va,O[D]=Hi,O[Ai]=Zi,O[Li]=ia,O[Pi]=ua,O),ba=(Object.defineProperty(Ea.prototype,"roleAttribute",{get:function(){return this.isDayPeriod?"listbox":"spinbutton"},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.prototype,"ariaLabel",{get:function(){var e;return this.localization.get(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.prototype,"valueMin",{get:function(){var e;return null==(e=this.data[0])?void 0:e.text},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.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(Ea.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(Ea.prototype,"isDayPeriod",{get:function(){var e;return"dayperiod"===(null==(e=this.part)?void 0:e.type)},enumerable:!1,configurable:!0}),Ea.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(Sa[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=y(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,Pe,null==(e=this.getCurrentItem())?void 0:e.value.toString()),this.renderer.setAttribute(this.hostElement,Ae,null==(a=this.getCurrentItem())?void 0:a.text)},Ea.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()})},Ea.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(function(e){return e()})},Ea.prototype.ngAfterViewInit=function(){var t=this;this.scrollOnce(function(e){return t.virtualization.scrollToIndex(e)})},Ea.prototype.ngAfterViewChecked=function(){var n=this;this.scrollOnce(function(e){var t=n.animateToIndex?"animateToIndex":"scrollToIndex";n.virtualization[t](e),n.animateToIndex=!0})},Ea.prototype.getCurrentItem=function(){return 0<=this.indexToScroll?this.data[this.indexToScroll]:null},Ea.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))},Ea.prototype.handleItemClick=function(e){var e=gt(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]))},Ea.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},Ea.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},Ea.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},Ea.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},Ea.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},Ea.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},Ea.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},Ea.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},Ea.prototype.handleKeyDown=function(e){var t=(xa[e.keyCode]||Va)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},Ea.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)))},Ea);function Ea(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(G),this.max=k.cloneDate(ee),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}ba.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ba,deps:[{token:a.ElementRef},{token:a.Injector},{token:Ta},{token:a.Renderer2},{token:a.NgZone},{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),ba.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ba,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:c.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ba,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:Ta},{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 Ra(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()}function Oa(e,t){return Ra(e,t)&&e.getSeconds()===t.getSeconds()}function Ma(e){return function(t,n){return t.setHours.apply(t,mt([],y(e.map(function(e){return e(t,n)})))),t}}var Na,Fa,Pa,wa=[{type:D,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:Ai,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return Ra(e,t)?t.getMinutes():0}},{type:Li,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return Oa(e,t)?t.getSeconds():0}},{type:Pi,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return Oa(e=e,n=t)&&e.getMilliseconds()===n.getMilliseconds()?t.getMilliseconds():0;var n}}],Aa=function(n){return function(e,t){return n(e)}},La=function(n){return function(e,t){return n(t)}},Ba=function(e){return Na.map((t=e.reduce(function(e,t){return e[t.type]=t.type,e},{}),function(e){return(t[e.type]?La:Aa)(e.getter)}));var t},za=(Fa=Na=wa,function(n){return Fa.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=(ht(ja,Pa=t.ComponentMessages),ja);function ja(){return null!==Pa&&Pa.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}]}});ht($a,Ha=O);var Ha,_a=$a;function $a(e){var t=Ha.call(this)||this;return t.service=e,t}_a.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_a,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),_a.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:_a,selector:"[kendoTimeSelectorLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return _a})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:_a,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return _a})}],selector:"[kendoTimeSelectorLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});function Ya(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]}(wa=Ka=Ka||{})[wa.Left=0]="Left",wa[wa.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||G),this.min),t=this.min,n=this.max,e&&t&&n?(i=(o=ae(e,t,n)).candidateValue,a=o.minValue,o=o.maxValue,i<a?Be(e,t):o<i?Be(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(pe())),this.current))},M.prototype.handleNow=function(){this.current=pe(),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(ft(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&&!ge(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=Ma(Ba(this.dateFormatParts))),e&&!ge(e,"steps")||(this.snapTime=(i=za(this.steps),function(e,t){var n=k.cloneDate(e);return n.setHours.apply(n,mt([],y(i.map(function(e){return e(n,t)})))),n})),e&&!ge(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&se(pe(),this.min,this.max)},M.prototype.focusList=function(t){this.timeLists.length&&this.timeLists.reduce(Ya,[]).map(function(e){return t===Ka.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=Ma(Ba(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?Ka.Left:Ka.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 Ka,wa=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(J),this.max=k.cloneDate(ee),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)}wa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wa,deps:[{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:s.IntlService},{token:Ta},{token:a.NgZone},{token:a.Renderer2},{token:_n,optional:!0}],target:a.ɵɵFactoryTarget.Component}),wa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:wa,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:ba,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:ba,selector:"kendo-timelist",inputs:["min","max","part","step","disabled","value"],outputs:["valueChange"]}],directives:[{type:_a,selector:"[kendoTimeSelectorLocalizedMessages]"},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.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:wa,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:s.IntlService},{type:Ta},{type:a.NgZone},{type:a.Renderer2},{type:_n,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:[ba]}],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}]}});ht(qa,Ua=O),Object.defineProperty(qa.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var Ua,Wa=qa;function qa(e){var t=Ua.call(this)||this;return t.service=e,t}Wa.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Wa.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Wa,selector:"kendo-timeselector-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Wa})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Wa,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Wa})}],selector:"kendo-timeselector-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});ht(Xa,Za=O);var Za,Ga=Xa;function Xa(e){var t=Za.call(this)||this;return t.service=e,t}Ga.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ga,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Directive}),Ga.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ga,selector:"[kendoTimePickerLocalizedMessages]",providers:[{provide:O,useExisting:h.forwardRef(function(){return Ga})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ga,decorators:[{type:h.Directive,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Ga})}],selector:"[kendoTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Qa=new RegExp(D+"|"+Ai+"|"+Li+"|"+Pi+"|"+ei+"|literal"),Ja=(Object.defineProperty(N.prototype,"min",{get:function(){return this._min},set:function(e){this._min=k.cloneDate(e||J)},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"max",{get:function(){return this._max},set:function(e){this._max=k.cloneDate(e||ee)},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,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ue;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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}},se(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,n=e.keyCode;n===m.Keys.Escape?this.show=!1:t&&(n===m.Keys.ArrowUp&&(e.preventDefault(),this.show=!1),n!==m.Keys.ArrowDown||this.show||(e.preventDefault(),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 Be(G,e)},N.prototype.mergeTime=function(e){return this.value&&e?Be(this.value,e):e},N.prototype.togglePopup=function(e){var t=new bi;!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,Me,this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return n.show=!1})):(this.popupRef.close(),this.popupRef=null,this.renderer.removeAttribute(t,Me)))},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!Qa.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))),de()&&(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,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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.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(J),this._max=k.cloneDate(ee),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=Ke,this._rounded=Ye,this._fillMode=Ue,A.validatePackage(Z),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)))}Ja.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ja,deps:[{token:v},{token:a.NgZone},{token:r.LocalizationService},{token:a.ChangeDetectorRef},{token:q.PopupService},{token:a.ElementRef},{token:a.Renderer2},{token:a.Injector},{token:_n},{token:s.IntlService},{token:Di,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Ja.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Ja,selector:"kendo-timepicker",inputs:{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 Ja}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ja}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ja})},t.LocalizationService,v,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},_n],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 pickerType="timepicker"\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:yi,selector:"kendo-dateinput",inputs:["pickerType","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:wa,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Wa,selector:"kendo-timeselector-messages"}],directives:[{type:Ga,selector:"[kendoTimePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ja,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return Ja}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return Ja}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return Ja})},t.LocalizationService,v,{provide:t.L10N_PREFIX,useValue:"kendo.timepicker"},_n],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 pickerType="timepicker"\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:v},{type:a.NgZone},{type:r.LocalizationService},{type:a.ChangeDetectorRef},{type:q.PopupService},{type:a.ElementRef},{type:a.Renderer2},{type:a.Injector},{type:_n},{type:s.IntlService},{type:void 0,decorators:[{type:h.Optional},{type:h.Inject,args:[Di]}]}]},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}]}],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"]}]}});ht(to,eo=t.ComponentMessages);var eo,Pi=to;function to(){return null!==eo&&eo.apply(this,arguments)||this}Pi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Pi,deps:null,target:a.ɵɵFactoryTarget.Directive}),Pi.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Pi,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:Pi,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}]}});ht(ao,no=Pi);var no,io=ao;function ao(e){var t=no.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.Directive}),io.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:io,selector:"[kendoDateTimePickerLocalizedMessages]",providers:[{provide:Pi,useExisting:h.forwardRef(function(){return io})}],usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:io,decorators:[{type:h.Directive,args:[{providers:[{provide:Pi,useExisting:h.forwardRef(function(){return io})}],selector:"[kendoDateTimePickerLocalizedMessages]"}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var oo=new RegExp(D+"|"+Ai+"|"+Li+"|"+ei+"|literal"),ro="date",so=(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||ro,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,Ve("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ve("input",this.size));e=e||Ke;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Ve("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("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,xe(this.rounded));e=e||Ye;"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,xe(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,Se("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Se("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base");e=e||Ue;"none"!==e&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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))),de()&&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?Et(this.min):f,this.maxValidateFn=this.rangeValidation?Rt(this.max):f,this.disabledDatesValidateFn=this.disabledDatesValidation?Ci(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,Oe),this.activeTabComponent.focus())},F.prototype.handleAccept=function(){var e,t,n=this;this.isOpen&&(e=Te(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?Ve("button",this.size):"")+" "+(this.rounded?xe(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()&&!le(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?oo.test(n.type):oo.test(e.type)},F.prototype.togglePopup=function(e){var t;e===this.isOpen||(t=new bi,(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,Me,this.popupUID),"date"===this.activeTab&&("infinite"===this.calendar.type?this.subscriptions.add(this.calendar.monthView.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Oe,e)})):this.subscriptions.add(this.calendar.multiViewCalendar.viewList.focusedCellChange.subscribe(function(e){t.renderer.setAttribute(t.inputElement,Oe,e)}))),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.handleCancel()})},F.prototype.closePopup=function(){this.isOpen&&(this.renderer.removeAttribute(this.inputElement,Me),this.renderer.removeAttribute(this.inputElement,Oe),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:J),o(e)&&k.isEqual(k.getDate(e),k.getDate(this.max)));this.timeSelectorMax=k.cloneDate(t?this.max:ee)},F.prototype.setCalendarValue=function(e){var t=o(e)&&re(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,Ve("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ve("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xe(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Se("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Se("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.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=ro,this.timeSelectorFormat="t",this.timeSelectorMin=k.cloneDate(J),this.timeSelectorMax=k.cloneDate(ee),this.calendarValue=null,this.calendarMin=k.cloneDate(X),this.calendarMax=Ie(Q),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=ro,this._min=Te(X,J),this._max=Te(Q,ee),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=Ke,this._rounded=Ye,this._fillMode=Ue,A.validatePackage(Z)}so.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,deps:[{token:q.PopupService},{token:s.IntlService},{token:a.ChangeDetectorRef},{token:_n},{token:a.NgZone},{token:a.ElementRef},{token:Di},{token:r.LocalizationService},{token:b},{token:a.Renderer2}],target:a.ɵɵFactoryTarget.Component}),so.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:so,selector:"kendo-datetimepicker",inputs:{value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",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:[_n,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return so})}],queries:[{propertyName:"cellTemplate",first:!0,predicate:Nt,descendants:!0},{propertyName:"monthCellTemplate",first:!0,predicate:Ft,descendants:!0},{propertyName:"yearCellTemplate",first:!0,predicate:Pt,descendants:!0},{propertyName:"decadeCellTemplate",first:!0,predicate:At,descendants:!0},{propertyName:"centuryCellTemplate",first:!0,predicate:Lt,descendants:!0},{propertyName:"weekNumberTemplate",first:!0,predicate:Bt,descendants:!0},{propertyName:"headerTitleTemplate",first:!0,predicate:zt,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 pickerType="datetimepicker"\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:yi,selector:"kendo-dateinput",inputs:["pickerType","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:Ti,selector:"kendo-calendar-messages"},{type:wa,selector:"kendo-timeselector",inputs:["format","min","max","cancelButton","setButton","nowButton","disabled","steps","value"],outputs:["valueChange","valueReject"],exportAs:["kendo-timeselector"]},{type:Wa,selector:"kendo-timeselector-messages"}],directives:[{type:io,selector:"[kendoDateTimePickerLocalizedMessages]"},{type:W.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:c.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:a.ChangeDetectionStrategy.OnPush}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:so,decorators:[{type:h.Component,args:[{selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:h.ChangeDetectionStrategy.OnPush,providers:[_n,t.LocalizationService,b,{provide:t.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:n.NG_VALUE_ACCESSOR,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:n.NG_VALIDATORS,useExisting:h.forwardRef(function(){return so}),multi:!0},{provide:m.KendoInput,useExisting:h.forwardRef(function(){return so})}],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 pickerType="datetimepicker"\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:q.PopupService},{type:s.IntlService},{type:a.ChangeDetectorRef},{type:_n},{type:a.NgZone},{type:a.ElementRef},{type:void 0,decorators:[{type:h.Inject,args:[Di]}]},{type:r.LocalizationService},{type:b},{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}],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:[Nt,{static:!1}]}],monthCellTemplate:[{type:h.ContentChild,args:[Ft,{static:!1}]}],yearCellTemplate:[{type:h.ContentChild,args:[Pt,{static:!1}]}],decadeCellTemplate:[{type:h.ContentChild,args:[At,{static:!1}]}],centuryCellTemplate:[{type:h.ContentChild,args:[Lt,{static:!1}]}],weekNumberTemplate:[{type:h.ContentChild,args:[Bt,{static:!1}]}],headerTitleTemplate:[{type:h.ContentChild,args:[zt,{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 lo(e){return e&&e.isActive||!1}var D=function(e){this.templateRef=e},co=(D.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive}),D.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"[kendoDateRangePopupTemplate]",ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:D,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangePopupTemplate]"}]}],ctorParameters:function(){return[{type:a.TemplateRef}]}}),Object.defineProperty(po.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!1,configurable:!0}),Object.defineProperty(po.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!1,configurable:!0}),po.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,Me,i.popupUID),this.renderer.setAttribute(t,Ne,"true"),this.focusedCellChange=null==(e=i.viewCalendar.first)?void 0:e.viewList.focusedCellChange.subscribe(function(e){n.renderer.setAttribute(t,Oe,e)})),i.activate())},po.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,Me),this.renderer.setAttribute(t,Ne,"false"),null!=(e=this.focusedCellChange)&&e.unsubscribe(),this.renderer.removeAttribute(t,Oe)),n.show=!1)},po.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},po.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},po.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=lo(e),n=lo(this.startInput$.value),i=lo(this.endInput$.value);return t||n||i||(t=e)&&t.hasActiveContent()||!1},po.prototype.registerStartInput=function(e){this.startInput$.next(e)},po.prototype.registerEndInput=function(e){this.endInput$.next(e)},po.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},po.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},po.prototype.setFocusedDate=function(e){k.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},po.prototype.setRange=function(e){this.range$.next(e=void 0===e?te:e)},po);function po(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(te)}co.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co,deps:[{token:a.Renderer2,optional:!0}],target:a.ɵɵFactoryTarget.Injectable}),co.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:co,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:a.Renderer2,decorators:[{type:h.Optional}]}]}});Object.defineProperty(uo.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),Ce(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(uo.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(uo.prototype,"calendarRange",{get:function(){return this.selectionRange||te},enumerable:!1,configurable:!0}),uo.prototype.ngOnInit=function(){var t=this,n=this.calendar,e=this.dateRangeService;n.min=be(e.min,n.min),n.max=be(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()}))},uo.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},uo.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)})},uo.prototype.isEqualCalendarRange=function(e){return Ce(this.calendar.selectionRange,e)},uo.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(ke(t))},uo.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?ke(e):this.updateRange(e);Ce(t.selectionRange,n)||(this.acceptAndEmit(n),t.setActiveRangeEnd(i),t.setRange(n))},uo.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))},uo.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||te,t=e.start,e=e.end;return Boolean(t)&&Boolean(e)},uo.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},uo.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},uo.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}},uo.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},uo.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)};Ai=uo;function uo(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 co(i),i.setAttribute(n.nativeElement,"aria-multiselectable","true")}Ai.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Ai,deps:[{token:Gt},{token:a.ChangeDetectorRef},{token:a.ElementRef},{token:a.Renderer2},{token:co,optional:!0}],target:a.ɵɵFactoryTarget.Directive}),Ai.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ai,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:Ai,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeSelection]"}]}],ctorParameters:function(){return[{type:Gt},{type:a.ChangeDetectorRef},{type:a.ElementRef},{type:a.Renderer2},{type:co,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(ho.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!1,configurable:!0}),Object.defineProperty(ho.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(ho.prototype,"show",{get:function(){return this._show},set:function(e){var t;this._show===e||(t=new bi,(e?this.open:this.close).emit(t),t.isDefaultPrevented())||this._toggle(e)},enumerable:!1,configurable:!0}),ho.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},ho.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})),de()&&this.zone.runOutsideAngular(function(){return t.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(t.handleWindowBlur.bind(t))})},ho.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()},ho.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()})})}))},ho.prototype.focus=function(){this.calendar&&this.calendar.focus()},ho.prototype.hasActiveContent=function(){return!(!m.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},ho.prototype.toggle=function(e){var t=this;this.resolvedPromise.then(function(){t._toggle(void 0===e?!t.show:e)})},ho.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},ho.prototype.handleWindowBlur=function(){var e=this;this.show&&(m.hasObservers(this.close)?this.zone.run(function(){return e.show=!1}):this.show=!1)},ho.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},ho.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()})},ho.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()}))},ho.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(ho.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!1,configurable:!0}),ho.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()})))},ho.prototype.destroyPopup=function(){o(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),o(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()};Li=ho;function ho(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()}Li.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Li,deps:[{token:q.PopupService},{token:co},{token:a.ChangeDetectorRef},{token:a.NgZone},{token:t.RTL,optional:!0}],target:a.ɵɵFactoryTarget.Component}),Li.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Li,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:D,descendants:!0},{propertyName:"contentCalendar",predicate:Gt}],viewQueries:[{propertyName:"container",first:!0,predicate:["container"],descendants:!0,read:h.ViewContainerRef},{propertyName:"defaultTemplate",first:!0,predicate:["defaultTemplate"],descendants:!0},{propertyName:"viewCalendar",predicate:Gt,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:Gt,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:Ai,selector:"[kendoDateRangeSelection]",inputs:["autoCorrectOn","selectionRange","activeRangeEnd"],outputs:["activeRangeEndChange","selectionRangeChange"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Li,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:q.PopupService},{type:co},{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:[D,{static:!1}]}],viewCalendar:[{type:h.ViewChildren,args:[Gt]}],contentCalendar:[{type:h.ContentChildren,args:[Gt]}],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}]}});mo.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(mo.prototype,"hasContentPopup",{get:function(){return 0<this.contentPopup.length},enumerable:!1,configurable:!0}),mo.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe(function(){e.showDefault=!e.hasContentPopup})},mo.prototype.ngOnDestroy=function(){var e;null!=(e=this.subscription)&&e.unsubscribe()};ei=mo;function mo(e){this.dateRangeService=e,this.wrapperClass=!0,this.showDefault=!1,A.validatePackage(Z)}ei.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,deps:[{token:co}],target:a.ɵɵFactoryTarget.Component}),ei.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ei,selector:"kendo-daterange",host:{listeners:{keydown:"keydown($event)"},properties:{"class.k-daterangepicker":"this.wrapperClass"}},providers:[co],queries:[{propertyName:"contentPopup",predicate:Li}],ngImport:a,template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n ',isInline:!0,components:[{type:Li,selector:"kendo-daterange-popup",inputs:["animate","anchor","anchorAlign","appendTo","collision","popupAlign","margin"],outputs:["open","close","blur","focus","cancel"],exportAs:["kendo-daterange-popup"]}],directives:[{type:c.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ei,decorators:[{type:h.Component,args:[{providers:[co],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}]}],ctorParameters:function(){return[{type:co}]},propDecorators:{keydown:[{type:h.HostListener,args:["keydown",["$event"]]}],wrapperClass:[{type:h.HostBinding,args:["class.k-daterangepicker"]}],contentPopup:[{type:h.ContentChildren,args:[Li]}]}});Object.defineProperty(go.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!1,configurable:!0}),Object.defineProperty(go.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return o(e)&&o(e.calendar)},enumerable:!1,configurable:!0}),go.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)})},go.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},go.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()},go.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new p.Subscription},go.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},go.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()}))})})},go.prototype.updateRange=function(e,t){e=this.getRange(e,t);e&&(this.focusActiveDate(),this.dateRangeService.setRange(e))},go.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()},go.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(k.cloneDate(this.input.value))},go.prototype.toggleActiveClass=function(e){var t=this.element.nativeElement;t&&t.querySelector&&this.renderer[e?"addClass":"removeClass"](t,"k-focus")};c=go;function go(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}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:"invalid",target:a.ɵɵFactoryTarget.Directive}),c.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:h.Directive,args:[{}]}],ctorParameters:function(){return[{type:void 0},{type:co},{type:yi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]}});ht(yo,fo=c),yo.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),fo.prototype.init.call(this)},yo.prototype.ngAfterViewInit=function(){var e=this.dateInput.inputElement;this.renderer.removeAttribute(e,Ne),this.dateInput.pickerType="daterangeend"},yo.prototype.ngOnDestroy=function(){fo.prototype.destroy.call(this)},yo.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return re(e,i,n)?(i=(this.rangeService.selectionRange||te).start,this.autoCorrectOn===t&&o(e)&&e<i?ke(e):{start:i,end:k.cloneDate(e)}):null},yo.prototype.updateInputValue=function(e){var e=(e||te).end,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&re(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var fo,vo=yo;function yo(e,t,n,i,a){n=fo.call(this,"end",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.navigateCalendarOnFocus=!1,n}vo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:vo,deps:[{token:co},{token:yi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),vo.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:vo,selector:"[kendoDateRangeEndInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:vo,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeEndInput]"}]}],ctorParameters:function(){return[{type:co},{type:yi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});ht(ko,bo=c),ko.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),bo.prototype.init.call(this)},ko.prototype.ngAfterViewInit=function(){var e=this.dateInput.inputElement;this.renderer.setAttribute(e,"role","combobox"),this.renderer.setAttribute(e,Fe,"true"),this.dateInput.pickerType="daterangestart",this.renderer.setAttribute(e,Ne,"false")},ko.prototype.ngOnDestroy=function(){bo.prototype.destroy.call(this)},ko.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,n=n.max;return re(e,i,n)?(i=(this.rangeService.selectionRange||te).end,this.autoCorrectOn===t&&i&&i<e?ke(e):{start:k.cloneDate(e),end:i}):null},ko.prototype.updateInputValue=function(e){var e=(e||te).start,t=this.dateInput,n=t.min,t=t.max;!k.isEqual(this.dateInput.value,e)&&re(e,n,t)&&(this.dateInput.writeValue(k.cloneDate(e)),this.dateInput.notify())};var bo,c=ko;function ko(e,t,n,i,a){n=bo.call(this,"start",e,t,n,i,a)||this;return n.rangeService=e,n.dateInput=t,n.renderer=i,n.navigateCalendarOnFocus=!1,n}c.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,deps:[{token:co},{token:yi},{token:a.ElementRef},{token:a.Renderer2},{token:a.NgZone}],target:a.ɵɵFactoryTarget.Directive}),c.ɵdir=a.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"[kendoDateRangeStartInput]",inputs:{autoCorrectOn:"autoCorrectOn",navigateCalendarOnFocus:"navigateCalendarOnFocus"},usesInheritance:!0,ngImport:a}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:c,decorators:[{type:h.Directive,args:[{selector:"[kendoDateRangeStartInput]"}]}],ctorParameters:function(){return[{type:co},{type:yi},{type:a.ElementRef},{type:a.Renderer2},{type:a.NgZone}]},propDecorators:{autoCorrectOn:[{type:h.Input}],navigateCalendarOnFocus:[{type:h.Input}]}});var Co,wo=function(){},P=(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,declarations:[Ct,It,Dt],imports:[i.CommonModule,m.EventsModule],exports:[Ct,It,Dt]}),wo.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,imports:[[i.CommonModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:wo,decorators:[{type:h.NgModule,args:[{declarations:[Ct,It,Dt],exports:[Ct,It,Dt],imports:[i.CommonModule,m.EventsModule]}]}]}),function(){}),Do=(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:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn],exports:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn]}),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:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn],exports:[Nt,Ft,Pt,At,Lt,Bt,zt,Yn]}]}]}),function(){}),To=(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:[Tt,Ut,Kn,Gt],imports:[i.CommonModule,wo,L.IntlModule,P,z.PopupModule,m.EventsModule],exports:[Tt,Ut,Kn,Gt,wo,P]}),Do.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,providers:[Ht,u,d,tt,ot,pt],imports:[[i.CommonModule,wo,L.IntlModule,P,z.PopupModule,m.EventsModule],wo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Do,decorators:[{type:h.NgModule,args:[{declarations:[Tt,Ut,Kn,Gt],exports:[Tt,Ut,Kn,Gt,wo,P],imports:[i.CommonModule,wo,L.IntlModule,P,z.PopupModule,m.EventsModule],providers:[Ht,u,d,tt,ot,pt]}]}]}),[T]),Io=function(){},T=(Io.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Io.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,declarations:[T],imports:[i.CommonModule],exports:[T]}),Io.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,imports:[[i.CommonModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Io,decorators:[{type:h.NgModule,args:[{declarations:[To],exports:[To],imports:[i.CommonModule]}]}]}),function(){}),To=(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,Zt,Ti,Gn,Bn],imports:[i.CommonModule,wo,Do,L.IntlModule,P,Io,m.EventsModule,m.ResizeSensorModule],exports:[ni,Zt,Ti,Gn,Bn,wo,P]}),T.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,providers:[Pn,u,d,tt,ot,pt],imports:[[i.CommonModule,wo,Do,L.IntlModule,P,Io,m.EventsModule,m.ResizeSensorModule],wo,P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:T,decorators:[{type:h.NgModule,args:[{declarations:[ni,Zt,Ti,Gn,Bn],exports:[ni,Zt,Ti,Gn,Bn,wo,P],imports:[i.CommonModule,wo,Do,L.IntlModule,P,Io,m.EventsModule,m.ResizeSensorModule],providers:[Pn,u,d,tt,ot,pt]}]}]}),function(){}),Vo=(To.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,deps:[],target:a.ɵɵFactoryTarget.NgModule}),To.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,imports:[T,Do],exports:[T,Do]}),To.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,imports:[[T,Do],T,Do]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:To,decorators:[{type:h.NgModule,args:[{exports:[T,Do],imports:[T,Do]}]}]}),ht(xo,Co=x),Object.defineProperty(xo.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),xo);function xo(e){var t=Co.call(this)||this;return t.service=e,t}Vo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Vo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Vo,selector:"kendo-dateinput-messages",providers:[{provide:x,useExisting:h.forwardRef(function(){return Vo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Vo,decorators:[{type:h.Component,args:[{providers:[{provide:x,useExisting:h.forwardRef(function(){return Vo})}],selector:"kendo-dateinput-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var So,u=function(){},Eo=(u.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,deps:[],target:a.ɵɵFactoryTarget.NgModule}),u.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,declarations:[yi,Vo,li],imports:[i.CommonModule,L.IntlModule,m.EventsModule],exports:[yi,Vo,li]}),u.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,imports:[[i.CommonModule,L.IntlModule,m.EventsModule]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:u,decorators:[{type:h.NgModule,args:[{declarations:[yi,Vo,li],exports:[yi,Vo,li],imports:[i.CommonModule,L.IntlModule,m.EventsModule]}]}]}),ht(Ro,So=ti),Object.defineProperty(Ro.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ro);function Ro(e){var t=So.call(this)||this;return t.service=e,t}Eo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Eo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Eo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Eo,selector:"kendo-datepicker-messages",providers:[{provide:ti,useExisting:h.forwardRef(function(){return Eo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Eo,decorators:[{type:h.Component,args:[{providers:[{provide:ti,useExisting:h.forwardRef(function(){return Eo})}],selector:"kendo-datepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Oo,d=function(){},tt=(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:[Oi,Eo,Ei],imports:[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],exports:[Oi,Eo,Ei,P]}),d.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,providers:[{provide:Di,useValue:j.touchEnabled}],imports:[[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:d,decorators:[{type:h.NgModule,args:[{declarations:[Oi,Eo,Ei],exports:[Oi,Eo,Ei,P],imports:[i.CommonModule,u,T,L.IntlModule,z.PopupModule,P,m.EventsModule],providers:[{provide:Di,useValue:j.touchEnabled}]}]}]}),[ei,Li,D,Ai,c,vo]),ot=[Do,u,z.PopupModule,m.EventsModule],x=function(){},Mo=(x.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,deps:[],target:a.ɵɵFactoryTarget.NgModule}),x.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,declarations:[ei,Li,D,Ai,c,vo],imports:[i.CommonModule,Do,u,z.PopupModule,m.EventsModule],exports:[ei,Li,D,Ai,c,vo]}),x.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,imports:[[i.CommonModule,ot]]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:x,decorators:[{type:h.NgModule,args:[{declarations:[tt],exports:[tt],imports:[i.CommonModule,ot]}]}]}),ht(No,Oo=O),Object.defineProperty(No.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),No);function No(e){var t=Oo.call(this)||this;return t.service=e,t}Mo.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mo,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Mo.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Mo,selector:"kendo-timepicker-messages",providers:[{provide:O,useExisting:h.forwardRef(function(){return Mo})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Mo,decorators:[{type:h.Component,args:[{providers:[{provide:O,useExisting:h.forwardRef(function(){return Mo})}],selector:"kendo-timepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});var Fo,ti=[Ga,ba,Mo,Ja,_a,Wa,wa],tt=[u,L.IntlModule,z.PopupModule,Io,m.EventsModule],ot=[Ta,Hi,Zi,ia,ua,va,{provide:Di,useValue:j.touchEnabled}],O=function(){},Po=(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:[Ga,ba,Mo,Ja,_a,Wa,wa],imports:[i.CommonModule,u,L.IntlModule,z.PopupModule,Io,m.EventsModule],exports:[Ga,ba,Mo,Ja,_a,Wa,wa]}),O.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,providers:ot,imports:[mt([i.CommonModule],y(tt))]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:h.NgModule,args:[{declarations:[ti],exports:[ti],imports:mt([i.CommonModule],y(tt)),providers:ot}]}]}),ht(Ao,Fo=Pi),Object.defineProperty(Ao.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),Ao);function Ao(e){var t=Fo.call(this)||this;return t.service=e,t}Po.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Po,deps:[{token:r.LocalizationService}],target:a.ɵɵFactoryTarget.Component}),Po.ɵcmp=a.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Po,selector:"kendo-datetimepicker-messages",providers:[{provide:Pi,useExisting:h.forwardRef(function(){return Po})}],usesInheritance:!0,ngImport:a,template:"",isInline:!0}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Po,decorators:[{type:h.Component,args:[{providers:[{provide:Pi,useExisting:h.forwardRef(function(){return Po})}],selector:"kendo-datetimepicker-messages",template:""}]}],ctorParameters:function(){return[{type:r.LocalizationService}]}});Hi=[so,Po,io],Zi=function(){},Zi.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,deps:[],target:a.ɵɵFactoryTarget.NgModule}),Zi.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,declarations:[so,Po,io],imports:[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],exports:[so,Po,io,P]}),Zi.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,providers:[{provide:Di,useValue:j.touchEnabled}],imports:[[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],P]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:Zi,decorators:[{type:h.NgModule,args:[{declarations:mt([],y(Hi)),exports:mt(mt([],y(Hi)),[P]),imports:[i.CommonModule,L.IntlModule,u,T,O,z.PopupModule,m.EventsModule,P],providers:[{provide:Di,useValue:j.touchEnabled}]}]}]}),ia=[To,u,d,O,x,Zi],ua=function(){};ua.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,deps:[],target:a.ɵɵFactoryTarget.NgModule}),ua.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,imports:[To,u,d,O,x,Zi],exports:[To,u,d,O,x,Zi]}),ua.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,imports:[ia,To,u,d,O,x,Zi]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:ua,decorators:[{type:h.NgModule,args:[{exports:ia,imports:ia}]}]}),e.CalendarCommonModule=wo,e.CalendarComponent=ni,e.CalendarCustomMessagesComponent=Ti,e.CalendarLocalizedMessagesDirective=Gn,e.CalendarModule=T,e.CalendarsModule=To,e.CellTemplateDirective=Nt,e.CenturyCellTemplateDirective=Lt,e.DateInputComponent=yi,e.DateInputCustomMessagesComponent=Vo,e.DateInputLocalizedMessagesDirective=li,e.DateInputModule=u,e.DateInputsModule=ua,e.DatePickerComponent=Oi,e.DatePickerCustomMessagesComponent=Eo,e.DatePickerLocalizedMessagesDirective=Ei,e.DatePickerModule=d,e.DateRangeComponent=ei,e.DateRangeEndInputDirective=vo,e.DateRangeModule=x,e.DateRangePopupComponent=Li,e.DateRangePopupTemplateDirective=D,e.DateRangeSelectionDirective=Ai,e.DateRangeService=co,e.DateRangeStartInputDirective=c,e.DateTimePickerComponent=so,e.DateTimePickerCustomMessagesComponent=Po,e.DateTimePickerModule=Zi,e.DecadeCellTemplateDirective=At,e.HeaderComponent=It,e.HeaderTitleTemplateDirective=zt,e.HorizontalViewListComponent=Tt,e.KForOf=Ct,e.LocalizedMessagesDirective=io,e.MonthCellTemplateDirective=Ft,e.MultiViewCalendarComponent=Gt,e.MultiViewCalendarCustomMessagesComponent=Kn,e.MultiViewCalendarLocalizedMessagesDirective=Ut,e.MultiViewCalendarModule=Do,e.NavigationComponent=Zt,e.NavigationItemTemplateDirective=Yn,e.PreventableEvent=bi,e.TemplatesModule=P,e.TimeListComponent=ba,e.TimePickerComponent=Ja,e.TimePickerCustomMessagesComponent=Mo,e.TimePickerLocalizedMessagesDirective=Ga,e.TimePickerModule=O,e.TimeSelectorComponent=wa,e.TimeSelectorCustomMessagesComponent=Wa,e.TimeSelectorLocalizedMessagesDirective=_a,e.ViewComponent=Dt,e.ViewListComponent=Bn,e.WeekNumberCellTemplateDirective=Bt,e.YearCellTemplateDirective=Pt,Object.defineProperty(e,"__esModule",{value:!0})});