@progress/kendo-angular-dateinputs 6.0.2-dev.202202251356 → 6.0.3-dev.202203150818
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-dateinputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/calendar/calendar.component.js +69 -21
- package/dist/es/calendar/multiview-calendar.component.js +61 -19
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/calendar/calendar.component.d.ts +56 -0
- package/dist/es2015/calendar/calendar.component.js +77 -29
- package/dist/es2015/calendar/multiview-calendar.component.d.ts +49 -0
- package/dist/es2015/calendar/multiview-calendar.component.js +62 -20
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +140 -50
- package/dist/fesm5/index.js +131 -41
- package/dist/npm/calendar/calendar.component.js +69 -21
- package/dist/npm/calendar/multiview-calendar.component.js +61 -19
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-dateinputs.js +1 -1
- package/package.json +2 -2
package/dist/cdn/main.js
CHANGED
|
@@ -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&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularDateinputs=t(require("tslib"),require("@angular/core"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("@progress/kendo-common")):e.KendoAngularDateinputs=t(e.self,e.ng.core,e.KendoDateMath,e.KendoAngularL10N,e.KendoAngularIntl,e.KendoAngularCommon,e.rxjs,e.KendoAngularPopup,e.ng.common,e.ng.forms,e.KendoLicensing,e.KendoCommon)}(window,(function(e,t,n,i,r,o,a,s,u,c,l,p){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=99)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(8),o=n(12),a=n(7),s=function(e){return null!=e},u=function(e){return function(t,n){var r=i.cloneDate(t);return r[e](n),r}};t.setTime=function(e,t){var n=i.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n};var c=function(e,n,o){return{candidateValue:t.setTime(r.MIDNIGHT_DATE,e),maxValue:i.addDays(t.setTime(r.MIDNIGHT_DATE,o),n.getHours()<o.getHours()||n.getHours()===o.getHours()&&n.getMinutes()<o.getMinutes()?0:1),minValue:t.setTime(r.MIDNIGHT_DATE,n)}};t.setYears=u("setFullYear"),t.setHours=u("setHours"),t.setMinutes=u("setMinutes"),t.setSeconds=u("setSeconds"),t.setMilliseconds=u("setMilliseconds"),t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],r=e;r<t;r+=n)i.push(r);return i},t.isInRange=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var i=c(e,t,n),r=i.candidateValue,o=i.minValue,a=i.maxValue;return o<=r&&r<=a},t.isValidRange=function(e,t){return!s(e)||!s(t)||e<=t},t.dateInRange=function(e,t,n){return e?t&&e<t?i.cloneDate(t):n&&e>n?i.cloneDate(n):e:e},t.timeInRange=function(e,n,i){if(!e||!n||!i)return e;var r=c(e,n,i),o=r.candidateValue,a=r.minValue,s=r.maxValue;return o<a?t.setTime(e,n):o>s?t.setTime(e,i):e},t.getNow=function(){return new Date},t.getToday=function(){return i.getDate(new Date)},t.noop=function(e){},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.stringifyClassObject=function(e){return Object.keys(e).reduce((function(t,n){return e[n]?t.concat(n):t}),[]).join(" ")},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.approximateStringMatching=function(e,t,n,i){var r=i+e.length-n.length,o=e[r],a=e.substring(0,i+e.length-n.length),s=n.substring(0,i),u=[];if(a===s&&i>0)return u.push([t[i-1],s[i-1]]),u;if(0===a.indexOf(s)&&(0===s.length||t[s.length-1]!==t[s.length])){var c="";1===s.length&&u.push([t[0],s[0]]);for(var l=s.length;l<a.length;l++)t[l]!==c&&"_"!==t[l]&&(c=t[l],u.push([c,""]));return u}if(0===s.indexOf(a)||"_"===t[i-1]){var p=t[0];for(l=Math.max(0,a.length-1);l<t.length;l++)if("_"!==t[l]){p=t[l];break}return[[p,s[i-1]]]}return" "===s[s.length-1]||s[s.length-1]===o&&"_"===t[r]?[[t[i-1],"_"]]:[[t[i-1],s[i-1]]]},t.domContainerFactory=function(e){return function(t,n,i){void 0===n&&(n=""),void 0===i&&(i={});var r=document.createElement(e);return r.className=n,Object.keys(i).map((function(e){return r.style[e]=i[e]})),"string"==typeof t?r.innerHTML=t||"":(t||[]).forEach((function(e){return e&&r.appendChild(e)})),r}},t.hasChange=function(e,t){return void 0!==e[t]},t.hasExistingValue=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},t.last=function(e){return void 0===e&&(e=[]),e&&e[e.length-1]},t.isInSelectionRange=function(e,t){var n=t||o.EMPTY_SELECTIONRANGE,i=n.start,r=n.end;return!(!i||!r)&&(i<e&&e<r)},t.either=function(e,t){return e||t},t.clampRange=function(e){return{start:e,end:e}},t.isEqualRange=function(e,t){var n=e||o.EMPTY_SELECTIONRANGE,r=n.start,a=n.end,s=t||o.EMPTY_SELECTIONRANGE,u=s.start,c=s.end;return i.isEqual(r,u)&&i.isEqual(a,c)},t.areDatesEqual=function(e,t){return t=t||[],(e=e||[]).length===t.length&&e.every((function(e,n){return i.isEqual(e,t[n])}))},t.sortDates=function(e){return e.filter((function(e){return a.isPresent(e)})).sort((function(e,t){return e.getTime()-t.getTime()}))},t.mergeDateAndTime=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},t.lastMillisecondOfDate=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},t.disabledDatesInRange=function(e,t,n){if(!(e&&t&&n)||e>t)return[];for(var r=[],o=e;o<=t;)n(o)&&r.push(o),o=i.addDays(o,1);return r},t.cropTwoDigitYear=function(e){return!a.isPresent(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))},t.msPaddingFromFormat=function(e){return Array(e.match(/S+(\1)/)[0].length).join("0")},t.millisecondDigitsInFormat=function(e){var t=e&&e.match(/S+(\1)/);return t?t[0].length:0},t.millisecondStepFor=function(e){return Math.pow(10,3-e)},t.isTabExitingCalendar=function(e,t,n){return!!a.isPresent(t)&&("infinite"===e||"classic"===e&&n&&t.classList.contains("k-calendar")||!n&&t.classList.contains("k-next-view"))},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},t.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},t.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.preventDefault=function(e){return e.preventDefault()},t.currentFocusTarget=function(e){return e.relatedTarget||document.activeElement},t.isPresent=function(e){return null!=e},t.isNumberArray=function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return"number"==typeof e}))},t.isDateArray=function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return e instanceof Date}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59)},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(t.CalendarViewEnum||(t.CalendarViewEnum={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(46),s=n(47),u=n(48),c=n(49),l=n(10),p=((i={})[l.CalendarViewEnum.month]=u.MonthViewService,i[l.CalendarViewEnum.year]=c.YearViewService,i[l.CalendarViewEnum.decade]=s.DecadeViewService,i[l.CalendarViewEnum.century]=a.CenturyViewService,i),d=function(){function e(e){this.injector=e,this.viewChanged=new o.EventEmitter,this.bottom=l.CalendarViewEnum.month,this.top=l.CalendarViewEnum.century}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e){var t=p[e];return t?this.injector.get(t):null},e.prototype.moveDown=function(e){this.move(e,-1)},e.prototype.moveUp=function(e){this.move(e,1)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t){var n=this.clamp(function(e,t){var n=l.CalendarViewEnum[l.CalendarViewEnum[e+t]];return void 0!==n?n:e}(e,t));n!==e&&this.viewChanged.emit({view:n})},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[o.Injector])],e)}();t.BusViewService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t){e.exports=s},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(t.Action||(t.Action={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.sameDateSelected=new i.EventEmitter,this.dateCompletenessChange=new i.EventEmitter};t.PickerService=r},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645797218,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(9),s=n(7),u=function(){return!1},c=function(){function e(){this.changes=new a.Subject,this.isDateDisabled=u}return e.prototype.initialize=function(e){if("function"==typeof e)this.isDateDisabled=function(t){return e(o.getDate(t))};else if(s.isNumberArray(e)){var t=new Set(e);this.isDateDisabled=function(e){return t.has(e.getDay())}}else if(s.isDateArray(e)){var n=new Set(e.map((function(e){return o.getDate(e).getTime()})));this.isDateDisabled=function(e){return n.has(o.getDate(e).getTime())}}else this.isDateDisabled=u,this.notifyInvalidInput(e);this.notifyServiceChange()},e.prototype.notifyInvalidInput=function(e){if(s.isPresent(e)&&r.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},e.prototype.notifyServiceChange=function(){this.changes.next()},e=i.__decorate([r.Injectable()],e)}();t.DisabledDatesService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.TOUCH_ENABLED=new i.InjectionToken("dateinputs-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),a=n(12),s=n(2),u=function(e){return e&&e.isActive||!1},c=function(){function e(){this.activeRangeEnd$=new o.BehaviorSubject(null),this.focusedDate$=new o.BehaviorSubject(null),this.endInput$=new o.BehaviorSubject(null),this.startInput$=new o.BehaviorSubject(null),this.dateRangePopup$=new o.BehaviorSubject(null),this.range$=new o.BehaviorSubject(a.EMPTY_SELECTIONRANGE)}return Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),e.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},e.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},e.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},e.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},e.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=u(e),n=u(this.startInput$.value),i=u(this.endInput$.value);return t||n||i||function(e){return e&&e.hasActiveContent()}(e)||!1},e.prototype.registerStartInput=function(e){this.startInput$.next(e)},e.prototype.registerEndInput=function(e){this.endInput$.next(e)},e.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},e.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},e.prototype.setFocusedDate=function(e){s.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},e.prototype.setRange=function(e){void 0===e&&(e=a.EMPTY_SELECTIONRANGE),this.range$.next(e)},e=i.__decorate([r.Injectable()],e)}();t.DateRangeService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(39),a=n(14),s=n(5),u=n(81),c=n(83),l=n(6),p=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.DateInputComponent,c.DateInputCustomMessagesComponent,u.DateInputLocalizedMessagesDirective],exports:[o.DateInputComponent,c.DateInputCustomMessagesComponent,u.DateInputLocalizedMessagesDirective],imports:[a.CommonModule,s.IntlModule,l.EventsModule]})],e)}();t.DateInputModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(17),a=n(4),s=n(2),u=n(6),c=n(58),l=n(59),p=n(11),d=n(51),h=n(60),f=n(20),m=n(26),v=n(27),g=n(28),y=n(29),_=n(30),b=n(31),w=n(32),C=n(15),D=n(10),S=n(33),k=n(34),T=n(100),E=n(8),x=n(3),I=n(9),M=n(7),O=n(16),V="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.RANGE_CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return R}))},t.RANGE_CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return R}))};var R=function(){function e(e,t,n,i,o,a,s,c,l){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=o,this.zone=a,this.disabledDatesService=s,this.selectionService=c,this.pickerService=l,this.id=u.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=D.CalendarViewEnum[D.CalendarViewEnum.month],this.bottomView=D.CalendarViewEnum[D.CalendarViewEnum.month],this.topView=D.CalendarViewEnum[D.CalendarViewEnum.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new r.EventEmitter,this.navigate=new r.EventEmitter,this.cellEnter=new r.EventEmitter,this.cellLeave=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.blurEvent=new r.EventEmitter,this.cellUID=u.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=C.Action.PrevView,this.nextView=C.Action.NextView,this.selectedDates=[],this._min=new Date(E.MIN_DATE),this._max=new Date(E.MAX_DATE),this._focusedDate=x.getToday(),this.resolvedPromise=Promise.resolve(),this.onControlChange=x.noop,this.onControlTouched=x.noop,this.onValidatorChange=x.noop,this.minValidateFn=x.noop,this.maxValidateFn=x.noop,this.disabledDatesRangeValidateFn=x.noop,this.subscriptions=new I.Subscription,this.setClasses(t.nativeElement)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||x.getToday()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(E.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(E.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return M.isPresent(e)})).map((function(e){return s.cloneDate(e)})):s.cloneDate(e);var t=[].concat(e).filter((function(e){return M.isPresent(e)})).map((function(e){return s.cloneDate(e)}));if(!x.areDatesEqual(t,this.selectedDates)){var n=x.last(t);this.rangePivot=s.cloneDate(n),this.focusedDate=s.cloneDate(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=D.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return D.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return D.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),e.prototype.handleFocusout=function(e){var t=e.relatedTarget;this.element.nativeElement.contains(t)||(this.blurEvent.emit(e),this.onControlTouched()),this.isActive=!1,this.isHovered=!1,this.isHeaderActive=this.headerElement.nativeElement.contains(t)},e.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},e.prototype.handleMouseEnter=function(){this.isHovered=!0},e.prototype.handleMouseLeave=function(){this.isHovered=!1},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleClick=function(){this.isActive||this.focus()},e.prototype.keydown=function(e){if(!this.isHeaderActive){e.keyCode===u.Keys.Enter&&(M.isPresent(this.pickerService)&&e.preventDefault(),this.performSelection(this.focusedDate,e));var t=x.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);if(!s.isEqual(this.focusedDate,t))this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.bus.viewChanged.subscribe((function(t){var n=t.view;e.activeView=D.CalendarViewEnum[n],e.activeViewChange.emit(e.activeView),e.cdr.detectChanges(),e.updateButtonState()})))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),x.hasExistingValue(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=x.dateInRange(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?S.minValidator(this.min):x.noop,this.maxValidateFn=this.rangeValidation?k.maxValidator(this.max):x.noop,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?T.disabledDatesRangeValidator(this.disabledDatesService.isDateDisabled):x.noop,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.updateButtonState()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},e.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate;var r=!n&&x.areDatesEqual(i,this.selectedDates);this.disabled||r||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map((function(e){return s.cloneDate(e)})),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},e.prototype.handleTodayButtonClick=function(e){var t=e.focusedDate,n=this.bus.service(this.activeViewEnum).isInArray(t,this.viewList.dates),i=!this.bus.canMoveDown(this.activeViewEnum);!n&&i&&this.emitNavigate(t),this.handleDateChange(e)},e.prototype.setActiveDate=function(e){this.activeDate=s.cloneDate(e),this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case D.CalendarViewEnum.month:return this.monthCellTemplate||this.cellTemplate;case D.CalendarViewEnum.year:return this.yearCellTemplate;case D.CalendarViewEnum.decade:return this.decadeCellTemplate;case D.CalendarViewEnum.century:return this.centuryCellTemplate;default:return null}},e.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=D.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitCellEvent=function(e,t){u.hasObservers(e)&&this.zone.run((function(){e.emit(t)}))},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:x.last(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},e.prototype.verifyChanges=function(){if(r.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(r.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+V+" 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 "+V+" for possible resolution.")}},e.prototype.updateButtonState=function(){var e=this;this.resolvedPromise.then((function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()}))},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(x.last(e)):e.map((function(e){return s.cloneDate(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"focusedDate",null),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewHeader",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"selectionRange",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"views",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"blurEvent",void 0),i.__decorate([r.ContentChild(m.CellTemplateDirective,{static:!0}),i.__metadata("design:type",m.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([r.Input("cellTemplate"),i.__metadata("design:type",m.CellTemplateDirective),i.__metadata("design:paramtypes",[m.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([r.ContentChild(v.MonthCellTemplateDirective,{static:!0}),i.__metadata("design:type",v.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([r.Input("monthCellTemplate"),i.__metadata("design:type",v.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[v.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([r.ContentChild(g.YearCellTemplateDirective,{static:!0}),i.__metadata("design:type",g.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([r.Input("yearCellTemplate"),i.__metadata("design:type",g.YearCellTemplateDirective),i.__metadata("design:paramtypes",[g.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([r.ContentChild(y.DecadeCellTemplateDirective,{static:!0}),i.__metadata("design:type",y.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([r.Input("decadeCellTemplate"),i.__metadata("design:type",y.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[y.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([r.ContentChild(_.CenturyCellTemplateDirective,{static:!0}),i.__metadata("design:type",_.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([r.Input("centuryCellTemplate"),i.__metadata("design:type",_.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[_.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([r.ContentChild(b.WeekNumberCellTemplateDirective,{static:!0}),i.__metadata("design:type",b.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([r.Input("weekNumberTemplate"),i.__metadata("design:type",b.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[b.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([r.ContentChild(w.HeaderTitleTemplateDirective,{static:!0}),i.__metadata("design:type",w.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([r.Input("headerTitleTemplate"),i.__metadata("design:type",w.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[w.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([r.ViewChild(l.HeaderComponent,{static:!1,read:r.ElementRef}),i.__metadata("design:type",r.ElementRef)],e.prototype,"headerElement",void 0),i.__decorate([r.ViewChild(c.HorizontalViewListComponent,{static:!1}),i.__metadata("design:type",c.HorizontalViewListComponent)],e.prototype,"viewList",void 0),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"widgetId",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([r.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),i.__decorate([r.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleFocusout",null),i.__decorate([r.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleFocus",null),i.__decorate([r.HostListener("mouseenter"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),i.__decorate([r.HostListener("mouseleave"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),i.__decorate([r.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMousedown",null),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[p.BusViewService,t.RANGE_CALENDAR_VALUE_ACCESSOR,t.RANGE_CALENDAR_RANGE_VALIDATORS,a.LocalizationService,f.DisabledDatesService,{provide:a.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},d.NavigationService,h.SelectionService],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplate?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n (valueChange)="handleDateChange($event)"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n >\n </kendo-calendar-horizontal>\n '}),i.__param(8,r.Optional()),i.__metadata("design:paramtypes",[p.BusViewService,r.ElementRef,d.NavigationService,r.Renderer2,r.ChangeDetectorRef,r.NgZone,f.DisabledDatesService,h.SelectionService,O.PickerService])],e)}();t.MultiViewCalendarComponent=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.CellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarMonthCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.MonthCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarYearCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.YearCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarDecadeCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.DecadeCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarCenturyCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.CenturyCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarWeekNumberCellTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.WeekNumberCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarHeaderTitleTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.HeaderTitleTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minValidator=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValidator=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(10),s=n(6),u=n(3),c=n(7),l=u.domContainerFactory("div"),p=u.domContainerFactory("ul"),d=u.domContainerFactory("li"),h=u.domContainerFactory("td"),f=u.domContainerFactory("th"),m=u.domContainerFactory("tr"),v=u.domContainerFactory("tbody"),g=u.domContainerFactory("thead"),y=u.domContainerFactory("table"),_=function(e,t){return new Array(e).fill("1").map(t)},b=function(e){return l(e,"k-flex k-content k-calendar-content k-scrollable")},w=function(){return s.isDocumentAvailable?(i||(i=l([b([p([d("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null},C=function(e,t,n){var i,r=e.cells,o=e.rows;return function(){return s.isDocumentAvailable?(i||(i=function(e,t,n){return l([l('\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-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack"),n?y([g([m([f("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,b([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),y([v([m([f("1","k-calendar-th")],"k-calendar-tr")].concat(_(e,(function(){return m(_(t,(function(e){return h('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(o,r),t,n)),i):null}},D=function(e){return e.querySelector(".k-scrollable")},S=function(e){return D(e).classList.add("k-scrollable-horizontal"),e},k=C({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),T=C({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),E=C({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),x=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},I=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},M=function(e){return e.querySelector("tbody")},O=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;s.isDocumentAvailable()&&(this.hostContainer=e,this.batch(k(),(function(e){var n=M(e);t.calendarHeight=x(e),t.monthViewHeight=x(n),t.headerHeight=x(n.children[0]),t.scrollableContentHeight=x(D(e))})),this.batch(S(k()),(function(e){var n=M(e);t.calendarWidth=I(e),t.monthViewWidth=I(n),t.scrollableContentWidth=I(D(e))})),this.batch(T(),(function(e){t.yearViewHeight=x(M(e)),t.scrollableYearContentHeight=x(D(e))})),this.batch(S(T()),(function(e){t.yearViewWidth=I(M(e))})),this.batch(E(),(function(e){t.decadeViewHeight=x(M(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(S(E()),(function(e){t.decadeViewWidth=I(M(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(w(),(function(e){t.navigationItemHeight=x(e.querySelector("li"))})))},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case a.CalendarViewEnum.month:return this["month"+n];case a.CalendarViewEnum.year:return this["year"+n];case a.CalendarViewEnum.decade:return this["decade"+n];case a.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){if(c.isPresent(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},e=r.__decorate([o.Injectable()],e)}();t.CalendarDOMService=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return A})),n.d(t,"auditTime",(function(){return U})),n.d(t,"buffer",(function(){return K})),n.d(t,"bufferCount",(function(){return Z})),n.d(t,"bufferTime",(function(){return ee})),n.d(t,"bufferToggle",(function(){return se})),n.d(t,"bufferWhen",(function(){return le})),n.d(t,"catchError",(function(){return he})),n.d(t,"combineAll",(function(){return be})),n.d(t,"combineLatest",(function(){return Ce})),n.d(t,"concat",(function(){return je})),n.d(t,"concatAll",(function(){return Ne})),n.d(t,"concatMap",(function(){return Fe})),n.d(t,"concatMapTo",(function(){return Be})),n.d(t,"count",(function(){return Le})),n.d(t,"debounce",(function(){return Ye})),n.d(t,"debounceTime",(function(){return Ue})),n.d(t,"defaultIfEmpty",(function(){return Ze})),n.d(t,"delay",(function(){return rt})),n.d(t,"delayWhen",(function(){return ut})),n.d(t,"dematerialize",(function(){return ht})),n.d(t,"distinct",(function(){return vt})),n.d(t,"distinctUntilChanged",(function(){return _t})),n.d(t,"distinctUntilKeyChanged",(function(){return Ct})),n.d(t,"elementAt",(function(){return Ft})),n.d(t,"endWith",(function(){return Bt})),n.d(t,"every",(function(){return Lt})),n.d(t,"exhaust",(function(){return Yt})),n.d(t,"exhaustMap",(function(){return Ut})),n.d(t,"expand",(function(){return Gt})),n.d(t,"filter",(function(){return kt})),n.d(t,"finalize",(function(){return Jt})),n.d(t,"find",(function(){return tn})),n.d(t,"findIndex",(function(){return on})),n.d(t,"first",(function(){return an})),n.d(t,"groupBy",(function(){return hn})),n.d(t,"ignoreElements",(function(){return _n})),n.d(t,"isEmpty",(function(){return Cn})),n.d(t,"last",(function(){return xn})),n.d(t,"map",(function(){return Ee})),n.d(t,"mapTo",(function(){return In})),n.d(t,"materialize",(function(){return Vn})),n.d(t,"max",(function(){return Bn})),n.d(t,"merge",(function(){return zn})),n.d(t,"mergeAll",(function(){return Pe})),n.d(t,"mergeMap",(function(){return Me})),n.d(t,"flatMap",(function(){return Me})),n.d(t,"mergeMapTo",(function(){return Hn})),n.d(t,"mergeScan",(function(){return Yn})),n.d(t,"min",(function(){return Un})),n.d(t,"multicast",(function(){return Qn})),n.d(t,"observeOn",(function(){return ti})),n.d(t,"onErrorResumeNext",(function(){return oi})),n.d(t,"pairwise",(function(){return ui})),n.d(t,"partition",(function(){return di})),n.d(t,"pluck",(function(){return hi})),n.d(t,"publish",(function(){return mi})),n.d(t,"publishBehavior",(function(){return gi})),n.d(t,"publishLast",(function(){return _i})),n.d(t,"publishReplay",(function(){return Si})),n.d(t,"race",(function(){return xi})),n.d(t,"reduce",(function(){return Fn})),n.d(t,"repeat",(function(){return Ii})),n.d(t,"repeatWhen",(function(){return Vi})),n.d(t,"retry",(function(){return Ni})),n.d(t,"retryWhen",(function(){return Fi})),n.d(t,"refCount",(function(){return Kn})),n.d(t,"sample",(function(){return zi})),n.d(t,"sampleTime",(function(){return Wi})),n.d(t,"scan",(function(){return Nn})),n.d(t,"sequenceEqual",(function(){return $i})),n.d(t,"share",(function(){return Qi})),n.d(t,"shareReplay",(function(){return er})),n.d(t,"single",(function(){return tr})),n.d(t,"skip",(function(){return rr})),n.d(t,"skipLast",(function(){return sr})),n.d(t,"skipUntil",(function(){return lr})),n.d(t,"skipWhile",(function(){return hr})),n.d(t,"startWith",(function(){return vr})),n.d(t,"subscribeOn",(function(){return Sr})),n.d(t,"switchAll",(function(){return Ir})),n.d(t,"switchMap",(function(){return Tr})),n.d(t,"switchMapTo",(function(){return Mr})),n.d(t,"take",(function(){return Nt})),n.d(t,"takeLast",(function(){return kn})),n.d(t,"takeUntil",(function(){return Or})),n.d(t,"takeWhile",(function(){return Pr})),n.d(t,"tap",(function(){return xt})),n.d(t,"throttle",(function(){return Fr})),n.d(t,"throttleTime",(function(){return zr})),n.d(t,"throwIfEmpty",(function(){return Rt})),n.d(t,"timeInterval",(function(){return qr})),n.d(t,"timeout",(function(){return Jr})),n.d(t,"timeoutWith",(function(){return Gr})),n.d(t,"timestamp",(function(){return Qr})),n.d(t,"toArray",(function(){return no})),n.d(t,"window",(function(){return io})),n.d(t,"windowCount",(function(){return ao})),n.d(t,"windowTime",(function(){return co})),n.d(t,"windowToggle",(function(){return go})),n.d(t,"windowWhen",(function(){return bo})),n.d(t,"withLatestFrom",(function(){return Do})),n.d(t,"zip",(function(){return Vo})),n.d(t,"zipAll",(function(){return Ro}));var i=n(0);function r(e){return"function"==typeof e}var o=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function s(e){setTimeout((function(){throw e}))}var u={closed:!0,next:function(e){},error:function(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;s(e)},complete:function(){}},c=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}function p(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}p.prototype=Object.create(Error.prototype);var d=p,h=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,o=this._unsubscribe,a=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,u=i?i.length:0;n;)n.remove(this),n=++s<u&&i[s]||null;if(r(o))try{o.call(this)}catch(n){t=!0,e=n instanceof d?f(n.errors):[n]}if(c(a))for(s=-1,u=a.length;++s<u;){var p=a[s];if(l(p))try{p.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof d?e=e.concat(f(n.errors)):e.push(n)}}if(t)throw new d(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var r=this._subscriptions;r?r.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function f(e){return e.reduce((function(e,t){return e.concat(t instanceof d?t.errors:t)}),[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(e){function t(n,i,r){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=u;break;case 1:if(!n){o.destination=u;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new g(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new g(o,n,i,r)}return o}return i.__extends(t,e),t.prototype[m]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(h),g=function(e){function t(t,n,i,o){var a,s=e.call(this)||this;s._parentSubscriber=t;var c=s;return r(n)?a=n:n&&(a=n.next,i=n.error,o=n.complete,n!==u&&(r((c=Object.create(n)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=a,s._error=i,s._complete=o,s}return i.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw e;s(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(s(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(v),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(v),_=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(v);var b="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D(e)}function D(e){return e?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:w}var S=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof v)return e;if(e[m])return e[m]()}return e||t||n?new v(e,t,n):new v(u)}(e,t,n);if(i?r.add(i.call(r,this.source)):r.add(this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof v?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=k(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(e){i(e),r&&r.unsubscribe()}}),i,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[b]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:D(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=k(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function k(e){if(e||(e=a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var T=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},E=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,s),t}};function x(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var I=x(),M=function(e){return function(t){for(var n=e[I]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}},O=function(e){return function(t){var n=e[b]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},V=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function R(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var P=function(e){if(e instanceof S)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[b])return O(e);if(V(e))return T(e);if(R(e))return E(e);if(e&&"function"==typeof e[I])return M(e);var t=l(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function N(e,t,n,i,r){if(void 0===r&&(r=new _(e,n,i)),!r.closed)return P(t)(r)}function A(e){return function(t){return t.lift(new j(e))}}var j=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new F(e,this.durationSelector))},e}(),F=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=N(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,i){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(y),B=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return i.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(h)),L=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),z=function(e){function t(n,i){void 0===i&&(i=L.now);var r=e.call(this,n,(function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return i.__extends(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(L),H=new z(B);function Y(e){return!c(e)&&e-parseFloat(e)+1>=0}function W(e){return e&&"function"==typeof e.schedule}function q(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function U(e,t){return void 0===t&&(t=H),A((function(){return function(e,t,n){void 0===e&&(e=0);var i=-1;return Y(t)?i=Number(t)<1?1:Number(t):W(t)&&(n=t),W(n)||(n=H),new S((function(t){var r=Y(e)?e:+e-n.now();return n.schedule(q,r,{index:0,period:i,subscriber:t})}))}(e,t)}))}function K(e){return function(t){return t.lift(new $(e))}}var $=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new G(e,this.closingNotifier))},e}(),G=function(e){function t(t,n){var i=e.call(this,t)||this;return i.buffer=[],i.add(N(i,n)),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(y);function Z(e,t){return void 0===t&&(t=null),function(n){return n.lift(new X(e,t))}}var X=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?Q:J}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),J=function(e){function t(t,n){var i=e.call(this,t)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(v),Q=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===t&&(i.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var i=t.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},t}(v);function ee(e){var t=arguments.length,n=H;W(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new te(e,i,r,n))}}var te=function(){function e(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ie(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),ne=function(){return function(){this.buffer=[]}}(),ie=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=i,a.maxBufferSize=r,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==i||i<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(re,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(ae,n,c)),a.add(o.schedule(oe,i,l))}return a}return i.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var i=t.shift();n.next(i.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(re,n,i))}},t.prototype.openContext=function(){var e=new ne;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(v);function re(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function oe(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,r=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(ae,n,{subscriber:i,context:o})),this.schedule(e,t))}function ae(e){var t=e.subscriber,n=e.context;t.closeContext(n)}function se(e,t){return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ce(e,this.openings,this.closingSelector))},e}(),ce=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(N(r,n)),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new h,i={buffer:[],subscription:n};t.push(i);var r=N(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},t}(y);function le(e){return function(t){return t.lift(new pe(e))}}var pe=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new de(e,this.closingSelector))},e}(),de=function(e){function t(t,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,i,r){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new h,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(N(this,t)),this.subscribing=!1},t}(y);function he(e){return function(t){var n=new fe(e),i=t.lift(n);return n.caught=i}}var fe=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new me(e,this.selector,this.caught))},e}(),me=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var i=new _(this,void 0,void 0);this.add(i),N(this,n,void 0,void 0,i)}},t}(y);function ve(e,t){return new S(t?function(n){var i=new h,r=0;return i.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:T(e))}var ge={};var ye=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.resultSelector))},e}(),_e=function(e){function t(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(t,e),t.prototype._next=function(e){this.values.push(ge),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(N(this,i,i,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.values,a=o[n],s=this.toRespond?a===ge?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function be(e){return function(t){return t.lift(new ye(e))}}function we(e,t){if(!t)return e instanceof S?e:new S(P(e));if(null!=e){if(function(e){return e&&"function"==typeof e[b]}(e))return function(e,t){return new S(t?function(n){var i=new h;return i.add(t.schedule((function(){var r=e[b]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}:O(e))}(e,t);if(R(e))return function(e,t){return new S(t?function(n){var i=new h;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}:E(e))}(e,t);if(V(e))return ve(e,t);if(function(e){return e&&"function"==typeof e[I]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(t?function(n){var i,r=new h;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((function(){i=e[I](),r.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),r}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&c(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(we([t].concat(e)),new ye(n))}}var De=new S((function(e){return e.complete()}));function Se(e){return e?function(e){return new S((function(t){return e.schedule((function(){return t.complete()}))}))}(e):De}function ke(e){var t=new S((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function Te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(W(n)?e.pop():n=void 0,e.length){case 0:return Se(n);case 1:return n?ve(e,n):ke(e[0]);default:return ve(e,n)}}function Ee(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new xe(e,t))}}var xe=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ie(e,this.project,this.thisArg))},e}(),Ie=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v);function Me(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(i){return i.pipe(Me((function(n,i){return we(e(n,i)).pipe(Ee((function(e,r){return t(n,e,i,r)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Oe(e,n))})}var Oe=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.project,this.concurrent))},e}(),Ve=function(e){function t(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=e.call(this,t)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(y);function Re(e){return e}function Pe(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Me(Re,e)}function Ne(){return Pe(1)}function Ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ne()(Te.apply(void 0,e))}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Ae.apply(void 0,[t].concat(e)))}}function Fe(e,t){return Me(e,t,1)}function Be(e,t){return Fe((function(){return e}),t)}function Le(e){return function(t){return t.lift(new ze(e,t))}}var ze=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new He(e,this.predicate,this.source))},e}(),He=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(v);function Ye(e){return function(t){return t.lift(new We(e))}}var We=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new qe(e,this.durationSelector))},e}(),qe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=N(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(y);function Ue(e,t){return void 0===t&&(t=H),function(n){return n.lift(new Ke(e,t))}}var Ke=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new $e(e,this.dueTime,this.scheduler))},e}(),$e=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ge,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(v);function Ge(e){e.debouncedNext()}function Ze(e){return void 0===e&&(e=null),function(t){return t.lift(new Je(e))}}var Xe,Je=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Qe(e,this.defaultValue))},e}(),Qe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(v);function et(e){return e instanceof Date&&!isNaN(+e)}function tt(e,t){return new S(t?function(n){return t.schedule(nt,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function nt(e){var t=e.error;e.subscriber.error(t)}Xe||(Xe={});var it=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Te(this.value);case"E":return tt(this.error);case"C":return Se()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function rt(e,t){void 0===t&&(t=H);var n=et(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new ot(n,t))}}var ot=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.delay,this.scheduler))},e}(),at=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new st(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(it.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(it.createComplete()),this.unsubscribe()},t}(v),st=function(){return function(e,t){this.time=e,this.notification=t}}();function ut(e,t){return t?function(n){return new pt(n,t).lift(new ct(e))}:function(t){return t.lift(new ct(e))}}var ct=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.delayDurationSelector))},e}(),lt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=N(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(y),pt=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=n,i}return i.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new dt(e,this.source))},t}(S),dt=function(e){function t(t,n){var i=e.call(this)||this;return i.parent=t,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(v);function ht(){return function(e){return e.lift(new ft)}}var ft=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(v);function vt(e,t){return function(n){return n.lift(new gt(e,t))}}var gt=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new yt(e,this.keySelector,this.flushes))},e}(),yt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=n,r.values=new Set,i&&r.add(N(r,i)),r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(y);function _t(e,t){return function(n){return n.lift(new bt(e,t))}}var bt=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new wt(e,this.compare,this.keySelector))},e}(),wt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},t}(v);function Ct(e,t){return _t((function(n,i){return t?t(n[e],i[e]):n[e]===i[e]}))}function Dt(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Dt.prototype=Object.create(Error.prototype);var St=Dt;function kt(e,t){return function(n){return n.lift(new Tt(e,t))}}var Tt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.predicate,this.thisArg))},e}(),Et=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(v);function xt(e,t,n){return function(i){return i.lift(new It(e,t,n))}}var It=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Mt(e,this.nextOrObserver,this.error,this.complete))},e}(),Mt=function(e){function t(t,n,i,o){var a=e.call(this,t)||this;return a._tapNext=w,a._tapError=w,a._tapComplete=w,a._tapError=i||w,a._tapComplete=o||w,r(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||w,a._tapError=n.error||w,a._tapComplete=n.complete||w),a}return i.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(v);function Ot(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ot.prototype=Object.create(Error.prototype);var Vt=Ot,Rt=function(e){return void 0===e&&(e=Pt),xt({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Pt(){return new Vt}function Nt(e){return function(t){return 0===e?Se():t.lift(new At(e))}}var At=function(){function e(e){if(this.total=e,this.total<0)throw new St}return e.prototype.call=function(e,t){return t.subscribe(new jt(e,this.total))},e}(),jt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(v);function Ft(e,t){if(e<0)throw new St;var n=arguments.length>=2;return function(i){return i.pipe(kt((function(t,n){return n===e})),Nt(1),n?Ze(t):Rt((function(){return new St})))}}function Bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];W(n)?e.pop():n=null;var i=e.length;return Ae(t,1!==i||n?i>0?ve(e,n):Se(n):ke(e[0]))}}function Lt(e,t){return function(n){return n.lift(new zt(e,t,n))}}var zt=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Ht(e,this.predicate,this.thisArg,this.source))},e}(),Ht=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Yt(){return function(e){return e.lift(new Wt)}}var Wt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new qt(e))},e}(),qt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(N(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(y);function Ut(e,t){return t?function(n){return n.pipe(Ut((function(n,i){return we(e(n,i)).pipe(Ee((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Kt(e))}}var Kt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new $t(e,this.project))},e}(),$t=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(y);function Gt(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new Zt(e,t,n))}}var Zt=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new Xt(e,this.project,this.concurrent,this.scheduler))},e}(),Xt=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.__extends(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,i=e.value,r=e.index;t.subscribeToProjection(n,i,r)},t.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(e);try{var r=(0,this.project)(e,i);if(this.scheduler){var o={subscriber:this,result:r,value:e,index:i};this.destination.add(this.scheduler.schedule(t.dispatch,0,o))}else this.subscribeToProjection(r,e,i)}catch(e){n.error(e)}}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add(N(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(y);function Jt(e){return function(t){return t.lift(new Qt(e))}}var Qt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new en(e,this.callback))},e}(),en=function(e){function t(t,n){var i=e.call(this,t)||this;return i.add(new h(n)),i}return i.__extends(t,e),t}(v);function tn(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(e,n,!1,t))}}var nn=function(){function e(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}return e.prototype.call=function(e,t){return t.subscribe(new rn(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),rn=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=i,a.yieldIndex=r,a.thisArg=o,a.index=0,a}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(v);function on(e,t){return function(n){return n.lift(new nn(e,n,!0,t))}}function an(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?kt((function(t,n){return e(t,n,i)})):Re,Nt(1),n?Ze(t):Rt((function(){return new Vt})))}}function sn(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}sn.prototype=Object.create(Error.prototype);var un=sn,cn=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(h),ln=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.__extends(t,e),t}(v),pn=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.__extends(t,e),t.prototype[m]=function(){return new ln(this)},t.prototype.lift=function(e){var t=new dn(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new un;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new un;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new un;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new un;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new un;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new cn(this,e))},t.prototype.asObservable=function(){var e=new S;return e.source=this,e},t.create=function(e,t){return new dn(e,t)},t}(S),dn=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):h.EMPTY},t}(pn);function hn(e,t,n,i){return function(r){return r.lift(new fn(e,t,n,i))}}var fn=function(){function e(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return e.prototype.call=function(e,t){return t.subscribe(new mn(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),mn=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=r,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new pn,n.set(t,r);var o=new gn(t,r,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new gn(t,r))}catch(e){return void this.error(e)}this.add(a.subscribe(new vn(t,r,this)))}}r.closed||r.next(i)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(v),vn=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.key=t,r.group=n,r.parent=i,r}return i.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(v),gn=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.groupSubject=n,r.refCountSubscription=i,r}return i.__extends(t,e),t.prototype._subscribe=function(e){var t=new h,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new yn(n)),t.add(i.subscribe(e)),t},t}(S),yn=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return i.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(h);function _n(){return function(e){return e.lift(new bn)}}var bn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new wn(e))},e}(),wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype._next=function(e){},t}(v);function Cn(){return function(e){return e.lift(new Dn)}}var Dn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Sn(e))},e}(),Sn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function kn(e){return function(t){return 0===e?Se():t.lift(new Tn(e))}}var Tn=function(){function e(e){if(this.total=e,this.total<0)throw new St}return e.prototype.call=function(e,t){return t.subscribe(new En(e,this.total))},e}(),En=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()},t}(v);function xn(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?kt((function(t,n){return e(t,n,i)})):Re,kn(1),n?Ze(t):Rt((function(){return new Vt})))}}function In(e){return function(t){return t.lift(new Mn(e))}}var Mn=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new On(e,this.value))},e}(),On=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(v);function Vn(){return function(e){return e.lift(new Rn)}}var Rn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e))},e}(),Pn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(it.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(it.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(it.createComplete()),e.complete()},t}(v);function Nn(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new An(e,t,n))}}var An=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new jn(e,this.accumulator,this.seed,this.hasSeed))},e}(),jn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(v);function Fn(e,t){return arguments.length>=2?function(n){return C(Nn(e,t),kn(1),Ze(t))(n)}:function(t){return C(Nn((function(t,n,i){return e(t,n,i+1)})),kn(1))(t)}}function Bn(e){return Fn("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}function Ln(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,i=null,r=e[e.length-1];return W(r)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof r&&(n=e.pop()),null===i&&1===e.length&&e[0]instanceof S?e[0]:Pe(n)(ve(e,i))}function zn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Ln.apply(void 0,[t].concat(e)))}}function Hn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?Me((function(){return e}),t,n):("number"==typeof t&&(n=t),Me((function(){return e}),n))}function Yn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Wn(e,t,n))}}var Wn=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new qn(e,this.accumulator,this.seed,this.concurrent))},e}(),qn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(i,e,t)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(y);function Un(e){return Fn("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Kn(){return function(e){return e.lift(new $n(e))}}var $n=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new Gn(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r},e}(),Gn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(v),Zn=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h).add(this.source.subscribe(new Jn(this.getSubject(),this))),e.closed?(this._connection=null,e=h.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Kn()(this)},t}(S).prototype,Xn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Zn._subscribe},_isComplete:{value:Zn._isComplete,writable:!0},getSubject:{value:Zn.getSubject},connect:{value:Zn.connect},refCount:{value:Zn.refCount}},Jn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ln);function Qn(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new ei(i,t));var r=Object.create(n,Xn);return r.source=n,r.subjectFactory=i,r}}var ei=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r},e}();function ti(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ni(e,t))}}var ni=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ii(e,this.scheduler,this.delay))},e}(),ii=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return i.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new ri(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(it.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(it.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(it.createComplete()),this.unsubscribe()},t}(v),ri=function(){return function(e,t){this.notification=e,this.destination=t}}();function oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&c(e[0])&&(e=e[0]),function(t){return t.lift(new ai(e))}}var ai=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new si(e,this.nextSources))},e}(),si=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=n,i}return i.__extends(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new _(this,void 0,void 0);this.destination.add(t),N(this,e,void 0,void 0,t)}else this.destination.complete()},t}(y);function ui(){return function(e){return e.lift(new ci)}}var ci=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new li(e))},e}(),li=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(v);function pi(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function di(e,t){return function(n){return[kt(e,t)(n),kt(pi(e,t))(n)]}}function hi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Ee(fi(e,n))(t)}}function fi(e,t){return function(n){for(var i=n,r=0;r<t;r++){var o=i[e[r]];if(void 0===o)return;i=o}return i}}function mi(e){return e?Qn((function(){return new pn}),e):Qn(new pn)}var vi=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new un;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(pn);function gi(e){return function(t){return Qn(new vi(e))(t)}}var yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),h.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(pn);function _i(){return function(e){return Qn(new yi)(e)}}var bi=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(B),wi=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(z))(bi),Ci=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new Di(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new un;if(this.isStopped||this.hasError?t=h.EMPTY:(this.observers.push(e),t=new cn(this,e)),r&&e.add(e=new ii(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||wi).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(pn),Di=function(){return function(e,t){this.time=e,this.value=t}}();function Si(e,t,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new Ci(e,t,i);return function(e){return Qn((function(){return o}),r)(e)}}function ki(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!c(e[0]))return e[0];e=e[0]}return ve(e,void 0).lift(new Ti)}var Ti=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Ei(e))},e}(),Ei=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=N(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var a=this.subscriptions[o];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(t)},t}(y);function xi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&c(e[0])&&(e=e[0]),t.lift.call(ki.apply(void 0,[t].concat(e)))}}function Ii(e){return void 0===e&&(e=-1),function(t){return 0===e?Se():e<0?t.lift(new Mi(-1,t)):t.lift(new Mi(e-1,t))}}var Mi=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Oi(e,this.count,this.source))},e}(),Oi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Vi(e){return function(t){return t.lift(new Ri(e))}}var Ri=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Pi(e,this.notifier,t))},e}(),Pi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new pn;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=N(this,t)},t}(y);function Ni(e){return void 0===e&&(e=-1),function(t){return t.lift(new Ai(e,t))}}var Ai=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ji(e,this.count,this.source))},e}(),ji=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Fi(e){return function(t){return t.lift(new Bi(e,t))}}var Bi=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Li(e,this.notifier,this.source))},e}(),Li=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new pn;try{i=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}r=N(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(y);function zi(e){return function(t){return t.lift(new Hi(e))}}var Hi=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Yi(e),i=t.subscribe(n);return i.add(N(n,this.notifier)),i},e}(),Yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return i.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(y);function Wi(e,t){return void 0===t&&(t=H),function(n){return n.lift(new qi(e,t))}}var qi=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ui(e,this.period,this.scheduler))},e}(),Ui=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(Ki,n,{subscriber:r,period:n})),r}return i.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(v);function Ki(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function $i(e,t){return function(n){return n.lift(new Gi(e,t))}}var Gi=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Zi(e,this.compareTo,this.comparator))},e}(),Zi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new Xi(t,r))),r}return i.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),r=t.shift(),o=!1;try{o=n?n(i,r):i===r}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(v),Xi=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parent=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(v);function Ji(){return new pn}function Qi(){return function(e){return Kn()(Qn(Ji)(e))}}function er(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,p=!1;return function(e){c++,t&&!l||(l=!1,t=new Ci(r,a,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){p=!0,t.complete()}}));var i=t.subscribe(this);this.add((function(){c--,i.unsubscribe(),n&&!p&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(i))}}function tr(e){return function(t){return t.lift(new nr(e,t))}}var nr=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ir(e,this.predicate,this.source))},e}(),ir=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Vt)},t}(v);function rr(e){return function(t){return t.lift(new or(e))}}var or=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.total))},e}(),ar=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(v);function sr(e){return function(t){return t.lift(new ur(e))}}var ur=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new St}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new v(e)):t.subscribe(new cr(e,this._skipCount))},e}(),cr=function(e){function t(t,n){var i=e.call(this,t)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,r=this._ring,o=r[i];r[i]=e,this.destination.next(o)}},t}(v);function lr(e){return function(t){return t.lift(new pr(e))}}var pr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new dr(e,this.notifier))},e}(),dr=function(e){function t(t,n){var i=e.call(this,t)||this;i.hasValue=!1;var r=new _(i,void 0,void 0);return i.add(r),i.innerSubscription=r,N(i,n,void 0,void 0,r),i}return i.__extends(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(e,t,n,i,r){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(y);function hr(e){return function(t){return t.lift(new fr(e))}}var fr=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new mr(e,this.predicate))},e}(),mr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(v);function vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];W(n)?e.pop():n=null;var i=e.length;return Ae(1!==i||n?i>0?ve(e,n):Se(n):ke(e[0]),t)}}var gr=1,yr={};var _r=function(e){var t=gr++;return yr[t]=e,Promise.resolve().then((function(){return function(e){var t=yr[e];t&&t()}(t)})),t},br=function(e){delete yr[e]},wr=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=_r(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(br(n),t.scheduled=void 0)},t}(B),Cr=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(z))(wr),Dr=function(e){function t(t,n,i){void 0===n&&(n=0),void 0===i&&(i=Cr);var r=e.call(this)||this;return r.source=t,r.delayTime=n,r.scheduler=i,(!Y(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=Cr),r}return i.__extends(t,e),t.create=function(e,n,i){return void 0===n&&(n=0),void 0===i&&(i=Cr),new t(e,n,i)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,i=this.source;return this.scheduler.schedule(t.dispatch,n,{source:i,subscriber:e})},t}(S);function Sr(e,t){return void 0===t&&(t=0),function(n){return n.lift(new kr(e,t))}}var kr=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new Dr(t,this.delay,this.scheduler).subscribe(e)},e}();function Tr(e,t){return"function"==typeof t?function(n){return n.pipe(Tr((function(n,i){return we(e(n,i)).pipe(Ee((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Er(e))}}var Er=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new xr(e,this.project))},e}(),xr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new _(this,void 0,void 0);this.destination.add(r),this.innerSubscription=N(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(y);function Ir(){return Tr(Re)}function Mr(e,t){return t?Tr((function(){return e}),t):Tr((function(){return e}))}function Or(e){return function(t){return t.lift(new Vr(e))}}var Vr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Rr(e),i=N(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},e}(),Rr=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(y);function Pr(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new Nr(e,t))}}var Nr=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new Ar(e,this.predicate,this.inclusive))},e}(),Ar=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())},t}(v),jr={leading:!0,trailing:!1};function Fr(e,t){return void 0===t&&(t=jr),function(n){return n.lift(new Br(e,t.leading,t.trailing))}}var Br=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new Lr(e,this.durationSelector,this.leading,this.trailing))},e}(),Lr=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=N(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,i,r){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(y);function zr(e,t,n){return void 0===t&&(t=H),void 0===n&&(n=jr),function(i){return i.lift(new Hr(e,t,n.leading,n.trailing))}}var Hr=function(){function e(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}return e.prototype.call=function(e,t){return t.subscribe(new Yr(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Yr=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=i,a.leading=r,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return i.__extends(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Wr,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(v);function Wr(e){e.subscriber.clearThrottle()}function qr(e){return void 0===e&&(e=H),function(t){return n=function(){return t.pipe(Nn((function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}}),{current:e.now(),value:void 0,last:void 0}),Ee((function(e){var t=e.current,n=e.last,i=e.value;return new Ur(i,t-n)})))},new S((function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?we(t):Se()).subscribe(e)}));var n}}var Ur=function(){return function(e,t){this.value=e,this.interval=t}}();function Kr(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Kr.prototype=Object.create(Error.prototype);var $r=Kr;function Gr(e,t,n){return void 0===n&&(n=H),function(i){var r=et(e),o=r?+e-n.now():Math.abs(e);return i.lift(new Zr(o,r,t,n))}}var Zr=function(){function e(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new Xr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),Xr=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=r,a.scheduler=o,a.action=null,a.scheduleTimeout(),a}return i.__extends(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(N(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(y);function Jr(e,t){return void 0===t&&(t=H),Gr(e,tt(new $r),t)}function Qr(e){return void 0===e&&(e=H),Ee((function(t){return new eo(t,e.now())}))}var eo=function(){return function(e,t){this.value=e,this.timestamp=t}}();function to(e,t,n){return 0===n?[t]:(e.push(t),e)}function no(){return Fn(to,[])}function io(e){return function(t){return t.lift(new ro(e))}}var ro=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new oo(e),i=t.subscribe(n);return i.closed||n.add(N(n,this.windowBoundaries)),i},e}(),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new pn,t.next(n.window),n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new pn;t.next(n)},t}(y);function ao(e,t){return void 0===t&&(t=0),function(n){return n.lift(new so(e,t))}}var so=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new uo(e,this.windowSize,this.startWindowEvery))},e}(),uo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.destination=t,r.windowSize=n,r.startWindowEvery=i,r.windows=[new pn],r.count=0,t.next(r.windows[0]),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(e);var s=this.count-i+1;if(s>=0&&s%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){var u=new pn;r.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(v);function co(e){var t=H,n=null,i=Number.POSITIVE_INFINITY;return W(arguments[3])&&(t=arguments[3]),W(arguments[2])?t=arguments[2]:Y(arguments[2])&&(i=arguments[2]),W(arguments[1])?t=arguments[1]:Y(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new lo(e,n,i,t))}}var lo=function(){function e(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ho(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),po=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return i.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(pn),ho=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=i,a.maxWindowSize=r,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==i&&i>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:i,subscriber:a,scheduler:o};a.add(o.schedule(vo,n,u)),a.add(o.schedule(mo,i,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(fo,n,l))}return a}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var r=t[i];r.closed||(r.next(e),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new po;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(v);function fo(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function mo(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,r=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=i.schedule(vo,t,s),this.add(a.subscription),this.schedule(e,r)}function vo(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function go(e,t){return function(n){return n.lift(new yo(e,t))}}var yo=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new _o(e,this.openings,this.closingSelector))},e}(),_o=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=N(r,n,n)),r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,i=-1;++i<n;){var r=t[i];r.window.complete(),r.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,i,r){if(e===this.openings){var o=void 0;try{o=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var a=new pn,s=new h,u={window:a,subscription:s};this.contexts.push(u);var c=N(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,s.add(c)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,r=n.subscription;t.splice(e,1),i.complete(),r.unsubscribe()}},t}(y);function bo(e){return function(t){return t.lift(new wo(e))}}var wo=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Co(e,this.closingSelector))},e}(),Co=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=n,i.openWindow(),i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow(r)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,i=this.window=new pn;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=N(this,n))},t}(y);function Do(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var i=e;return t.lift(new So(i,n))}}var So=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new ko(e,this.observables,this.project))},e}(),ko=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.observables=n,r.project=i,r.toRespond=[];var o=n.length;r.values=new Array(o);for(var a=0;a<o;a++)r.toRespond.push(a);for(a=0;a<o;a++){var s=n[a];r.add(N(r,s,s,a))}return r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values[n]=t;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function To(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),ve(e,void 0).lift(new Eo(n))}var Eo=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new xo(e,this.resultSelector))},e}(),xo=function(e){function t(t,n,i){void 0===i&&(i=Object.create(null));var r=e.call(this,t)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.iterators;c(e)?t.push(new Mo(e)):"function"==typeof e[I]?t.push(new Io(e[I]())):t.push(new Oo(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,n));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){if("function"==typeof(a=e[i]).hasValue&&!a.hasValue())return}var r=!1,o=[];for(i=0;i<t;i++){var a,s=(a=e[i]).next();if(a.hasCompleted()&&(r=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v),Io=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),Mo=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[I]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Oo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i.__extends(t,e),t.prototype[I]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return N(this,this.observable,this,t)},t}(y);function Vo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(To.apply(void 0,[t].concat(e)))}}function Ro(e){return function(t){return t.lift(new Eo(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o,a,s=n(0),u=n(1),c=n(101),l=n(102),p=n(6),d=n(9),h=n(37);function f(e){return new l.ScrollerService(e)}t.SCROLLER_FACTORY_TOKEN=new u.InjectionToken("dateinputs-scroll-service-factory"),t.DEFAULT_SCROLLER_FACTORY=f,function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(a=t.ScrollDirection||(t.ScrollDirection={}));var m=((i={})[a.Forward]=function(e){return function(t){return t+e}},i[a.Backward]=function(e){return function(t){return t-e}},i),v=((r={})[a.Forward]=function(e){return function(t){return Math.min(t,e)}},r[a.Backward]=function(e){return function(t){return Math.max(t,e)}},r),g=((o={})[a.Forward]=function(e){return function(t){return t<e}},o[a.Backward]=function(e){return function(t){return t>e}},o),y=function(){function e(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new u.EventEmitter,this.pageChange=new u.EventEmitter,this.scrollChange=new u.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new d.Subject,this.scroller=e(this.dispatcher)}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},e.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.containerScrollSubscription=e.scroll$().pipe(h.map((function(e){return e.target}))).subscribe((function(t){e.dispatcher.next(t),e.emitActiveIndex()}))}))},e.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},e.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},e.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},e.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},e.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},e.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),r=i+this.rowHeightService.height(e);return i>=t&&r<=n},e.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},e.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},e.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular((function(){t.resolvedPromise.then((function(){t.scrollTo(t.rowHeightService.offset(e))}))}))},e.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},e.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n=this.rowHeightService.offset(e),i=this.getContainerScrollDirection(n),r=this.scrollRange(n,i),o=r.start,a=r.end;if(o!==a){var s=this.scrollStep(o,a),u=m[i](s),c=v[i](a),l=g[i](u(a));this.zone.runOutsideAngular((function(){t.animationSubscription=d.combineLatest(d.of(o),d.interval(0,d.animationFrameScheduler)).pipe(h.map((function(e){return e[0]})),h.scan(u),h.takeWhile(l),h.map(c)).subscribe((function(e){return t.scrollTo(e)}))}))}},e.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i,r,o,s=this.containerMaxScroll(),u=t===a.Backward?1:-1,c=(i=n,r=e,o=this.maxScrollDifference,Math.min(Math.abs(r-i),o)),l=Math.min(e,s);return{start:Math.min(Math.max(l+u*c,0),s),end:l}},e.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},e.prototype.scroll$=function(){return p.isDocumentAvailable()?d.fromEvent(this.container.nativeElement,"scroll"):d.EMPTY},e.prototype.initServices=function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe((function(t){t instanceof l.PageAction?e.pageChange.emit(t):e.scrollChange.emit(t)}))},e.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new c.RowHeightService(this.total,e,0)},e.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},e.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},e.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?a.Backward:a.Forward},s.__decorate([u.Input(),s.__metadata("design:type",String)],e.prototype,"direction",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"itemHeight",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"itemWidth",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"topOffset",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"bottomOffset",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"maxScrollDifference",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"scrollDuration",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"skip",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"take",void 0),s.__decorate([u.Input(),s.__metadata("design:type",Number)],e.prototype,"total",void 0),s.__decorate([u.Output(),s.__metadata("design:type",u.EventEmitter)],e.prototype,"activeIndexChange",void 0),s.__decorate([u.Output(),s.__metadata("design:type",u.EventEmitter)],e.prototype,"pageChange",void 0),s.__decorate([u.Output(),s.__metadata("design:type",u.EventEmitter)],e.prototype,"scrollChange",void 0),s.__decorate([u.HostBinding("class.k-flex"),u.HostBinding("class.k-content"),u.HostBinding("class.k-calendar-content"),u.HostBinding("class.k-scrollable"),s.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),s.__decorate([u.HostBinding("class.k-scrollable-horizontal"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=s.__decorate([u.Component({providers:[{provide:t.SCROLLER_FACTORY_TOKEN,useValue:f}],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 '}),s.__param(0,u.Inject(t.SCROLLER_FACTORY_TOKEN)),s.__metadata("design:paramtypes",[Object,u.ElementRef,u.Renderer2,u.NgZone])],e)}();t.VirtualizationComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(33),a=n(34),s=n(40),u=n(17),c=n(4),l=n(5),p=n(18),d=n(19),h=n(2),f=n(6),m=n(104),v=n(3),g=n(16),y=n(21),_=n(7),b=/year|month|<day>/,w=/hour|minute|second|millisecond/,C=/d|M|H|h|m|s/,D=function(e){return e.replace(/^0*/,"")},S=function(){this.symbols=""},k=function(){function e(e,t,n,i,r){if(void 0===r&&(r=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=r,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=h.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"},p.validatePackage(d.packageMetadata),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=h.cloneDate(i);else{this.value=h.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,a=0;a<o.length;a++)this.setExisting(o[a],!1)}}return e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some((function(e){return"yy"===e.pattern}))},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return h.cloneDate(this.value)},e.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=h.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=h.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.shouldNormalizeCentury()&&(n=this.normalizeCentury(n)),n.getFullYear()>0&&(this.setExisting(e,!0),this.value=n)},e.prototype.parsePart=function(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};for(var i=this.intl.formatDate(this.value,this.format),r=this.dateFormatString(this.value,this.format),o=r.symbols,a=!1,s="",u="",c="",l=0;l<i.length;l++)o[l]===e?(u+=this.getExisting(e)?i[l]:"0",a=!0):a?c+=i[l]:s+=i[l];var p=u.length-3,d=null,f=this.matchMonth(t),m=this.matchDayPeriod(t,e),g="0"===t,y=(this.leadingZero||{})[e]||0;g?0!==parseInt(n?t:u+t,10)||this.isAbbrMonth(r.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(l=Math.max(0,p);l<=u.length;l++){var _=n?t:u.substring(l)+t;if("S"===e&&n)_=v.msPaddingFromFormat(o)+_;var b=parseInt(_,10);if(!(d=this.intl.parseDate(s+_+c,this.format))&&!isNaN(b)&&!isNaN(parseInt(t,10))){if("M"===e&&!f){var w=b-1;w>-1&&w<12&&((d=h.cloneDate(this.value)).setMonth(w),d.getMonth()!==w&&(d=h.lastDayOfMonth(h.addMonths(d,-1))))}"y"===e&&(d=h.createDate(parseInt(_,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=h.lastDayOfMonth(h.addMonths(d,-1))))}if(d){var C=this.partPattern(r.partMap,e).pattern,S=this.intl.parseDate(""+s+this.peek(_,C)+c,this.format),k=this.patternLength(C)||C.length,T=y+(D(_)||t).length>=k,E=null===S||T;return this.shouldNormalizeCentury()&&(d=this.normalizeCentury(d)),this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:E}}}return f&&(d=this.intl.parseDate(s+f+c,this.format))?(this.value=d,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):m&&(d=this.intl.parseDate(s+m+c,this.format))?(this.value=d,{value:this.value,switchToNext:!0}):(g&&this.setExisting(e,!1),{value:null,switchToNext:!1})},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},e.prototype.setLeadingZero=function(e){this.leadingZero=e},e.prototype.normalizeCentury=function(e){if(!_.isPresent(e))return e;var t=v.cropTwoDigitYear(e),n=this.getNormalizedCenturyBase(t);return v.setYears(e,n+t)},e.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.peek=function(e,t){var n=D(e)+"0";return function(e){return new Array(Math.max(e,0)).fill("0").join("")}(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.matchDayPeriod=function(e,t){var n=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.allDayPeriods=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("dayperiod"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.patternLength=function(e){return"y"===e[0]?4:C.test(e)?2:0},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],r=[],o=0;o<n.length;o++)for(var a=this.intl.formatDate(e,{pattern:n[o].pattern}).length;a>0;)i.push(this.symbols[n[o].pattern[0]]||"_"),r.push(n[o]),a--;var s=new S;return s.symbols=i.join(""),s.partMap=r,s},e.prototype.merge=function(e,t){for(var n="",i="",r=t.symbols,o=r.length-1;o>=0;o--)if(-1===this.knownParts.indexOf(r[o])||this.getExisting(r[o]))n=e[o]+n,i=r[o]+i;else{for(var a=r[o];o>=0&&a===r[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[a]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=r[o]+i}return[n,i]},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},e}(),T=function(){function e(e,t,n,i,o,a,s,u){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=o,this.injector=a,this.localization=s,this.pickerService=u,this.focusableId="k-"+f.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new r.EventEmitter,this.valueUpdate=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.arrow=m.Arrow,this.arrowDirection=m.Arrow.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=v.noop,this.maxValidator=v.noop,this.incompleteValidator=v.noop,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=v.noop,this.onControlTouched=v.noop,this.onValidatorChange=v.noop,this._size="medium",this._rounded="medium",this._fillMode="solid",this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!v.isInRange(e,this.min,this.max)||(this._value=h.cloneDate(e),this.valueUpdate.emit(h.cloneDate(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode)),e&&(this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("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:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!_.isPresent(this.pickerService)){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},e.prototype.containsElement=function(e){var t=this;return Boolean(y.closest(e,(function(e){return e===t.wrapper.nativeElement})))},e.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?o.minValidator(this.min):v.noop,this.maxValidator=this.rangeValidation?a.maxValidator(this.max):v.noop,this.incompleteValidator=this.incompleteDateValidation?s.incompleteDateValidator():v.noop,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&h.isEqual(this.value,this.kendoDate.getDateObject());(e.format||!t||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(u.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=h.cloneDate(e),this.updateElementValue(this.isActive)},e.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=h.cloneDate(e),this.notify())},e.prototype.notify=function(){var e=this;this.ngZone.run((function(){e.onControlChange(h.cloneDate(e.value)),e.valueChange.emit(h.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=m.Arrow.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t=this.caret(),n=this.currentFormat[t[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;if("S"===n&&!this.steps.millisecond){var r=v.millisecondDigitsInFormat(this.inputFormat);i=v.millisecondStepFor(r)}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(e>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var r=i;r>=0&&r<this.currentFormat.length&&this.currentFormat[r]===this.currentFormat[i];)r+=e;return i>r&&(r+1!==t[0]||i+1!==t[1])?(this.caret(r+1,i+1),this.resetSegmentValue=!0,!0):i<r&&(i!==t[0]||r!==t[1])&&(this.caret(i,r),this.resetSegmentValue=!0,!0)},e.prototype.selectDateSegment=function(e){for(var t=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t&&(t=i));t<0&&(t=0),this.caret(0,0),this.caret(t,n)},e.prototype.handleClick=function(){if(this.hasMousedown=!1,this.isActive){var e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=_.isPresent(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,n=!e&&t?0:this.caret()[0];this.selectNearestSegment(n)}},e.prototype.handleDragAndDrop=function(e){e.preventDefault()},e.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},e.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,f.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(),f.hasObservers(this.onBlur)||_.requiresZoneOnBlur(this.ngControl)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):this.emitBlur(e)},e.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,n=new k(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return n.setLeadingZero(this.isActive?t:null),n},e.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){return e[t.pattern[0]]=t.type,e}),{})},e.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),r=!this.isActive&&_.isPresent(this.placeholder)&&!this.kendoDate.hasValue(),o=this.inputElement;this.currentFormat=i[1],this.currentValue=r?"":i[0],this.renderer.setProperty(o,"value",this.currentValue),o.placeholder!==this.placeholder&&this.renderer.setProperty(o,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},e.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],r=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==r.selectionStart&&(n&&(f.isDocumentAvailable()&&document.activeElement!==r&&r.focus(),r.setSelectionRange(e,t)),i=[r.selectionStart,r.selectionEnd])}catch(e){i=[]}return i}},e.prototype.selectNearestSegment=function(e){for(var t=e,n=e-1;t<this.currentFormat.length||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},e.prototype.verifyRange=function(){if(r.isDevMode()&&!v.isValidRange(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(r.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=v.dateInRange(e,this.min,this.max);this.autoCorrect&&!h.isEqual(e,t)&&(this.kendoDate=this.getKendoDate(t))},e.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){var n=e.date,i=e.time;return{date:n||b.test(t.type),time:i||w.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;_.isPresent(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var t=+e!=+this.value;this.writeValue(e),t&&this.notify()},e.prototype.bindEvents=function(){var e=this.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((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},e.prototype.handlePaste=function(){this.paste=!0},e.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==f.Keys.Tab)if(e.keyCode!==f.Keys.Backspace){switch(e.keyCode){case f.Keys.ArrowDown:this.modifyDateSegmentValue(-1);break;case f.Keys.ArrowUp:this.modifyDateSegmentValue(1);break;case f.Keys.ArrowRight:this.switchDateSegment(1);break;case f.Keys.ArrowLeft:this.switchDateSegment(-1);break;case f.Keys.Home:this.selectNearestSegment(0);break;case f.Keys.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}else this.backspace=!0;else this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault()},e.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=v.approximateStringMatching(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 r=this.kendoDate.getDateObject();this.value&&r&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(v.setTime(this.value,r)))}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&&(_.isPresent(this.ngControl)&&!_.isPresent(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))):_.isPresent(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},e.prototype.setSpinnerFill=function(e,t,n){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(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,v.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,v.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,v.getFillModeClass("input",this.fillMode)),this.spinners&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"steps",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"hasPopup",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueUpdate",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.ViewChild("dateInput",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"dateInput",void 0),i.__decorate([r.HostBinding("class.k-input"),r.HostBinding("class.k-dateinput"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ViewChild("spinup",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"spinup",void 0),i.__decorate([r.ViewChild("spindown",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"spindown",void 0),e=t=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:u.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:c.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:f.KendoInput,useExisting:r.forwardRef((function(){return t}))},c.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-arrow-n"></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-arrow-s"></span>\n </button>\n </span>\n '}),i.__param(7,r.Optional()),i.__metadata("design:paramtypes",[r.ChangeDetectorRef,l.IntlService,r.Renderer2,r.ElementRef,r.NgZone,r.Injector,c.LocalizationService,g.PickerService])],e)}();t.DateInputComponent=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.incompleteDateValidator=function(){return function(e,t){return!i.isPresent(e.value)&&t?{incompleteDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_PART={dayperiod:"dayperiod",hour:"hour",millisecond:"millisecond",minute:"minute",second:"second"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(5),s=n(73),u=n(43),c=n(44),l=n(57),p=n(61),d=n(62),h=n(35),f=n(46),m=n(47),v=n(48),g=n(49),y=n(50),_=n(76),b=n(78),w=n(79),C=n(6),D=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[l.CalendarComponent,p.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,d.ViewListComponent],exports:[l.CalendarComponent,p.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,d.ViewListComponent,s.CalendarCommonModule,c.TemplatesModule],imports:[o.CommonModule,s.CalendarCommonModule,u.MultiViewCalendarModule,a.IntlModule,c.TemplatesModule,w.VirtualizationModule,C.EventsModule,C.ResizeSensorModule],providers:[h.CalendarDOMService,f.CenturyViewService,m.DecadeViewService,v.MonthViewService,g.YearViewService,y.WeekNamesService]})],e)}();t.CalendarModule=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(5),s=n(13),u=n(6),c=n(73),l=n(44),p=n(58),d=n(25),h=n(74),f=n(108),m=n(51),v=n(46),g=n(47),y=n(48),_=n(49),b=n(50),w=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[p.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,f.MultiViewCalendarCustomMessagesComponent,d.MultiViewCalendarComponent],exports:[p.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,f.MultiViewCalendarCustomMessagesComponent,d.MultiViewCalendarComponent,c.CalendarCommonModule,l.TemplatesModule],imports:[o.CommonModule,c.CalendarCommonModule,a.IntlModule,l.TemplatesModule,s.PopupModule,u.EventsModule],providers:[m.NavigationService,v.CenturyViewService,g.DecadeViewService,y.MonthViewService,_.YearViewService,b.WeekNamesService]})],e)}();t.MultiViewCalendarModule=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(26),a=n(27),s=n(28),u=n(29),c=n(30),l=n(31),p=n(32),d=n(52),h=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.CellTemplateDirective,a.MonthCellTemplateDirective,s.YearCellTemplateDirective,u.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,l.WeekNumberCellTemplateDirective,p.HeaderTitleTemplateDirective,d.NavigationItemTemplateDirective],exports:[o.CellTemplateDirective,a.MonthCellTemplateDirective,s.YearCellTemplateDirective,u.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,l.WeekNumberCellTemplateDirective,p.HeaderTitleTemplateDirective,d.NavigationItemTemplateDirective]})],e)}();t.TemplatesModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"accept",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"acceptLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"cancel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"cancelLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"now",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"nowLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),t}(n(4).ComponentMessages);t.TimePickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(15),u=n(12),c=n(3),l=n(7),p=[[]],d=((i={})[s.Action.Left]=function(e){return a.addDecades(e,-1)},i[s.Action.Up]=function(e){return a.addDecades(e,-5)},i[s.Action.Right]=function(e){return a.addDecades(e,1)},i[s.Action.Down]=function(e){return a.addDecades(e,5)},i[s.Action.PrevView]=function(e){return a.addCenturies(e,-1)},i[s.Action.NextView]=function(e){return a.addCenturies(e,1)},i[s.Action.FirstInView]=function(e){return a.firstDecadeOfCentury(e)},i[s.Action.LastInView]=function(e){return a.lastDecadeOfCentury(e)},i),h=function(){function e(){this.dateRange=function(e,t){if(!l.isPresent(e)||!l.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=a.addDecades(i,1);return n}}return e.prototype.addToDate=function(e,t){return a.addCenturies(e,t)},e.prototype.datesList=function(e,t){return c.range(0,t).map((function(t){return a.addCenturies(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,r=e.isActiveView,o=e.max,s=e.min,l=e.selectedDates,d=e.selectionRange,h=void 0===d?u.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return p;var m=c.range(0,4),v=a.firstDecadeOfCentury(f),g=a.lastDecadeOfCentury(f),y=c.getToday();return c.range(0,3).map((function(e){var u=a.addDecades(v,4*e);return m.map((function(e){var p=t.normalize(a.addDecades(u,e),s,o),d=p.getFullYear()>g.getFullYear();if(!t.isInRange(p,s,o)||d)return null;var f=t.isEqual(p,h.start),m=t.isEqual(p,h.end),_=!f&&!m&&c.isInSelectionRange(p,h);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:r&&l.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:_,isRangeEnd:m,isRangeSplitEnd:_&&t.isEqual(p,g),isRangeSplitStart:_&&t.isEqual(p,v),isToday:t.isEqual(p,y),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&a.firstYearOfDecade(e).getFullYear()===a.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=a.firstYearOfDecade(e).getFullYear(),r=!t||a.firstYearOfDecade(t).getFullYear()<=i,o=!n||i<=a.firstYearOfDecade(n).getFullYear();return r&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=a.firstYearOfDecade(a.firstDecadeOfCentury(e));return a.createDate(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=a.lastDecadeOfCentury(e),n=a.lastYearOfDecade(t),i=a.lastMonthOfYear(n);return a.lastDayOfMonth(i)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=d[t];return n?n(e):e},e.prototype.cellTitle=function(e){return a.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?a.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?a.firstDecadeOfCentury(e).getFullYear()+" - "+a.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return a.durationInCenturies(t,e)},e.prototype.total=function(e,t){return a.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?a.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var r=n-i;return a.addCenturies(e,-1*r)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?a.cloneDate(t):e>n&&this.isEqual(e,n)?a.cloneDate(n):e},e=r.__decorate([o.Injectable()],e)}();t.CenturyViewService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(15),u=n(12),c=n(3),l=n(7),p=[[]],d=((i={})[s.Action.Left]=function(e){return a.addYears(e,-1)},i[s.Action.Up]=function(e){return a.addYears(e,-5)},i[s.Action.Right]=function(e){return a.addYears(e,1)},i[s.Action.Down]=function(e){return a.addYears(e,5)},i[s.Action.PrevView]=function(e){return a.addDecades(e,-1)},i[s.Action.NextView]=function(e){return a.addDecades(e,1)},i[s.Action.FirstInView]=function(e){return a.firstYearOfDecade(e)},i[s.Action.LastInView]=function(e){return a.lastYearOfDecade(e)},i),h=function(){function e(){this.dateRange=function(e,t){if(!l.isPresent(e)||!l.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=a.addYears(i,1);return n}}return e.prototype.addToDate=function(e,t){return a.addDecades(e,t)},e.prototype.datesList=function(e,t){return c.range(0,t).map((function(t){return a.addDecades(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,r=e.isActiveView,o=e.max,s=e.min,l=e.selectedDates,d=e.selectionRange,h=void 0===d?u.EMPTY_SELECTIONRANGE:d,f=e.viewDate;if(!f)return p;var m=c.range(0,4),v=a.firstYearOfDecade(f),g=a.lastYearOfDecade(f),y=c.getToday();return c.range(0,3).map((function(e){var u=a.addYears(v,4*e);return m.map((function(e){var p=t.normalize(a.addYears(u,e),s,o),d=p.getFullYear()>g.getFullYear();if(!t.isInRange(p,s,o)||d)return null;var f=t.isEqual(p,h.start),m=t.isEqual(p,h.end),_=!f&&!m&&c.isInSelectionRange(p,h);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:r&&l.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:_,isRangeEnd:m,isRangeSplitEnd:_&&t.isEqual(p,g),isRangeSplitStart:_&&t.isEqual(p,v),isToday:t.isEqual(p,y),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),r=!t||t.getFullYear()<=i,o=!n||i<=n.getFullYear();return r&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=a.firstYearOfDecade(e);return a.createDate(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=a.lastYearOfDecade(e),n=a.lastMonthOfYear(t);return a.lastDayOfMonth(n)},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.move=function(e,t){var n=d[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?a.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?a.firstYearOfDecade(e).getFullYear()+" - "+a.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return a.durationInDecades(t,e)},e.prototype.total=function(e,t){return a.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var r=n-i;return a.addDecades(e,-1*r)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?a.cloneDate(t):e>n&&this.isEqual(e,n)?a.cloneDate(n):e},e=r.__decorate([o.Injectable()],e)}();t.DecadeViewService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(5),s=n(2),u=n(15),c=n(12),l=n(3),p=n(7),d=[[]],h=((i={})[u.Action.Left]=function(e){return s.addDays(e,-1)},i[u.Action.Up]=function(e){return s.addWeeks(e,-1)},i[u.Action.Right]=function(e){return s.addDays(e,1)},i[u.Action.Down]=function(e){return s.addWeeks(e,1)},i[u.Action.PrevView]=function(e){return s.addMonths(e,-1)},i[u.Action.NextView]=function(e){return s.addMonths(e,1)},i[u.Action.FirstInView]=function(e){return s.firstDayOfMonth(e)},i[u.Action.LastInView]=function(e){return s.lastDayOfMonth(e)},i),f=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!p.isPresent(e)||!p.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=s.addDays(i,1);return n}}return e.prototype.addToDate=function(e,t){return s.addMonths(e,t)},e.prototype.datesList=function(e,t){return l.range(0,t).map((function(t){return s.addMonths(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,r=e.isActiveView,o=e.max,a=e.min,u=e.selectedDates,p=e.selectionRange,h=void 0===p?c.EMPTY_SELECTIONRANGE:p,f=e.viewDate,m=e.isDateDisabled,v=void 0===m?function(){return!1}:m;if(!f)return d;var g=s.firstDayOfMonth(f),y=s.getDate(g),_=s.lastDayOfMonth(f),b=s.getDate(_),w=s.dayOfWeek(g,this._intlService.firstDay(),-1),C=l.range(0,7),D=l.getToday();return l.range(0,6).map((function(e){var c=s.addDays(w,7*e);return C.map((function(e){var p=t.normalize(s.addDays(c,e),a,o),d=s.getDate(p),f=d<y||d>b;if(p<a||p>o)return null;var m=t.isEqual(p,h.start),w=t.isEqual(p,h.end),C=!m&&!w&&l.isInSelectionRange(p,h);return{formattedValue:t.value(p),id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:r&&u.some((function(e){return t.isEqual(p,e)})),isWeekend:t.isWeekend(p),isRangeStart:m,isRangeMid:C,isRangeEnd:w,isRangeSplitStart:C&&t.isEqual(p,g),isRangeSplitEnd:C&&t.isEqual(p,_),isToday:t.isEqual(p,D),title:t.cellTitle(p),value:p,isDisabled:v(p),isOtherMonth:f}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&s.getDate(e).getTime()===s.getDate(t).getTime()},e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(s.addMonths(t[t.length-1],1));return n<=e&&e<i},e.prototype.isInRange=function(e,t,n){var i=s.getDate(e),r=!t||s.getDate(t)<=i,o=!n||i<=s.getDate(n);return r&&o},e.prototype.beginningOfPeriod=function(e){return e?s.createDate(e.getFullYear(),e.getMonth(),1):e},e.prototype.lastDayOfPeriod=function(e){return s.lastDayOfMonth(e)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=h[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return void 0===e&&(e={}),7+(e.prependCell?1:0)},e.prototype.skip=function(e,t){return s.durationInMonths(t,e)},e.prototype.total=function(e,t){return s.durationInMonths(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var r=n-i;return s.addMonths(e,-1*r)}return e},e.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,i=t.end,r=e.getDay();return i<n?r<=i||n<=r:n<=r&&r<=i},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?s.cloneDate(t):e>n&&this.isEqual(e,n)?s.cloneDate(n):e},e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[a.IntlService])],e)}();t.MonthViewService=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(5),s=n(2),u=n(15),c=n(12),l=n(3),p=n(7),d=[[]],h=((i={})[u.Action.Left]=function(e){return s.addMonths(e,-1)},i[u.Action.Up]=function(e){return s.addMonths(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},i[u.Action.Right]=function(e){return s.addMonths(e,1)},i[u.Action.Down]=function(e){return s.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},i[u.Action.PrevView]=function(e){return s.addYears(e,-1)},i[u.Action.NextView]=function(e){return s.addYears(e,1)},i[u.Action.FirstInView]=function(e){return s.firstMonthOfYear(e)},i[u.Action.LastInView]=function(e){return s.lastMonthOfYear(e)},i),f=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!p.isPresent(e)||!p.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=s.addMonths(i,1);return n}}return e.prototype.addToDate=function(e,t){return s.addYears(e,t)},e.prototype.datesList=function(e,t){return l.range(0,t).map((function(t){return s.addYears(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,r=e.isActiveView,o=e.max,a=e.min,u=e.selectedDates,p=e.selectionRange,h=void 0===p?c.EMPTY_SELECTIONRANGE:p,f=e.viewDate;if(!f)return d;var m=this.abbrMonthNames(),v=s.firstMonthOfYear(f),g=s.lastMonthOfYear(f),y=v.getFullYear(),_=l.range(0,4),b=l.getToday();return l.range(0,3).map((function(e){var c=s.addMonths(v,4*e);return _.map((function(e){var p=t.normalize(s.addMonths(c,e),a,o),d=y<p.getFullYear();if(!t.isInRange(p,a,o)||d)return null;var f=t.isEqual(p,h.start),_=t.isEqual(p,h.end),w=!f&&!_&&l.isInSelectionRange(p,h);return{formattedValue:m[p.getMonth()],id:""+n+p.getTime(),isFocused:t.isEqual(p,i),isSelected:r&&u.some((function(e){return t.isEqual(p,e)})),isWeekend:!1,isRangeStart:f,isRangeMid:w,isRangeEnd:_,isRangeSplitEnd:w&&t.isEqual(p,g),isRangeSplitStart:w&&t.isEqual(p,v),isToday:t.isEqual(p,b),title:t.cellTitle(p),value:p}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=s.createDate(e.getFullYear(),e.getMonth(),1),r=!t||s.createDate(t.getFullYear(),t.getMonth(),1)<=i,o=!n||i<=s.createDate(n.getFullYear(),n.getMonth(),1);return r&&o},e.prototype.beginningOfPeriod=function(e){return e?s.createDate(e.getFullYear(),0,1):e},e.prototype.lastDayOfPeriod=function(e){var t=s.lastMonthOfYear(e);return s.lastDayOfMonth(t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=h[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return s.durationInYears(t,e)},e.prototype.total=function(e,t){return s.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var r=n-i;return s.addYears(e,-1*r)}return e},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?s.cloneDate(t):e>n&&this.isEqual(e,n)?s.cloneDate(n):e},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[a.IntlService])],e)}();t.YearViewService=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(3),s=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=a.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],e)}();t.WeekNamesService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(15),a=n(11),s={33:o.Action.PrevView,34:o.Action.NextView,35:o.Action.LastInView,36:o.Action.FirstInView,37:o.Action.Left,38:o.Action.Up,39:o.Action.Right,40:o.Action.Down,"meta+38":o.Action.UpperView,"meta+40":o.Action.LowerView},u=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return s[t]},e.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===o.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===o.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[a.BusViewService])],e)}();t.NavigationService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoCalendarNavigationItemTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.NavigationItemTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(13),s=n(68),u=n(23),c=n(25),l=n(36),p=n(6),d=n(9),h=n(37),f=n(3),m=n(7),v=function(){function e(e,t,n,i,o){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=o,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.cancel=new r.EventEmitter,this.popupUID=p.guid(),this.calendarSubscriptions=new d.Subscription,this.popupSubscriptions=new d.Subscription,this.resolvedPromise=Promise.resolve()}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){if(this._show!==e){var t=new l.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},e.prototype.ngAfterViewInit=function(){var e=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),f.isWindowAvailable()&&this.zone.runOutsideAngular((function(){return e.windowBlurSubscription=d.fromEvent(window,"blur").subscribe(e.handleWindowBlur.bind(e))}))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.calendarSubscriptions.unsubscribe(),this.activateSubscription&&this.activateSubscription.unsubscribe(),this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe()},e.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular((function(){e.activateSubscription=d.merge(e.contentCalendar.changes,e.viewCalendar.changes).pipe(h.filter((function(e){return e&&e.first})),h.map((function(e){return e.first}))).subscribe((function(e){return setTimeout((function(){return e.focus()}))}))})))},e.prototype.focus=function(){this.calendar&&this.calendar.focus()},e.prototype.hasActiveContent=function(){return!(!p.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},e.prototype.toggle=function(e){var t=this;this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},e.prototype.handleWindowBlur=function(){var e=this;this.show&&(p.hasObservers(this.close)?this.zone.run((function(){return e.show=!1})):this.show=!1)},e.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},e.prototype.handleKeydown=function(e){var t=this,n=e.altKey,i=e.keyCode;(i===p.Keys.Escape||n&&i===p.Keys.ArrowUp)&&this.zone.run((function(){return t.cancelPopup()}))},e.prototype.subscribeFocusBlur=function(e){var t=this;if(this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e){var n=e.element.nativeElement;this.blurSubscription=d.fromEvent(n,"blur").subscribe((function(){return t.onBlur.emit()})),this.focusSubscription=d.fromEvent(n,"focus").subscribe((function(){return t.onFocus.emit()}))}},e.prototype.addPopupSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];m.isPresent(this.popupSubscriptions)||(this.popupSubscriptions=new d.Subscription),t.map((function(t){return e.popupSubscriptions.add(t)}))},Object.defineProperty(e.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype._toggle=function(e){var t=this;if(this._show=e,this.popupRef&&this.destroyPopup(),this._show){var n=this.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:n},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:n},positionMode:"absolute"});var i=this.popupRef,r=i.popupElement,o=i.popupAnchorViewportLeave;r.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular((function(){return d.fromEvent(r,"keydown").subscribe(t.handleKeydown.bind(t))})),d.fromEvent(r,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),o.subscribe((function(){return t.cancelPopup()})))}},e.prototype.destroyPopup=function(){m.isPresent(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),m.isPresent(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!1}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("defaultTemplate",{static:!1}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"defaultTemplate",void 0),i.__decorate([r.ContentChild(s.DateRangePopupTemplateDirective,{static:!1}),i.__metadata("design:type",s.DateRangePopupTemplateDirective)],e.prototype,"contentTemplate",void 0),i.__decorate([r.ViewChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"viewCalendar",void 0),i.__decorate([r.ContentChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"contentCalendar",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.ElementRef)],e.prototype,"anchor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"appendTo",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cancel",void 0),e=i.__decorate([r.Component({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),i.__param(4,r.Optional()),i.__param(4,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[a.PopupService,u.DateRangeService,r.ChangeDetectorRef,r.NgZone,Boolean])],e)}();t.DateRangePopupComponent=v},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(5),s=n(13),u=n(89),c=n(65),l=n(110),p=n(79),d=n(56),h=n(90),f=n(91),m=n(92),v=n(93),g=n(94),y=n(24),_=n(95),b=n(112),w=n(96),C=n(113),D=n(54),S=n(22),k=n(6),T=[_.TimePickerLocalizedMessagesDirective,u.TimeListComponent,b.TimePickerCustomMessagesComponent,c.TimePickerComponent,w.TimeSelectorLocalizedMessagesDirective,C.TimeSelectorCustomMessagesComponent,l.TimeSelectorComponent],E=[y.DateInputModule,a.IntlModule,s.PopupModule,p.VirtualizationModule,k.EventsModule],x=[d.TimePickerDOMService,h.HoursService,f.MinutesService,m.SecondsService,v.MillisecondsService,g.DayPeriodService,{provide:S.TOUCH_ENABLED,useValue:D.touchEnabled}],I=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[T],exports:[T],imports:[o.CommonModule].concat(E),providers:x})],e)}();t.TimePickerModule=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(3),s=a.domContainerFactory("div"),u=a.domContainerFactory("ul"),c=a.domContainerFactory("li"),l=a.domContainerFactory("span"),p=o.isDocumentAvailable()?s([l("hour","k-title k-timeselector-title"),s([s([u([c("<span>02</span>","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,d=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(o.isDocumentAvailable()){var t=e&&e.querySelector(".k-time-list-container")||document.body,n=t.appendChild(p);this.timeListHeight=n.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=n.querySelector("li").getBoundingClientRect().height,t.removeChild(n)}},e.prototype.isActive=function(e){return!(!o.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},e=i.__decorate([r.Injectable()],e)}();t.TimePickerDOMService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(17),a=n(4),s=n(2),u=n(6),c=n(18),l=n(19),p=n(25),d=n(61),h=n(62),f=n(35),m=n(11),v=n(51),g=n(20),y=n(60),_=n(103),b=n(26),w=n(27),C=n(28),D=n(29),S=n(30),k=n(31),T=n(32),E=n(52),x=n(16),I=n(10),M=n(33),O=n(34),V=n(8),R=n(3),P=n(21),N=n(7),A=n(9),j="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",F=function(e){return e?e.virtualization:null};t.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return B}))},t.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return B}))},t.KENDO_INPUT_PROVIDER={provide:u.KendoInput,useExisting:r.forwardRef((function(){return B}))};var B=function(){function e(e,t,n,i,o,a,s,p,d,h,f,m,v){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=o,this.cdr=a,this.ngZone=s,this.injector=p,this.scrollSyncService=d,this.disabledDatesService=h,this.localization=f,this.selectionService=m,this.pickerService=v,this.id=u.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=I.CalendarViewEnum[I.CalendarViewEnum.month],this.bottomView=I.CalendarViewEnum[I.CalendarViewEnum.month],this.topView=I.CalendarViewEnum[I.CalendarViewEnum.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new r.EventEmitter,this.navigate=new r.EventEmitter,this.activeViewDateChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.isActive=!1,this.cellUID=u.guid(),this.selectedDates=[],this._min=new Date(V.MIN_DATE),this._max=new Date(V.MAX_DATE),this._focusedDate=R.getToday(),this.onControlChange=R.noop,this.onControlTouched=R.noop,this.onValidatorChange=R.noop,this.minValidateFn=R.noop,this.maxValidateFn=R.noop,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,c.validatePackage(l.packageMetadata),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!s.isEqual(this._focusedDate,e)){var t=this.bus.service(this.activeViewEnum),n=t.lastDayOfPeriod(this.activeViewDate);t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)}this._focusedDate=e||R.getToday(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(V.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(V.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return N.isPresent(e)})).map((function(e){return s.cloneDate(e)})):s.cloneDate(e);var t=[].concat(e).filter((function(e){return N.isPresent(e)})).map((function(e){return s.cloneDate(e)}));if(!R.areDatesEqual(t,this.selectedDates)){var n=R.last(t);this.rangePivot=s.cloneDate(n),this.focusedDate=s.cloneDate(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-"+this.type),this.renderer.addClass(this.element.nativeElement,"k-calendar-"+e),this._type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=I.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return I.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return I.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.viewChangeSubscription=this.bus.viewChanged.subscribe((function(t){var n=t.view;return e.handleActiveViewChange(I.CalendarViewEnum[n])})),this.control=this.injector.get(o.NgControl,null),this.element&&this.ngZone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),R.hasExistingValue(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=R.dateInRange(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?M.minValidator(this.min):R.noop,this.maxValidateFn=this.rangeValidation?O.maxValidator(this.max):R.noop,this.onValidatorChange())},e.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},e.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(F(this.navigationView),F(this.monthView)))},e.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},e.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},e.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;N.isPresent(e)&&e.focus()},e.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;N.isPresent(e)&&e.blur()},e.prototype.containsElement=function(e){var t=this;return Boolean(P.closest(e,(function(e){return e===t.element.nativeElement})))},e.prototype.handleNavigation=function(e){if(!this.disabled){var t=e?new Date(s.cloneDate(e).setDate(1)):this.focusedDate;this.focusedDate=R.dateInRange(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;r.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=A.from(this.resolvedPromise).subscribe((function(){e.detectChanges()})))},e.prototype.handleMultiViewCalendarValueChange=function(e,t){var n=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:n,focusedDate:t})},e.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),r=n.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!R.areDatesEqual(r,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run((function(){t.selectedDates=r.map((function(e){return s.cloneDate(e)})),t.value=t.parseSelectionToValue(r),t.onControlChange(t.parseSelectionToValue(r)),t.valueChange.emit(t.parseSelectionToValue(r)),t.cdr.markForCheck()})):this.emitSameDate())},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case I.CalendarViewEnum.month:return this.monthCellTemplate||this.cellTemplate;case I.CalendarViewEnum.year:return this.yearCellTemplate;case I.CalendarViewEnum.decade:return this.decadeCellTemplate;case I.CalendarViewEnum.century:return this.centuryCellTemplate;default:return null}},e.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=I.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitEvent=function(e,t){u.hasObservers(e)&&this.ngZone.run((function(){e.emit(t)}))},e.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},e.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:R.last(e)})}))},e.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&N.requiresZoneOnBlur(this.control)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):(this.emitBlur(e),this.detectChanges()))},e.prototype.handleFocus=function(){this.isActive=!0,r.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},e.prototype.verifyChanges=function(){if(r.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(r.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+j+" 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 "+j+" for possible resolution.")}},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",N.preventDefault),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},e.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=s.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},e.prototype.handleKeydown=function(e){if(!("classic"===this.type&&this.multiViewCalendar.isHeaderActive)){var t=-1!==[u.Keys.ArrowUp,u.Keys.ArrowRight,u.Keys.ArrowDown,u.Keys.ArrowLeft].indexOf(e.keyCode);if(!(N.isPresent(this.pickerService)&&t&&e.altKey)){var n=R.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);s.isEqual(this.focusedDate,n)||(this.focusedDate=n,this.detectChanges(),e.preventDefault()),e.keyCode===u.Keys.Enter&&this.performSelection(this.focusedDate,e)}}},e.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},e.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},e.prototype.setAriaActivedescendant=function(){if(N.isPresent(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant")))if("classic"!==this.type){var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}else this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant")},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(R.last(e)):e.map((function(e){return s.cloneDate(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"focusedDate",null),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"type",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([r.Input(),r.HostBinding("class.k-week-number"),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewDateChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.ContentChild(b.CellTemplateDirective,{static:!0}),i.__metadata("design:type",b.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([r.Input("cellTemplate"),i.__metadata("design:type",b.CellTemplateDirective),i.__metadata("design:paramtypes",[b.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([r.ContentChild(w.MonthCellTemplateDirective,{static:!0}),i.__metadata("design:type",w.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([r.Input("monthCellTemplate"),i.__metadata("design:type",w.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[w.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([r.ContentChild(C.YearCellTemplateDirective,{static:!0}),i.__metadata("design:type",C.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([r.Input("yearCellTemplate"),i.__metadata("design:type",C.YearCellTemplateDirective),i.__metadata("design:paramtypes",[C.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([r.ContentChild(D.DecadeCellTemplateDirective,{static:!0}),i.__metadata("design:type",D.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([r.Input("decadeCellTemplate"),i.__metadata("design:type",D.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[D.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([r.ContentChild(S.CenturyCellTemplateDirective,{static:!0}),i.__metadata("design:type",S.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([r.Input("centuryCellTemplate"),i.__metadata("design:type",S.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[S.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([r.ContentChild(k.WeekNumberCellTemplateDirective,{static:!0}),i.__metadata("design:type",k.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([r.Input("weekNumberTemplate"),i.__metadata("design:type",k.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[k.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([r.ContentChild(T.HeaderTitleTemplateDirective,{static:!0}),i.__metadata("design:type",T.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([r.Input("headerTitleTemplate"),i.__metadata("design:type",T.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[T.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([r.ContentChild(E.NavigationItemTemplateDirective,{static:!0}),i.__metadata("design:type",E.NavigationItemTemplateDirective)],e.prototype,"navigationItemTemplate",void 0),i.__decorate([r.Input("navigationItemTemplate"),i.__metadata("design:type",E.NavigationItemTemplateDirective),i.__metadata("design:paramtypes",[E.NavigationItemTemplateDirective])],e.prototype,"navigationItemTemplateRef",null),i.__decorate([r.ViewChild(d.NavigationComponent,{static:!1}),i.__metadata("design:type",d.NavigationComponent)],e.prototype,"navigationView",void 0),i.__decorate([r.ViewChild(h.ViewListComponent,{static:!1}),i.__metadata("design:type",h.ViewListComponent)],e.prototype,"monthView",void 0),i.__decorate([r.ViewChild(p.MultiViewCalendarComponent,{static:!1}),i.__metadata("design:type",p.MultiViewCalendarComponent)],e.prototype,"multiViewCalendar",void 0),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"widgetId",null),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[m.BusViewService,t.CALENDAR_VALUE_ACCESSOR,t.CALENDAR_RANGE_VALIDATORS,t.KENDO_INPUT_PROVIDER,a.LocalizationService,g.DisabledDatesService,{provide:a.L10N_PREFIX,useValue:"kendo.calendar"},v.NavigationService,_.ScrollSyncService,y.SelectionService],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplate?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplate?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplate?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focus)="handleFocus()"\n (blur)="handleBlur($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}),i.__param(12,r.Optional()),i.__metadata("design:paramtypes",[m.BusViewService,f.CalendarDOMService,r.ElementRef,v.NavigationService,r.Renderer2,r.ChangeDetectorRef,r.NgZone,r.Injector,_.ScrollSyncService,g.DisabledDatesService,a.LocalizationService,y.SelectionService,x.PickerService])],e)}();t.CalendarComponent=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(11),s=n(50),u=n(5),c=n(15),l=n(10),p=n(8),d=n(3),h=n(6),f=n(7),m=function(){function e(e,t,n,i,o,a){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=o,this.renderer=a,this.activeView=l.CalendarViewEnum.month,this.isActive=!0,this.min=new Date(p.MIN_DATE),this.max=new Date(p.MAX_DATE),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new r.EventEmitter,this.weekNumberCellClick=new r.EventEmitter,this.cellEnter=new r.EventEmitter,this.cellLeave=new r.EventEmitter,this.activeDateChange=new r.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===l.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===l.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===l.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===l.CalendarViewEnum.century},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(this.initService(),(0===this.weekNames.length||e.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service){this.views=this.views||2;var t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views));this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max);var i=d.hasChange(e,"activeView"),r=this.views>0&&d.hasChange(e,"views");!i&&this.isInDates(t)&&!r&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=o.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate))}},e.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},e.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},e.prototype.initService=function(){this.service=this.bus.service(this.activeView)},e.prototype.isMonthView=function(){return this.activeView===l.CalendarViewEnum.month},e.prototype.getCaptionTitle=function(e){return this.service.title(e)},e.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},e.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),r=parseFloat(getComputedStyle(n).width),a=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",r+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.Action.NextView?this.nextAnimationDate=o.cloneDate(this.dates[0]):this.prevAnimationDate=o.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach((function(e){t.renderer.setStyle(e,"width",a+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",r+"px")}));var s=i.getBoundingClientRect(),u=parseFloat(getComputedStyle(n).columnGap),l=e===c.Action.NextView?"translateX(0)":"translateX(-"+(s.width+u)+"px)",p=e===c.Action.NextView?"translateX(-"+(s.width+u)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:l},{transform:p}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){t.renderer.removeStyle(n,"width"),t.renderer.removeStyle(n,"overflow"),n.querySelectorAll("table").forEach((function(e){t.renderer.removeStyle(e,"width")})),t.animation=null,t.nextAnimationDate=null,t.prevAnimationDate=null,t.cdr.detectChanges()})},e.prototype.navigate=function(e){this.animateNavigation&&h.isDocumentAvailable()&&f.isPresent(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),n=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(n)&&(this.dates=n),this.activeDate=o.cloneDate(this.dates[0]),this.focusedDate=o.cloneDate(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),o.cloneDate(t)},e.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},e.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");if(t){var n=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(t,"min-width",n+"px")}},e.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},e.prototype.clampDate=function(e){return d.dateInRange(e,this.min,this.max)},e.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},e.prototype.isListInRange=function(e){var t=this.service.beginningOfPeriod(this.min),n=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return t<=e[0]&&e[e.length-1]<n},e.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},e.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"cellTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"selectionRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewHeader",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellLeave",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeDateChange",void 0),i.__decorate([r.HostBinding("class.k-calendar-view"),r.HostBinding("class.k-hstack"),r.HostBinding("class.k-align-items-start"),r.HostBinding("class.k-justify-content-center"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),i.__decorate([r.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),i.__decorate([r.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),i.__decorate([r.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),i.__decorate([r.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=i.__decorate([r.Component({changeDetection:r.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-content k-calendar-table"\n [ngClass]="class"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames" class="k-calendar-th">{{name}}</th>\n </tr>\n </thead>\n <tbody\n class="k-calendar-tbody"\n kendoCalendarView\n role="rowgroup"\n direction="horizontal"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [selectionRange]="selectionRange"\n [activeRangeEnd]="activeRangeEnd"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (cellEnter)="cellEnter.emit($event)"\n (cellLeave)="cellLeave.emit($event)"\n >\n </tbody>\n </table>\n </ng-template>\n\n \x3c!-- When Next is clicked a placeholder table is rendered before the Main Table --\x3e\n <ng-template\n *ngIf="nextAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: nextAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n\n <ng-template\n *kFor="let date of dates"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: date\n }"\n >\n </ng-template>\n\n \x3c!-- When Prev is clicked a placeholder table is rendered after the Main Table --\x3e\n <ng-template\n *ngIf="prevAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: prevAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[a.BusViewService,u.IntlService,s.WeekNamesService,r.ChangeDetectorRef,r.ElementRef,r.Renderer2])],e)}();t.HorizontalViewListComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(5),s=n(2),u=n(10),c=n(11),l=n(8),p=n(3),d=n(20),h=n(9),f=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=o,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(l.MIN_DATE),this.max=new Date(l.MAX_DATE),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new r.EventEmitter,this.prevButtonClick=new r.EventEmitter,this.nextButtonClick=new r.EventEmitter,this.getComponentClass=!0,this.subscriptions=new h.Subscription}return e.prototype.ngOnInit=function(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))},e.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=u.CalendarViewEnum[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(p.dateInRange(p.getToday(),this.min,this.max)))},e.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},e.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},e.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},e.prototype.getTitle=function(){if(!this.currentDate)return"";var e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t);return t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)},e.prototype.setTodayAvailability=function(){var e=p.getToday(),t=p.isInRange(e,s.getDate(this.min),s.getDate(this.max)),n=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!n,this.cdr.markForCheck()},i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"currentDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"rangeLength",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"todayButtonClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"prevButtonClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nextButtonClick",void 0),i.__decorate([r.HostBinding("class.k-calendar-header"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=i.__decorate([r.Component({selector:"kendo-calendar-header",template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-prev-view"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-next-view"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-right"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[c.BusViewService,r.ChangeDetectorRef,o.LocalizationService,a.IntlService,d.DisabledDatesService])],e)}();t.HeaderComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(3),s=n(11),u=function(){function e(e){this.bus=e}return e.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,r=e.activeViewEnum,s=e.rangePivot,u=e.selectedDates.slice();if("multiple"===i)if(n.ctrlKey||n.metaKey)this.isDateSelected(u,t)?u=u.filter((function(e){return!o.isEqual(e,t)})):u.push(t),s=t;else if(n.shiftKey){var c=a.sortDates([s||t,t]),l=c[0],p=c[1];u=this.bus.service(r).dateRange(l,p),s=t>u[0]?u[0]:a.last(u)}else u=[t],s=t;else u=[t],s=t;return{selectedDates:u,rangePivot:s}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return o.isEqual(e,t)}))},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[s.BusViewService])],e)}();t.SelectionService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(11),s=n(35),u=n(10),c=n(38),l=n(8),p=n(2),d=n(3),h=n(21),f=function(){function e(e,t,n,i,o){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=o,this.min=new Date(l.MIN_DATE),this.max=new Date(l.MAX_DATE),this.focusedDate=new Date,this.valueChange=new r.EventEmitter,this.pageChange=new r.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}return Object.defineProperty(e.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=u.CalendarViewEnum[this.activeView];var t=d.dateInRange(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n;this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),(e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.handleDateChange=function(e){var t=h.closestInScope(e.target,(function(e){return e.hasAttribute("data-date-index")}),this.list.nativeElement);if(t){var n=parseInt(t.getAttribute("data-date-index"),10),i=this.dates[n];this.valueChange.emit(p.cloneDate(i))}},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.intlChange=function(){this.activeView===u.CalendarViewEnum.month&&this.cdr.markForCheck()},i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([r.ViewChild(c.VirtualizationComponent,{static:!1}),i.__metadata("design:type",c.VirtualizationComponent)],e.prototype,"virtualization",void 0),i.__decorate([r.ViewChild("list",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"list",void 0),i.__decorate([r.HostBinding("class.k-calendar-navigation"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=i.__decorate([r.Component({changeDetection:r.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 '}),i.__metadata("design:paramtypes",[a.BusViewService,s.CalendarDOMService,o.IntlService,r.ChangeDetectorRef,r.Renderer2])],e)}();t.NavigationComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(5),s=n(38),u=n(11),c=n(35),l=n(10),p=n(8),d=n(3),h=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=o,this.isActive=!0,this.min=new Date(p.MIN_DATE),this.max=new Date(p.MAX_DATE),this.selectedDates=[],this.cellClick=new r.EventEmitter,this.weekNumberCellClick=new r.EventEmitter,this.activeDateChange=new r.EventEmitter,this.todayButtonClick=new r.EventEmitter,this.pageChange=new r.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===l.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===l.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===l.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===l.CalendarViewEnum.century},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=d.hasChange(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var t,n,i=d.hasChange(e,"activeView"),r=this.focusedDate,a=d.dateInRange(this.service.viewDate(r,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),u=this.total&&this.total!==s||!this.service.isInArray(r,this.dates);this.skip=this.service.skip(a,this.min),this.total=s,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),u&&(this.dates=this.service.datesList(a,this.getTake(this.skip))),t=this.activeDate,n=r,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=o.cloneDate(r));var c=d.hasChange(e,"focusedDate")||i;(u||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(r,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.setActiveDate=function(e){var t=this.service.addToDate(this.min,e);this.activeDate=t,this.activeDateChange.emit(t),this.cdr.detectChanges()},e.prototype.isMonthView=function(){return this.activeView===l.CalendarViewEnum.month},e.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},e.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},e.prototype.getScrollableHeight=function(){return this.activeView===l.CalendarViewEnum.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.getWeekNames=function(){var e=d.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},e.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"cellTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeDateChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"todayButtonClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([r.ViewChild(s.VirtualizationComponent,{static:!1}),i.__metadata("design:type",s.VirtualizationComponent)],e.prototype,"virtualization",void 0),i.__decorate([r.ViewChild("list",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"list",void 0),i.__decorate([r.HostBinding("class.k-vstack"),r.HostBinding("class.k-calendar-view"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),i.__decorate([r.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),i.__decorate([r.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),i.__decorate([r.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),i.__decorate([r.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}),i.__metadata("design:paramtypes",[u.BusViewService,r.ChangeDetectorRef,a.IntlService,c.CalendarDOMService,r.Renderer2])],e)}();t.ViewListComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(17),a=n(4),s=n(13),u=n(2),c=n(6),l=n(18),p=n(19),d=n(8),h=n(33),f=n(34),m=n(36),v=n(10),g=n(26),y=n(27),_=n(28),b=n(29),w=n(30),C=n(31),D=n(32),S=n(52),k=n(16),T=n(20),E=n(3),x=n(22),I=n(7),M=n(9),O=n(40),V=n(64),R=function(){function e(e,t,n,i,o,a,s,h,f,m){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=o,this.renderer=a,this.injector=s,this.pickerService=h,this.disabledDatesService=f,this.touchEnabled=m,this.focusableId="k-"+c.guid(),this.activeView=v.CalendarViewEnum[v.CalendarViewEnum.month],this.bottomView=v.CalendarViewEnum[v.CalendarViewEnum.month],this.topView=v.CalendarViewEnum[v.CalendarViewEnum.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=u.cloneDate(d.MIN_DATE),this.max=u.cloneDate(d.MAX_DATE),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 r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.wrapperClasses=!0,this.popupUID=c.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=E.noop,this.onControlTouched=E.noop,this.onValidatorChange=E.noop,this.minValidateFn=E.noop,this.maxValidateFn=E.noop,this.disabledDatesValidateFn=E.noop,this.incompleteValidator=E.noop,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",l.validatePackage(p.packageMetadata),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=u.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,E.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,E.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,E.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,E.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,E.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,E.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,E.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,E.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.toggleButton.nativeElement,E.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,E.getFillModeClass("input",e))),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&c.hasObservers(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(o.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?h.minValidator(this.min):E.noop,this.maxValidateFn=this.rangeValidation?f.maxValidator(this.max):E.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?V.disabledDatesValidator(this.disabledDatesService.isDateDisabled):E.noop,this.incompleteValidator=this.incompleteDateValidation?O.incompleteDateValidator():E.noop,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.verifyValue(e),this.value=u.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.calendar||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(u.cloneDate(e)),this.valueChange.emit(u.cloneDate(e))},e.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),e.prototype.mergeTime=function(e){return this.value&&e?E.setTime(e,this.value):e},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,r=e.target;i===c.Keys.Escape&&(this.show=!1),t&&(i!==c.Keys.ArrowDown||this.show||(this.show=!0),i===c.Keys.ArrowUp&&(this.show=!1)),i===c.Keys.Enter&&r.classList.contains("k-calendar")&&e.preventDefault(),i===c.Keys.Tab&&this.show&&this.calendar.isActive&&E.isTabExitingCalendar(this.calendarType,r,n)&&(this.input.focus(),this.show=!1)},e.prototype.togglePopup=function(e){var t=new m.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this._show)if(this._show=e,e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifySettings=function(){if(r.isDevMode()&&!E.isValidRange(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(r.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},e.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),E.isWindowAvailable()&&(this.windowBlurSubscription=M.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,c.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleBlur=function(e){var t=this,n=e&&I.currentFocusTarget(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(c.hasObservers(this.onBlur)||this.show&&c.hasObservers(this.close)||I.requiresZoneOnBlur(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},e.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,E.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,E.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,E.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,E.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,E.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([r.ContentChild(g.CellTemplateDirective,{static:!1}),i.__metadata("design:type",g.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([r.Input("cellTemplate"),i.__metadata("design:type",g.CellTemplateDirective),i.__metadata("design:paramtypes",[g.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([r.ContentChild(y.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",y.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([r.Input("monthCellTemplate"),i.__metadata("design:type",y.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[y.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([r.ContentChild(_.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",_.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([r.Input("yearCellTemplate"),i.__metadata("design:type",_.YearCellTemplateDirective),i.__metadata("design:paramtypes",[_.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([r.ContentChild(b.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",b.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([r.Input("decadeCellTemplate"),i.__metadata("design:type",b.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[b.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([r.ContentChild(w.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",w.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([r.Input("centuryCellTemplate"),i.__metadata("design:type",w.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[w.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([r.ContentChild(C.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",C.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([r.Input("weekNumberTemplate"),i.__metadata("design:type",C.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[C.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([r.ContentChild(D.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",D.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([r.Input("headerTitleTemplate"),i.__metadata("design:type",D.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[D.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([r.ContentChild(S.NavigationItemTemplateDirective,{static:!1}),i.__metadata("design:type",S.NavigationItemTemplateDirective)],e.prototype,"navigationItemTemplate",void 0),i.__decorate([r.Input("navigationItemTemplate"),i.__metadata("design:type",S.NavigationItemTemplateDirective),i.__metadata("design:paramtypes",[S.NavigationItemTemplateDirective])],e.prototype,"navigationItemTemplateRef",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"calendarType",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.HostBinding("class.k-datepicker"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:r.forwardRef((function(){return t}))},a.LocalizationService,k.PickerService,T.DisabledDatesService,{provide:a.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="null"\n [rounded]="null"\n [size]="null"\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 '}),i.__param(9,r.Optional()),i.__param(9,r.Inject(x.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[r.NgZone,a.LocalizationService,r.ChangeDetectorRef,s.PopupService,r.ElementRef,r.Renderer2,r.Injector,k.PickerService,T.DisabledDatesService,Boolean])],e)}();t.DatePickerComponent=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disabledDatesValidator=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(17),a=n(4),s=n(13),u=n(2),c=n(6),l=n(18),p=n(19),d=n(8),h=n(5),f=n(16),m=n(7),v=n(41),g=n(36),y=n(3),_=n(105),b=n(22),w=n(9),C=n(40),D=new RegExp(v.TIME_PART.hour+"|"+v.TIME_PART.minute+"|"+v.TIME_PART.second+"|"+v.TIME_PART.millisecond+"|"+v.TIME_PART.dayperiod+"|literal"),S=function(){function e(e,t,n,i,o,a,s,h,f,m){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=o,this.renderer=a,this.injector=s,this.pickerService=h,this.intl=f,this.touchEnabled=m,this.focusableId="k-"+c.guid(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.wrapperClasses=!0,this.popupUID=c.guid(),this.onControlChange=y.noop,this.onControlTouched=y.noop,this.onValidatorChange=y.noop,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=y.noop,this.incompleteValidator=y.noop,this._min=u.cloneDate(d.MIN_TIME),this._max=u.cloneDate(d.MAX_TIME),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",l.validatePackage(p.packageMetadata),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=u.cloneDate(e||d.MIN_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=u.cloneDate(e||d.MAX_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=u.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&c.hasObservers(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(o.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?_.timeRangeValidator(this.min,this.max):y.noop,this.incompleteValidator=this.incompleteDateValidation?C.incompleteDateValidator():y.noop,this.onValidatorChange()),e.format&&this.verifyFormat()},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n!==c.Keys.Escape?t&&(n===c.Keys.ArrowUp&&(this.show=!1),n!==c.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=u.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.timeSelector||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.handleChange=function(e){var t=this;if(u.isEqual(this.value,e))return this.focusInput(),void(this.show=!1);this.value=u.cloneDate(e),this.zone.run((function(){t.focusInput(),t.show=!1,t.onControlChange(u.cloneDate(e)),t.valueChange.emit(u.cloneDate(e))}))},e.prototype.handleReject=function(){this.show=!1},e.prototype.handleInputChange=function(e){var t=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(t)},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.normalizeTime=function(e){return y.setTime(d.MIDNIGHT_DATE,e)},e.prototype.mergeTime=function(e){return this.value&&e?y.setTime(this.value,e):e},e.prototype.togglePopup=function(e){var t=new g.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this.isOpen)if(this._show=e,this.cdr.markForCheck(),e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifyValue=function(e){if(r.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},e.prototype.verifyFormat=function(){if(r.isDevMode()&&this.intl.splitDateFormat(this.format).some((function(e){return!D.test(e.type)})))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")},e.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),y.isWindowAvailable()&&(this.windowBlurSubscription=w.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,c.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&m.currentFocusTarget(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(c.hasObservers(this.onBlur)||this.show&&c.hasObservers(this.close)||m.requiresZoneOnBlur(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!1}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("popupTemplate",{static:!1}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([r.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"nowButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"steps",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.HostBinding("class.k-timepicker"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:r.forwardRef((function(){return t}))},a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.timepicker"},f.PickerService],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(9,r.Optional()),i.__param(9,r.Inject(b.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[r.NgZone,a.LocalizationService,r.ChangeDetectorRef,s.PopupService,r.ElementRef,r.Renderer2,r.Injector,f.PickerService,h.IntlService,Boolean])],e)}();t.TimePickerComponent=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(17),a=n(9),s=n(37),u=n(2),c=n(13),l=n(5),p=n(6),d=n(4),h=n(18),f=n(19),m=n(16),v=n(20),g=n(7),y=n(3),_=n(36),b=n(33),w=n(34),C=n(64),D=n(41),S=n(8),k=n(22),T=n(26),E=n(27),x=n(28),I=n(29),M=n(30),O=n(31),V=n(32),R=n(40),P=new RegExp(D.TIME_PART.hour+"|"+D.TIME_PART.minute+"|"+D.TIME_PART.second+"|"+D.TIME_PART.dayperiod+"|literal"),N=function(){function e(e,t,n,i,o,s,c,l,d,m){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=o,this.wrapper=s,this.touchEnabled=c,this.localization=l,this.disabledDatesService=d,this.renderer=m,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+p.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=u.cloneDate(S.MIN_TIME),this.timeSelectorMax=u.cloneDate(S.MAX_TIME),this.calendarValue=null,this.calendarMin=u.cloneDate(S.MIN_DATE),this.calendarMax=y.lastMillisecondOfDate(S.MAX_DATE),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=y.mergeDateAndTime(S.MIN_DATE,S.MIN_TIME),this._max=y.mergeDateAndTime(S.MAX_DATE,S.MAX_TIME),this._isActive=!1,this.onControlTouched=y.noop,this.onControlChange=y.noop,this.onValidatorChange=y.noop,this.minValidateFn=y.noop,this.maxValidateFn=y.noop,this.disabledDatesValidateFn=y.noop,this.incompleteValidator=y.noop,this.subscriptions=new a.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",h.validatePackage(f.packageMetadata)}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=u.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;var t=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){g.isPresent(e)&&(this._min=u.cloneDate(e),this.calendarMin=u.getDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){g.isPresent(e)&&(this._max=u.cloneDate(e),this.calendarMax=y.lastMillisecondOfDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return g.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return g.isPresent(this.calendar)||g.isPresent(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(g.isPresent(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(s.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))),y.isWindowAvailable()&&this.subscriptions.add(this.ngZone.runOutsideAngular((function(){return a.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){(g.isPresent(e.min)||g.isPresent(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?b.minValidator(this.min):y.noop,this.maxValidateFn=this.rangeValidation?w.maxValidator(this.max):y.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?C.disabledDatesValidator(this.disabledDatesService.isDateDisabled):y.noop,this.incompleteValidator=this.incompleteDateValidation?R.incompleteDateValidator():y.noop,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())},e.prototype.blur=function(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()},e.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((g.isPresent(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.isEmpty=function(){return!g.isPresent(this.value)&&this.input.isEmpty()},e.prototype.handleIconClick=function(e){var t=this;if(!this.disabled&&!this.readonly){e.preventDefault();var n=!this.isOpen||p.hasObservers(this.close);this.run(n,(function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))}},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,p.hasObservers(this.onFocus)&&this.ngZone.run((function(){return e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this;if(this.isActive&&!this.focusTargetInComponent(e)){this.isActive=!1;var n=this.wrapper.nativeElement.classList.contains("ng-untouched")||p.hasObservers(this.onBlur)||this.isOpen&&p.hasObservers(this.close);this.run(n,(function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))}},e.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(u.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},e.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},e.prototype.handleAccept=function(){var e=this;if(this.isOpen){var t=y.mergeDateAndTime(this.calendar.value,this.timeSelector.current),n=!u.isEqual(this.value,t)||p.hasObservers(this.close);this.run(n,(function(){e.handleValueChange(t),e.togglePopup(!1)}))}},e.prototype.handleCancel=function(){var e=this;if(this.isOpen){var t=p.hasObservers(this.close);this.run(t,(function(){return e.togglePopup(!1)}))}},e.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},e.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},e.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e,i=n.keyCode,r=n.altKey;switch(i){case r&&p.Keys.ArrowUp:case p.Keys.Escape:this.handleCancel();break;case!this.isOpen&&r&&p.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case r&&p.Keys.ArrowRight:this.changeActiveTab("time");break;case r&&p.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&g.isPresent(this.calendarValue)&&p.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},e.prototype.handleTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey,r=t.target,o=g.isPresent(r.nextElementSibling)&&!r.nextElementSibling.disabled;n!==p.Keys.Tab||i||o||(this.input.focus(),this.handleCancel())},e.prototype.handleBackTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey;n===p.Keys.Tab&&i&&this.input.focus()},e.prototype.popupButtonsClasses=function(e){var t=e||"base";return(this.size?y.getSizeClass("button",this.size):"")+" "+(this.rounded?y.getRoundedClass(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+t:"")},e.prototype.preventMouseDown=function(e){e.preventDefault()},e.prototype.verifyValue=function(e){if(r.isDevMode()&&g.isPresent(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},e.prototype.verifyMinMaxRange=function(){if(r.isDevMode()&&!y.isValidRange(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")},e.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce((function(e,t){return e+t.pattern}),"")||"t"},e.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},e.prototype.timeFormatPartFilter=function(e,t,n){var i=t>=1&&n[t-1];return i&&"literal"===e.type?P.test(i.type):P.test(e.type)},e.prototype.togglePopup=function(e){if(e!==this.isOpen){var t=new _.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus())}},e.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.openPopup=function(){var e=this;this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);var t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:"k-datetime-container "+(this.popupSettings.popupClass||""),anchorAlign:{vertical:"bottom",horizontal:t},popupAlign:{vertical:"top",horizontal:t}}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.handleCancel()}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleValueChange=function(e){u.isEqual(this.value,e)||(this.value=u.cloneDate(e),this.onControlChange(u.cloneDate(e)),this.valueChange.emit(u.cloneDate(e)))},e.prototype.focusTargetInComponent=function(e){if(!g.isPresent(e))return!1;var t=e.relatedTarget||document.activeElement,n=g.isPresent(this.popupRef)&&this.popupRef.popupElement.contains(t),i=this.wrapper.nativeElement.contains(t);return n||i},e.prototype.setTimeSelectorMinMax=function(e){var t=g.isPresent(e)&&u.isEqual(u.getDate(e),u.getDate(this.min));this.timeSelectorMin=u.cloneDate(t?this.min:S.MIN_TIME);var n=g.isPresent(e)&&u.isEqual(u.getDate(e),u.getDate(this.max));this.timeSelectorMax=u.cloneDate(n?this.max:S.MAX_TIME)},e.prototype.setCalendarValue=function(e){var t=g.isPresent(e)&&y.isInRange(e,this.calendarMin,this.calendarMax);this.calendarValue=t?u.getDate(e):null},e.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},e.prototype.run=function(e,t){e?this.ngZone.run((function(){return t()})):t()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([r.HostBinding("class.k-datetimepicker"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"steps",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"calendarType",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([r.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"open",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"close",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"defaultTab",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.ContentChild(T.CellTemplateDirective,{static:!1}),i.__metadata("design:type",T.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([r.ContentChild(E.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",E.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([r.ContentChild(x.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",x.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([r.ContentChild(I.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",I.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([r.ContentChild(M.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",M.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([r.ContentChild(O.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",O.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([r.ContentChild(V.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",V.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([r.ViewChild("container",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([r.ViewChild("popupTemplate",{read:r.TemplateRef,static:!0}),i.__metadata("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=i.__decorate([r.Component({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:r.ChangeDetectionStrategy.OnPush,providers:[m.PickerService,d.LocalizationService,v.DisabledDatesService,{provide:d.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:p.KendoInput,useExisting:r.forwardRef((function(){return t}))}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [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 '}),i.__param(6,r.Inject(k.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[c.PopupService,l.IntlService,r.ChangeDetectorRef,m.PickerService,r.NgZone,r.ElementRef,Boolean,d.LocalizationService,v.DisabledDatesService,r.Renderer2])],e)}();t.DateTimePickerComponent=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(18),a=n(19),s=n(53),u=n(23),c=function(){function e(){this.showDefault=!1,o.validatePackage(a.packageMetadata)}return Object.defineProperty(e.prototype,"hasContentPopup",{get:function(){return this.contentPopup.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe((function(){e.showDefault=!e.hasContentPopup}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([r.ContentChildren(s.DateRangePopupComponent),i.__metadata("design:type",r.QueryList)],e.prototype,"contentPopup",void 0),e=i.__decorate([r.Component({providers:[u.DateRangeService],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),i.__metadata("design:paramtypes",[])],e)}();t.DateRangeComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoDateRangePopupTemplate]"}),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.DateRangePopupTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(39),s=n(70),u=n(23),c=n(12),l=n(3),p=n(7),d=function(e){function t(t,n,i,r,o){var a=e.call(this,"end",t,n,i,r,o)||this;return a.rangeService=t,a.dateInput=n,a.navigateCalendarOnFocus=!1,a}return i.__extends(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,r=n.max;if(!l.isInRange(e,i,r))return null;var a=(this.rangeService.selectionRange||c.EMPTY_SELECTIONRANGE).start;return this.autoCorrectOn===t&&p.isPresent(e)&&e<a?l.clampRange(e):{start:a,end:o.cloneDate(e)}},t.prototype.updateInputValue=function(e){var t=(e||c.EMPTY_SELECTIONRANGE).end,n=this.dateInput,i=n.min,r=n.max;!o.isEqual(this.dateInput.value,t)&&l.isInRange(t,i,r)&&(this.dateInput.writeValue(o.cloneDate(t)),this.dateInput.notify())},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"autoCorrectOn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=i.__decorate([r.Directive({selector:"[kendoDateRangeEndInput]"}),i.__metadata("design:paramtypes",[u.DateRangeService,a.DateInputComponent,r.ElementRef,r.Renderer2,r.NgZone])],t)}(s.DateRangeInput);t.DateRangeEndInputDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(6),o=n(9),a=n(37),s=n(7),u=function(){function e(e,t,n,i,r,a){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=r,this.zone=a,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new o.Subscription,this.subscriptions=new o.Subscription}return Object.defineProperty(e.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return s.isPresent(e)&&s.isPresent(e.calendar)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe((function(){return e.deactivate()})),this.input.onFocus.pipe(a.filter((function(){return!e.popupCalendarActivated}))).subscribe((function(){return e.activate()})),this.input.valueUpdate.subscribe((function(t){return e.updateRange(t,"change")})),this.dateRangeService.activeRangeEnd$.subscribe((function(){e.navigateCalendarOnFocus&&e.focusActiveDate(),e.toggleActiveClass(e.isActiveEnd)})),this.dateRangeService.dateRangePopup$.subscribe((function(t){return e.initPopup(t)})),this.dateRangeService.range$.subscribe((function(t){return e.updateInputValue(t)})),o.fromEvent(this.element.nativeElement,"click").subscribe((function(){return e.activate()})),o.fromEvent(this.element.nativeElement,"keydown").subscribe((function(t){return e.togglePopup(t||{})}))].map((function(t){return e.subscriptions.add(t)}))},e.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},e.prototype.initPopup=function(e){var t=this;e?(e.anchor||(e.anchor=this.element.nativeElement),[e.cancel.subscribe((function(){return t.isActiveEnd&&t.input.focus()})),e.onFocus.subscribe((function(){return t.toggleActiveClass(t.isActiveEnd)})),e.onBlur.subscribe((function(){return t.deactivate()}))].map((function(e){return t.popupSubscriptions.add(e)}))):this.unsubscribePopup()},e.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new o.Subscription},e.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},e.prototype.deactivate=function(){var e=this;this.zone.runOutsideAngular((function(){setTimeout((function(){e.updateRange(e.input.value,"blur"),e.dateRangeService.hasActiveComponent()||(e.toggleActiveClass(!1),e.zone.run((function(){return e.dateRangeService.deactivatePopup()})))}))}))},e.prototype.updateRange=function(e,t){var n=this.getRange(e,t);n&&(this.focusActiveDate(),this.dateRangeService.setRange(n))},e.prototype.togglePopup=function(e){var t=e.altKey,n=e.keyCode;n===r.Keys.Escape?this.dateRangeService.cancelPopup():t&&n===r.Keys.ArrowDown&&this.dateRangeService.activatePopup()},e.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(i.cloneDate(this.input.value))},e.prototype.toggleActiveClass=function(e){var t=e?"addClass":"removeClass",n=this.element.nativeElement;n&&n.querySelector&&this.renderer[t](n,"k-focus")},e}();t.DateRangeInput=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(39),s=n(70),u=n(23),c=n(12),l=n(3),p=function(e){function t(t,n,i,r,o){var a=e.call(this,"start",t,n,i,r,o)||this;return a.rangeService=t,a.dateInput=n,a.navigateCalendarOnFocus=!1,a}return i.__extends(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,r=n.max;if(!l.isInRange(e,i,r))return null;var a=(this.rangeService.selectionRange||c.EMPTY_SELECTIONRANGE).end;return this.autoCorrectOn===t&&a&&e>a?l.clampRange(e):{start:o.cloneDate(e),end:a}},t.prototype.updateInputValue=function(e){var t=(e||c.EMPTY_SELECTIONRANGE).start,n=this.dateInput,i=n.min,r=n.max;!o.isEqual(this.dateInput.value,t)&&l.isInRange(t,i,r)&&(this.dateInput.writeValue(o.cloneDate(t)),this.dateInput.notify())},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"autoCorrectOn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=i.__decorate([r.Directive({selector:"[kendoDateRangeStartInput]"}),i.__metadata("design:paramtypes",[u.DateRangeService,a.DateInputComponent,r.ElementRef,r.Renderer2,r.NgZone])],t)}(s.DateRangeInput);t.DateRangeStartInputDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),a=n(23),s=n(25),u=n(12),c=n(2),l=n(3),p=function(){function e(e,t,n,i,s){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=s,this.autoCorrectOn="change",this.activeRangeEndChange=new r.EventEmitter,this.selectionRangeChange=new r.EventEmitter,this.calendarSubscriptions=new o.Subscription,this.dateRangeService=this.dateRangeService||new a.DateRangeService,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}return Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),l.isEqualRange(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarRange",{get:function(){return this.selectionRange||u.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.calendar,n=this.dateRangeService;t.min=l.either(n.min,t.min),t.max=l.either(n.max,t.max),this.addSubscriptions(t.cellEnter.subscribe((function(t){return e.handleHover(t)})),t.valueChange.subscribe((function(t){return e.handleChange(t)})),n.focusedDate$.subscribe((function(e){c.isEqual(t.focusedDate,e)||(t.focusedDate=e)})),n.activeRangeEnd$.subscribe((function(n){t.activeRangeEnd!==n&&(t.activeRangeEnd=n,e.activeRangeEndChange.emit(n),e.cdr.markForCheck())})),n.range$.subscribe((function(t){e.isEqualCalendarRange(t)||e.acceptAndEmit(t),e.updateFocusedDate(t)})),o.fromEvent(this.element.nativeElement,"blur").subscribe((function(){return e.handleBlur()})))},e.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},e.prototype.addSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map((function(t){return e.calendarSubscriptions.add(t)}))},e.prototype.isEqualCalendarRange=function(e){return l.isEqualRange(this.calendar.selectionRange,e)},e.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,n=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==n&&n<t&&this.dateRangeService.setRange(l.clampRange(t))},e.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",r=n?l.clampRange(e):this.updateRange(e);l.isEqualRange(t.selectionRange,r)||(this.acceptAndEmit(r),t.setActiveRangeEnd(i),t.setRange(r))},e.prototype.handleHover=function(e){if(!this.hasCompleteRange()){var t=this.calendarRange,n=t.start,i=t.end,r=this.calendar.activeRangeEnd;(n&&"end"===r||i&&"start"===r)&&this.setSelectionRange(this.updateRange(e))}},e.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||u.EMPTY_SELECTIONRANGE,t=e.start,n=e.end;return Boolean(t)&&Boolean(n)},e.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&e>n:null!==i&&e<i},e.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},e.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:i,end:e}},e.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},e.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"autoCorrectOn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"selectionRange",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=i.__decorate([r.Directive({selector:"[kendoDateRangeSelection]"}),i.__param(4,r.Optional()),i.__metadata("design:paramtypes",[s.MultiViewCalendarComponent,r.ChangeDetectorRef,r.ElementRef,r.Renderer2,a.DateRangeService])],e)}();t.DateRangeSelectionDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(106),s=n(59),u=n(107),c=n(6),l=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.KForOf,s.HeaderComponent,u.ViewComponent],exports:[a.KForOf,s.HeaderComponent,u.ViewComponent],imports:[o.CommonModule,c.EventsModule]})],e)}();t.CalendarCommonModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(75),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.MultiViewCalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(77),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.CalendarMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.CalendarMessages);t.CalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.CalendarMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(77),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.CalendarMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.CalendarMessages);t.CalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=[n(38).VirtualizationComponent],s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a],exports:[a],imports:[o.CommonModule]})],e)}();t.VirtualizationModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(42),a=n(43),s=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[o.CalendarModule,a.MultiViewCalendarModule],imports:[o.CalendarModule,a.MultiViewCalendarModule]})],e)}();t.CalendarsModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(82),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.DateInputMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.DateInputMessages);t.DateInputLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(4).ComponentMessages);t.DateInputMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(82),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.DateInputMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.DateInputMessages);t.DateInputCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(63),a=n(14),s=n(5),u=n(13),c=n(42),l=n(44),p=n(24),d=n(6),h=n(85),f=n(87),m=n(54),v=n(22),g=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.DatePickerComponent,f.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective],exports:[o.DatePickerComponent,f.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective,l.TemplatesModule],imports:[a.CommonModule,p.DateInputModule,c.CalendarModule,s.IntlModule,u.PopupModule,l.TemplatesModule,d.EventsModule],providers:[{provide:v.TOUCH_ENABLED,useValue:m.touchEnabled}]})],e)}();t.DatePickerModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(86),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.DatePickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.DatePickerMessages);t.DatePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.DatePickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(86),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.DatePickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.DatePickerMessages);t.DatePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(13),s=n(43),u=n(24),c=n(69),l=n(71),p=n(67),d=n(53),h=n(68),f=n(72),m=n(6),v=[p.DateRangeComponent,d.DateRangePopupComponent,h.DateRangePopupTemplateDirective,f.DateRangeSelectionDirective,l.DateRangeStartInputDirective,c.DateRangeEndInputDirective],g=[s.MultiViewCalendarModule,u.DateInputModule,a.PopupModule,m.EventsModule],y=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[v],exports:[v],imports:[o.CommonModule,g]})],e)}();t.DateRangeModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(37),s=n(2),u=n(38),c=n(8),l=n(41),p=n(56),d=n(90),h=n(91),f=n(92),m=n(93),v=n(94),g=n(21),y=function(){return null},_={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]}},b=((i={})[l.TIME_PART.dayperiod]=v.DayPeriodService,i[l.TIME_PART.hour]=d.HoursService,i[l.TIME_PART.minute]=h.MinutesService,i[l.TIME_PART.second]=f.SecondsService,i[l.TIME_PART.millisecond]=m.MillisecondsService,i),w=function(){function e(e,t,n,i,r){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=r,this.min=s.cloneDate(c.MIDNIGHT_DATE),this.max=s.cloneDate(c.MAX_TIME),this.step=1,this.disabled=!1,this.valueChange=new o.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(b[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=this.service.limitRange(this.min,this.max,t),r=i[0],o=i[1];(this.service.isRangeChanged(r,o)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:r,max:o}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},e.prototype.ngOnInit=function(){var e=this;this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;var t="translateY("+this.topOffset+"px)";this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.scrollOnce((function(t){return e.virtualization.scrollToIndex(t)}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.scrollOnce((function(t){var n=e.animateToIndex?"animateToIndex":"scrollToIndex";e.virtualization[n](t),e.animateToIndex=!0}))},e.prototype.handleChange=function(e){var t=this.service.apply(this.value,e.value);this.value.getTime()!==t.getTime()&&(this.indexToScroll=this.data.indexOf(e),this.value=t,this.valueChange.emit(t))},e.prototype.handleItemClick=function(e){var t=g.closestInScope(e.target,(function(e){return e.hasAttribute("data-timelist-item-index")}),this.element.nativeElement);if(t){var n=t.getAttribute("data-timelist-item-index");this.handleChange(this.data[n])}},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),r=Math.abs(Math.ceil(e)-i);if(t===n&&r<2)return i;var o=t>n;return o&&r>=this.bottomThreshold||!o&&r>this.topThreshold?this.virtualization.itemOffset(n+1):i},e.prototype.hasMissingValue=function(e){var t=e.previousValue,n=e.currentValue,i=t&&!this.service.valueInList(t),r=n&&!this.service.valueInList(n);return i||r},e.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},e.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},e.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},e.prototype.textHasChanged=function(e){var t=e.previousValue,n=e.currentValue;if(!t||!n)return!1;var i=this.data[this.selectedIndex(t)],r=this.data[this.selectedIndex(n)];return i&&r&&i.text!==r.text},e.prototype.handleKeyDown=function(e){var t=(_[e.keyCode]||y)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},e.prototype.bindEvents=function(){var e=this;this.scrollSubscription=this.virtualization.scroll$().pipe(a.debounceTime(100),a.map((function(e){return e.target.scrollTop})),a.map((function(t){return e.itemOffset(t)})),a.map((function(t){return e.virtualization.itemIndex(t)}))).subscribe((function(t){e.virtualization.scrollToIndex(t),e.handleChange(e.data[t])}));var t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",(function(){return!e.isActive&&e.focus()})),this.renderer.listen(t,"click",(function(){return e.focus()})),this.renderer.listen(t,"blur",(function(){return e.isActive=!1})),this.renderer.listen(t,"focus",(function(){return e.isActive=!0})),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))},r.__decorate([o.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],e.prototype,"part",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],e.prototype,"step",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Date)],e.prototype,"value",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),r.__decorate([o.ViewChild(u.VirtualizationComponent,{static:!0}),r.__metadata("design:type",u.VirtualizationComponent)],e.prototype,"virtualization",void 0),r.__decorate([o.HostBinding("attr.tabindex"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"tabIndex",null),r.__decorate([o.HostBinding("class.k-time-list"),r.__metadata("design:type",Boolean)],e.prototype,"componentClass",void 0),e=r.__decorate([o.Component({selector:"kendo-timelist",template:'\n <kendo-virtualization\n [skip]="skip"\n [take]="total"\n [total]="total"\n [itemHeight]="itemHeight"\n [maxScrollDifference]="listHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n class="k-time-container"\n role="presentation"\n tabindex="-1"\n >\n <ul [ngStyle]="style" class="k-reset"\n [kendoEventsOutsideAngular]="{\n click: handleItemClick\n }"\n [scope]="this"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index">\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),r.__metadata("design:paramtypes",[o.ElementRef,o.Injector,p.TimePickerDOMService,o.Renderer2,o.NgZone])],e)}();t.TimeListComponent=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(5),u=n(8),c=n(3),l=(i=24,function(e){return e%i}),p=function(e,t){return l(24+e-t)},d=function(e){return function(t,n){return!n||a.getDate(t).getTime()===a.getDate(n).getTime()?t:c.setHours(t,e)}},h=d(0),f=d(23),m=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setHours(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,r=e.insertUndividedMax,o=void 0===r?this.insertUndividedMax:r,a=e.min,s=void 0===a?this.min:a,l=e.max,p=void 0===l?this.max:l,d=e.part,h=e.step,f=void 0===h?this.step:h;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){var n=c.setHours(u.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=s,this.max=p,this.step=f},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return l(t+e*n)}),a=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(a),this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[h(e,n),f(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(p(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return p(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[s.IntlService])],e)}();t.HoursService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(5),u=n(8),c=n(3),l=(i=60,function(e){return e%i}),p=function(e,t){return l(60+e-t)},d=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:c.setMinutes(t,e)}},h=d(0),f=d(59),m=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,o=void 0===r?this.min:r,a=e.max,s=void 0===a?this.max:a,l=e.part,p=e.step,d=void 0===p?this.step:p;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setMinutes(u.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=o,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return l(t+e*n)}),a=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(a),this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),f(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(p(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return p(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[s.IntlService])],e)}();t.MinutesService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(5),u=n(8),c=n(3),l=(i=60,function(e){return e%i}),p=function(e,t){return l(60+e-t)},d=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()?t:c.setSeconds(t,e)}},h=d(0),f=d(59),m=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,o=void 0===r?this.min:r,a=e.max,s=void 0===a?this.max:a,l=e.part,p=e.step,d=void 0===p?this.step:p;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setSeconds(u.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,l.pattern),value:n}},this.min=o,this.max=s,this.step=d},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return l(t+e*n)}),a=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(a),this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),f(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return p(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(p(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[s.IntlService])],e)}();t.SecondsService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(5),u=n(8),c=n(3),l=(i=1e3,function(e){return e%i}),p=function(e,t){return l(1e3+e-t)},d=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()&&t.getSeconds()===n.getSeconds()?t:c.setMilliseconds(t,e)}},h=d(0),f=d(999),m=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setMilliseconds(e,t.getMilliseconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,r=e.min,o=void 0===r?this.min:r,a=e.max,s=void 0===a?this.max:a,l=e.step,p=void 0===l?this.step:l;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setMilliseconds(u.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,"SSS"),value:n}},this.min=o,this.max=s,this.step=p},e.prototype.data=function(e){var t,n,i=this,r=this.range(e)[0],o=(t=r,n=this.step,function(e){return l(t+e*n)}),a=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(a),this.addMissing(a,e),a},e.prototype.isRangeChanged=function(e,t){return!a.isEqual(this.min,e)||!a.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),f(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return p(e.getMilliseconds(),this.min.getMilliseconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMilliseconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(p(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setMilliseconds(this.max,this.lastMillisecond(e)))},e.prototype.lastMillisecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMilliseconds(),i.getMilliseconds()]},e=r.__decorate([o.Injectable(),r.__metadata("design:paramtypes",[s.IntlService])],e)}();t.MillisecondsService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(5),s=function(e,t){var n=o.cloneDate(e);return n.setHours(t),n},u=function(e){return null!==e&&e<12},c=function(e,t,n){return!t&&!n||e>=t&&e<=n},l=function(e,t,n){return!t&&!n||e>=t||e<=n},p=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=u(n),r=u(t.getHours());if(i&&r||!i&&!r)return e;var o=this.normalizedRange(),a=o[0],c=o[1],l=void 0===c?24:c,p=n+(r?-12:12);return s(e,Math.min(Math.max(a,p),l||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,r=void 0===i?this.max:i,o=e.part,a=void 0===o?this.part:o;this.min=n,this.max=r,this.part=a},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],r=this.normalizedRange(),o=r[0],a=r[1],c=this.intl.dateFormatNames(t);return u(o)&&i.push({text:c.am,value:s(this.min,o)}),null!==(n=a)&&(!n||n>11)&&i.push({text:c.pm,value:s(this.min,Math.max(12,a))}),this.min.getHours()!==o?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?l:c)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[a.IntlService])],e)}();t.DayPeriodService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.TimePickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TimePickerMessages);t.TimePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.TimePickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TimePickerMessages);t.TimeSelectorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(13),s=n(6),u=n(5),c=n(24),l=n(42),p=n(55),d=n(44),h=n(54),f=n(22),m=n(66),v=n(114),g=n(115),y=[m.DateTimePickerComponent,v.DateTimePickerCustomMessagesComponent,g.LocalizedMessagesDirective],_=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:y.slice(),exports:y.concat([d.TemplatesModule]),imports:[o.CommonModule,u.IntlModule,c.DateInputModule,l.CalendarModule,p.TimePickerModule,a.PopupModule,s.EventsModule,d.TemplatesModule],providers:[{provide:f.TOUCH_ENABLED,useValue:h.touchEnabled}]})],e)}();t.DateTimePickerModule=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dateTab",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dateTabLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"timeTab",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"timeTabLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"accept",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"acceptLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"cancel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"cancelLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"now",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"nowLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57);t.CalendarComponent=i.CalendarComponent;var r=n(39);t.DateInputComponent=r.DateInputComponent;var o=n(63);t.DatePickerComponent=o.DatePickerComponent;var a=n(65);t.TimePickerComponent=a.TimePickerComponent;var s=n(66);t.DateTimePickerComponent=s.DateTimePickerComponent;var u=n(25);t.MultiViewCalendarComponent=u.MultiViewCalendarComponent;var c=n(67);t.DateRangeComponent=c.DateRangeComponent;var l=n(53);t.DateRangePopupComponent=l.DateRangePopupComponent;var p=n(69);t.DateRangeEndInputDirective=p.DateRangeEndInputDirective;var d=n(71);t.DateRangeStartInputDirective=d.DateRangeStartInputDirective;var h=n(72);t.DateRangeSelectionDirective=h.DateRangeSelectionDirective;var f=n(42);t.CalendarModule=f.CalendarModule;var m=n(80);t.CalendarsModule=m.CalendarsModule;var v=n(24);t.DateInputModule=v.DateInputModule;var g=n(84);t.DatePickerModule=g.DatePickerModule;var y=n(109);t.DateInputsModule=y.DateInputsModule;var _=n(55);t.TimePickerModule=_.TimePickerModule;var b=n(97);t.DateTimePickerModule=b.DateTimePickerModule;var w=n(43);t.MultiViewCalendarModule=w.MultiViewCalendarModule;var C=n(88);t.DateRangeModule=C.DateRangeModule;var D=n(23);t.DateRangeService=D.DateRangeService;var S=n(78);t.CalendarCustomMessagesComponent=S.CalendarCustomMessagesComponent;var k=n(83);t.DateInputCustomMessagesComponent=k.DateInputCustomMessagesComponent;var T=n(87);t.DatePickerCustomMessagesComponent=T.DatePickerCustomMessagesComponent;var E=n(36);t.PreventableEvent=E.PreventableEvent;var x=n(76);t.CalendarLocalizedMessagesDirective=x.CalendarLocalizedMessagesDirective;var I=n(74);t.MultiViewCalendarLocalizedMessagesDirective=I.MultiViewCalendarLocalizedMessagesDirective;var M=n(81);t.DateInputLocalizedMessagesDirective=M.DateInputLocalizedMessagesDirective;var O=n(85);t.DatePickerLocalizedMessagesDirective=O.DatePickerLocalizedMessagesDirective;var V=n(95);t.TimePickerLocalizedMessagesDirective=V.TimePickerLocalizedMessagesDirective;var R=n(96);t.TimeSelectorLocalizedMessagesDirective=R.TimeSelectorLocalizedMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(7),o=function(){return null};t.disabledDatesRangeValidator=function(e){return r.isPresent(e)?function(t){if(!(r.isPresent(t)&&r.isPresent(t.start)&&r.isPresent(t.end))||t.start>t.end)return null;var n=i.disabledDatesInRange(t.start,t.end,e),o={disabledDatesInRange:n};return n.length?o:null}:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,r=0;r<e;r++)this.offsets.push(i),i+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){if(!(e<0)){var t=this.offsets.reduce((function(t,n,i){return void 0!==t?t:n===e?i:n>e?i-1:void 0}),void 0);return void 0===t?this.total-1:t}},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}();t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=function(e){return Math.max(e,0)},o=function(e){this.offset=e};t.ScrollAction=o;var a=function(e){this.skip=e};t.PageAction=a;var s=function(){function e(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,s,u,c,l){var p=this;void 0===u&&(u=0),void 0===c&&(c=0),void 0===l&&(l="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=s,this.lastScroll=0,this.topOffset=u,this.bottomOffset=c,this.direction=l;var d=new i.ReplaySubject(2),h=this.rowsForHeight(u),f=r(t-h);return d.next(new o(this.rowOffset(f))),h&&d.next(new a(f)),this.subscription=new i.Observable((function(e){p.unsubscribe(),p.scrollSubscription=p.scrollObservable.subscribe((function(t){return p.onScroll(t,e)}))})).subscribe((function(e){return d.next(e)})),d},e.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},e.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,s=e.offsetHeight,u=e.offsetWidth,c="vertical"===this.direction?i:n,l="vertical"===this.direction?s:u;if(this.lastScroll!==c){var p=this.lastScroll>=c;this.lastScroll=c;var d=this.rowHeightService.index(r(c-this.topOffset)),h=this.rowHeightService.index(r(c+l-this.bottomOffset));if(!p&&h>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=d,t.next(new o(this.rowOffset(d))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new a(this.firstLoaded))),p&&d<=this.firstLoaded){var f=Math.floor(.3*this.take);this.firstLoaded=r(d-f),t.next(new o(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new a(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},e}();t.ScrollerService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(35),a=function(){function e(e,t){this.dom=e,this.zone=t}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t){var n=this;this.unsubscribe(),e&&t&&(this.navigator=e,this.view=t,this.zone.runOutsideAngular((function(){var i,r;n.navSubscription=e.scroll$().subscribe((function(e){r?r=!1:(i=!0,n.scrollSiblingOf(e.target))})),n.viewSubscription=t.scroll$().subscribe((function(e){i?i=!1:(r=!0,n.scrollSiblingOf(e.target))}))})))},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e.prototype.destroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[o.CalendarDOMService,r.NgZone])],e)}();t.ScrollSyncService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None"}(t.Arrow||(t.Arrow={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.timeRangeValidator=function(e,t){return function(n){if(!e||!t||!n.value)return null;var r={timeRangeError:{maxValue:t,minValue:e,value:n.value}};return i.isInTimeRange(n.value,e,t)?null:r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=function(){function e(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}();t.KForOfContext=a;var s=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(this._differ||!t)return;try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+u(t)+"'.")}}},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){if(o.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 r=t;r<n;r++)this._viewContainer.createEmbeddedView(this._template,new a(null,this.kForOf,-1,-1),r);for(r=this._viewContainer.length;r>n;r--)this._viewContainer.remove(r-1);for(r=0;r<this._viewContainer.length;r++){var s=this._viewContainer.get(r);s.context.index=r,s.context.count=length,s.context.$implicit=i[r]||null}}},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"kForOf",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"kForTrackBy",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef),i.__metadata("design:paramtypes",[r.TemplateRef])],e.prototype,"kForTemplate",null),e=i.__decorate([r.Directive({selector:"[kFor][kForOf]"}),i.__metadata("design:paramtypes",[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers])],e)}();function u(e){return e.name||typeof e}t.KForOf=s,t.getTypeNameForDebugging=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),a=n(10),s=n(11),u=n(20),c=n(5),l=n(2),p=n(3),d=n(21),h=n(7),f=function(){function e(e,t,n,i,a,s,u){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=a,this.renderer=s,this.disabledDatesService=u,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new r.EventEmitter,this.weekNumberCellClick=new r.EventEmitter,this.cellEnter=new r.EventEmitter,this.cellLeave=new r.EventEmitter,this.colSpan=0,this.subscriptions=new o.Subscription,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===a.CalendarViewEnum.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.isHorizontal=function(){return"horizontal"===this.direction},e.prototype.isMonthView=function(){return this.activeView===a.CalendarViewEnum.month},e.prototype.shouldRenderCellContent=function(e){return h.isPresent(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},e.prototype.firstDate=function(e){var t=this.firstWeekDateContext(e);return t?t.value:null},e.prototype.getWeekNumber=function(e){return this.weekNumber?l.weekInYear(e,this.intl.firstDay()):null},e.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;var n=l.weekInYear(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:l.cloneDate(t.value)}},e.prototype.getStyles=function(e){var t=e.isRangeEnd,n=e.isRangeStart,i="end"===this.activeRangeEnd&&t,r="start"===this.activeRangeEnd&&n;return p.stringifyClassObject({"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&&n,"k-state-active":r||i,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||n||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth})},e.prototype.tableCellIndex=function(e,t){return e+":"+t},e.prototype.handleWeekNumberClick=function(e){var t=this,n=e.map((function(e){return e.value})).filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.weekNumberCellClick.emit(n)},e.prototype.firstWeekDateContext=function(e){if(!this.weekNumber)return null;for(var t=0,n=this.shouldRenderCellContent(e[t])?e[t]:null;!n&&t<e.length;){var i=e[++t];n=this.shouldRenderCellContent(i)?i:null}return n},e.prototype.updateData=function(){var e=p.last(this.selectedDates)||p.getToday(),t=p.setTime(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:t,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},e.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(e,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(e,"click",this.clickHandler.bind(this)))},e.prototype.clickHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index"),i=this.cellByIndex(n);if(!i.isDisabled){var r=e.ctrlKey,o=e.metaKey,a=e.shiftKey;this.cellClick.emit({date:i.value,modifiers:{ctrlKey:r,metaKey:o,shiftKey:a}})}}},e.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},e.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==n&&this.emitCellLeave();var i=this.cellByIndex(n).value;this.cellEnter.emit(i),this.currentCellIndex=n}else this.currentCellIndex&&this.emitCellLeave()},e.prototype.closestCell=function(e){return d.closestInScope(e.target,(function(e){return e.hasAttribute("data-cell-index")}),this.element.nativeElement)},e.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},e.prototype.cellByIndex=function(e){var t=e.split(":"),n=t[0],i=t[1];return this.data[n][i]},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"viewDate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"selectionRange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"viewIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellLeave",void 0),e=i.__decorate([r.Component({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}),i.__metadata("design:paramtypes",[s.BusViewService,c.IntlService,r.ChangeDetectorRef,r.ElementRef,r.NgZone,r.Renderer2,u.DisabledDatesService])],e)}();t.ViewComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(75),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.MultiViewCalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(80),a=n(24),s=n(84),u=n(88),c=n(55),l=n(97),p=[o.CalendarsModule,a.DateInputModule,s.DatePickerModule,c.TimePickerModule,u.DateRangeModule,l.DateTimePickerModule],d=function(){function e(){}return e=i.__decorate([r.NgModule({exports:p,imports:p})],e)}();t.DateInputsModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(4),s=n(5),u=n(2),c=n(6),l=n(8),p=n(89),d=n(56),h=n(3),f=n(111),m=n(16),v=n(21),g=n(7),y=function(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={}));var _=function(){function e(e,t,n,i,r,a,s,c){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=r,this.zone=a,this.renderer=s,this.pickerService=c,this.format="t",this.min=u.cloneDate(l.MIN_TIME),this.max=u.cloneDate(l.MAX_TIME),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new o.EventEmitter,this.valueReject=new o.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current=h.timeInRange(this.snapTime(u.cloneDate(e||l.MIDNIGHT_DATE),this.min),this.min,this.max),o.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;if(this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach((function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")})),e>=0)){var n=this.listIndex(e),i=this.timeListWrappers.toArray()[n];i&&this.renderer.addClass(i.nativeElement,"k-state-focused")}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cdr.markForCheck()}))),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},e.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},e.prototype.handleAccept=function(){this.handleChange(this.mergeValue(u.cloneDate(this.value||u.getDate(h.getNow())),this.current))},e.prototype.handleNow=function(){this.current=h.getNow(),this.handleChange(this.current),this.cdr.markForCheck()},e.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},e.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},e.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},e.prototype.handleBlur=function(e){var t=g.currentFocusTarget(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},e.prototype.containsElement=function(e){var t=this;return Boolean(v.closest(e,(function(e){return e===t.element.nativeElement})))},e.prototype.partStep=function(e){return this.steps[e.type]||1},e.prototype.init=function(e){e&&!h.hasChange(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=f.valueMerger(f.generateGetters(this.dateFormatParts))),e&&!h.hasChange(e,"steps")||(this.snapTime=f.snapTime(f.generateSnappers(this.steps))),e&&!h.hasChange(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&h.isInTimeRange(h.getNow(),this.min,this.max)},e.prototype.focusList=function(e){this.timeLists.length&&this.timeLists.reduce(y,[]).map((function(t){return e===i.Right?t.next:t.prev})).map((function(e){return e&&e.focus()}))},e.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(u.cloneDate(e))},e.prototype.hasActiveButton=function(){var e=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce((function(t,n){return t||e.dom.isActive(n)}),!1)},e.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},e.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=f.valueMerger(f.generateGetters(this.dateFormatParts)),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.element.nativeElement,"keydown",e.handleKeydown.bind(e)))}))},e.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,r=-1!==[c.Keys.ArrowLeft,c.Keys.ArrowRight].indexOf(t);g.isPresent(this.pickerService)&&r&&n||(t!==c.Keys.Enter||this.hasActiveButton()?t!==c.Keys.ArrowLeft&&t!==c.Keys.ArrowRight||this.focusList(t===c.Keys.ArrowLeft?i.Left:i.Right):this.handleAccept())},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},r.__decorate([o.ViewChild("accept",{static:!1}),r.__metadata("design:type",o.ElementRef)],e.prototype,"accept",void 0),r.__decorate([o.ViewChild("cancel",{static:!1}),r.__metadata("design:type",o.ElementRef)],e.prototype,"cancel",void 0),r.__decorate([o.ViewChild("now",{static:!1}),r.__metadata("design:type",o.ElementRef)],e.prototype,"now",void 0),r.__decorate([o.ViewChildren(p.TimeListComponent),r.__metadata("design:type",o.QueryList)],e.prototype,"timeLists",void 0),r.__decorate([o.ViewChildren("listWrapper"),r.__metadata("design:type",o.QueryList)],e.prototype,"timeListWrappers",void 0),r.__decorate([o.HostBinding("class.k-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"format",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"setButton",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"nowButton",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"steps",null),r.__decorate([o.Input(),r.__metadata("design:type",Date)],e.prototype,"value",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],e.prototype,"valueReject",void 0),e=r.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.timeselector"}],selector:"kendo-timeselector",template:'\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept="kendo.timeselector.accept|The Accept button text in the timeselector component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timeselector.cancel|The Cancel button text in the timeselector component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timeselector.now|The Now button text in the timeselector component"\n now="Now"\n\n i18n-nowLabel="kendo.timeselector.nowLabel|The label for the Now button in the timeselector component"\n nowLabel="Select now"\n >\n </ng-container>\n <div class="k-time-header">\n <span class="k-title k-timeselector-title">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf="showNowButton"\n type="button"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base 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-hstack k-justify-content-stretch" *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 '}),r.__param(7,o.Optional()),r.__metadata("design:paramtypes",[a.LocalizationService,o.ChangeDetectorRef,o.ElementRef,s.IntlService,d.TimePickerDOMService,o.NgZone,o.Renderer2,m.PickerService])],e)}();t.TimeSelectorComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(2),o=n(41),a=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},s=function(e,t){return a(e,t)&&e.getSeconds()===t.getSeconds()},u=[{type:o.TIME_PART.hour,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:o.TIME_PART.minute,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return a(e,t)?t.getMinutes():0}},{type:o.TIME_PART.second,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return s(e,t)?t.getSeconds():0}},{type:o.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return function(e,t){return s(e,t)&&e.getMilliseconds()===t.getMilliseconds()}(e,t)?t.getMilliseconds():0}}];t.generateGetters=(i=u,function(e){return i.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(e)))}),t.generateSnappers=function(e){return function(t){return e.map((function(e){var n=t[e.type];return n?function(e,t,n){return function(i,r){var o=e(i),a=t(i,r),s=o-a;if(s<0)return a;var u=s%n;return o-u+(u>n/2?n:0)}}(e.getter,e.minGetter,n):e.getter}))}}(u),t.valueMerger=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},t.snapTime=function(e){return function(t,n){var i=r.cloneDate(t);return i.setHours.apply(i,e.map((function(e){return e(i,n)}))),i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.TimePickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TimePickerMessages);t.TimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.TimePickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TimePickerMessages);t.TimeSelectorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(98),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.DateTimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=n(98),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=s}])}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("tslib"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@progress/kendo-common")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularDateinputs=t(require("@angular/core"),require("tslib"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-intl"),require("@progress/kendo-angular-common"),require("rxjs"),require("@progress/kendo-angular-popup"),require("@angular/common"),require("@angular/forms"),require("@progress/kendo-licensing"),require("rxjs/operators"),require("@progress/kendo-common")):e.KendoAngularDateinputs=t(e.ng.core,e.self,e.KendoDateMath,e.KendoAngularL10N,e.KendoAngularIntl,e.KendoAngularCommon,e.rxjs,e.KendoAngularPopup,e.ng.common,e.ng.forms,e.KendoLicensing,e.rxjs.operators,e.KendoCommon)}(window,(function(e,t,n,i,a,o,r,s,l,c,d,u,p){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=99)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(8),o=n(12),r=n(7),s=function(e){return null!=e},l=function(e){return function(t,n){var a=i.cloneDate(t);return a[e](n),a}};t.setTime=function(e,t){var n=i.cloneDate(e);return n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n};var c=function(e,n,o){return{candidateValue:t.setTime(a.MIDNIGHT_DATE,e),maxValue:i.addDays(t.setTime(a.MIDNIGHT_DATE,o),n.getHours()<o.getHours()||n.getHours()===o.getHours()&&n.getMinutes()<o.getMinutes()?0:1),minValue:t.setTime(a.MIDNIGHT_DATE,n)}};t.setYears=l("setFullYear"),t.setHours=l("setHours"),t.setMinutes=l("setMinutes"),t.setSeconds=l("setSeconds"),t.setMilliseconds=l("setMilliseconds"),t.range=function(e,t,n){void 0===n&&(n=1);for(var i=[],a=e;a<t;a+=n)i.push(a);return i},t.isInRange=function(e,t,n){return!e||!(t&&t>e||n&&n<e)},t.isInTimeRange=function(e,t,n){if(!e||!t||!n)return!0;var i=c(e,t,n),a=i.candidateValue,o=i.minValue,r=i.maxValue;return o<=a&&a<=r},t.isValidRange=function(e,t){return!s(e)||!s(t)||e<=t},t.dateInRange=function(e,t,n){return e?t&&e<t?i.cloneDate(t):n&&e>n?i.cloneDate(n):e:e},t.timeInRange=function(e,n,i){if(!e||!n||!i)return e;var a=c(e,n,i),o=a.candidateValue,r=a.minValue,s=a.maxValue;return o<r?t.setTime(e,n):o>s?t.setTime(e,i):e},t.getNow=function(){return new Date},t.getToday=function(){return i.getDate(new Date)},t.noop=function(e){},t.isWindowAvailable=function(){return"undefined"!=typeof window},t.stringifyClassObject=function(e){return Object.keys(e).reduce((function(t,n){return e[n]?t.concat(n):t}),[]).join(" ")},t.shiftWeekNames=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.approximateStringMatching=function(e,t,n,i){var a=i+e.length-n.length,o=e[a],r=e.substring(0,i+e.length-n.length),s=n.substring(0,i),l=[];if(r===s&&i>0)return l.push([t[i-1],s[i-1]]),l;if(0===r.indexOf(s)&&(0===s.length||t[s.length-1]!==t[s.length])){var c="";1===s.length&&l.push([t[0],s[0]]);for(var d=s.length;d<r.length;d++)t[d]!==c&&"_"!==t[d]&&(c=t[d],l.push([c,""]));return l}if(0===s.indexOf(r)||"_"===t[i-1]){var u=t[0];for(d=Math.max(0,r.length-1);d<t.length;d++)if("_"!==t[d]){u=t[d];break}return[[u,s[i-1]]]}return" "===s[s.length-1]||s[s.length-1]===o&&"_"===t[a]?[[t[i-1],"_"]]:[[t[i-1],s[i-1]]]},t.domContainerFactory=function(e){return function(t,n,i){void 0===n&&(n=""),void 0===i&&(i={});var a=document.createElement(e);return a.className=n,Object.keys(i).map((function(e){return a.style[e]=i[e]})),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach((function(e){return e&&a.appendChild(e)})),a}},t.hasChange=function(e,t){return void 0!==e[t]},t.hasExistingValue=function(e,t){return e[t]&&void 0!==e[t].currentValue&&null!==e[t].currentValue},t.last=function(e){return void 0===e&&(e=[]),e&&e[e.length-1]},t.isInSelectionRange=function(e,t){var n=t||o.EMPTY_SELECTIONRANGE,i=n.start,a=n.end;return!(!i||!a)&&(i<e&&e<a)},t.either=function(e,t){return e||t},t.clampRange=function(e){return{start:e,end:e}},t.isEqualRange=function(e,t){var n=e||o.EMPTY_SELECTIONRANGE,a=n.start,r=n.end,s=t||o.EMPTY_SELECTIONRANGE,l=s.start,c=s.end;return i.isEqual(a,l)&&i.isEqual(r,c)},t.areDatesEqual=function(e,t){return t=t||[],(e=e||[]).length===t.length&&e.every((function(e,n){return i.isEqual(e,t[n])}))},t.sortDates=function(e){return e.filter((function(e){return r.isPresent(e)})).sort((function(e,t){return e.getTime()-t.getTime()}))},t.mergeDateAndTime=function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()):null},t.lastMillisecondOfDate=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999):null},t.disabledDatesInRange=function(e,t,n){if(!(e&&t&&n)||e>t)return[];for(var a=[],o=e;o<=t;)n(o)&&a.push(o),o=i.addDays(o,1);return a},t.cropTwoDigitYear=function(e){return!r.isPresent(e)||isNaN(e.getTime())?0:Number(e.getFullYear().toString().slice(-2))},t.msPaddingFromFormat=function(e){return Array(e.match(/S+(\1)/)[0].length).join("0")},t.millisecondDigitsInFormat=function(e){var t=e&&e.match(/S+(\1)/);return t?t[0].length:0},t.millisecondStepFor=function(e){return Math.pow(10,3-e)},t.isTabExitingCalendar=function(e,t,n){return!!r.isPresent(t)&&("infinite"===e||"classic"===e&&n&&t.classList.contains("k-calendar")||!n&&t.classList.contains("k-next-view"))},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]},t.getRoundedClass=function(e){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[e]},t.getFillModeClass=function(e,t){return{solid:"k-"+e+"-solid",flat:"k-"+e+"-flat",outline:"k-"+e+"-outline"}[t]}},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.preventDefault=function(e){return e.preventDefault()},t.currentFocusTarget=function(e){return e.relatedTarget||document.activeElement},t.isPresent=function(e){return null!=e},t.isNumberArray=function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return"number"==typeof e}))},t.isDateArray=function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return e instanceof Date}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_DATE=new Date(1980,0,1),t.MIN_DATE=new Date(1900,0,1),t.MAX_DATE=new Date(2099,11,31),t.MIN_TIME=new Date(1980,0,1),t.MAX_TIME=new Date(1980,0,1,23,59,59)},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.month=0]="month",e[e.year=1]="year",e[e.decade=2]="decade",e[e.century=3]="century"}(t.CalendarViewEnum||(t.CalendarViewEnum={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(46),s=n(47),l=n(48),c=n(49),d=n(10),u=((i={})[d.CalendarViewEnum.month]=l.MonthViewService,i[d.CalendarViewEnum.year]=c.YearViewService,i[d.CalendarViewEnum.decade]=s.DecadeViewService,i[d.CalendarViewEnum.century]=r.CenturyViewService,i),p=function(){function e(e){this.injector=e,this.viewChanged=new o.EventEmitter,this.bottom=d.CalendarViewEnum.month,this.top=d.CalendarViewEnum.century}return e.prototype.configure=function(e,t){this.bottom=e,this.top=t},e.prototype.service=function(e){var t=u[e];return t?this.injector.get(t):null},e.prototype.moveDown=function(e){this.move(e,-1)},e.prototype.moveUp=function(e){this.move(e,1)},e.prototype.moveToBottom=function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})},e.prototype.canMoveDown=function(e){return this.bottom<e},e.prototype.canMoveUp=function(e){return e<this.top},e.prototype.clamp=function(e){return e<this.bottom?this.bottom:e>this.top?this.top:e},e.prototype.move=function(e,t){var n=this.clamp(function(e,t){var n=d.CalendarViewEnum[d.CalendarViewEnum[e+t]];return void 0!==n?n:e}(e,t));n!==e&&this.viewChanged.emit({view:n})},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[o.Injector])],e)}();t.BusViewService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_SELECTIONRANGE={start:null,end:null}},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.PrevView=4]="PrevView",e[e.NextView=5]="NextView",e[e.FirstInView=6]="FirstInView",e[e.LastInView=7]="LastInView",e[e.LowerView=8]="LowerView",e[e.UpperView=9]="UpperView"}(t.Action||(t.Action={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(){this.onFocus=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.sameDateSelected=new i.EventEmitter,this.dateCompletenessChange=new i.EventEmitter};t.PickerService=a},function(e,t){e.exports=c},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647332140,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(9),s=n(7),l=function(){return!1},c=function(){function e(){this.changes=new r.Subject,this.isDateDisabled=l}return e.prototype.initialize=function(e){if("function"==typeof e)this.isDateDisabled=function(t){return e(o.getDate(t))};else if(s.isNumberArray(e)){var t=new Set(e);this.isDateDisabled=function(e){return t.has(e.getDay())}}else if(s.isDateArray(e)){var n=new Set(e.map((function(e){return o.getDate(e).getTime()})));this.isDateDisabled=function(e){return n.has(o.getDate(e).getTime())}}else this.isDateDisabled=l,this.notifyInvalidInput(e);this.notifyServiceChange()},e.prototype.notifyInvalidInput=function(e){if(s.isPresent(e)&&a.isDevMode())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")},e.prototype.notifyServiceChange=function(){this.changes.next()},e=i.__decorate([a.Injectable()],e)}();t.DisabledDatesService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.TOUCH_ENABLED=new i.InjectionToken("dateinputs-touch-enabled")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(9),r=n(12),s=n(2),l=function(e){return e&&e.isActive||!1},c=function(){function e(){this.activeRangeEnd$=new o.BehaviorSubject(null),this.focusedDate$=new o.BehaviorSubject(null),this.endInput$=new o.BehaviorSubject(null),this.startInput$=new o.BehaviorSubject(null),this.dateRangePopup$=new o.BehaviorSubject(null),this.range$=new o.BehaviorSubject(r.EMPTY_SELECTIONRANGE)}return Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.activeRangeEnd$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this.focusedDate$.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return(this.startInput$.value||{}).min||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return(this.endInput$.value||{}).max||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.range$.value},enumerable:!0,configurable:!0}),e.prototype.activatePopup=function(){var e=this.dateRangePopup$.value;e&&e.activate()},e.prototype.deactivatePopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&(e.show=!1)},e.prototype.cancelPopup=function(){var e=this.dateRangePopup$.value;e&&e.show&&e.cancelPopup()},e.prototype.destroy=function(){this.activeRangeEnd$.complete(),this.dateRangePopup$.complete(),this.focusedDate$.complete(),this.endInput$.complete(),this.startInput$.complete(),this.range$.complete()},e.prototype.hasActiveComponent=function(){var e=this.dateRangePopup$.value,t=l(e),n=l(this.startInput$.value),i=l(this.endInput$.value);return t||n||i||function(e){return e&&e.hasActiveContent()}(e)||!1},e.prototype.registerStartInput=function(e){this.startInput$.next(e)},e.prototype.registerEndInput=function(e){this.endInput$.next(e)},e.prototype.registerPopup=function(e){this.dateRangePopup$.next(e)},e.prototype.setActiveRangeEnd=function(e){e&&this.activeRangeEnd!==e&&this.activeRangeEnd$.next(e)},e.prototype.setFocusedDate=function(e){s.isEqual(this.focusedDate$.value,e)||this.focusedDate$.next(e)},e.prototype.setRange=function(e){void 0===e&&(e=r.EMPTY_SELECTIONRANGE),this.range$.next(e)},e=i.__decorate([a.Injectable()],e)}();t.DateRangeService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(39),r=n(14),s=n(5),l=n(81),c=n(83),d=n(6),u=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],exports:[o.DateInputComponent,c.DateInputCustomMessagesComponent,l.DateInputLocalizedMessagesDirective],imports:[r.CommonModule,s.IntlModule,d.EventsModule]})],e)}();t.DateInputModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(2),l=n(6),c=n(58),d=n(59),u=n(11),p=n(51),h=n(60),m=n(20),g=n(26),f=n(27),v=n(28),y=n(29),_=n(30),b=n(31),C=n(32),w=n(15),D=n(10),k=n(33),T=n(34),E=n(100),S=n(8),M=n(3),I=n(9),O=n(7),V=n(16),R="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json";t.RANGE_CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return x}))},t.RANGE_CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return x}))};var x=function(){function e(e,t,n,i,o,r,s,c,d){this.bus=e,this.element=t,this.navigator=n,this.renderer=i,this.cdr=o,this.zone=r,this.disabledDatesService=s,this.selectionService=c,this.pickerService=d,this.id=l.guid(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=D.CalendarViewEnum[D.CalendarViewEnum.month],this.bottomView=D.CalendarViewEnum[D.CalendarViewEnum.month],this.topView=D.CalendarViewEnum[D.CalendarViewEnum.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new a.EventEmitter,this.navigate=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.blurEvent=new a.EventEmitter,this.cellUID=l.guid(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=w.Action.PrevView,this.nextView=w.Action.NextView,this.selectedDates=[],this._min=new Date(S.MIN_DATE),this._max=new Date(S.MAX_DATE),this._focusedDate=M.getToday(),this.resolvedPromise=Promise.resolve(),this.onControlChange=M.noop,this.onControlTouched=M.noop,this.onValidatorChange=M.noop,this.minValidateFn=M.noop,this.maxValidateFn=M.noop,this.disabledDatesRangeValidateFn=M.noop,this.subscriptions=new I.Subscription,this.setClasses(t.nativeElement)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||M.getToday()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(S.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(S.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return O.isPresent(e)})).map((function(e){return s.cloneDate(e)})):s.cloneDate(e);var t=[].concat(e).filter((function(e){return O.isPresent(e)})).map((function(e){return s.cloneDate(e)}));if(!M.areDatesEqual(t,this.selectedDates)){var n=M.last(t);this.rangePivot=s.cloneDate(n),this.focusedDate=s.cloneDate(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{set:function(e){this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=D.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return D.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return D.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),e.prototype.handleFocusout=function(e){var t=e.relatedTarget;this.element.nativeElement.contains(t)||(this.blurEvent.emit(e),this.onControlTouched()),this.isActive=!1,this.isHovered=!1,this.isHeaderActive=this.headerElement.nativeElement.contains(t)},e.prototype.handleFocus=function(){this.isActive=!0,this.isHeaderActive=!1},e.prototype.handleMouseEnter=function(){this.isHovered=!0},e.prototype.handleMouseLeave=function(){this.isHovered=!1},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleClick=function(){this.isActive||this.focus()},e.prototype.keydown=function(e){if(!this.isHeaderActive){e.keyCode===l.Keys.Enter&&(O.isPresent(this.pickerService)&&e.preventDefault(),this.performSelection(this.focusedDate,e));var t=M.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);if(!s.isEqual(this.focusedDate,t))this.focusedDate=t,e.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.bus.viewChanged.subscribe((function(t){var n=t.view;e.activeView=D.CalendarViewEnum[n],e.activeViewChange.emit(e.activeView),e.cdr.detectChanges(),e.updateButtonState()})))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),M.hasExistingValue(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=M.dateInRange(t,this.min,this.max)}(e.min||e.max||e.rangeValidation||e.disabledDates||e.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?k.minValidator(this.min):M.noop,this.maxValidateFn=this.rangeValidation?T.maxValidator(this.max):M.noop,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?E.disabledDatesRangeValidator(this.disabledDatesService.isDateDisabled):M.noop,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngAfterViewInit=function(){this.updateButtonState()},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.handleHeaderFocus=function(){this.isHeaderActive=!0},e.prototype.handleDateChange=function(e){var t=this,n=this.bus.canMoveDown(this.activeViewEnum),i=e.selectedDates.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate;var a=!n&&M.areDatesEqual(i,this.selectedDates);this.disabled||a||(n?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=i.map((function(e){return s.cloneDate(e)})),this.value=this.parseSelectionToValue(i),this.onControlChange(this.parseSelectionToValue(i)),this.valueChange.emit(this.parseSelectionToValue(i))))},e.prototype.handleTodayButtonClick=function(e){var t=e.focusedDate,n=this.bus.service(this.activeViewEnum).isInArray(t,this.viewList.dates),i=!this.bus.canMoveDown(this.activeViewEnum);!n&&i&&this.emitNavigate(t),this.handleDateChange(e)},e.prototype.setActiveDate=function(e){this.activeDate=s.cloneDate(e),this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case D.CalendarViewEnum.month:return this.monthCellTemplateRef||this.cellTemplateRef;case D.CalendarViewEnum.year:return this.yearCellTemplateRef;case D.CalendarViewEnum.decade:return this.decadeCellTemplateRef;case D.CalendarViewEnum.century:return this.centuryCellTemplateRef;default:return null}},e.prototype.navigateView=function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=D.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitCellEvent=function(e,t){l.hasObservers(e)&&this.zone.run((function(){e.emit(t)}))},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.zone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:M.last(e)})}))},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")},e.prototype.verifyChanges=function(){if(a.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(a.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+R+" 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 "+R+" for possible resolution.")}},e.prototype.updateButtonState=function(){var e=this;this.resolvedPromise.then((function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()}))},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(M.last(e)):e.map((function(e){return s.cloneDate(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"focusedDate",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesRangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewHeader",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"selectionRange",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"views",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"blurEvent",void 0),i.__decorate([a.ContentChild(g.CellTemplateDirective,{static:!1}),i.__metadata("design:type",g.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.Input("cellTemplate"),i.__metadata("design:type",g.CellTemplateDirective),i.__metadata("design:paramtypes",[g.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([a.ContentChild(f.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",f.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.Input("monthCellTemplate"),i.__metadata("design:type",f.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[f.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([a.ContentChild(v.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",v.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.Input("yearCellTemplate"),i.__metadata("design:type",v.YearCellTemplateDirective),i.__metadata("design:paramtypes",[v.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([a.ContentChild(y.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",y.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.Input("decadeCellTemplate"),i.__metadata("design:type",y.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[y.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([a.ContentChild(_.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",_.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.Input("centuryCellTemplate"),i.__metadata("design:type",_.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[_.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([a.ContentChild(b.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",b.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.Input("weekNumberTemplate"),i.__metadata("design:type",b.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[b.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([a.ContentChild(C.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",C.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.Input("headerTitleTemplate"),i.__metadata("design:type",C.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[C.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([a.ViewChild(d.HeaderComponent,{static:!1,read:a.ElementRef}),i.__metadata("design:type",a.ElementRef)],e.prototype,"headerElement",void 0),i.__decorate([a.ViewChild(c.HorizontalViewListComponent,{static:!1}),i.__metadata("design:type",c.HorizontalViewListComponent)],e.prototype,"viewList",void 0),i.__decorate([a.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"widgetId",null),i.__decorate([a.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),i.__decorate([a.HostBinding("attr.aria-disabled"),a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([a.HostBinding("attr.aria-activedescendant"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"ariaActivedescendant",null),i.__decorate([a.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleFocusout",null),i.__decorate([a.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleFocus",null),i.__decorate([a.HostListener("mouseenter"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),i.__decorate([a.HostListener("mouseleave"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),i.__decorate([a.HostListener("mousedown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleMousedown",null),i.__decorate([a.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),i.__decorate([a.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"keydown",null),e=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-multiviewcalendar",providers:[u.BusViewService,t.RANGE_CALENDAR_VALUE_ACCESSOR,t.RANGE_CALENDAR_RANGE_VALIDATORS,r.LocalizationService,m.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.multiviewcalendar"},p.NavigationService,h.SelectionService],selector:"kendo-multiviewcalendar",template:'\n <ng-container kendoMultiViewCalendarLocalizedMessages\n i18n-today="kendo.multiviewcalendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-calendar-header\n [activeView]="activeViewEnum"\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [rangeLength]="views"\n [templateRef]="headerTitleTemplateRef?.templateRef"\n [isPrevDisabled]="isPrevDisabled"\n [isNextDisabled]="isNextDisabled"\n [showNavigationButtons]="true"\n (todayButtonClick)="handleTodayButtonClick({ selectedDates: [$event], focusedDate: $event })"\n (prevButtonClick)="navigateView(prevView)"\n (nextButtonClick)="navigateView(nextView)"\n [kendoEventsOutsideAngular]="{\n focusin: handleHeaderFocus\n }"\n [scope]="this"\n >\n </kendo-calendar-header>\n <kendo-calendar-horizontal\n [activeView]="activeViewEnum"\n [isActive]="isActive || (isHovered && !isHeaderActive)"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [views]="views"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [animateNavigation]="animateNavigation"\n [showViewHeader]="showViewHeader"\n [weekNumber]="weekNumber"\n [activeRangeEnd]="activeRangeEnd"\n [selectionRange]="selectionRange"\n [selectedDates]="selectedDates"\n (valueChange)="handleDateChange($event)"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (cellEnter)="emitCellEvent(cellEnter, $event)"\n (cellLeave)="emitCellEvent(cellLeave, $event)"\n (activeDateChange)="setActiveDate($event)"\n >\n </kendo-calendar-horizontal>\n '}),i.__param(8,a.Optional()),i.__metadata("design:paramtypes",[u.BusViewService,a.ElementRef,p.NavigationService,a.Renderer2,a.ChangeDetectorRef,a.NgZone,m.DisabledDatesService,h.SelectionService,V.PickerService])],e)}();t.MultiViewCalendarComponent=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarMonthCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.MonthCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarYearCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.YearCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarDecadeCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.DecadeCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarCenturyCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.CenturyCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarWeekNumberCellTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.WeekNumberCellTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarHeaderTitleTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.HeaderTitleTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minValidator=function(e){return function(t){var n={minError:{minValue:e,value:t.value}};return e&&t.value&&t.value<e?n:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValidator=function(e){return function(t){var n={maxError:{maxValue:e,value:t.value}};return e&&t.value&&t.value>e?n:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(10),s=n(6),l=n(3),c=n(7),d=l.domContainerFactory("div"),u=l.domContainerFactory("ul"),p=l.domContainerFactory("li"),h=l.domContainerFactory("td"),m=l.domContainerFactory("th"),g=l.domContainerFactory("tr"),f=l.domContainerFactory("tbody"),v=l.domContainerFactory("thead"),y=l.domContainerFactory("table"),_=function(e,t){return new Array(e).fill("1").map(t)},b=function(e){return d(e,"k-flex k-content k-calendar-content k-scrollable")},C=function(){return s.isDocumentAvailable?(i||(i=d([b([u([p("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null},w=function(e,t,n){var i,a=e.cells,o=e.rows;return function(){return s.isDocumentAvailable?(i||(i=function(e,t,n){return d([d('\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-nav-today">TODAY</span>\n </span>\n ',"k-calendar-header k-hstack"),n?y([v([g([m("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,b([e,e])],t,{left:"-10000px",position:"absolute"})}(function(e,t){return void 0===t&&(t=1),y([f([g([m("1","k-calendar-th")],"k-calendar-tr")].concat(_(e,(function(){return g(_(t,(function(e){return h('<span class="k-link">'+e+"</span>","k-calendar-td")})),"k-calendar-tr")}))),"k-calendar-tbody")],"k-calendar-table")}(o,a),t,n)),i):null}},D=function(e){return e.querySelector(".k-scrollable")},k=function(e){return D(e).classList.add("k-scrollable-horizontal"),e},T=w({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),E=w({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),S=w({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),M=function(e){return parseFloat(window.getComputedStyle(e).height)||e.offsetHeight},I=function(e){var t=window.getComputedStyle(e);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||e.offsetWidth},O=function(e){return e.querySelector("tbody")},V=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.calendarHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){var t=this;s.isDocumentAvailable()&&(this.hostContainer=e,this.batch(T(),(function(e){var n=O(e);t.calendarHeight=M(e),t.monthViewHeight=M(n),t.headerHeight=M(n.children[0]),t.scrollableContentHeight=M(D(e))})),this.batch(k(T()),(function(e){var n=O(e);t.calendarWidth=I(e),t.monthViewWidth=I(n),t.scrollableContentWidth=I(D(e))})),this.batch(E(),(function(e){t.yearViewHeight=M(O(e)),t.scrollableYearContentHeight=M(D(e))})),this.batch(k(E()),(function(e){t.yearViewWidth=I(O(e))})),this.batch(S(),(function(e){t.decadeViewHeight=M(O(e)),t.centuryViewHeight=t.decadeViewHeight})),this.batch(k(S()),(function(e){t.decadeViewWidth=I(O(e)),t.centuryViewWidth=t.decadeViewWidth})),this.batch(C(),(function(e){t.navigationItemHeight=M(e.querySelector("li"))})))},e.prototype.viewHeight=function(e){return this.viewDimension(e,"height")},e.prototype.viewWidth=function(e){return this.viewDimension(e,"width")},e.prototype.viewDimension=function(e,t){var n="height"===t?"ViewHeight":"ViewWidth";switch(e){case r.CalendarViewEnum.month:return this["month"+n];case r.CalendarViewEnum.year:return this["year"+n];case r.CalendarViewEnum.decade:return this["decade"+n];case r.CalendarViewEnum.century:return this["century"+n];default:return 1}},e.prototype.batch=function(e,t){if(c.isPresent(this.hostContainer)){var n=this.hostContainer.cloneNode();document.body.appendChild(n);try{t(n.appendChild(e))}catch(e){throw e}finally{document.body.removeChild(n)}}},e=a.__decorate([o.Injectable()],e)}();t.CalendarDOMService=V},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a,o,r,s=n(1),l=n(0),c=n(101),d=n(102),u=n(6),p=n(9),h=n(36);function m(e){return new d.ScrollerService(e)}t.SCROLLER_FACTORY_TOKEN=new l.InjectionToken("dateinputs-scroll-service-factory"),t.DEFAULT_SCROLLER_FACTORY=m,function(e){e[e.Backward=0]="Backward",e[e.Forward=1]="Forward"}(r=t.ScrollDirection||(t.ScrollDirection={}));var g=((i={})[r.Forward]=function(e){return function(t){return t+e}},i[r.Backward]=function(e){return function(t){return t-e}},i),f=((a={})[r.Forward]=function(e){return function(t){return Math.min(t,e)}},a[r.Backward]=function(e){return function(t){return Math.max(t,e)}},a),v=((o={})[r.Forward]=function(e){return function(t){return t<e}},o[r.Backward]=function(e){return function(t){return t>e}},o),y=function(){function e(e,t,n,i){this.container=t,this.renderer=n,this.zone=i,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new l.EventEmitter,this.pageChange=new l.EventEmitter,this.scrollChange=new l.EventEmitter,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new p.Subject,this.scroller=e(this.dispatcher)}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return"horizontal"===this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalVertexLength",{get:function(){var e=this.totalSize+"px";return"vertical"===this.direction?{height:e}:{width:e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerOffsetSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollSize",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containerScrollPosition",{get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)},e.prototype.ngOnInit=function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())},e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.containerScrollSubscription=e.scroll$().pipe(h.map((function(e){return e.target}))).subscribe((function(t){e.dispatcher.next(t),e.emitActiveIndex()}))}))},e.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()},e.prototype.getContainerProperty=function(e){return this.container.nativeElement[e]},e.prototype.activeIndex=function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))},e.prototype.itemIndex=function(e){return this.rowHeightService.index(e)},e.prototype.itemOffset=function(e){return this.rowHeightService.offset(e)},e.prototype.isIndexVisible=function(e){if(!this.rowHeightService)return!1;var t=this.containerScrollPosition,n=t+this.containerOffsetSize,i=this.rowHeightService.offset(e),a=i+this.rowHeightService.height(e);return i>=t&&a<=n},e.prototype.isListScrolled=function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)},e.prototype.scrollTo=function(e){var t="vertical"===this.direction?"scrollTop":"scrollLeft";this.renderer.setProperty(this.container.nativeElement,t,e)},e.prototype.scrollToIndex=function(e){var t=this;this.zone.runOutsideAngular((function(){t.resolvedPromise.then((function(){t.scrollTo(t.rowHeightService.offset(e))}))}))},e.prototype.scrollToBottom=function(){this.scrollTo(this.totalSize)},e.prototype.animateToIndex=function(e){var t=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var n=this.rowHeightService.offset(e),i=this.getContainerScrollDirection(n),a=this.scrollRange(n,i),o=a.start,r=a.end;if(o!==r){var s=this.scrollStep(o,r),l=g[i](s),c=f[i](r),d=v[i](l(r));this.zone.runOutsideAngular((function(){t.animationSubscription=p.combineLatest(p.of(o),p.interval(0,p.animationFrameScheduler)).pipe(h.map((function(e){return e[0]})),h.scan(l),h.takeWhile(d),h.map(c)).subscribe((function(e){return t.scrollTo(e)}))}))}},e.prototype.scrollRange=function(e,t){var n=this.containerScrollPosition;if(parseInt(e,10)===parseInt(n,10))return{start:e,end:e};var i,a,o,s=this.containerMaxScroll(),l=t===r.Backward?1:-1,c=(i=n,a=e,o=this.maxScrollDifference,Math.min(Math.abs(a-i),o)),d=Math.min(e,s);return{start:Math.min(Math.max(d+l*c,0),s),end:d}},e.prototype.scrollStep=function(e,t){return Math.abs(t-e)/(this.scrollDuration/17)},e.prototype.scroll$=function(){return u.isDocumentAvailable()?p.fromEvent(this.container.nativeElement,"scroll"):p.EMPTY},e.prototype.initServices=function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe((function(t){t instanceof d.PageAction?e.pageChange.emit(t):e.scrollChange.emit(t)}))},e.prototype.createRowHeightService=function(){var e="vertical"===this.direction?this.itemHeight:this.itemWidth;return new c.RowHeightService(this.total,e,0)},e.prototype.emitActiveIndex=function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))},e.prototype.containerMaxScroll=function(){return this.containerScrollSize-this.containerOffsetSize},e.prototype.getContainerScrollDirection=function(e){return e<this.containerScrollPosition?r.Backward:r.Forward},s.__decorate([l.Input(),s.__metadata("design:type",String)],e.prototype,"direction",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"itemHeight",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"itemWidth",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"topOffset",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"bottomOffset",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"maxScrollDifference",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"scrollOffsetSize",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"scrollDuration",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"skip",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"take",void 0),s.__decorate([l.Input(),s.__metadata("design:type",Number)],e.prototype,"total",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],e.prototype,"activeIndexChange",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],e.prototype,"pageChange",void 0),s.__decorate([l.Output(),s.__metadata("design:type",l.EventEmitter)],e.prototype,"scrollChange",void 0),s.__decorate([l.HostBinding("class.k-flex"),l.HostBinding("class.k-content"),l.HostBinding("class.k-calendar-content"),l.HostBinding("class.k-scrollable"),s.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),s.__decorate([l.HostBinding("class.k-scrollable-horizontal"),s.__metadata("design:type",Boolean),s.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),e=s.__decorate([l.Component({providers:[{provide:t.SCROLLER_FACTORY_TOKEN,useValue:m}],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 '}),s.__param(0,l.Inject(t.SCROLLER_FACTORY_TOKEN)),s.__metadata("design:paramtypes",[Object,l.ElementRef,l.Renderer2,l.NgZone])],e)}();t.VirtualizationComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(33),r=n(34),s=n(40),l=n(17),c=n(4),d=n(5),u=n(18),p=n(19),h=n(2),m=n(6),g=n(104),f=n(3),v=n(16),y=n(21),_=n(7),b=/year|month|<day>/,C=/hour|minute|second|millisecond/,w=/d|M|H|h|m|s/,D=function(e){return e.replace(/^0*/,"")},k=function(){this.symbols=""},T=function(){function e(e,t,n,i,a){if(void 0===a&&(a=68),this.intl=e,this.formatPlaceholder=t,this.format=n,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=h.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"},u.validatePackage(p.packageMetadata),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),i)this.value=h.cloneDate(i);else{this.value=h.getDate(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,r=0;r<o.length;r++)this.setExisting(o[r],!1)}}return e.prototype.hasValue=function(){var e=this;return this.intl.splitDateFormat(this.format).reduce((function(t,n){return t||"literal"!==n.type&&"dayperiod"!==n.type&&e.getExisting(n.pattern[0])}),!1)},e.prototype.shouldNormalizeCentury=function(){return this.intl.splitDateFormat(this.format).some((function(e){return"yy"===e.pattern}))},e.prototype.getDateObject=function(){for(var e=0;e<this.knownParts.length;e++)if(!this.getExisting(this.knownParts[e]))return null;return h.cloneDate(this.value)},e.prototype.getTextAndFormat=function(e){return this.merge(this.intl.formatDate(this.value,e),this.dateFormatString(this.value,e))},e.prototype.getExisting=function(e){switch(e){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}},e.prototype.setExisting=function(e,t){switch(e){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}},e.prototype.modifyPart=function(e,t){var n=h.cloneDate(this.value);switch(e){case"y":n.setFullYear(n.getFullYear()+t);break;case"M":n=h.addMonths(this.value,t);break;case"d":case"E":n.setDate(n.getDate()+t);break;case"h":case"H":n.setHours(n.getHours()+t);break;case"m":n.setMinutes(n.getMinutes()+t);break;case"s":n.setSeconds(n.getSeconds()+t);break;case"S":n.setMilliseconds(n.getMilliseconds()+t);break;case"a":n.setHours(n.getHours()+12*t)}this.shouldNormalizeCentury()&&(n=this.normalizeCentury(n)),n.getFullYear()>0&&(this.setExisting(e,!0),this.value=n)},e.prototype.parsePart=function(e,t,n){if(!t)return this.resetLeadingZero(),this.setExisting(e,!1),{value:null,switchToNext:!1};for(var i=this.intl.formatDate(this.value,this.format),a=this.dateFormatString(this.value,this.format),o=a.symbols,r=!1,s="",l="",c="",d=0;d<i.length;d++)o[d]===e?(l+=this.getExisting(e)?i[d]:"0",r=!0):r?c+=i[d]:s+=i[d];var u=l.length-3,p=null,m=this.matchMonth(t),g=this.matchDayPeriod(t,e),v="0"===t,y=(this.leadingZero||{})[e]||0;v?0!==parseInt(n?t:l+t,10)||this.isAbbrMonth(a.partMap,e)||this.incrementLeadingZero(e):this.resetLeadingZero();for(d=Math.max(0,u);d<=l.length;d++){var _=n?t:l.substring(d)+t;if("S"===e&&n)_=f.msPaddingFromFormat(o)+_;var b=parseInt(_,10);if(!(p=this.intl.parseDate(s+_+c,this.format))&&!isNaN(b)&&!isNaN(parseInt(t,10))){if("M"===e&&!m){var C=b-1;C>-1&&C<12&&((p=h.cloneDate(this.value)).setMonth(C),p.getMonth()!==C&&(p=h.lastDayOfMonth(h.addMonths(p,-1))))}"y"===e&&(p=h.createDate(parseInt(_,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&&p.getDate()!==this.value.getDate()&&(p=h.lastDayOfMonth(h.addMonths(p,-1))))}if(p){var w=this.partPattern(a.partMap,e).pattern,k=this.intl.parseDate(""+s+this.peek(_,w)+c,this.format),T=this.patternLength(w)||w.length,E=y+(D(_)||t).length>=T,S=null===k||E;return this.shouldNormalizeCentury()&&(p=this.normalizeCentury(p)),this.value=p,this.setExisting(e,!0),{value:this.value,switchToNext:S}}}return m&&(p=this.intl.parseDate(s+m+c,this.format))?(this.value=p,this.setExisting(e,!0),{value:this.value,switchToNext:!1}):g&&(p=this.intl.parseDate(s+g+c,this.format))?(this.value=p,{value:this.value,switchToNext:!0}):(v&&this.setExisting(e,!1),{value:null,switchToNext:!1})},e.prototype.resetLeadingZero=function(){var e=null!==this.leadingZero;return this.setLeadingZero(null),e},e.prototype.setLeadingZero=function(e){this.leadingZero=e},e.prototype.normalizeCentury=function(e){if(!_.isPresent(e))return e;var t=f.cropTwoDigitYear(e),n=this.getNormalizedCenturyBase(t);return f.setYears(e,n+t)},e.prototype.incrementLeadingZero=function(e){var t=this.leadingZero||{};t[e]=(t[e]||0)+1,this.leadingZero=t},e.prototype.isAbbrMonth=function(e,t){var n=this.partPattern(e,t);return"month"===n.type&&n.names},e.prototype.partPattern=function(e,t){return e.filter((function(e){return-1!==e.pattern.indexOf(t)}))[0]},e.prototype.peek=function(e,t){var n=D(e)+"0";return function(e){return new Array(Math.max(e,0)).fill("0").join("")}(t.length-n.length)+n},e.prototype.matchMonth=function(e){if(this.typedMonthPart+=e.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var t=0;t<this.monthNames.length;t++)if(0===this.monthNames[t].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[t];var n=parseInt(this.typedMonthPart,10);if(n>=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""},e.prototype.matchDayPeriod=function(e,t){var n=String(e).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""},e.prototype.allFormatedMonths=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("month"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.allDayPeriods=function(){for(var e=this.intl.splitDateFormat(this.format),t=0;t<e.length;t++)if("dayperiod"===e[t].type&&e[t].names)return this.intl.dateFormatNames(e[t].names);return null},e.prototype.patternLength=function(e){return"y"===e[0]?4:w.test(e)?2:0},e.prototype.dateFormatString=function(e,t){for(var n=this.intl.splitDateFormat(t),i=[],a=[],o=0;o<n.length;o++)for(var r=this.intl.formatDate(e,{pattern:n[o].pattern}).length;r>0;)i.push(this.symbols[n[o].pattern[0]]||"_"),a.push(n[o]),r--;var s=new k;return s.symbols=i.join(""),s.partMap=a,s},e.prototype.merge=function(e,t){for(var n="",i="",a=t.symbols,o=a.length-1;o>=0;o--)if(-1===this.knownParts.indexOf(a[o])||this.getExisting(a[o]))n=e[o]+n,i=a[o]+i;else{for(var r=a[o];o>=0&&r===a[o];)o--;for(o++,n=this.leadingZero&&this.leadingZero[r]?"0"+n:this.dateFieldName(t.partMap[o])+n;i.length<n.length;)i=a[o]+i}return[n,i]},e.prototype.dateFieldName=function(e){var t=this.formatPlaceholder||"wide";return t[e.type]?t[e.type]:"formatPattern"===t?e.pattern:this.intl.dateFieldName(Object.assign(e,{nameType:t}))},e.prototype.getNormalizedCenturyBase=function(e){return e>this.twoDigitYearMax?1900:2e3},e}(),E=function(){function e(e,t,n,i,o,r,s,l){this.cdr=e,this.intl=t,this.renderer=n,this.wrapper=i,this.ngZone=o,this.injector=r,this.localization=s,this.pickerService=l,this.focusableId="k-"+m.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new a.EventEmitter,this.valueUpdate=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.arrow=g.Arrow,this.arrowDirection=g.Arrow.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.noop,this.maxValidator=f.noop,this.incompleteValidator=f.noop,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=f.noop,this.onControlTouched=f.noop,this.onValidatorChange=f.noop,this._size="medium",this._rounded="medium",this._fillMode="solid",this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this.autoCorrect&&!f.isInRange(e,this.min,this.max)||(this._value=h.cloneDate(e),this.valueUpdate.emit(h.cloneDate(e)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,f.getSizeClass("input",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,f.getSizeClass("input",e)),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,f.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,f.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,f.getFillModeClass("input",this.fillMode)),e&&(this.renderer.addClass(this.wrapper.nativeElement,f.getFillModeClass("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:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputElement",{get:function(){return this.dateInput?this.dateInput.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputValue",{get:function(){return(this.inputElement||{}).value||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!_.isPresent(this.pickerService)){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayFormat",{get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.currentValue||!String(this.currentValue).trim()},e.prototype.containsElement=function(e){var t=this;return Boolean(y.closest(e,(function(e){return e===t.wrapper.nativeElement})))},e.prototype.ngOnChanges=function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?o.minValidator(this.min):f.noop,this.maxValidator=this.rangeValidation?r.maxValidator(this.max):f.noop,this.incompleteValidator=this.incompleteDateValidation?s.incompleteDateValidator():f.noop,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var t=this.kendoDate&&h.isEqual(this.value,this.kendoDate.getDateObject());(e.format||!t||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.ngOnInit=function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(l.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.writeValue=function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=h.cloneDate(e),this.updateElementValue(this.isActive)},e.prototype.triggerChange=function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=h.cloneDate(e),this.notify())},e.prototype.notify=function(){var e=this;this.ngZone.run((function(){e.onControlChange(h.cloneDate(e.value)),e.valueChange.emit(h.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=g.Arrow.None,this.modifyDateSegmentValue(e)},e.prototype.modifyDateSegmentValue=function(e){var t=this.caret(),n=this.currentFormat[t[0]],i=(this.steps||{})[this.symbolsMap[n]]||1;if("S"===n&&!this.steps.millisecond){var a=f.millisecondDigitsInFormat(this.inputFormat);i=f.millisecondStepFor(a)}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(e>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;for(var n=this.currentFormat[t[0]],i=t[0]+e;i>0&&i<this.currentFormat.length&&(this.currentFormat[i]===n||"_"===this.currentFormat[i]);)i+=e;if("_"===this.currentFormat[i])return!1;for(var a=i;a>=0&&a<this.currentFormat.length&&this.currentFormat[a]===this.currentFormat[i];)a+=e;return i>a&&(a+1!==t[0]||i+1!==t[1])?(this.caret(a+1,i+1),this.resetSegmentValue=!0,!0):i<a&&(i!==t[0]||a!==t[1])&&(this.caret(i,a),this.resetSegmentValue=!0,!0)},e.prototype.selectDateSegment=function(e){for(var t=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===e&&(n=i+1,-1===t&&(t=i));t<0&&(t=0),this.caret(0,0),this.caret(t,n)},e.prototype.handleClick=function(){if(this.hasMousedown=!1,this.isActive){var e=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=_.isPresent(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,n=!e&&t?0:this.caret()[0];this.selectNearestSegment(n)}},e.prototype.handleDragAndDrop=function(e){e.preventDefault()},e.prototype.handleMousedown=function(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive},e.prototype.handleFocus=function(e){var t=this;this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,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)||_.requiresZoneOnBlur(this.ngControl)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):this.emitBlur(e)},e.prototype.getKendoDate=function(e){var t=(this.kendoDate||{}||null).leadingZero,n=new T(this.intl,this.formatPlaceholder,this.inputFormat,e,this.twoDigitYearMax);return n.setLeadingZero(this.isActive?t:null),n},e.prototype.dateSymbolMap=function(){return this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){return e[t.pattern[0]]=t.type,e}),{})},e.prototype.updateElementValue=function(e){var t=this.caret()[0],n=this.isActive?this.inputFormat:this.displayFormat,i=this.kendoDate.getTextAndFormat(n),a=!this.isActive&&_.isPresent(this.placeholder)&&!this.kendoDate.hasValue(),o=this.inputElement;this.currentFormat=i[1],this.currentValue=a?"":i[0],this.renderer.setProperty(o,"value",this.currentValue),o.placeholder!==this.placeholder&&this.renderer.setProperty(o,"placeholder",this.placeholder),e&&this.selectNearestSegment(t)},e.prototype.caret=function(e,t){void 0===t&&(t=e);var n=void 0!==e,i=[e,e],a=this.inputElement;if(!n||!this.disabled&&!this.readonly){try{void 0!==a.selectionStart&&(n&&(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||n>=0;t++,n--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(n>=0&&"_"!==this.currentFormat[n])return void this.selectDateSegment(this.currentFormat[n])}},e.prototype.verifyRange=function(){if(a.isDevMode()&&!f.isValidRange(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(a.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")},e.prototype.putDateInRange=function(){var e=this.kendoDate.getDateObject(),t=f.dateInRange(e,this.min,this.max);this.autoCorrect&&!h.isEqual(e,t)&&(this.kendoDate=this.getKendoDate(t))},e.prototype.updateFormatSections=function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce((function(e,t){var n=e.date,i=e.time;return{date:n||b.test(t.type),time:i||C.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;_.isPresent(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var t=+e!=+this.value;this.writeValue(e),t&&this.notify()},e.prototype.bindEvents=function(){var e=this.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((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())},e.prototype.handlePaste=function(){this.paste=!0},e.prototype.handleKeydown=function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey))if(e.keyCode!==m.Keys.Tab)if(e.keyCode!==m.Keys.Backspace){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()}else this.backspace=!0;else this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault()},e.prototype.handleInput=function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=f.approximateStringMatching(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===e.length&&"_"===e[0][1],n=!1;if(!t){for(var i=0;i<e.length;i++)n=this.kendoDate.parsePart(e[i][0],e[i][1],this.resetSegmentValue).switchToNext;var a=this.kendoDate.getDateObject();this.value&&a&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(f.setTime(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&&(_.isPresent(this.ngControl)&&!_.isPresent(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))):_.isPresent(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())},e.prototype.setSpinnerFill=function(e,t,n){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(){this.size&&this.renderer.addClass(this.wrapper.nativeElement,f.getSizeClass("input",this.size)),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,f.getRoundedClass(this.rounded)),this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,f.getFillModeClass("input",this.fillMode)),this.spinners&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"ariaReadOnly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"steps",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isPopupOpen",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"hasPopup",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueUpdate",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.ViewChild("dateInput",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"dateInput",void 0),i.__decorate([a.HostBinding("class.k-input"),a.HostBinding("class.k-dateinput"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"wrapperClass",null),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([a.ViewChild("spinup",{static:!1}),i.__metadata("design:type",a.ElementRef)],e.prototype,"spinup",void 0),i.__decorate([a.ViewChild("spindown",{static:!1}),i.__metadata("design:type",a.ElementRef)],e.prototype,"spindown",void 0),e=t=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-dateinput",providers:[{provide:l.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:l.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:c.L10N_PREFIX,useValue:"kendo.dateinput"},{provide:m.KendoInput,useExisting:a.forwardRef((function(){return t}))},c.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-arrow-n"></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-arrow-s"></span>\n </button>\n </span>\n '}),i.__param(7,a.Optional()),i.__metadata("design:paramtypes",[a.ChangeDetectorRef,d.IntlService,a.Renderer2,a.ElementRef,a.NgZone,a.Injector,c.LocalizationService,v.PickerService])],e)}();t.DateInputComponent=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.incompleteDateValidator=function(){return function(e,t){return!i.isPresent(e.value)&&t?{incompleteDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_PART={dayperiod:"dayperiod",hour:"hour",millisecond:"millisecond",minute:"minute",second:"second"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(5),s=n(73),l=n(43),c=n(44),d=n(57),u=n(61),p=n(62),h=n(35),m=n(46),g=n(47),f=n(48),v=n(49),y=n(50),_=n(76),b=n(78),C=n(79),w=n(6),D=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[d.CalendarComponent,u.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,p.ViewListComponent],exports:[d.CalendarComponent,u.NavigationComponent,b.CalendarCustomMessagesComponent,_.CalendarLocalizedMessagesDirective,p.ViewListComponent,s.CalendarCommonModule,c.TemplatesModule],imports:[o.CommonModule,s.CalendarCommonModule,l.MultiViewCalendarModule,r.IntlModule,c.TemplatesModule,C.VirtualizationModule,w.EventsModule,w.ResizeSensorModule],providers:[h.CalendarDOMService,m.CenturyViewService,g.DecadeViewService,f.MonthViewService,v.YearViewService,y.WeekNamesService]})],e)}();t.CalendarModule=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(5),s=n(13),l=n(6),c=n(73),d=n(44),u=n(58),p=n(25),h=n(74),m=n(108),g=n(51),f=n(46),v=n(47),y=n(48),_=n(49),b=n(50),C=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[u.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,m.MultiViewCalendarCustomMessagesComponent,p.MultiViewCalendarComponent],exports:[u.HorizontalViewListComponent,h.MultiViewCalendarLocalizedMessagesDirective,m.MultiViewCalendarCustomMessagesComponent,p.MultiViewCalendarComponent,c.CalendarCommonModule,d.TemplatesModule],imports:[o.CommonModule,c.CalendarCommonModule,r.IntlModule,d.TemplatesModule,s.PopupModule,l.EventsModule],providers:[g.NavigationService,f.CenturyViewService,v.DecadeViewService,y.MonthViewService,_.YearViewService,b.WeekNamesService]})],e)}();t.MultiViewCalendarModule=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(26),r=n(27),s=n(28),l=n(29),c=n(30),d=n(31),u=n(32),p=n(52),h=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,u.HeaderTitleTemplateDirective,p.NavigationItemTemplateDirective],exports:[o.CellTemplateDirective,r.MonthCellTemplateDirective,s.YearCellTemplateDirective,l.DecadeCellTemplateDirective,c.CenturyCellTemplateDirective,d.WeekNumberCellTemplateDirective,u.HeaderTitleTemplateDirective,p.NavigationItemTemplateDirective]})],e)}();t.TemplatesModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"accept",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"acceptLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancelLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"now",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nowLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),t}(n(4).ComponentMessages);t.TimePickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(15),l=n(12),c=n(3),d=n(7),u=[[]],p=((i={})[s.Action.Left]=function(e){return r.addDecades(e,-1)},i[s.Action.Up]=function(e){return r.addDecades(e,-5)},i[s.Action.Right]=function(e){return r.addDecades(e,1)},i[s.Action.Down]=function(e){return r.addDecades(e,5)},i[s.Action.PrevView]=function(e){return r.addCenturies(e,-1)},i[s.Action.NextView]=function(e){return r.addCenturies(e,1)},i[s.Action.FirstInView]=function(e){return r.firstDecadeOfCentury(e)},i[s.Action.LastInView]=function(e){return r.lastDecadeOfCentury(e)},i),h=function(){function e(){this.dateRange=function(e,t){if(!d.isPresent(e)||!d.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=r.addDecades(i,1);return n}}return e.prototype.addToDate=function(e,t){return r.addCenturies(e,t)},e.prototype.datesList=function(e,t){return c.range(0,t).map((function(t){return r.addCenturies(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,s=e.min,d=e.selectedDates,p=e.selectionRange,h=void 0===p?l.EMPTY_SELECTIONRANGE:p,m=e.viewDate;if(!m)return u;var g=c.range(0,4),f=r.firstDecadeOfCentury(m),v=r.lastDecadeOfCentury(m),y=c.getToday();return c.range(0,3).map((function(e){var l=r.addDecades(f,4*e);return g.map((function(e){var u=t.normalize(r.addDecades(l,e),s,o),p=u.getFullYear()>v.getFullYear();if(!t.isInRange(u,s,o)||p)return null;var m=t.isEqual(u,h.start),g=t.isEqual(u,h.end),_=!m&&!g&&c.isInSelectionRange(u,h);return{formattedValue:t.value(u),id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&d.some((function(e){return t.isEqual(u,e)})),isWeekend:!1,isRangeStart:m,isRangeMid:_,isRangeEnd:g,isRangeSplitEnd:_&&t.isEqual(u,v),isRangeSplitStart:_&&t.isEqual(u,f),isToday:t.isEqual(u,y),title:t.cellTitle(u),value:u}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&r.firstYearOfDecade(e).getFullYear()===r.firstYearOfDecade(t).getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+99},e.prototype.isInRange=function(e,t,n){var i=r.firstYearOfDecade(e).getFullYear(),a=!t||r.firstYearOfDecade(t).getFullYear()<=i,o=!n||i<=r.firstYearOfDecade(n).getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=r.firstYearOfDecade(r.firstDecadeOfCentury(e));return r.createDate(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=r.lastDecadeOfCentury(e),n=r.lastYearOfDecade(t),i=r.lastMonthOfYear(n);return r.lastDayOfMonth(i)},e.prototype.isRangeStart=function(e){return e.getFullYear()%1e3==0},e.prototype.move=function(e,t){var n=p[t];return n?n(e):e},e.prototype.cellTitle=function(e){return r.firstYearOfDecade(e).getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?r.firstDecadeOfCentury(e).getFullYear().toString():""},e.prototype.title=function(e){return e?r.firstDecadeOfCentury(e).getFullYear()+" - "+r.lastDecadeOfCentury(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return r.durationInCenturies(t,e)},e.prototype.total=function(e,t){return r.durationInCenturies(e,t)+1},e.prototype.value=function(e){return e?r.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return r.addCenturies(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?r.cloneDate(t):e>n&&this.isEqual(e,n)?r.cloneDate(n):e},e=a.__decorate([o.Injectable()],e)}();t.CenturyViewService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(15),l=n(12),c=n(3),d=n(7),u=[[]],p=((i={})[s.Action.Left]=function(e){return r.addYears(e,-1)},i[s.Action.Up]=function(e){return r.addYears(e,-5)},i[s.Action.Right]=function(e){return r.addYears(e,1)},i[s.Action.Down]=function(e){return r.addYears(e,5)},i[s.Action.PrevView]=function(e){return r.addDecades(e,-1)},i[s.Action.NextView]=function(e){return r.addDecades(e,1)},i[s.Action.FirstInView]=function(e){return r.firstYearOfDecade(e)},i[s.Action.LastInView]=function(e){return r.lastYearOfDecade(e)},i),h=function(){function e(){this.dateRange=function(e,t){if(!d.isPresent(e)||!d.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=r.addYears(i,1);return n}}return e.prototype.addToDate=function(e,t){return r.addDecades(e,t)},e.prototype.datesList=function(e,t){return c.range(0,t).map((function(t){return r.addDecades(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,s=e.min,d=e.selectedDates,p=e.selectionRange,h=void 0===p?l.EMPTY_SELECTIONRANGE:p,m=e.viewDate;if(!m)return u;var g=c.range(0,4),f=r.firstYearOfDecade(m),v=r.lastYearOfDecade(m),y=c.getToday();return c.range(0,3).map((function(e){var l=r.addYears(f,4*e);return g.map((function(e){var u=t.normalize(r.addYears(l,e),s,o),p=u.getFullYear()>v.getFullYear();if(!t.isInRange(u,s,o)||p)return null;var m=t.isEqual(u,h.start),g=t.isEqual(u,h.end),_=!m&&!g&&c.isInSelectionRange(u,h);return{formattedValue:t.value(u),id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&d.some((function(e){return t.isEqual(u,e)})),isWeekend:!1,isRangeStart:m,isRangeMid:_,isRangeEnd:g,isRangeSplitEnd:_&&t.isEqual(u,v),isRangeSplitStart:_&&t.isEqual(u,f),isToday:t.isEqual(u,y),title:t.cellTitle(u),value:u}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&e.getFullYear()===t.getFullYear()},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()+9},e.prototype.isInRange=function(e,t,n){var i=e.getFullYear(),a=!t||t.getFullYear()<=i,o=!n||i<=n.getFullYear();return a&&o},e.prototype.beginningOfPeriod=function(e){if(!e)return e;var t=r.firstYearOfDecade(e);return r.createDate(t.getFullYear(),0,1)},e.prototype.lastDayOfPeriod=function(e){var t=r.lastYearOfDecade(e),n=r.lastMonthOfYear(t);return r.lastDayOfMonth(n)},e.prototype.isRangeStart=function(e){return e.getFullYear()%100==0},e.prototype.move=function(e,t){var n=p[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear().toString()},e.prototype.navigationTitle=function(e){return e?r.firstYearOfDecade(e).getFullYear().toString():""},e.prototype.title=function(e){return e?r.firstYearOfDecade(e).getFullYear()+" - "+r.lastYearOfDecade(e).getFullYear():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return r.durationInDecades(t,e)},e.prototype.total=function(e,t){return r.durationInDecades(e,t)+1},e.prototype.value=function(e){return e?e.getFullYear().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return r.addDecades(e,-1*a)}return e},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?r.cloneDate(t):e>n&&this.isEqual(e,n)?r.cloneDate(n):e},e=a.__decorate([o.Injectable()],e)}();t.DecadeViewService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(5),s=n(2),l=n(15),c=n(12),d=n(3),u=n(7),p=[[]],h=((i={})[l.Action.Left]=function(e){return s.addDays(e,-1)},i[l.Action.Up]=function(e){return s.addWeeks(e,-1)},i[l.Action.Right]=function(e){return s.addDays(e,1)},i[l.Action.Down]=function(e){return s.addWeeks(e,1)},i[l.Action.PrevView]=function(e){return s.addMonths(e,-1)},i[l.Action.NextView]=function(e){return s.addMonths(e,1)},i[l.Action.FirstInView]=function(e){return s.firstDayOfMonth(e)},i[l.Action.LastInView]=function(e){return s.lastDayOfMonth(e)},i),m=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!u.isPresent(e)||!u.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=s.addDays(i,1);return n}}return e.prototype.addToDate=function(e,t){return s.addMonths(e,t)},e.prototype.datesList=function(e,t){return d.range(0,t).map((function(t){return s.addMonths(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,l=e.selectedDates,u=e.selectionRange,h=void 0===u?c.EMPTY_SELECTIONRANGE:u,m=e.viewDate,g=e.isDateDisabled,f=void 0===g?function(){return!1}:g;if(!m)return p;var v=s.firstDayOfMonth(m),y=s.getDate(v),_=s.lastDayOfMonth(m),b=s.getDate(_),C=s.dayOfWeek(v,this._intlService.firstDay(),-1),w=d.range(0,7),D=d.getToday();return d.range(0,6).map((function(e){var c=s.addDays(C,7*e);return w.map((function(e){var u=t.normalize(s.addDays(c,e),r,o),p=s.getDate(u),m=p<y||p>b;if(u<r||u>o)return null;var g=t.isEqual(u,h.start),C=t.isEqual(u,h.end),w=!g&&!C&&d.isInSelectionRange(u,h);return{formattedValue:t.value(u),id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&l.some((function(e){return t.isEqual(u,e)})),isWeekend:t.isWeekend(u),isRangeStart:g,isRangeMid:w,isRangeEnd:C,isRangeSplitStart:w&&t.isEqual(u,v),isRangeSplitEnd:w&&t.isEqual(u,_),isToday:t.isEqual(u,D),title:t.cellTitle(u),value:u,isDisabled:f(u),isOtherMonth:m}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&s.getDate(e).getTime()===s.getDate(t).getTime()},e.prototype.isInArray=function(e,t){if(0===t.length)return!1;var n=this.beginningOfPeriod(t[0]),i=this.beginningOfPeriod(s.addMonths(t[t.length-1],1));return n<=e&&e<i},e.prototype.isInRange=function(e,t,n){var i=s.getDate(e),a=!t||s.getDate(t)<=i,o=!n||i<=s.getDate(n);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?s.createDate(e.getFullYear(),e.getMonth(),1):e},e.prototype.lastDayOfPeriod=function(e){return s.lastDayOfMonth(e)},e.prototype.isRangeStart=function(e){return!e.getMonth()},e.prototype.move=function(e,t){var n=h[t];return n?n(e):e},e.prototype.cellTitle=function(e){return this._intlService.formatDate(e,"D")},e.prototype.navigationTitle=function(e){return e?this.isRangeStart(e)?e.getFullYear().toString():this.abbrMonthNames()[e.getMonth()]:""},e.prototype.title=function(e){return this.wideMonthNames()[e.getMonth()]+" "+e.getFullYear()},e.prototype.rowLength=function(e){return void 0===e&&(e={}),7+(e.prependCell?1:0)},e.prototype.skip=function(e,t){return s.durationInMonths(t,e)},e.prototype.total=function(e,t){return s.durationInMonths(e,t)+1},e.prototype.value=function(e){return e?e.getDate().toString():""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return s.addMonths(e,-1*a)}return e},e.prototype.isWeekend=function(e){var t=this._intlService.weekendRange(),n=t.start,i=t.end,a=e.getDay();return i<n?a<=i||n<=a:n<=a&&a<=i},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?s.cloneDate(t):e>n&&this.isEqual(e,n)?s.cloneDate(n):e},e.prototype.wideMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService])],e)}();t.MonthViewService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(5),s=n(2),l=n(15),c=n(12),d=n(3),u=n(7),p=[[]],h=((i={})[l.Action.Left]=function(e){return s.addMonths(e,-1)},i[l.Action.Up]=function(e){return s.addMonths(e,(t=e.getMonth())>4?-5:t<2?-2:-7);var t},i[l.Action.Right]=function(e){return s.addMonths(e,1)},i[l.Action.Down]=function(e){return s.addMonths(e,(t=e.getMonth())<7?5:t<10?7:2);var t},i[l.Action.PrevView]=function(e){return s.addYears(e,-1)},i[l.Action.NextView]=function(e){return s.addYears(e,1)},i[l.Action.FirstInView]=function(e){return s.firstMonthOfYear(e)},i[l.Action.LastInView]=function(e){return s.lastMonthOfYear(e)},i),m=function(){function e(e){this._intlService=e,this.dateRange=function(e,t){if(!u.isPresent(e)||!u.isPresent(t))return[];for(var n=[],i=e;i<=t;)n.push(i),i=s.addMonths(i,1);return n}}return e.prototype.addToDate=function(e,t){return s.addYears(e,t)},e.prototype.datesList=function(e,t){return d.range(0,t).map((function(t){return s.addYears(e,t)}))},e.prototype.data=function(e){var t=this,n=e.cellUID,i=e.focusedDate,a=e.isActiveView,o=e.max,r=e.min,l=e.selectedDates,u=e.selectionRange,h=void 0===u?c.EMPTY_SELECTIONRANGE:u,m=e.viewDate;if(!m)return p;var g=this.abbrMonthNames(),f=s.firstMonthOfYear(m),v=s.lastMonthOfYear(m),y=f.getFullYear(),_=d.range(0,4),b=d.getToday();return d.range(0,3).map((function(e){var c=s.addMonths(f,4*e);return _.map((function(e){var u=t.normalize(s.addMonths(c,e),r,o),p=y<u.getFullYear();if(!t.isInRange(u,r,o)||p)return null;var m=t.isEqual(u,h.start),_=t.isEqual(u,h.end),C=!m&&!_&&d.isInSelectionRange(u,h);return{formattedValue:g[u.getMonth()],id:""+n+u.getTime(),isFocused:t.isEqual(u,i),isSelected:a&&l.some((function(e){return t.isEqual(u,e)})),isWeekend:!1,isRangeStart:m,isRangeMid:C,isRangeEnd:_,isRangeSplitEnd:C&&t.isEqual(u,v),isRangeSplitStart:C&&t.isEqual(u,f),isToday:t.isEqual(u,b),title:t.cellTitle(u),value:u}}))}))},e.prototype.isEqual=function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},e.prototype.isInArray=function(e,t){if(!t.length)return!1;var n=e.getFullYear();return t[0].getFullYear()<=n&&n<=t[t.length-1].getFullYear()},e.prototype.isInRange=function(e,t,n){var i=s.createDate(e.getFullYear(),e.getMonth(),1),a=!t||s.createDate(t.getFullYear(),t.getMonth(),1)<=i,o=!n||i<=s.createDate(n.getFullYear(),n.getMonth(),1);return a&&o},e.prototype.beginningOfPeriod=function(e){return e?s.createDate(e.getFullYear(),0,1):e},e.prototype.lastDayOfPeriod=function(e){var t=s.lastMonthOfYear(e);return s.lastDayOfMonth(t)},e.prototype.isRangeStart=function(e){return e.getFullYear()%10==0},e.prototype.move=function(e,t){var n=h[t];return n?n(e):e},e.prototype.cellTitle=function(e){return e.getFullYear()+" "+this.value(e)},e.prototype.navigationTitle=function(e){return this.title(e)},e.prototype.title=function(e){return e?e.getFullYear().toString():""},e.prototype.rowLength=function(){return 4},e.prototype.skip=function(e,t){return s.durationInYears(t,e)},e.prototype.total=function(e,t){return s.durationInYears(e,t)+1},e.prototype.value=function(e){return e?this.abbrMonthNames()[e.getMonth()]:""},e.prototype.viewDate=function(e,t,n){void 0===n&&(n=1);var i=this.total(e,t);if(i<n){var a=n-i;return s.addYears(e,-1*a)}return e},e.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})},e.prototype.normalize=function(e,t,n){return e<t&&this.isEqual(e,t)?s.cloneDate(t):e>n&&this.isEqual(e,n)?s.cloneDate(n):e},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[r.IntlService])],e)}();t.YearViewService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),r=n(3),s=function(){function e(e){this.intl=e}return e.prototype.getWeekNames=function(e){void 0===e&&(e=!1);var t=r.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(t):t},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.IntlService])],e)}();t.WeekNamesService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(15),r=n(11),s={33:o.Action.PrevView,34:o.Action.NextView,35:o.Action.LastInView,36:o.Action.FirstInView,37:o.Action.Left,38:o.Action.Up,39:o.Action.Right,40:o.Action.Down,"meta+38":o.Action.UpperView,"meta+40":o.Action.LowerView},l=function(){function e(e){this.bus=e}return e.prototype.action=function(e){var t=(e.ctrlKey||e.metaKey?"meta+":"")+e.keyCode;return s[t]},e.prototype.move=function(e,t,n){var i=this.bus.service(n);return i?t===o.Action.UpperView&&this.bus.canMoveUp(n)?(this.bus.moveUp(n),e):t===o.Action.LowerView&&this.bus.canMoveDown(n)?(this.bus.moveDown(n),e):i.move(e,t):e},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[r.BusViewService])],e)}();t.NavigationService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoCalendarNavigationItemTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.NavigationItemTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(13),s=n(68),l=n(23),c=n(25),d=n(37),u=n(6),p=n(9),h=n(36),m=n(3),g=n(7),f=function(){function e(e,t,n,i,o){this.popupService=e,this.dateRangeService=t,this.ref=n,this.zone=i,this.rtl=o,this.animate=!0,this.collision={horizontal:"fit",vertical:"flip"},this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.cancel=new a.EventEmitter,this.popupUID=u.guid(),this.calendarSubscriptions=new p.Subscription,this.popupSubscriptions=new p.Subscription,this.resolvedPromise=Promise.resolve()}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this._calendar},set:function(e){this._calendar=e,this.subscribeFocusBlur(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.calendar&&this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){if(this._show!==e){var t=new d.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dateRangeService.registerPopup(this)},e.prototype.ngAfterViewInit=function(){var e=this;this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe((function(t){return e.calendar=t.first}))),m.isWindowAvailable()&&this.zone.runOutsideAngular((function(){return e.windowBlurSubscription=p.fromEvent(window,"blur").subscribe(e.handleWindowBlur.bind(e))}))},e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.calendarSubscriptions.unsubscribe(),this.activateSubscription&&this.activateSubscription.unsubscribe(),this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe()},e.prototype.activate=function(){var e=this;!0!==this.show&&(this.activateSubscription&&this.activateSubscription.unsubscribe(),this.show=!0,this.ref.markForCheck(),this.zone.runOutsideAngular((function(){e.activateSubscription=p.merge(e.contentCalendar.changes,e.viewCalendar.changes).pipe(h.filter((function(e){return e&&e.first})),h.map((function(e){return e.first}))).subscribe((function(e){return setTimeout((function(){return e.focus()}))}))})))},e.prototype.focus=function(){this.calendar&&this.calendar.focus()},e.prototype.hasActiveContent=function(){return!(!u.isDocumentAvailable()||!this.popupRef)&&this.popupRef.popupElement.contains(document.activeElement)},e.prototype.toggle=function(e){var t=this;this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.cancelPopup=function(){this.show=!1,this.cancel.emit()},e.prototype.handleWindowBlur=function(){var e=this;this.show&&(u.hasObservers(this.close)?this.zone.run((function(){return e.show=!1})):this.show=!1)},e.prototype.handleMouseLeave=function(){this.dateRangeService.setRange(this.dateRangeService.selectionRange)},e.prototype.handleKeydown=function(e){var t=this,n=e.altKey,i=e.keyCode;(i===u.Keys.Escape||n&&i===u.Keys.ArrowUp)&&this.zone.run((function(){return t.cancelPopup()}))},e.prototype.subscribeFocusBlur=function(e){var t=this;if(this.blurSubscription&&(this.blurSubscription.unsubscribe(),this.focusSubscription.unsubscribe()),e){var n=e.element.nativeElement;this.blurSubscription=p.fromEvent(n,"blur").subscribe((function(){return t.onBlur.emit()})),this.focusSubscription=p.fromEvent(n,"focus").subscribe((function(){return t.onFocus.emit()}))}},e.prototype.addPopupSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];g.isPresent(this.popupSubscriptions)||(this.popupSubscriptions=new p.Subscription),t.map((function(t){return e.popupSubscriptions.add(t)}))},Object.defineProperty(e.prototype,"_appendTo",{get:function(){var e=this.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype._toggle=function(e){var t=this;if(this._show=e,this.popupRef&&this.destroyPopup(),this._show){var n=this.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.anchor,anchorAlign:this.anchorAlign||{vertical:"bottom",horizontal:n},animate:this.animate,appendTo:this._appendTo,collision:this.collision,content:(this.contentTemplate||{}).templateRef||this.defaultTemplate,margin:this.margin,popupAlign:this.popupAlign||{vertical:"top",horizontal:n},positionMode:"absolute"});var i=this.popupRef,a=i.popupElement,o=i.popupAnchorViewportLeave;a.setAttribute("id",this.popupUID),this.addPopupSubscriptions(this.zone.runOutsideAngular((function(){return p.fromEvent(a,"keydown").subscribe(t.handleKeydown.bind(t))})),p.fromEvent(a,"mouseleave").subscribe(this.handleMouseLeave.bind(this)),o.subscribe((function(){return t.cancelPopup()})))}},e.prototype.destroyPopup=function(){g.isPresent(this.popupRef)&&(this.popupRef.close(),this.popupRef=null),g.isPresent(this.popupSubscriptions)&&this.popupSubscriptions.unsubscribe()},i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!1}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("defaultTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"defaultTemplate",void 0),i.__decorate([a.ContentChild(s.DateRangePopupTemplateDirective,{static:!1}),i.__metadata("design:type",s.DateRangePopupTemplateDirective)],e.prototype,"contentTemplate",void 0),i.__decorate([a.ViewChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",a.QueryList)],e.prototype,"viewCalendar",void 0),i.__decorate([a.ContentChildren(c.MultiViewCalendarComponent),i.__metadata("design:type",a.QueryList)],e.prototype,"contentCalendar",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.ElementRef)],e.prototype,"anchor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"appendTo",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"margin",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cancel",void 0),e=i.__decorate([a.Component({exportAs:"kendo-daterange-popup",selector:"kendo-daterange-popup",template:"\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "}),i.__param(4,a.Optional()),i.__param(4,a.Inject(o.RTL)),i.__metadata("design:paramtypes",[r.PopupService,l.DateRangeService,a.ChangeDetectorRef,a.NgZone,Boolean])],e)}();t.DateRangePopupComponent=f},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(5),s=n(13),l=n(89),c=n(65),d=n(110),u=n(79),p=n(56),h=n(90),m=n(91),g=n(92),f=n(93),v=n(94),y=n(24),_=n(95),b=n(112),C=n(96),w=n(113),D=n(54),k=n(22),T=n(6),E=[_.TimePickerLocalizedMessagesDirective,l.TimeListComponent,b.TimePickerCustomMessagesComponent,c.TimePickerComponent,C.TimeSelectorLocalizedMessagesDirective,w.TimeSelectorCustomMessagesComponent,d.TimeSelectorComponent],S=[y.DateInputModule,r.IntlModule,s.PopupModule,u.VirtualizationModule,T.EventsModule],M=[p.TimePickerDOMService,h.HoursService,m.MinutesService,g.SecondsService,f.MillisecondsService,v.DayPeriodService,{provide:k.TOUCH_ENABLED,useValue:D.touchEnabled}],I=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[E],exports:[E],imports:[o.CommonModule].concat(S),providers:M})],e)}();t.TimePickerModule=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(6),r=n(3),s=r.domContainerFactory("div"),l=r.domContainerFactory("ul"),c=r.domContainerFactory("li"),d=r.domContainerFactory("span"),u=o.isDocumentAvailable()?s([d("hour","k-title k-timeselector-title"),s([s([l([c("<span>02</span>","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null,p=function(){function e(){}return e.prototype.ensureHeights=function(){void 0===this.timeListHeight&&this.calculateHeights()},e.prototype.calculateHeights=function(e){if(o.isDocumentAvailable()){var t=e&&e.querySelector(".k-time-list-container")||document.body,n=t.appendChild(u);this.timeListHeight=n.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=n.querySelector("li").getBoundingClientRect().height,t.removeChild(n)}},e.prototype.isActive=function(e){return!(!o.isDocumentAvailable()||!e)&&(e.nativeElement||e)===document.activeElement},e=i.__decorate([a.Injectable()],e)}();t.TimePickerDOMService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(2),l=n(6),c=n(18),d=n(19),u=n(25),p=n(61),h=n(62),m=n(35),g=n(11),f=n(51),v=n(20),y=n(60),_=n(103),b=n(26),C=n(27),w=n(28),D=n(29),k=n(30),T=n(31),E=n(32),S=n(52),M=n(16),I=n(10),O=n(33),V=n(34),R=n(8),x=n(3),P=n(21),A=n(7),N=n(9),F="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",B=function(e){return e?e.virtualization:null};t.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return L}))},t.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return L}))},t.KENDO_INPUT_PROVIDER={provide:l.KendoInput,useExisting:a.forwardRef((function(){return L}))};var L=function(){function e(e,t,n,i,o,r,s,u,p,h,m,g,f){this.bus=e,this.dom=t,this.element=n,this.navigator=i,this.renderer=o,this.cdr=r,this.ngZone=s,this.injector=u,this.scrollSyncService=p,this.disabledDatesService=h,this.localization=m,this.selectionService=g,this.pickerService=f,this.id=l.guid(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=I.CalendarViewEnum[I.CalendarViewEnum.month],this.bottomView=I.CalendarViewEnum[I.CalendarViewEnum.month],this.topView=I.CalendarViewEnum[I.CalendarViewEnum.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new a.EventEmitter,this.navigate=new a.EventEmitter,this.activeViewDateChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.isActive=!1,this.cellUID=l.guid(),this.selectedDates=[],this._min=new Date(R.MIN_DATE),this._max=new Date(R.MAX_DATE),this._focusedDate=x.getToday(),this.onControlChange=x.noop,this.onControlTouched=x.noop,this.onValidatorChange=x.noop,this.minValidateFn=x.noop,this.maxValidateFn=x.noop,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,c.validatePackage(d.packageMetadata),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return Object.defineProperty(e.prototype,"focusedDate",{get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!s.isEqual(this._focusedDate,e)){var t=this.bus.service(this.activeViewEnum),n=t.lastDayOfPeriod(this.activeViewDate);t.isInRange(e,this.activeViewDate,n)||this.emitNavigate(e)}this._focusedDate=e||x.getToday(),this.setAriaActivedescendant()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=e||new Date(R.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e||new Date(R.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter((function(e){return A.isPresent(e)})).map((function(e){return s.cloneDate(e)})):s.cloneDate(e);var t=[].concat(e).filter((function(e){return A.isPresent(e)})).map((function(e){return s.cloneDate(e)}));if(!x.areDatesEqual(t,this.selectedDates)){var n=x.last(t);this.rangePivot=s.cloneDate(n),this.focusedDate=s.cloneDate(n)||this.focusedDate,this.selectedDates=t}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-"+this.type),this.renderer.addClass(this.element.nativeElement,"k-calendar-"+e),this._type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellTemplateRef",{get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeViewEnum",{get:function(){var e=I.CalendarViewEnum[this.activeView];return e<this.bottomViewEnum?this.bottomViewEnum:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomViewEnum",{get:function(){return I.CalendarViewEnum[this.bottomView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topViewEnum",{get:function(){return I.CalendarViewEnum[this.topView]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTabIndex",{get:function(){return this.disabled||"classic"===this.type?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return"classic"===this.type?void 0:this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.viewChangeSubscription=this.bus.viewChanged.subscribe((function(t){var n=t.view;return e.handleActiveViewChange(I.CalendarViewEnum[n])})),this.control=this.injector.get(o.NgControl,null),this.element&&this.ngZone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){if(this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),x.hasExistingValue(e,"focusedDate")){var t=e.focusedDate.currentValue;this.focusedDate=x.dateInRange(t,this.min,this.max)}e.navigation&&(this.syncNavigation=!0),(e.min||e.max||e.rangeValidation)&&(this.minValidateFn=this.rangeValidation?O.minValidator(this.min):x.noop,this.maxValidateFn=this.rangeValidation?V.maxValidator(this.max):x.noop,this.onValidatorChange())},e.prototype.ngAfterViewInit=function(){this.setAriaActivedescendant()},e.prototype.ngAfterViewChecked=function(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(B(this.navigationView),B(this.monthView)))},e.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},e.prototype.onResize=function(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()},e.prototype.focus=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;A.isPresent(e)&&e.focus()},e.prototype.blur=function(){var e="infinite"===this.type?this.element&&this.element.nativeElement:this.multiViewCalendar;A.isPresent(e)&&e.blur()},e.prototype.containsElement=function(e){var t=this;return Boolean(P.closest(e,(function(e){return e===t.element.nativeElement})))},e.prototype.handleNavigation=function(e){if(!this.disabled){var t=e?new Date(s.cloneDate(e).setDate(1)):this.focusedDate;this.focusedDate=x.dateInRange(t,this.min,this.max),this.detectChanges()}},e.prototype.onPageChange=function(){var e=this;a.NgZone.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=N.from(this.resolvedPromise).subscribe((function(){e.detectChanges()})))},e.prototype.handleMultiViewCalendarValueChange=function(e,t){var n=Array.isArray(e)?e:[e];this.handleDateChange({selectedDates:n,focusedDate:t})},e.prototype.handleDateChange=function(e){var t=this,n=Array.isArray(e.selectedDates)?e.selectedDates:[e.selectedDates],i=this.bus.canMoveDown(this.activeViewEnum),a=n.filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.focusedDate=e.focusedDate||this.focusedDate,this.disabled||(i||!x.areDatesEqual(a,this.selectedDates)?i?this.bus.moveDown(this.activeViewEnum):this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run((function(){t.selectedDates=a.map((function(e){return s.cloneDate(e)})),t.value=t.parseSelectionToValue(a),t.onControlChange(t.parseSelectionToValue(a)),t.valueChange.emit(t.parseSelectionToValue(a)),t.cdr.markForCheck()})):this.emitSameDate())},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.activeCellTemplate=function(){switch(this.activeViewEnum){case I.CalendarViewEnum.month:return this.monthCellTemplateRef||this.cellTemplateRef;case I.CalendarViewEnum.year:return this.yearCellTemplateRef;case I.CalendarViewEnum.decade:return this.decadeCellTemplateRef;case I.CalendarViewEnum.century:return this.centuryCellTemplateRef;default:return null}},e.prototype.handleNavigate=function(e){this.focusedDate=e.focusedDate,this.activeView=e.activeView,this.emitNavigate(this.focusedDate)},e.prototype.emitNavigate=function(e){var t=I.CalendarViewEnum[this.activeViewEnum];this.navigate.emit({activeView:t,focusedDate:e})},e.prototype.emitEvent=function(e,t){l.hasObservers(e)&&this.ngZone.run((function(){e.emit(t)}))},e.prototype.handleActiveDateChange=function(e){this.activeViewDate=e,this.emitEvent(this.activeViewDateChange,e)},e.prototype.handleActiveViewChange=function(e){this.activeView=e,this.emitEvent(this.activeViewChange,e),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()},e.prototype.handleCellClick=function(e){var t=e.date,n=e.modifiers;this.performSelection(t,n)},e.prototype.handleWeekNumberClick=function(e){var t=this;"single"!==this.selection&&this.ngZone.run((function(){t.handleDateChange({selectedDates:e,focusedDate:x.last(e)})}))},e.prototype.handleBlur=function(e){var t=this;this.element.nativeElement.contains(e.relatedTarget)||(this.isActive=!1,!this.pickerService&&A.requiresZoneOnBlur(this.control)?this.ngZone.run((function(){t.onControlTouched(),t.emitBlur(e),t.cdr.markForCheck()})):(this.emitBlur(e),this.detectChanges()))},e.prototype.handleFocus=function(){this.isActive=!0,a.NgZone.isInAngularZone()||this.detectChanges(),this.emitFocus()},e.prototype.setClasses=function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-"+this.type)},e.prototype.verifyChanges=function(){if(a.isDevMode()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}},e.prototype.verifyValue=function(e){if(a.isDevMode()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check "+F+" 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 "+F+" for possible resolution.")}},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",A.preventDefault),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(){this.pickerService&&this.pickerService.onFocus.emit()},e.prototype.handleComponentClick=function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=s.cloneDate(this.focusedDate),this.detectChanges()),this.focus())},e.prototype.handleKeydown=function(e){if(!("classic"===this.type&&this.multiViewCalendar.isHeaderActive)){var t=-1!==[l.Keys.ArrowUp,l.Keys.ArrowRight,l.Keys.ArrowDown,l.Keys.ArrowLeft].indexOf(e.keyCode);if(!(A.isPresent(this.pickerService)&&t&&e.altKey)){var n=x.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);s.isEqual(this.focusedDate,n)||(this.focusedDate=n,this.detectChanges(),e.preventDefault()),e.keyCode===l.Keys.Enter&&this.performSelection(this.focusedDate,e)}}},e.prototype.detectChanges=function(){this.destroyed||this.cdr.detectChanges()},e.prototype.emitSameDate=function(){this.pickerService&&this.pickerService.sameDateSelected.emit()},e.prototype.setAriaActivedescendant=function(){if(A.isPresent(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant")))if("classic"!==this.type){var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}else this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant")},e.prototype.parseSelectionToValue=function(e){return e=e||[],"single"===this.selection?s.cloneDate(x.last(e)):e.map((function(e){return s.cloneDate(e)}))},e.prototype.performSelection=function(e,t){var n=this.selectionService.performSelection({date:e,modifiers:t,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=n.rangePivot,this.handleDateChange({selectedDates:n.selectedDates,focusedDate:e})},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"focusedDate",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"type",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([a.Input(),a.HostBinding("class.k-week-number"),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeViewDateChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.ContentChild(b.CellTemplateDirective,{static:!1}),i.__metadata("design:type",b.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.Input("cellTemplate"),i.__metadata("design:type",b.CellTemplateDirective),i.__metadata("design:paramtypes",[b.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([a.ContentChild(C.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",C.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.Input("monthCellTemplate"),i.__metadata("design:type",C.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[C.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([a.ContentChild(w.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",w.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.Input("yearCellTemplate"),i.__metadata("design:type",w.YearCellTemplateDirective),i.__metadata("design:paramtypes",[w.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([a.ContentChild(D.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",D.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.Input("decadeCellTemplate"),i.__metadata("design:type",D.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[D.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([a.ContentChild(k.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",k.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.Input("centuryCellTemplate"),i.__metadata("design:type",k.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[k.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([a.ContentChild(T.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",T.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.Input("weekNumberTemplate"),i.__metadata("design:type",T.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[T.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([a.ContentChild(E.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",E.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.Input("headerTitleTemplate"),i.__metadata("design:type",E.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[E.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([a.ContentChild(S.NavigationItemTemplateDirective,{static:!1}),i.__metadata("design:type",S.NavigationItemTemplateDirective)],e.prototype,"navigationItemTemplate",void 0),i.__decorate([a.Input("navigationItemTemplate"),i.__metadata("design:type",S.NavigationItemTemplateDirective),i.__metadata("design:paramtypes",[S.NavigationItemTemplateDirective])],e.prototype,"navigationItemTemplateRef",null),i.__decorate([a.ViewChild(p.NavigationComponent,{static:!1}),i.__metadata("design:type",p.NavigationComponent)],e.prototype,"navigationView",void 0),i.__decorate([a.ViewChild(h.ViewListComponent,{static:!1}),i.__metadata("design:type",h.ViewListComponent)],e.prototype,"monthView",void 0),i.__decorate([a.ViewChild(u.MultiViewCalendarComponent,{static:!1}),i.__metadata("design:type",u.MultiViewCalendarComponent)],e.prototype,"multiViewCalendar",void 0),i.__decorate([a.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"widgetId",null),i.__decorate([a.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"calendarTabIndex",null),i.__decorate([a.HostBinding("attr.aria-disabled"),a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),e=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-calendar",providers:[g.BusViewService,t.CALENDAR_VALUE_ACCESSOR,t.CALENDAR_RANGE_VALIDATORS,t.KENDO_INPUT_PROVIDER,r.LocalizationService,v.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.calendar"},f.NavigationService,_.ScrollSyncService,y.SelectionService],selector:"kendo-calendar",template:'\n <ng-container kendoCalendarLocalizedMessages\n i18n-today="kendo.calendar.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <ng-container *ngIf="type === \'infinite\'">\n <kendo-calendar-navigation\n *ngIf="navigation"\n [activeView]="activeViewEnum"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [templateRef]="navigationItemTemplateRef?.templateRef"\n (valueChange)="handleNavigation($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]="activeViewEnum"\n [isActive]="isActive"\n [cellTemplateRef]="activeCellTemplate()?.templateRef"\n [headerTitleTemplateRef]="headerTitleTemplateRef?.templateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef?.templateRef"\n [cellUID]="cellUID"\n [min]="min"\n [max]="max"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [selectedDates]="selectedDates"\n (todayButtonClick)="handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })"\n (cellClick)="handleCellClick($event)"\n (weekNumberCellClick)="handleWeekNumberClick($event)"\n (activeDateChange)="handleActiveDateChange($event)"\n (pageChange)="onPageChange()"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf="type === \'classic\'">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]="1"\n [min]="min"\n [max]="max"\n [isActive]="isActive"\n [activeView]="activeView"\n [bottomView]="bottomView"\n [topView]="topView"\n [weekNumber]="weekNumber"\n [animateNavigation]="animateNavigation"\n [cellTemplate]="activeCellTemplate()"\n [monthCellTemplate]="monthCellTemplateRef"\n [yearCellTemplate]="yearCellTemplateRef"\n [decadeCellTemplate]="decadeCellTemplateRef"\n [centuryCellTemplate]="centuryCellTemplateRef"\n [headerTitleTemplate]="headerTitleTemplateRef"\n [weekNumberTemplate]="weekNumberTemplateRef"\n [focusedDate]="focusedDate"\n [selection]="selection"\n [value]="value"\n [disabledDates]="disabledDates"\n (activeViewChange)="handleActiveViewChange($event)"\n (navigate)="handleNavigate($event)"\n (valueChange)="handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)"\n (focus)="handleFocus()"\n (blur)="handleBlur($event)"\n >\n <kendo-multiviewcalendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n '}),i.__param(12,a.Optional()),i.__metadata("design:paramtypes",[g.BusViewService,m.CalendarDOMService,a.ElementRef,f.NavigationService,a.Renderer2,a.ChangeDetectorRef,a.NgZone,a.Injector,_.ScrollSyncService,v.DisabledDatesService,r.LocalizationService,y.SelectionService,M.PickerService])],e)}();t.CalendarComponent=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(11),s=n(50),l=n(5),c=n(15),d=n(10),u=n(8),p=n(3),h=n(6),m=n(7),g=function(){function e(e,t,n,i,o,r){this.bus=e,this.intl=t,this.weekService=n,this.cdr=i,this.element=o,this.renderer=r,this.activeView=d.CalendarViewEnum.month,this.isActive=!0,this.min=new Date(u.MIN_DATE),this.max=new Date(u.MAX_DATE),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(this.initService(),(0===this.weekNames.length||e.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),this.service){this.views=this.views||2;var t=this.focusedDate,n=this.clampDate(this.service.viewDate(t,this.max,this.views));this.skip=this.service.skip(n,this.min),this.total=this.service.total(this.min,this.max);var i=p.hasChange(e,"activeView"),a=this.views>0&&p.hasChange(e,"views");!i&&this.isInDates(t)&&!a&&this.activeDate||(this.dates=this.service.datesList(n,this.getTake(this.skip)),this.activeDate=o.cloneDate(this.dates[0]),this.activeDateChange.emit(this.activeDate))}},e.prototype.ngAfterViewInit=function(){1===this.views&&this.setTableMinWidth()},e.prototype.ngOnDestroy=function(){this.intlSubscription.unsubscribe()},e.prototype.initService=function(){this.service=this.bus.service(this.activeView)},e.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},e.prototype.getCaptionTitle=function(e){return this.service.title(e)},e.prototype.getCaptionClass=function(){return this.isMonthView()?"k-month-header":"k-meta-header"},e.prototype.animateView=function(e){var t=this,n=this.element.nativeElement,i=n.querySelector("table"),a=parseFloat(getComputedStyle(n).width),r=parseFloat(getComputedStyle(i).width);this.renderer.setStyle(n,"width",a+"px"),this.renderer.setStyle(n,"overflow","visible"),e===c.Action.NextView?this.nextAnimationDate=o.cloneDate(this.dates[0]):this.prevAnimationDate=o.cloneDate(this.dates[this.dates.length-1]),this.cdr.detectChanges(),n.querySelectorAll("table").forEach((function(e){t.renderer.setStyle(e,"width",r+"px"),1===t.views&&t.renderer.setStyle(e,"min-width",a+"px")}));var s=i.getBoundingClientRect(),l=parseFloat(getComputedStyle(n).columnGap),d=e===c.Action.NextView?"translateX(0)":"translateX(-"+(s.width+l)+"px)",u=e===c.Action.NextView?"translateX(-"+(s.width+l)+"px)":"translateX(0)";this.animation?this.animation.cancel():(this.animation=n.animate([{transform:d},{transform:u}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){t.renderer.removeStyle(n,"width"),t.renderer.removeStyle(n,"overflow"),n.querySelectorAll("table").forEach((function(e){t.renderer.removeStyle(e,"width")})),t.animation=null,t.nextAnimationDate=null,t.prevAnimationDate=null,t.cdr.detectChanges()})},e.prototype.navigate=function(e){this.animateNavigation&&h.isDocumentAvailable()&&m.isPresent(this.element.nativeElement.animate)&&this.animateView(e);var t=this.move(e),n=this.service.datesList(t,this.getTake(this.skip));return this.isListInRange(n)&&(this.dates=n),this.activeDate=o.cloneDate(this.dates[0]),this.focusedDate=o.cloneDate(t),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),o.cloneDate(t)},e.prototype.canNavigate=function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))},e.prototype.setTableMinWidth=function(){var e=this.element.nativeElement,t=e.querySelector("table");if(t){var n=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(t,"min-width",n+"px")}},e.prototype.intlChange=function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()},e.prototype.clampDate=function(e){return p.dateInRange(e,this.min,this.max)},e.prototype.move=function(e){return this.service.move(this.dates[0]||this.focusedDate,e)},e.prototype.isListInRange=function(e){var t=this.service.beginningOfPeriod(this.min),n=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return t<=e[0]&&e[e.length-1]<n},e.prototype.isInDates=function(e){return this.service.isInArray(e,this.dates)},e.prototype.getTake=function(e){return Math.min(this.total-e,this.views)},i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"selectionRange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"views",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showViewHeader",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),i.__decorate([a.HostBinding("class.k-calendar-view"),a.HostBinding("class.k-hstack"),a.HostBinding("class.k-align-items-start"),a.HostBinding("class.k-justify-content-center"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),i.__decorate([a.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),i.__decorate([a.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),i.__decorate([a.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),i.__decorate([a.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=i.__decorate([a.Component({changeDetection:a.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-content k-calendar-table"\n [ngClass]="class"\n >\n <caption *ngIf="showViewHeader" [ngClass]="getCaptionClass()">{{ getCaptionTitle(date) }}</caption>\n <thead *ngIf="isMonthView()" class="k-calendar-thead">\n <tr class="k-calendar-tr" role="row">\n <th *ngFor="let name of weekNames" class="k-calendar-th">{{name}}</th>\n </tr>\n </thead>\n <tbody\n class="k-calendar-tbody"\n kendoCalendarView\n role="rowgroup"\n direction="horizontal"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [selectionRange]="selectionRange"\n [activeRangeEnd]="activeRangeEnd"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n (cellEnter)="cellEnter.emit($event)"\n (cellLeave)="cellLeave.emit($event)"\n >\n </tbody>\n </table>\n </ng-template>\n\n \x3c!-- When Next is clicked a placeholder table is rendered before the Main Table --\x3e\n <ng-template\n *ngIf="nextAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: nextAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n\n <ng-template\n *kFor="let date of dates"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: date\n }"\n >\n </ng-template>\n\n \x3c!-- When Prev is clicked a placeholder table is rendered after the Main Table --\x3e\n <ng-template\n *ngIf="prevAnimationDate"\n [ngTemplateOutlet]="tableTemplate"\n [ngTemplateOutletContext]="{\n date: prevAnimationDate,\n className: \'k-pointer-events-none\'\n }"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.BusViewService,l.IntlService,s.WeekNamesService,a.ChangeDetectorRef,a.ElementRef,a.Renderer2])],e)}();t.HorizontalViewListComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(5),s=n(2),l=n(10),c=n(11),d=n(8),u=n(3),p=n(20),h=n(9),m=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.localization=n,this.intl=i,this.disabledDatesService=o,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(d.MIN_DATE),this.max=new Date(d.MAX_DATE),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new a.EventEmitter,this.prevButtonClick=new a.EventEmitter,this.nextButtonClick=new a.EventEmitter,this.getComponentClass=!0,this.subscriptions=new h.Subscription}return e.prototype.ngOnInit=function(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))},e.prototype.ngOnChanges=function(e){this.bus.service(this.activeView)&&(this.activeViewValue=l.CalendarViewEnum[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleTodayClick=function(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(u.dateInRange(u.getToday(),this.min,this.max)))},e.prototype.handleNavigation=function(){this.navigate&&this.bus.moveUp(this.activeView)},e.prototype.intlChange=function(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())},e.prototype.l10nChange=function(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()},e.prototype.getTitle=function(){if(!this.currentDate)return"";var e=this.bus.service(this.activeView),t=this.rangeLength-1,n=e.title(this.currentDate),i=e.addToDate(this.currentDate,t);return t<1||!e.isInRange(i,this.min,this.max)?n:n+" - "+e.title(i)},e.prototype.setTodayAvailability=function(){var e=u.getToday(),t=u.isInRange(e,s.getDate(this.min),s.getDate(this.max)),n=this.disabledDatesService.isDateDisabled(e);this.todayAvailable=t&&!n,this.cdr.markForCheck()},i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"currentDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"rangeLength",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isPrevDisabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isNextDisabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"showNavigationButtons",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"prevButtonClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"nextButtonClick",void 0),i.__decorate([a.HostBinding("class.k-calendar-header"),a.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),e=i.__decorate([a.Component({selector:"kendo-calendar-header",template:'\n <span class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title" [class.k-disabled]="!navigate"\n [kendoEventsOutsideAngular]="{\n click: handleNavigation\n }"\n [scope]="this">\n <ng-template [ngIf]="!templateRef">{{title}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: title, activeView: activeViewValue, date: currentDate }"\n ></ng-template>\n </span>\n <span class="k-spacer"></span>\n <span class="k-calendar-nav k-hstack">\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-prev-view"\n type="button"\n [attr.aria-disabled]="isPrevDisabled"\n [disabled]="isPrevDisabled"\n [title]="prevButtonTitle"\n (click)="prevButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-left"></span>\n </button>\n <span\n class="k-today k-nav-today"\n [class.k-disabled]="!todayAvailable"\n [kendoEventsOutsideAngular]="{\n click: handleTodayClick\n }"\n [scope]="this"\n >\n {{ todayMessage }}\n </span>\n <button\n *ngIf="showNavigationButtons"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-next-view"\n type="button"\n [attr.aria-disabled]="isNextDisabled"\n [disabled]="isNextDisabled"\n [title]="nextButtonTitle"\n (click)="nextButtonClick.emit()"\n >\n <span class="k-icon k-i-arrow-60-right"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[c.BusViewService,a.ChangeDetectorRef,o.LocalizationService,r.IntlService,p.DisabledDatesService])],e)}();t.HeaderComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(3),s=n(11),l=function(){function e(e){this.bus=e}return e.prototype.performSelection=function(e){var t=e.date,n=e.modifiers,i=e.selectionMode,a=e.activeViewEnum,s=e.rangePivot,l=e.selectedDates.slice();if("multiple"===i)if(n.ctrlKey||n.metaKey)this.isDateSelected(l,t)?l=l.filter((function(e){return!o.isEqual(e,t)})):l.push(t),s=t;else if(n.shiftKey){var c=r.sortDates([s||t,t]),d=c[0],u=c[1];l=this.bus.service(a).dateRange(d,u),s=t>l[0]?l[0]:r.last(l)}else l=[t],s=t;else l=[t],s=t;return{selectedDates:l,rangePivot:s}},e.prototype.isDateSelected=function(e,t){return e.some((function(e){return o.isEqual(e,t)}))},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[s.BusViewService])],e)}();t.SelectionService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(5),r=n(11),s=n(35),l=n(10),c=n(38),d=n(8),u=n(2),p=n(3),h=n(21),m=function(){function e(e,t,n,i,o){this.bus=e,this.dom=t,this.intl=n,this.cdr=i,this.renderer=o,this.min=new Date(d.MIN_DATE),this.max=new Date(d.MAX_DATE),this.focusedDate=new Date,this.valueChange=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.dates=[],this.take=30,this.indexToScroll=-1}return Object.defineProperty(e.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=l.CalendarViewEnum[this.activeView];var t=p.dateInRange(this.focusedDate,this.min,this.max),n=this.service.total(this.min,this.max),i=this.total&&this.total!==n;this.skip=this.service.skip(t,this.min),this.total=n,!i&&this.service.isInArray(t,this.dates)||(this.dates=this.service.datesList(t,this.getTake(this.skip))),(e.focusedDate||i)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.handleDateChange=function(e){var t=h.closestInScope(e.target,(function(e){return e.hasAttribute("data-date-index")}),this.list.nativeElement);if(t){var n=parseInt(t.getAttribute("data-date-index"),10),i=this.dates[n];this.valueChange.emit(u.cloneDate(i))}},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.intlChange=function(){this.activeView===l.CalendarViewEnum.month&&this.cdr.markForCheck()},i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([a.ViewChild(c.VirtualizationComponent,{static:!1}),i.__metadata("design:type",c.VirtualizationComponent)],e.prototype,"virtualization",void 0),i.__decorate([a.ViewChild("list",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"list",void 0),i.__decorate([a.HostBinding("class.k-calendar-navigation"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentClass",null),e=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-navigation",template:'\n <span class="k-calendar-navigation-highlight"></span>\n <kendo-virtualization\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="itemHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n [maxScrollDifference]="maxViewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n >\n <ul #list class="k-reset" [kendoEventsOutsideAngular]="{ click: handleDateChange }" [scope]="this">\n <li *kFor="let date of dates; let index=index" [attr.data-date-index]="index">\n <span [class.k-calendar-navigation-marker]="service.isRangeStart(date)">\n <ng-template [ngIf]="!templateRef">{{service.navigationTitle(date)}}</ng-template>\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: service.navigationTitle(date), activeView: activeViewValue, date: date }"\n ></ng-template>\n </span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),i.__metadata("design:paramtypes",[r.BusViewService,s.CalendarDOMService,o.IntlService,a.ChangeDetectorRef,a.Renderer2])],e)}();t.NavigationComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(5),s=n(38),l=n(11),c=n(35),d=n(10),u=n(8),p=n(3),h=function(){function e(e,t,n,i,o){this.bus=e,this.cdr=t,this.intl=n,this.dom=i,this.renderer=o,this.isActive=!0,this.min=new Date(u.MIN_DATE),this.max=new Date(u.MAX_DATE),this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.activeDateChange=new a.EventEmitter,this.todayButtonClick=new a.EventEmitter,this.pageChange=new a.EventEmitter,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentMonthClass",{get:function(){return this.activeView===d.CalendarViewEnum.month},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentYearClass",{get:function(){return this.activeView===d.CalendarViewEnum.year},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentDecadeClass",{get:function(){return this.activeView===d.CalendarViewEnum.decade},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getComponentCenturyClass",{get:function(){return this.activeView===d.CalendarViewEnum.century},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))},e.prototype.ngOnChanges=function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=p.hasChange(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var t,n,i=p.hasChange(e,"activeView"),a=this.focusedDate,r=p.dateInRange(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),l=this.total&&this.total!==s||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(r,this.min),this.total=s,this.animateToIndex=!i,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),l&&(this.dates=this.service.datesList(r,this.getTake(this.skip))),t=this.activeDate,n=a,t&&n&&t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()||(this.activeDate=o.cloneDate(a));var c=p.hasChange(e,"focusedDate")||i;(l||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}},e.prototype.ngOnDestroy=function(){this.intlSubscription&&this.intlSubscription.unsubscribe()},e.prototype.ngAfterViewInit=function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)},e.prototype.ngAfterViewChecked=function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)},e.prototype.onPageChange=function(e){var t=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()},e.prototype.scrollChange=function(e){var t=e.offset,n=this.list.nativeElement,i="translateY("+t+"px)";this.renderer.setStyle(n,"transform",i),this.renderer.setStyle(n,"-ms-transform",i)},e.prototype.setActiveDate=function(e){var t=this.service.addToDate(this.min,e);this.activeDate=t,this.activeDateChange.emit(t),this.cdr.detectChanges()},e.prototype.isMonthView=function(){return this.activeView===d.CalendarViewEnum.month},e.prototype.isScrolled=function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))},e.prototype.getBottomOffset=function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)},e.prototype.getScrollableHeight=function(){return this.activeView===d.CalendarViewEnum.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight},e.prototype.getTake=function(e){return Math.min(this.total-e,this.take)},e.prototype.getWeekNames=function(){var e=p.shiftWeekNames(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e},e.prototype.intlChange=function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()},i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"cellTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"headerTitleTemplateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeDateChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"todayButtonClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"pageChange",void 0),i.__decorate([a.ViewChild(s.VirtualizationComponent,{static:!1}),i.__metadata("design:type",s.VirtualizationComponent)],e.prototype,"virtualization",void 0),i.__decorate([a.ViewChild("list",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"list",void 0),i.__decorate([a.HostBinding("class.k-vstack"),a.HostBinding("class.k-calendar-view"),i.__metadata("design:type",Boolean)],e.prototype,"getComponentClass",void 0),i.__decorate([a.HostBinding("class.k-calendar-monthview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentMonthClass",null),i.__decorate([a.HostBinding("class.k-calendar-yearview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentYearClass",null),i.__decorate([a.HostBinding("class.k-calendar-decadeview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentDecadeClass",null),i.__decorate([a.HostBinding("class.k-calendar-centuryview"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getComponentCenturyClass",null),e=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-calendar-viewlist",template:'\n <kendo-calendar-header\n [currentDate]="activeDate"\n [min]="min"\n [max]="max"\n [activeView]="activeView"\n [templateRef]="headerTitleTemplateRef"\n (todayButtonClick)="todayButtonClick.emit($event)"\n >\n </kendo-calendar-header>\n <table class="k-calendar-weekdays k-calendar-table" style="table-layout: auto;" *ngIf="isMonthView()">\n <thead class="k-calendar-thead">\n <tr class="k-calendar-tr">\n <th class="k-calendar-th" *ngFor="let name of weekNames" [style.width.%]="colWidth">{{name}}</th>\n </tr>\n </thead>\n </table>\n <kendo-virtualization\n [tabindex]="-1"\n [skip]="skip"\n [take]="take"\n [total]="total"\n [itemHeight]="viewHeight"\n [topOffset]="viewOffset"\n [bottomOffset]="bottomOffset"\n [scrollOffsetSize]="viewOffset"\n [maxScrollDifference]="viewHeight"\n (pageChange)="onPageChange($event)"\n (scrollChange)="scrollChange($event)"\n (activeIndexChange)="setActiveDate($event)"\n >\n <table\n #list\n role="grid"\n class="k-calendar-table"\n >\n <colgroup><col *ngFor="let _ of cols" /></colgroup>\n\n <tbody class="k-calendar-tbody"\n *kFor="let date of dates"\n kendoCalendarView\n role="rowgroup"\n [activeView]="activeView"\n [isActive]="isActive"\n [min]="min" [max]="max"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [selectedDates]="selectedDates"\n [weekNumber]="weekNumber"\n [templateRef]="cellTemplateRef"\n [weekNumberTemplateRef]="weekNumberTemplateRef"\n [viewDate]="date"\n (cellClick)="cellClick.emit($event)"\n (weekNumberCellClick)="weekNumberCellClick.emit($event)"\n ></tbody>\n </table>\n </kendo-virtualization>\n '}),i.__metadata("design:paramtypes",[l.BusViewService,a.ChangeDetectorRef,r.IntlService,c.CalendarDOMService,a.Renderer2])],e)}();t.ViewListComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(13),l=n(2),c=n(6),d=n(18),u=n(19),p=n(8),h=n(33),m=n(34),g=n(37),f=n(10),v=n(26),y=n(27),_=n(28),b=n(29),C=n(30),w=n(31),D=n(32),k=n(52),T=n(16),E=n(20),S=n(3),M=n(22),I=n(7),O=n(9),V=n(40),R=n(64),x=function(){function e(e,t,n,i,o,r,s,h,m,g){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=o,this.renderer=r,this.injector=s,this.pickerService=h,this.disabledDatesService=m,this.touchEnabled=g,this.focusableId="k-"+c.guid(),this.activeView=f.CalendarViewEnum[f.CalendarViewEnum.month],this.bottomView=f.CalendarViewEnum[f.CalendarViewEnum.month],this.topView=f.CalendarViewEnum[f.CalendarViewEnum.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=l.cloneDate(p.MIN_DATE),this.max=l.cloneDate(p.MAX_DATE),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=c.guid(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=S.noop,this.onControlTouched=S.noop,this.onValidatorChange=S.noop,this.minValidateFn=S.noop,this.maxValidateFn=S.noop,this.disabledDatesValidateFn=S.noop,this.incompleteValidator=S.noop,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",d.validatePackage(u.packageMetadata),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"cellTemplateRef",{set:function(e){this.cellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthCellTemplateRef",{set:function(e){this.monthCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yearCellTemplateRef",{set:function(e){this.yearCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decadeCellTemplateRef",{set:function(e){this.decadeCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centuryCellTemplateRef",{set:function(e){this.centuryCellTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekNumberTemplateRef",{set:function(e){this.weekNumberTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerTitleTemplateRef",{set:function(e){this.headerTitleTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigationItemTemplateRef",{set:function(e){this.navigationItemTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=l.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,S.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,S.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,S.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,S.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,S.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,S.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,S.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,S.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.toggleButton.nativeElement,S.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base"),this.renderer.addClass(this.wrapper.nativeElement,S.getFillModeClass("input",e))),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&c.hasObservers(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(o.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){this.verifySettings(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?h.minValidator(this.min):S.noop,this.maxValidateFn=this.rangeValidation?m.maxValidator(this.max):S.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?R.disabledDatesValidator(this.disabledDatesService.isDateDisabled):S.noop,this.incompleteValidator=this.incompleteDateValidation?V.incompleteDateValidator():S.noop,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.verifyValue(e),this.value=l.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.calendar||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleChange=function(e){this.cdr.markForCheck(),this.focusInput(),this.value=e,this.show=!1,this.onControlChange(l.cloneDate(e)),this.valueChange.emit(l.cloneDate(e))},e.prototype.handleInputChange=function(e){this.handleChange(this.input.formatSections.time?e:this.mergeTime(e))},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),e.prototype.mergeTime=function(e){return this.value&&e?S.setTime(e,this.value):e},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.shiftKey,i=e.keyCode,a=e.target;i===c.Keys.Escape&&(this.show=!1),t&&(i!==c.Keys.ArrowDown||this.show||(this.show=!0),i===c.Keys.ArrowUp&&(this.show=!1)),i===c.Keys.Enter&&a.classList.contains("k-calendar")&&e.preventDefault(),i===c.Keys.Tab&&this.show&&this.calendar.isActive&&S.isTabExitingCalendar(this.calendarType,a,n)&&(this.input.focus(),this.show=!1)},e.prototype.togglePopup=function(e){var t=new g.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this._show)if(this._show=e,e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifySettings=function(){if(a.isDevMode()&&!S.isValidRange(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(a.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")},e.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),S.isWindowAvailable()&&(this.windowBlurSubscription=O.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,c.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleBlur=function(e){var t=this,n=e&&I.currentFocusTarget(e);n&&(this.input.containsElement(n)||this.calendar&&this.calendar.containsElement(n))||(c.hasObservers(this.onBlur)||this.show&&c.hasObservers(this.close)||I.requiresZoneOnBlur(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()},e.prototype.handleSameSelection=function(){this.show&&(this.focusInput(),this.show=!1)},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,S.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,S.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,S.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,S.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,S.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([a.ContentChild(v.CellTemplateDirective,{static:!1}),i.__metadata("design:type",v.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.Input("cellTemplate"),i.__metadata("design:type",v.CellTemplateDirective),i.__metadata("design:paramtypes",[v.CellTemplateDirective])],e.prototype,"cellTemplateRef",null),i.__decorate([a.ContentChild(y.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",y.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.Input("monthCellTemplate"),i.__metadata("design:type",y.MonthCellTemplateDirective),i.__metadata("design:paramtypes",[y.MonthCellTemplateDirective])],e.prototype,"monthCellTemplateRef",null),i.__decorate([a.ContentChild(_.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",_.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.Input("yearCellTemplate"),i.__metadata("design:type",_.YearCellTemplateDirective),i.__metadata("design:paramtypes",[_.YearCellTemplateDirective])],e.prototype,"yearCellTemplateRef",null),i.__decorate([a.ContentChild(b.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",b.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.Input("decadeCellTemplate"),i.__metadata("design:type",b.DecadeCellTemplateDirective),i.__metadata("design:paramtypes",[b.DecadeCellTemplateDirective])],e.prototype,"decadeCellTemplateRef",null),i.__decorate([a.ContentChild(C.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",C.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.Input("centuryCellTemplate"),i.__metadata("design:type",C.CenturyCellTemplateDirective),i.__metadata("design:paramtypes",[C.CenturyCellTemplateDirective])],e.prototype,"centuryCellTemplateRef",null),i.__decorate([a.ContentChild(w.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",w.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.Input("weekNumberTemplate"),i.__metadata("design:type",w.WeekNumberCellTemplateDirective),i.__metadata("design:paramtypes",[w.WeekNumberCellTemplateDirective])],e.prototype,"weekNumberTemplateRef",null),i.__decorate([a.ContentChild(D.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",D.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.Input("headerTitleTemplate"),i.__metadata("design:type",D.HeaderTitleTemplateDirective),i.__metadata("design:paramtypes",[D.HeaderTitleTemplateDirective])],e.prototype,"headerTitleTemplateRef",null),i.__decorate([a.ContentChild(k.NavigationItemTemplateDirective,{static:!1}),i.__metadata("design:type",k.NavigationItemTemplateDirective)],e.prototype,"navigationItemTemplate",void 0),i.__decorate([a.Input("navigationItemTemplate"),i.__metadata("design:type",k.NavigationItemTemplateDirective),i.__metadata("design:paramtypes",[k.NavigationItemTemplateDirective])],e.prototype,"navigationItemTemplateRef",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"bottomView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"topView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"calendarType",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.HostBinding("class.k-datepicker"),a.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-datepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:a.forwardRef((function(){return t}))},r.LocalizationService,T.PickerService,E.DisabledDatesService,{provide:r.L10N_PREFIX,useValue:"kendo.datepicker"}],selector:"kendo-datepicker",template:'\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today="kendo.datepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-toggle="kendo.datepicker.toggle|The title of the toggle button in the datepicker component"\n toggle="Toggle calendar"\n\n i18n-prevButtonTitle="kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]="inputRole"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [ariaReadOnly]="readonly"\n [tabindex]="tabindex"\n [title]="title"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="null"\n [rounded]="null"\n [size]="null"\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 '}),i.__param(9,a.Optional()),i.__param(9,a.Inject(M.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[a.NgZone,r.LocalizationService,a.ChangeDetectorRef,s.PopupService,a.ElementRef,a.Renderer2,a.Injector,T.PickerService,E.DisabledDatesService,Boolean])],e)}();t.DatePickerComponent=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.disabledDatesValidator=function(e){return function(t){if(!e||!t.value)return null;return e(t.value)?{disabledDate:!0}:null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(4),s=n(13),l=n(2),c=n(6),d=n(18),u=n(19),p=n(8),h=n(5),m=n(16),g=n(7),f=n(41),v=n(37),y=n(3),_=n(105),b=n(22),C=n(9),w=n(40),D=new RegExp(f.TIME_PART.hour+"|"+f.TIME_PART.minute+"|"+f.TIME_PART.second+"|"+f.TIME_PART.millisecond+"|"+f.TIME_PART.dayperiod+"|literal"),k=function(){function e(e,t,n,i,o,r,s,h,m,g){this.zone=e,this.localization=t,this.cdr=n,this.popupService=i,this.wrapper=o,this.renderer=r,this.injector=s,this.pickerService=h,this.intl=m,this.touchEnabled=g,this.focusableId="k-"+c.guid(),this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.wrapperClasses=!0,this.popupUID=c.guid(),this.onControlChange=y.noop,this.onControlTouched=y.noop,this.onValidatorChange=y.noop,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=y.noop,this.incompleteValidator=y.noop,this._min=l.cloneDate(p.MIN_TIME),this._max=l.cloneDate(p.MAX_TIME),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size="medium",this._rounded="medium",this._fillMode="solid",d.validatePackage(u.packageMetadata),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}var t;return t=e,Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._min=l.cloneDate(e||p.MIN_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=l.cloneDate(e||p.MAX_TIME)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=l.cloneDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper){var t=this.wrapper.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this._show},set:function(e){var t=this;e&&(this.disabled||this.readonly)||(!(e||this._show&&c.hasObservers(this.close))?this.togglePopup(e):this.zone.run((function(){t.togglePopup(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this.value&&this.input.isEmpty()},e.prototype.ngOnInit=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(){return e.cdr.markForCheck()})),this.control=this.injector.get(o.NgControl,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular((function(){e.bindEvents()})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?_.timeRangeValidator(this.min,this.max):y.noop,this.incompleteValidator=this.incompleteDateValidation?w.incompleteDateValidator():y.noop,this.onValidatorChange()),e.format&&this.verifyFormat()},e.prototype.ngOnDestroy=function(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.pickerSubscriptions.unsubscribe()},e.prototype.handleKeydown=function(e){var t=e.altKey,n=e.keyCode;n!==c.Keys.Escape?t&&(n===c.Keys.ArrowUp&&(this.show=!1),n!==c.Keys.ArrowDown||this.show||(this.show=!0)):this.show=!1},e.prototype.writeValue=function(e){this.verifyValue(e),this.value=l.cloneDate(e),this.cdr.markForCheck(),!e&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(e))},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.timeRangeValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.focus=function(){this.input.focus()},e.prototype.blur=function(){(this.timeSelector||this.input).blur()},e.prototype.toggle=function(e){var t=this;this.disabled||this.readonly||this.resolvedPromise.then((function(){t._toggle(void 0===e?!t.show:e)}))},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.show},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.handleChange=function(e){var t=this;if(l.isEqual(this.value,e))return this.focusInput(),void(this.show=!1);this.value=l.cloneDate(e),this.zone.run((function(){t.focusInput(),t.show=!1,t.onControlChange(l.cloneDate(e)),t.valueChange.emit(l.cloneDate(e))}))},e.prototype.handleReject=function(){this.show=!1},e.prototype.handleInputChange=function(e){var t=this.input.formatSections.date?e:this.mergeTime(e);this.handleChange(t)},e.prototype.handleMousedown=function(e){e.preventDefault()},e.prototype.handleIconClick=function(e){this.disabled||this.readonly||(e.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)},Object.defineProperty(e.prototype,"popupClasses",{get:function(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])},enumerable:!0,configurable:!0}),e.prototype.normalizeTime=function(e){return y.setTime(p.MIDNIGHT_DATE,e)},e.prototype.mergeTime=function(e){return this.value&&e?y.setTime(this.value,e):e},e.prototype.togglePopup=function(e){var t=new v.PreventableEvent;!this._show&&e?this.open.emit(t):this._show&&!e&&this.close.emit(t),t.isDefaultPrevented()||(this._toggle(e),this.toggleFocus())},e.prototype._toggle=function(e){var t=this;if(e!==this.isOpen)if(this._show=e,this.cdr.markForCheck(),e){var n=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:n},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:n},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return t.show=!1}))}else this.popupRef.close(),this.popupRef=null},e.prototype.focusInput=function(){this.touchEnabled||this.input.focus()},e.prototype.toggleFocus=function(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.verifyValue=function(e){if(a.isDevMode()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")},e.prototype.verifyFormat=function(){if(a.isDevMode()&&this.intl.splitDateFormat(this.format).some((function(e){return!D.test(e.type)})))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")},e.prototype.bindEvents=function(){var e=this.wrapper.nativeElement;this.domEvents.push(this.renderer.listen(e,"keydown",this.handleKeydown.bind(this))),y.isWindowAvailable()&&(this.windowBlurSubscription=C.fromEvent(window,"blur").subscribe(this.handleWindowBlur.bind(this)))},e.prototype.handleWindowBlur=function(){this.isOpen&&(this.show=!1)},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,c.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this,n=e&&g.currentFocusTarget(e);n&&(this.input.containsElement(n)||this.timeSelector&&this.timeSelector.containsElement(n))||(c.hasObservers(this.onBlur)||this.show&&c.hasObservers(this.close)||g.requiresZoneOnBlur(this.control)?this.zone.run((function(){t.blurComponent(),t.cdr.markForCheck()})):this.blurComponent())},e.prototype.blurComponent=function(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.zone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!1}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("popupTemplate",{static:!1}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([a.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"nowButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"steps",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.HostBinding("class.k-timepicker"),a.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"wrapperClasses",void 0),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timepicker",providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:a.forwardRef((function(){return t}))},r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.timepicker"},m.PickerService],selector:"kendo-timepicker",template:'\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept="kendo.timepicker.accept|The Accept button text in the timepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component"\n acceptLabel="Set time"\n\n i18n-cancel="kendo.timepicker.cancel|The Cancel button text in the timepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component"\n cancelLabel="Cancel changes"\n\n i18n-now="kendo.timepicker.now|The Now button text in the timepicker component"\n now="Now"\n\n i18n-nowLabel="kendo.timepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-toggle="kendo.timepicker.toggle|The label for the toggle button in the timepicker component"\n toggle="Toggle time list"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="show"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [format]="format"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [min]="normalizeTime(min)"\n [max]="normalizeTime(max)"\n [incompleteDateValidation]="incompleteDateValidation"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n [steps]="steps"\n [tabindex]="!show ? tabindex : -1"\n [title]="title"\n [value]="value"\n (valueChange)="handleInputChange($event)"\n ></kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n click: handleIconClick,\n mousedown: handleMousedown\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon k-i-clock"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]="cancelButton"\n [nowButton]="nowButton"\n [format]="format"\n [min]="min"\n [max]="max"\n [steps]="steps"\n [value]="value"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }"\n [scope]="this"\n (valueChange)="handleChange($event)"\n (valueReject)="handleReject()"\n >\n <kendo-timeselector-messages\n [acceptLabel]="localization.get(\'acceptLabel\')"\n [accept]="localization.get(\'accept\')"\n [cancelLabel]="localization.get(\'cancelLabel\')"\n [cancel]="localization.get(\'cancel\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n [now]="localization.get(\'now\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__param(9,a.Optional()),i.__param(9,a.Inject(b.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[a.NgZone,r.LocalizationService,a.ChangeDetectorRef,s.PopupService,a.ElementRef,a.Renderer2,a.Injector,m.PickerService,h.IntlService,Boolean])],e)}();t.TimePickerComponent=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(17),r=n(9),s=n(36),l=n(2),c=n(13),d=n(5),u=n(6),p=n(4),h=n(18),m=n(19),g=n(16),f=n(20),v=n(7),y=n(3),_=n(37),b=n(33),C=n(34),w=n(64),D=n(41),k=n(8),T=n(22),E=n(26),S=n(27),M=n(28),I=n(29),O=n(30),V=n(31),R=n(32),x=n(40),P=new RegExp(D.TIME_PART.hour+"|"+D.TIME_PART.minute+"|"+D.TIME_PART.second+"|"+D.TIME_PART.dayperiod+"|literal"),A=function(){function e(e,t,n,i,o,s,c,d,p,g){this.popupService=e,this.intl=t,this.cdr=n,this.pickerService=i,this.ngZone=o,this.wrapper=s,this.touchEnabled=c,this.localization=d,this.disabledDatesService=p,this.renderer=g,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId="k-"+u.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new a.EventEmitter,this.open=new a.EventEmitter,this.close=new a.EventEmitter,this.onFocus=new a.EventEmitter,this.onBlur=new a.EventEmitter,this.activeTab="date",this.timeSelectorFormat="t",this.timeSelectorMin=l.cloneDate(k.MIN_TIME),this.timeSelectorMax=l.cloneDate(k.MAX_TIME),this.calendarValue=null,this.calendarMin=l.cloneDate(k.MIN_DATE),this.calendarMax=y.lastMillisecondOfDate(k.MAX_DATE),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab="date",this._min=y.mergeDateAndTime(k.MIN_DATE,k.MIN_TIME),this._max=y.mergeDateAndTime(k.MAX_DATE,k.MAX_TIME),this._isActive=!1,this.onControlTouched=y.noop,this.onControlChange=y.noop,this.onValidatorChange=y.noop,this.minValidateFn=y.noop,this.maxValidateFn=y.noop,this.disabledDatesValidateFn=y.noop,this.incompleteValidator=y.noop,this.subscriptions=new r.Subscription,this._size="medium",this._rounded="medium",this._fillMode="solid",h.validatePackage(m.packageMetadata)}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"input",{get:function(){return this.pickerService.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return this.pickerService.calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeSelector",{get:function(){return this.pickerService.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=l.cloneDate(e),this.setCalendarValue(e),this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e;var t=this.getDisplayFormat(e);this.timeSelectorFormat=this.getTimeSelectorFormat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?-1:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledDates",{get:function(){return this._disabledDates},set:function(e){this._disabledDates=e,this.disabledDatesService.initialize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({},{animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){v.isPresent(e)&&(this._min=l.cloneDate(e),this.calendarMin=l.getDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){v.isPresent(e)&&(this._max=l.cloneDate(e),this.calendarMax=y.lastMillisecondOfDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return v.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(e){e?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTab",{get:function(){return this._defaultTab},set:function(e){this._defaultTab=e||"date",this.activeTab=this.defaultTab},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getSizeClass("input",this.size)),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("input",e))),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),e&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(e)),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"),e&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",e)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",e)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+e+"-base")),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabSwitchTransition",{get:function(){return this.isOpen?null:"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableCalendar",{get:function(){return"date"!==this.activeTab&&!this.calendar.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputRole",{get:function(){return this.readOnlyInput?"listbox":"spinbutton"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableTimeSelector",{get:function(){return"time"!==this.activeTab&&!this.timeSelector.isActive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeTabComponent",{get:function(){if(this.isOpen)return v.isPresent(this.calendar)||v.isPresent(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(v.isPresent(e)&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.pickerService.onFocus.pipe(s.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))),y.isWindowAvailable()&&this.subscriptions.add(this.ngZone.runOutsideAngular((function(){return r.fromEvent(window,"blur").subscribe(e.handleCancel.bind(e))})))},e.prototype.ngAfterViewInit=function(){this.setComponentClasses()},e.prototype.ngOnChanges=function(e){(v.isPresent(e.min)||v.isPresent(e.max))&&this.verifyMinMaxRange(),(e.min||e.max||e.rangeValidation||e.disabledDatesValidation||e.disabledDates||e.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?b.minValidator(this.min):y.noop,this.maxValidateFn=this.rangeValidation?C.maxValidator(this.max):y.noop,this.disabledDatesValidateFn=this.disabledDatesValidation?w.disabledDatesValidator(this.disabledDatesService.isDateDisabled):y.noop,this.incompleteValidator=this.incompleteDateValidation?x.incompleteDateValidator():y.noop,this.onValidatorChange())},e.prototype.ngOnDestroy=function(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())},e.prototype.blur=function(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()},e.prototype.toggle=function(e){this.disabled||this.readonly||e===this.isOpen||((v.isPresent(e)?e:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onControlChange=e},e.prototype.registerOnTouched=function(e){this.onControlTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cdr.markForCheck()},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesValidateFn(e)||this.incompleteValidator(e,this.input&&this.input.isDateIncomplete)},e.prototype.registerOnValidatorChange=function(e){this.onValidatorChange=e},e.prototype.isEmpty=function(){return!v.isPresent(this.value)&&this.input.isEmpty()},e.prototype.handleIconClick=function(e){var t=this;if(!this.disabled&&!this.readonly){e.preventDefault();var n=!this.isOpen||u.hasObservers(this.close);this.run(n,(function(){var e=!t.isOpen;t.handleFocus(),t.togglePopup(e),t.switchFocus()}))}},e.prototype.handleFocus=function(){var e=this;this.isActive||(this.isActive=!0,u.hasObservers(this.onFocus)&&this.ngZone.run((function(){return e.onFocus.emit()})))},e.prototype.handleBlur=function(e){var t=this;if(this.isActive&&!this.focusTargetInComponent(e)){this.isActive=!1;var n=this.wrapper.nativeElement.classList.contains("ng-untouched")||u.hasObservers(this.onBlur)||this.isOpen&&u.hasObservers(this.close);this.run(n,(function(){t.onBlur.emit(),t.onControlTouched(),t.togglePopup(!1),t.cdr.markForCheck()}))}},e.prototype.changeActiveTab=function(e){this.isOpen&&this.activeTab!==e&&(l.isEqual(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=e,this.cdr.detectChanges(),this.detectPopupChanges())},e.prototype.handleTabChangeTransitionEnd=function(e,t){t.target===e&&this.activeTabComponent.focus()},e.prototype.handleAccept=function(){var e=this;if(this.isOpen){var t=y.mergeDateAndTime(this.calendar.value,this.timeSelector.current),n=!l.isEqual(this.value,t)||u.hasObservers(this.close);this.run(n,(function(){e.handleValueChange(t),e.togglePopup(!1)}))}},e.prototype.handleCancel=function(){var e=this;if(this.isOpen){var t=u.hasObservers(this.close);this.run(t,(function(){return e.togglePopup(!1)}))}},e.prototype.handleInputValueChange=function(e){this.handleValueChange(e),this.isOpen&&this.togglePopup(!1)},e.prototype.handleCalendarValueChange=function(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")},e.prototype.handleKeyDown=function(e){var t=this;if(!this.disabled&&!this.readonly){var n=e,i=n.keyCode,a=n.altKey;switch(i){case a&&u.Keys.ArrowUp:case u.Keys.Escape:this.handleCancel();break;case!this.isOpen&&a&&u.Keys.ArrowDown:this.ngZone.run((function(){return t.togglePopup(!0)}));break;case a&&u.Keys.ArrowRight:this.changeActiveTab("time");break;case a&&u.Keys.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&v.isPresent(this.calendarValue)&&u.Keys.Enter:this.handleAccept();break;default:return}e.preventDefault()}},e.prototype.handleTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey,a=t.target,o=v.isPresent(a.nextElementSibling)&&!a.nextElementSibling.disabled;n!==u.Keys.Tab||i||o||(this.input.focus(),this.handleCancel())},e.prototype.handleBackTabOut=function(e){var t=e,n=t.keyCode,i=t.shiftKey;n===u.Keys.Tab&&i&&this.input.focus()},e.prototype.popupButtonsClasses=function(e){var t=e||"base";return(this.size?y.getSizeClass("button",this.size):"")+" "+(this.rounded?y.getRoundedClass(this.rounded):"")+" "+(this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+t:"")},e.prototype.preventMouseDown=function(e){e.preventDefault()},e.prototype.verifyValue=function(e){if(a.isDevMode()&&v.isPresent(e)&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")},e.prototype.verifyMinMaxRange=function(){if(a.isDevMode()&&!y.isValidRange(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")},e.prototype.getTimeSelectorFormat=function(e){return this.intl.splitDateFormat(e).filter(this.timeFormatPartFilter).reduce((function(e,t){return e+t.pattern}),"")||"t"},e.prototype.getDisplayFormat=function(e){return e?"string"==typeof e?e:e.displayFormat:"g"},e.prototype.timeFormatPartFilter=function(e,t,n){var i=t>=1&&n[t-1];return i&&"literal"===e.type?P.test(i.type):P.test(e.type)},e.prototype.togglePopup=function(e){if(e!==this.isOpen){var t=new _.PreventableEvent;e?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()||(this.toggle(e),this.switchFocus())}},e.prototype.switchFocus=function(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())},e.prototype.openPopup=function(){var e=this;this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);var t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:"k-datetime-container "+(this.popupSettings.popupClass||""),anchorAlign:{vertical:"bottom",horizontal:t},popupAlign:{vertical:"top",horizontal:t}}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){return e.handleCancel()}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},e.prototype.handleValueChange=function(e){l.isEqual(this.value,e)||(this.value=l.cloneDate(e),this.onControlChange(l.cloneDate(e)),this.valueChange.emit(l.cloneDate(e)))},e.prototype.focusTargetInComponent=function(e){if(!v.isPresent(e))return!1;var t=e.relatedTarget||document.activeElement,n=v.isPresent(this.popupRef)&&this.popupRef.popupElement.contains(t),i=this.wrapper.nativeElement.contains(t);return n||i},e.prototype.setTimeSelectorMinMax=function(e){var t=v.isPresent(e)&&l.isEqual(l.getDate(e),l.getDate(this.min));this.timeSelectorMin=l.cloneDate(t?this.min:k.MIN_TIME);var n=v.isPresent(e)&&l.isEqual(l.getDate(e),l.getDate(this.max));this.timeSelectorMax=l.cloneDate(n?this.max:k.MAX_TIME)},e.prototype.setCalendarValue=function(e){var t=v.isPresent(e)&&y.isInRange(e,this.calendarMin,this.calendarMax);this.calendarValue=t?l.getDate(e):null},e.prototype.detectPopupChanges=function(){this.isOpen&&this.popupRef.popup.changeDetectorRef.detectChanges()},e.prototype.run=function(e,t){e?this.ngZone.run((function(){return t()})):t()},e.prototype.handleDateCompletenessChange=function(){var e=this;this.cdr.markForCheck(),this.ngZone.run((function(){return e.onValidatorChange()}))},e.prototype.setComponentClasses=function(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,y.getSizeClass("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,y.getSizeClass("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,y.getRoundedClass(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,y.getFillModeClass("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,y.getFillModeClass("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,"k-button-"+this.fillMode+"-base"))},i.__decorate([a.HostBinding("class.k-datetimepicker"),a.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([a.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([a.ViewChild("toggleButton",{static:!0}),i.__metadata("design:type",a.ElementRef)],e.prototype,"toggleButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"value",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"twoDigitYearMax",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"disabledDates",null),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readOnlyInput",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"formatPlaceholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"steps",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"calendarType",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"animateCalendarNavigation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"weekNumber",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"min",null),i.__decorate([a.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],e.prototype,"max",null),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabledDatesValidation",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"incompleteDateValidation",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.Output("focus"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([a.Output("blur"),i.__metadata("design:type",a.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"defaultTab",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([a.ContentChild(E.CellTemplateDirective,{static:!1}),i.__metadata("design:type",E.CellTemplateDirective)],e.prototype,"cellTemplate",void 0),i.__decorate([a.ContentChild(S.MonthCellTemplateDirective,{static:!1}),i.__metadata("design:type",S.MonthCellTemplateDirective)],e.prototype,"monthCellTemplate",void 0),i.__decorate([a.ContentChild(M.YearCellTemplateDirective,{static:!1}),i.__metadata("design:type",M.YearCellTemplateDirective)],e.prototype,"yearCellTemplate",void 0),i.__decorate([a.ContentChild(I.DecadeCellTemplateDirective,{static:!1}),i.__metadata("design:type",I.DecadeCellTemplateDirective)],e.prototype,"decadeCellTemplate",void 0),i.__decorate([a.ContentChild(O.CenturyCellTemplateDirective,{static:!1}),i.__metadata("design:type",O.CenturyCellTemplateDirective)],e.prototype,"centuryCellTemplate",void 0),i.__decorate([a.ContentChild(V.WeekNumberCellTemplateDirective,{static:!1}),i.__metadata("design:type",V.WeekNumberCellTemplateDirective)],e.prototype,"weekNumberTemplate",void 0),i.__decorate([a.ContentChild(R.HeaderTitleTemplateDirective,{static:!1}),i.__metadata("design:type",R.HeaderTitleTemplateDirective)],e.prototype,"headerTitleTemplate",void 0),i.__decorate([a.ViewChild("container",{read:a.ViewContainerRef,static:!0}),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([a.ViewChild("popupTemplate",{read:a.TemplateRef,static:!0}),i.__metadata("design:type",a.TemplateRef)],e.prototype,"popupTemplate",void 0),e=t=i.__decorate([a.Component({selector:"kendo-datetimepicker",exportAs:"kendo-datetimepicker",changeDetection:a.ChangeDetectionStrategy.OnPush,providers:[g.PickerService,p.LocalizationService,f.DisabledDatesService,{provide:p.L10N_PREFIX,useValue:"kendo.datetimepicker"},{provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:o.NG_VALIDATORS,useExisting:a.forwardRef((function(){return t})),multi:!0},{provide:u.KendoInput,useExisting:a.forwardRef((function(){return t}))}],template:'\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab="kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header"\n dateTab="Date"\n\n i18n-dateTabLabel="kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header"\n dateTabLabel="Date tab"\n\n i18n-timeTab="kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header"\n timeTab="Time"\n\n i18n-timeTabLabel="kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header"\n timeTabLabel="Time tab"\n\n i18n-toggle="kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component"\n toggle="Toggle popup"\n\n i18n-accept="kendo.datetimepicker.accept|The Accept button text in the datetimepicker component"\n accept="Set"\n\n i18n-acceptLabel="kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component"\n acceptLabel="Set"\n\n i18n-cancel="kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component"\n cancel="Cancel"\n\n i18n-cancelLabel="kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component"\n cancelLabel="Cancel"\n\n i18n-now="kendo.datetimepicker.now|The Now button text in the timepicker component"\n now="NOW"\n\n i18n-nowLabel="kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component"\n nowLabel="Select now"\n\n i18n-today="kendo.datetimepicker.today|The label for the today button in the calendar header"\n today="Today"\n\n i18n-prevButtonTitle="kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar"\n prevButtonTitle="Navigate to previous view"\n\n i18n-nextButtonTitle="kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar"\n nextButtonTitle="Navigate to next view"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]="value"\n [format]="format"\n [twoDigitYearMax]="twoDigitYearMax"\n [min]="min"\n [max]="max"\n [incompleteDateValidation]="incompleteDateValidation"\n [formatPlaceholder]="formatPlaceholder"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly || readOnlyInput"\n [role]="inputRole"\n [ariaReadOnly]="readonly"\n [steps]="steps"\n [tabindex]="tabindex"\n [title]="title"\n [focusableId]="focusableId"\n [hasPopup]="true"\n [isPopupOpen]="isOpen"\n (valueChange)="handleInputValueChange($event)"\n [kendoEventsOutsideAngular]="{\n keydown: handleKeyDown\n }"\n [scope]="this"\n [fillMode]="fillMode"\n [rounded]="rounded"\n [size]="size"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type="button"\n class="k-input-button k-button k-icon-button"\n [tabindex]="-1"\n [attr.title]="localization.get(\'toggle\')"\n [attr.aria-label]="localization.get(\'toggle\')"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n click: handleIconClick\n }"\n [scope]="this"\n >\n <span class="k-button-icon k-icon"\n [ngClass]="{\n \'k-i-calendar\': activeTab === \'date\',\n \'k-i-clock\': activeTab === \'time\'\n }"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class="k-datetime-wrap k-{{activeTab}}-tab"\n [kendoEventsOutsideAngular]="{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }"\n [scope]="this"\n >\n <div class="k-datetime-buttongroup"\n [kendoEventsOutsideAngular]="{\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <div class="k-button-group k-button-group-stretched">\n <button\n type="button"\n class="k-button k-group-start k-date-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'date\'"\n [attr.title]="localization.get(\'dateTabLabel\')"\n [attr.aria-label]="localization.get(\'dateTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'date\'),\n keydown: handleBackTabOut\n }"\n [scope]="this"\n >\n {{localization.get(\'dateTab\')}}\n </button>\n <button\n type="button"\n class="k-button k-group-end k-time-tab"\n [ngClass]="popupButtonsClasses()"\n [class.k-active]="activeTab === \'time\'"\n [attr.title]="localization.get(\'timeTabLabel\')"\n [attr.aria-label]="localization.get(\'timeTabLabel\')"\n [kendoEventsOutsideAngular]="{\n click: changeActiveTab.bind(this, \'time\')\n }"\n >\n {{localization.get(\'timeTab\')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class="k-datetime-selector"\n [style.transition]="tabSwitchTransition"\n [kendoEventsOutsideAngular]="{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }"\n >\n <div class="k-datetime-calendar-wrap">\n <kendo-calendar\n [(value)]="calendarValue"\n [type]="calendarType"\n [min]="calendarMin"\n [max]="calendarMax"\n [focusedDate]="focusedDate"\n [weekNumber]="weekNumber"\n [navigation]="false"\n [animateNavigation]="animateCalendarNavigation"\n [cellTemplate]="cellTemplate"\n [monthCellTemplate]="monthCellTemplate"\n [yearCellTemplate]="yearCellTemplate"\n [decadeCellTemplate]="decadeCellTemplate"\n [centuryCellTemplate]="centuryCellTemplate"\n [weekNumberTemplate]="weekNumberTemplate"\n [headerTitleTemplate]="headerTitleTemplate"\n [disabled]="disableCalendar"\n [disabledDates]="disabledDates"\n (valueChange)="handleCalendarValueChange()"\n >\n <kendo-calendar-messages\n [today]="localization.get(\'today\')"\n [prevButtonTitle]="localization.get(\'prevButtonTitle\')"\n [nextButtonTitle]="localization.get(\'nextButtonTitle\')"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class="k-datetime-time-wrap">\n <kendo-timeselector\n [value]="value"\n [format]="timeSelectorFormat"\n [min]="timeSelectorMin"\n [max]="timeSelectorMax"\n [setButton]="false"\n [cancelButton]="false"\n [steps]="steps"\n [disabled]="disableTimeSelector"\n >\n <kendo-timeselector-messages\n [now]="localization.get(\'now\')"\n [nowLabel]="localization.get(\'nowLabel\')"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class="k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch"\n [kendoEventsOutsideAngular]="{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }"\n [scope]="this"\n >\n <button\n *ngIf="cancelButton"\n type="button"\n class="k-button k-time-cancel"\n [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 '}),i.__param(6,a.Inject(T.TOUCH_ENABLED)),i.__metadata("design:paramtypes",[c.PopupService,d.IntlService,a.ChangeDetectorRef,g.PickerService,a.NgZone,a.ElementRef,Boolean,p.LocalizationService,f.DisabledDatesService,a.Renderer2])],e)}();t.DateTimePickerComponent=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(18),r=n(19),s=n(53),l=n(23),c=function(){function e(){this.showDefault=!1,o.validatePackage(r.packageMetadata)}return Object.defineProperty(e.prototype,"hasContentPopup",{get:function(){return this.contentPopup.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.showDefault=!this.hasContentPopup,this.subscription=this.contentPopup.changes.subscribe((function(){e.showDefault=!e.hasContentPopup}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([a.ContentChildren(s.DateRangePopupComponent),i.__metadata("design:type",a.QueryList)],e.prototype,"contentPopup",void 0),e=i.__decorate([a.Component({providers:[l.DateRangeService],selector:"kendo-daterange",template:'\n <ng-content></ng-content>\n <kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>\n '}),i.__metadata("design:paramtypes",[])],e)}();t.DateRangeComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([a.Directive({selector:"[kendoDateRangePopupTemplate]"}),i.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.DateRangePopupTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(39),s=n(70),l=n(23),c=n(12),d=n(3),u=n(7),p=function(e){function t(t,n,i,a,o){var r=e.call(this,"end",t,n,i,a,o)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return i.__extends(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerEndInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,a=n.max;if(!d.isInRange(e,i,a))return null;var r=(this.rangeService.selectionRange||c.EMPTY_SELECTIONRANGE).start;return this.autoCorrectOn===t&&u.isPresent(e)&&e<r?d.clampRange(e):{start:r,end:o.cloneDate(e)}},t.prototype.updateInputValue=function(e){var t=(e||c.EMPTY_SELECTIONRANGE).end,n=this.dateInput,i=n.min,a=n.max;!o.isEqual(this.dateInput.value,t)&&d.isInRange(t,i,a)&&(this.dateInput.writeValue(o.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=i.__decorate([a.Directive({selector:"[kendoDateRangeEndInput]"}),i.__metadata("design:paramtypes",[l.DateRangeService,r.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],t)}(s.DateRangeInput);t.DateRangeEndInputDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(6),o=n(9),r=n(36),s=n(7),l=function(){function e(e,t,n,i,a,r){this.activeRangeEnd=e,this.dateRangeService=t,this.input=n,this.element=i,this.renderer=a,this.zone=r,this.navigateCalendarOnFocus=!1,this.popupSubscriptions=new o.Subscription,this.subscriptions=new o.Subscription}return Object.defineProperty(e.prototype,"isActiveEnd",{get:function(){return this.dateRangeService.activeRangeEnd===this.activeRangeEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupCalendarActivated",{get:function(){var e=this.dateRangeService.dateRangePopup$.value;return s.isPresent(e)&&s.isPresent(e.calendar)},enumerable:!0,configurable:!0}),e.prototype.init=function(){var e=this;this.input.value&&this.dateRangeService.setRange(this.getRange(this.input.value)),[this.input.onBlur.subscribe((function(){return e.deactivate()})),this.input.onFocus.pipe(r.filter((function(){return!e.popupCalendarActivated}))).subscribe((function(){return e.activate()})),this.input.valueUpdate.subscribe((function(t){return e.updateRange(t,"change")})),this.dateRangeService.activeRangeEnd$.subscribe((function(){e.navigateCalendarOnFocus&&e.focusActiveDate(),e.toggleActiveClass(e.isActiveEnd)})),this.dateRangeService.dateRangePopup$.subscribe((function(t){return e.initPopup(t)})),this.dateRangeService.range$.subscribe((function(t){return e.updateInputValue(t)})),o.fromEvent(this.element.nativeElement,"click").subscribe((function(){return e.activate()})),o.fromEvent(this.element.nativeElement,"keydown").subscribe((function(t){return e.togglePopup(t||{})}))].map((function(t){return e.subscriptions.add(t)}))},e.prototype.destroy=function(){this.subscriptions.unsubscribe(),this.unsubscribePopup()},e.prototype.initPopup=function(e){var t=this;e?(e.anchor||(e.anchor=this.element.nativeElement),[e.cancel.subscribe((function(){return t.isActiveEnd&&t.input.focus()})),e.onFocus.subscribe((function(){return t.toggleActiveClass(t.isActiveEnd)})),e.onBlur.subscribe((function(){return t.deactivate()}))].map((function(e){return t.popupSubscriptions.add(e)}))):this.unsubscribePopup()},e.prototype.unsubscribePopup=function(){this.popupSubscriptions.unsubscribe(),this.popupSubscriptions=new o.Subscription},e.prototype.activate=function(){this.dateRangeService.setActiveRangeEnd(this.activeRangeEnd),this.dateRangeService.activatePopup()},e.prototype.deactivate=function(){var e=this;this.zone.runOutsideAngular((function(){setTimeout((function(){e.updateRange(e.input.value,"blur"),e.dateRangeService.hasActiveComponent()||(e.toggleActiveClass(!1),e.zone.run((function(){return e.dateRangeService.deactivatePopup()})))}))}))},e.prototype.updateRange=function(e,t){var n=this.getRange(e,t);n&&(this.focusActiveDate(),this.dateRangeService.setRange(n))},e.prototype.togglePopup=function(e){var t=e.altKey,n=e.keyCode;n===a.Keys.Escape?this.dateRangeService.cancelPopup():t&&n===a.Keys.ArrowDown&&this.dateRangeService.activatePopup()},e.prototype.focusActiveDate=function(){this.input.value&&this.isActiveEnd&&this.dateRangeService.setFocusedDate(i.cloneDate(this.input.value))},e.prototype.toggleActiveClass=function(e){var t=e?"addClass":"removeClass",n=this.element.nativeElement;n&&n.querySelector&&this.renderer[t](n,"k-focus")},e}();t.DateRangeInput=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(39),s=n(70),l=n(23),c=n(12),d=n(3),u=function(e){function t(t,n,i,a,o){var r=e.call(this,"start",t,n,i,a,o)||this;return r.rangeService=t,r.dateInput=n,r.navigateCalendarOnFocus=!1,r}return i.__extends(t,e),t.prototype.ngOnInit=function(){this.rangeService.registerStartInput(this.dateInput),e.prototype.init.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.destroy.call(this)},t.prototype.getRange=function(e,t){var n=this.dateInput,i=n.min,a=n.max;if(!d.isInRange(e,i,a))return null;var r=(this.rangeService.selectionRange||c.EMPTY_SELECTIONRANGE).end;return this.autoCorrectOn===t&&r&&e>r?d.clampRange(e):{start:o.cloneDate(e),end:r}},t.prototype.updateInputValue=function(e){var t=(e||c.EMPTY_SELECTIONRANGE).start,n=this.dateInput,i=n.min,a=n.max;!o.isEqual(this.dateInput.value,t)&&d.isInRange(t,i,a)&&(this.dateInput.writeValue(o.cloneDate(t)),this.dateInput.notify())},i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigateCalendarOnFocus",void 0),t=i.__decorate([a.Directive({selector:"[kendoDateRangeStartInput]"}),i.__metadata("design:paramtypes",[l.DateRangeService,r.DateInputComponent,a.ElementRef,a.Renderer2,a.NgZone])],t)}(s.DateRangeInput);t.DateRangeStartInputDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(9),r=n(23),s=n(25),l=n(12),c=n(2),d=n(3),u=function(){function e(e,t,n,i,s){this.calendar=e,this.cdr=t,this.element=n,this.dateRangeService=s,this.autoCorrectOn="change",this.activeRangeEndChange=new a.EventEmitter,this.selectionRangeChange=new a.EventEmitter,this.calendarSubscriptions=new o.Subscription,this.dateRangeService=this.dateRangeService||new r.DateRangeService,i.setAttribute(n.nativeElement,"aria-multiselectable","true")}return Object.defineProperty(e.prototype,"selectionRange",{get:function(){return this.calendar?this.calendar.selectionRange:null},set:function(e){this.isEqualCalendarRange(e)||this.setSelectionRange(e),d.isEqualRange(this.dateRangeService.selectionRange,e)||this.dateRangeService.setRange(e),this.updateFocusedDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeRangeEnd",{get:function(){return this.calendar.activeRangeEnd},set:function(e){this.dateRangeService.activeRangeEnd!==e&&(this.calendar.activeRangeEnd=e,this.dateRangeService.setActiveRangeEnd(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarRange",{get:function(){return this.selectionRange||l.EMPTY_SELECTIONRANGE},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.calendar,n=this.dateRangeService;t.min=d.either(n.min,t.min),t.max=d.either(n.max,t.max),this.addSubscriptions(t.cellEnter.subscribe((function(t){return e.handleHover(t)})),t.valueChange.subscribe((function(t){return e.handleChange(t)})),n.focusedDate$.subscribe((function(e){c.isEqual(t.focusedDate,e)||(t.focusedDate=e)})),n.activeRangeEnd$.subscribe((function(n){t.activeRangeEnd!==n&&(t.activeRangeEnd=n,e.activeRangeEndChange.emit(n),e.cdr.markForCheck())})),n.range$.subscribe((function(t){e.isEqualCalendarRange(t)||e.acceptAndEmit(t),e.updateFocusedDate(t)})),o.fromEvent(this.element.nativeElement,"blur").subscribe((function(){return e.handleBlur()})))},e.prototype.ngOnDestroy=function(){this.calendarSubscriptions.unsubscribe()},e.prototype.addSubscriptions=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map((function(t){return e.calendarSubscriptions.add(t)}))},e.prototype.isEqualCalendarRange=function(e){return d.isEqualRange(this.calendar.selectionRange,e)},e.prototype.handleBlur=function(){var e=this.calendarRange,t=e.start,n=e.end;"blur"===this.autoCorrectOn&&null!==t&&null!==n&&n<t&&this.dateRangeService.setRange(d.clampRange(t))},e.prototype.handleChange=function(e){var t=this.dateRangeService,n="change"===this.autoCorrectOn&&this.shouldAutoCorrect(e),i="end"!==this.calendar.activeRangeEnd||n?"end":"start",a=n?d.clampRange(e):this.updateRange(e);d.isEqualRange(t.selectionRange,a)||(this.acceptAndEmit(a),t.setActiveRangeEnd(i),t.setRange(a))},e.prototype.handleHover=function(e){if(!this.hasCompleteRange()){var t=this.calendarRange,n=t.start,i=t.end,a=this.calendar.activeRangeEnd;(n&&"end"===a||i&&"start"===a)&&this.setSelectionRange(this.updateRange(e))}},e.prototype.hasCompleteRange=function(){var e=this.dateRangeService.selectionRange||l.EMPTY_SELECTIONRANGE,t=e.start,n=e.end;return Boolean(t)&&Boolean(n)},e.prototype.shouldAutoCorrect=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?null!==n&&e>n:null!==i&&e<i},e.prototype.updateFocusedDate=function(e){e&&!this.dateRangeService.focusedDate&&this.dateRangeService.setFocusedDate(e.start||e.end)},e.prototype.updateRange=function(e){var t=this.calendarRange,n=t.end,i=t.start;return"end"!==this.calendar.activeRangeEnd?{start:e,end:n}:{start:i,end:e}},e.prototype.setSelectionRange=function(e){this.calendar.selectionRange=e,this.calendar.writeValue(null)},e.prototype.acceptAndEmit=function(e){this.setSelectionRange(e),this.selectionRangeChange.emit(e)},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"autoCorrectOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"selectionRange",null),i.__decorate([a.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"activeRangeEnd",null),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"activeRangeEndChange",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"selectionRangeChange",void 0),e=i.__decorate([a.Directive({selector:"[kendoDateRangeSelection]"}),i.__param(4,a.Optional()),i.__metadata("design:paramtypes",[s.MultiViewCalendarComponent,a.ChangeDetectorRef,a.ElementRef,a.Renderer2,r.DateRangeService])],e)}();t.DateRangeSelectionDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(106),s=n(59),l=n(107),c=n(6),d=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[r.KForOf,s.HeaderComponent,l.ViewComponent],exports:[r.KForOf,s.HeaderComponent,l.ViewComponent],imports:[o.CommonModule,c.EventsModule]})],e)}();t.CalendarCommonModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(75),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoMultiViewCalendarLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.MultiViewCalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(77),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.CalendarMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoCalendarLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.CalendarMessages);t.CalendarLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.CalendarMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(77),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.CalendarMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-calendar-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.CalendarMessages);t.CalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=[n(38).VirtualizationComponent],s=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[r],exports:[r],imports:[o.CommonModule]})],e)}();t.VirtualizationModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(42),r=n(43),s=function(){function e(){}return e=i.__decorate([a.NgModule({exports:[o.CalendarModule,r.MultiViewCalendarModule],imports:[o.CalendarModule,r.MultiViewCalendarModule]})],e)}();t.CalendarsModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(82),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.DateInputMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoDateInputLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DateInputMessages);t.DateInputLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(4).ComponentMessages);t.DateInputMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(82),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.DateInputMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-dateinput-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DateInputMessages);t.DateInputCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(63),r=n(14),s=n(5),l=n(13),c=n(42),d=n(44),u=n(24),p=n(6),h=n(85),m=n(87),g=n(54),f=n(22),v=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[o.DatePickerComponent,m.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective],exports:[o.DatePickerComponent,m.DatePickerCustomMessagesComponent,h.DatePickerLocalizedMessagesDirective,d.TemplatesModule],imports:[r.CommonModule,u.DateInputModule,c.CalendarModule,s.IntlModule,l.PopupModule,d.TemplatesModule,p.EventsModule],providers:[{provide:f.TOUCH_ENABLED,useValue:g.touchEnabled}]})],e)}();t.DatePickerModule=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(86),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.DatePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoDatePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DatePickerMessages);t.DatePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.DatePickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(86),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.DatePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-datepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.DatePickerMessages);t.DatePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(13),s=n(43),l=n(24),c=n(69),d=n(71),u=n(67),p=n(53),h=n(68),m=n(72),g=n(6),f=[u.DateRangeComponent,p.DateRangePopupComponent,h.DateRangePopupTemplateDirective,m.DateRangeSelectionDirective,d.DateRangeStartInputDirective,c.DateRangeEndInputDirective],v=[s.MultiViewCalendarModule,l.DateInputModule,r.PopupModule,g.EventsModule],y=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:[f],exports:[f],imports:[o.CommonModule,v]})],e)}();t.DateRangeModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(36),s=n(2),l=n(38),c=n(8),d=n(41),u=n(56),p=n(90),h=n(91),m=n(92),g=n(93),f=n(94),v=n(21),y=function(){return null},_={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]}},b=((i={})[d.TIME_PART.dayperiod]=f.DayPeriodService,i[d.TIME_PART.hour]=p.HoursService,i[d.TIME_PART.minute]=h.MinutesService,i[d.TIME_PART.second]=m.SecondsService,i[d.TIME_PART.millisecond]=g.MillisecondsService,i),C=function(){function e(e,t,n,i,a){this.element=e,this.injector=t,this.dom=n,this.renderer=i,this.zone=a,this.min=s.cloneDate(c.MIDNIGHT_DATE),this.max=s.cloneDate(c.MAX_TIME),this.step=1,this.disabled=!1,this.valueChange=new o.EventEmitter,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}return Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?void 0:0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.part&&(this.service=this.injector.get(b[this.part.type]),this.service.configure(this.serviceSettings()));var t=this.value,n=e.value||{},i=this.service.limitRange(this.min,this.max,t),a=i[0],o=i[1];(this.service.isRangeChanged(a,o)||e.min||e.max||e.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:a,max:o}))),this.data.length&&!this.hasMissingValue(n)||(this.animateToIndex=!1,this.data=this.service.data(t)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(n),this.total=this.service.total(t),this.indexToScroll=this.selectedIndex(t)},e.prototype.ngOnInit=function(){var e=this;this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;var t="translateY("+this.topOffset+"px)";this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnDestroy=function(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.scrollOnce((function(t){return e.virtualization.scrollToIndex(t)}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.scrollOnce((function(t){var n=e.animateToIndex?"animateToIndex":"scrollToIndex";e.virtualization[n](t),e.animateToIndex=!0}))},e.prototype.handleChange=function(e){var t=this.service.apply(this.value,e.value);this.value.getTime()!==t.getTime()&&(this.indexToScroll=this.data.indexOf(e),this.value=t,this.valueChange.emit(t))},e.prototype.handleItemClick=function(e){var t=v.closestInScope(e.target,(function(e){return e.hasAttribute("data-timelist-item-index")}),this.element.nativeElement);if(t){var n=t.getAttribute("data-timelist-item-index");this.handleChange(this.data[n])}},e.prototype.focus=function(){this.element&&this.element.nativeElement.focus()},e.prototype.blur=function(){this.element&&this.element.nativeElement.blur()},e.prototype.itemOffset=function(e){var t=this.selectedIndex(this.value),n=this.virtualization.activeIndex(),i=this.virtualization.itemOffset(n),a=Math.abs(Math.ceil(e)-i);if(t===n&&a<2)return i;var o=t>n;return o&&a>=this.bottomThreshold||!o&&a>this.topThreshold?this.virtualization.itemOffset(n+1):i},e.prototype.hasMissingValue=function(e){var t=e.previousValue,n=e.currentValue,i=t&&!this.service.valueInList(t),a=n&&!this.service.valueInList(n);return i||a},e.prototype.scrollOnce=function(e){-1!==this.indexToScroll&&(e(this.indexToScroll),this.indexToScroll=-1)},e.prototype.serviceSettings=function(e){var t={boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},n=Object.assign({},t,e);return n.boundRange="hour"!==n.part.type,n},e.prototype.selectedIndex=function(e){return e?this.service.selectedIndex(e):-1},e.prototype.textHasChanged=function(e){var t=e.previousValue,n=e.currentValue;if(!t||!n)return!1;var i=this.data[this.selectedIndex(t)],a=this.data[this.selectedIndex(n)];return i&&a&&i.text!==a.text},e.prototype.handleKeyDown=function(e){var t=(_[e.keyCode]||y)(this.data,this.service.selectedIndex(this.value));t&&(this.handleChange(t),e.preventDefault())},e.prototype.bindEvents=function(){var e=this;this.scrollSubscription=this.virtualization.scroll$().pipe(r.debounceTime(100),r.map((function(e){return e.target.scrollTop})),r.map((function(t){return e.itemOffset(t)})),r.map((function(t){return e.virtualization.itemIndex(t)}))).subscribe((function(t){e.virtualization.scrollToIndex(t),e.handleChange(e.data[t])}));var t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",(function(){return!e.isActive&&e.focus()})),this.renderer.listen(t,"click",(function(){return e.focus()})),this.renderer.listen(t,"blur",(function(){return e.isActive=!1})),this.renderer.listen(t,"focus",(function(){return e.isActive=!0})),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))},a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"min",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"max",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object)],e.prototype,"part",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Number)],e.prototype,"step",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"value",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),a.__decorate([o.ViewChild(l.VirtualizationComponent,{static:!0}),a.__metadata("design:type",l.VirtualizationComponent)],e.prototype,"virtualization",void 0),a.__decorate([o.HostBinding("attr.tabindex"),a.__metadata("design:type",Number),a.__metadata("design:paramtypes",[])],e.prototype,"tabIndex",null),a.__decorate([o.HostBinding("class.k-time-list"),a.__metadata("design:type",Boolean)],e.prototype,"componentClass",void 0),e=a.__decorate([o.Component({selector:"kendo-timelist",template:'\n <kendo-virtualization\n [skip]="skip"\n [take]="total"\n [total]="total"\n [itemHeight]="itemHeight"\n [maxScrollDifference]="listHeight"\n [topOffset]="topOffset"\n [bottomOffset]="bottomOffset"\n class="k-time-container"\n role="presentation"\n tabindex="-1"\n >\n <ul [ngStyle]="style" class="k-reset"\n [kendoEventsOutsideAngular]="{\n click: handleItemClick\n }"\n [scope]="this"\n >\n <li *ngFor="let item of data; let index = index;" class="k-item"\n [attr.data-timelist-item-index]="index">\n <span>{{item.text}}</span>\n </li>\n </ul>\n </kendo-virtualization>\n '}),a.__metadata("design:paramtypes",[o.ElementRef,o.Injector,u.TimePickerDOMService,o.Renderer2,o.NgZone])],e)}();t.TimeListComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=24,function(e){return e%i}),u=function(e,t){return d(24+e-t)},p=function(e){return function(t,n){return!n||r.getDate(t).getTime()===r.getDate(n).getTime()?t:c.setHours(t,e)}},h=p(0),m=p(23),g=function(){function e(e){this.intl=e,this.boundRange=!1,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setHours(e,t.getHours())},e.prototype.configure=function(e){var t=this,n=e.boundRange,i=void 0===n?this.boundRange:n,a=e.insertUndividedMax,o=void 0===a?this.insertUndividedMax:a,r=e.min,s=void 0===r?this.min:r,d=e.max,u=void 0===d?this.max:d,p=e.part,h=e.step,m=void 0===h?this.step:h;this.boundRange=i,this.insertUndividedMax=o,this.toListItem=function(e){var n=c.setHours(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,p.pattern),value:n}},this.min=s,this.max=u,this.step=m},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return this.boundRange?[h(e,n),m(t,n)]:[e,t]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastHour(e)===e.getHours()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastHour(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getHours());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setHours(this.max,this.lastHour(e)))},e.prototype.divideByStep=function(e){return u(e.getHours(),this.min.getHours())/this.step},e.prototype.lastHour=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getHours(),i.getHours()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.HoursService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=60,function(e){return e%i}),u=function(e,t){return d(60+e-t)},p=function(e){return function(t,n){return!n||t.getHours()===n.getHours()?t:c.setMinutes(t,e)}},h=p(0),m=p(59),g=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setMinutes(e,t.getMinutes())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,d=e.part,u=e.step,p=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setMinutes(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=o,this.max=s,this.step=p},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),m(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMinute(e)===e.getMinutes()||!this.isMissing(e))},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMinute(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMinutes());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setMinutes(this.max,this.lastMinute(e)))},e.prototype.divideByStep=function(e){return u(e.getMinutes(),this.min.getMinutes())/this.step},e.prototype.lastMinute=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMinutes(),i.getMinutes()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.MinutesService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=60,function(e){return e%i}),u=function(e,t){return d(60+e-t)},p=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()?t:c.setSeconds(t,e)}},h=p(0),m=p(59),g=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setSeconds(e,t.getSeconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,d=e.part,u=e.step,p=void 0===u?this.step:u;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setSeconds(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,d.pattern),value:n}},this.min=o,this.max=s,this.step=p},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),m(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastSecond(e)===e.getSeconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return u(e.getSeconds(),this.min.getSeconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastSecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getSeconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setSeconds(this.max,this.lastSecond(e)))},e.prototype.lastSecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getSeconds(),i.getSeconds()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.SecondsService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(2),s=n(5),l=n(8),c=n(3),d=(i=1e3,function(e){return e%i}),u=function(e,t){return d(1e3+e-t)},p=function(e){return function(t,n){return!n||t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()&&t.getSeconds()===n.getSeconds()?t:c.setMilliseconds(t,e)}},h=p(0),m=p(999),g=function(){function e(e){this.intl=e,this.insertUndividedMax=!1}return e.prototype.apply=function(e,t){return c.setMilliseconds(e,t.getMilliseconds())},e.prototype.configure=function(e){var t=this,n=e.insertUndividedMax,i=void 0===n?this.insertUndividedMax:n,a=e.min,o=void 0===a?this.min:a,r=e.max,s=void 0===r?this.max:r,d=e.step,u=void 0===d?this.step:d;this.insertUndividedMax=i,this.toListItem=function(e){var n=c.setMilliseconds(l.MIDNIGHT_DATE,e);return{text:t.intl.formatDate(n,"SSS"),value:n}},this.min=o,this.max=s,this.step=u},e.prototype.data=function(e){var t,n,i=this,a=this.range(e)[0],o=(t=a,n=this.step,function(e){return d(t+e*n)}),r=c.range(0,this.countFromMin(e)).map((function(e){return i.toListItem(o(e))}));return this.addLast(r),this.addMissing(r,e),r},e.prototype.isRangeChanged=function(e,t){return!r.isEqual(this.min,e)||!r.isEqual(this.max,t)},e.prototype.limitRange=function(e,t,n){return[h(e,n),m(t,n)]},e.prototype.total=function(e){var t=this.insertUndividedMax&&this.isLastMissing(e)?1:0,n=this.isMissing(e)?1:0;return this.countFromMin(e)+n+t},e.prototype.selectedIndex=function(e){return Math.ceil(this.divideByStep(e))},e.prototype.valueInList=function(e){return!e||(this.insertUndividedMax&&this.lastMillisecond(e)===e.getMilliseconds()||!this.isMissing(e))},e.prototype.divideByStep=function(e){return u(e.getMilliseconds(),this.min.getMilliseconds())/this.step},e.prototype.addLast=function(e,t){return this.insertUndividedMax&&this.isLastMissing(t)&&e.push(this.toListItem(this.lastMillisecond(t))),e},e.prototype.addMissing=function(e,t){if(this.valueInList(t))return e;var n=this.toListItem(t.getMilliseconds());return e.splice(this.selectedIndex(t),0,n),e},e.prototype.countFromMin=function(e){var t=this.range(e),n=t[0],i=t[1];return Math.floor(u(i,n)/this.step)+1},e.prototype.isMissing=function(e){return!!e&&this.selectedIndex(e)!==this.divideByStep(e)},e.prototype.isLastMissing=function(e){return this.isMissing(c.setMilliseconds(this.max,this.lastMillisecond(e)))},e.prototype.lastMillisecond=function(e){return this.range(e)[1]},e.prototype.range=function(e){var t=this.limitRange(this.min,this.max,e),n=t[0],i=t[1];return[n.getMilliseconds(),i.getMilliseconds()]},e=a.__decorate([o.Injectable(),a.__metadata("design:paramtypes",[s.IntlService])],e)}();t.MillisecondsService=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(2),r=n(5),s=function(e,t){var n=o.cloneDate(e);return n.setHours(t),n},l=function(e){return null!==e&&e<12},c=function(e,t,n){return!t&&!n||e>=t&&e<=n},d=function(e,t,n){return!t&&!n||e>=t||e<=n},u=function(){function e(e){this.intl=e}return e.prototype.apply=function(e,t){var n=e.getHours(),i=l(n),a=l(t.getHours());if(i&&a||!i&&!a)return e;var o=this.normalizedRange(),r=o[0],c=o[1],d=void 0===c?24:c,u=n+(a?-12:12);return s(e,Math.min(Math.max(r,u),d||24))},e.prototype.configure=function(e){var t=e.min,n=void 0===t?this.min:t,i=e.max,a=void 0===i?this.max:i,o=e.part,r=void 0===o?this.part:o;this.min=n,this.max=a,this.part=r},e.prototype.data=function(e){var t=this.part.names;if(!t)return[];var n,i=[],a=this.normalizedRange(),o=a[0],r=a[1],c=this.intl.dateFormatNames(t);return l(o)&&i.push({text:c.am,value:s(this.min,o)}),null!==(n=r)&&(!n||n>11)&&i.push({text:c.pm,value:s(this.min,Math.max(12,r))}),this.min.getHours()!==o?i.reverse():i},e.prototype.isRangeChanged=function(e,t){return!1},e.prototype.limitRange=function(e,t,n){return[e,t]},e.prototype.total=function(){var e=this.normalizedRange(),t=e[0],n=e[1];return(t||n)&&(t>11||n<12)?1:2},e.prototype.selectedIndex=function(e){if(!this.valueInList(e))return-1;var t=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?t:0===t?1:0},e.prototype.valueInList=function(e){return(this.min.getHours()!==this.normalizedRange()[0]?d:c)(e.getHours(),this.min.getHours(),this.max.getHours())},e.prototype.normalizedRange=function(){var e=this.min.getHours(),t=this.max.getHours();return[Math.min(e,t),Math.max(e,t)]},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[r.IntlService])],e)}();t.DayPeriodService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoTimePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimePickerLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoTimeSelectorLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimeSelectorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(14),r=n(13),s=n(6),l=n(5),c=n(24),d=n(42),u=n(55),p=n(44),h=n(54),m=n(22),g=n(66),f=n(114),v=n(115),y=[g.DateTimePickerComponent,f.DateTimePickerCustomMessagesComponent,v.LocalizedMessagesDirective],_=function(){function e(){}return e=i.__decorate([a.NgModule({declarations:y.slice(),exports:y.concat([p.TemplatesModule]),imports:[o.CommonModule,l.IntlModule,c.DateInputModule,d.CalendarModule,u.TimePickerModule,r.PopupModule,s.EventsModule,p.TemplatesModule],providers:[{provide:m.TOUCH_ENABLED,useValue:h.touchEnabled}]})],e)}();t.DateTimePickerModule=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"toggle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"dateTab",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"dateTabLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"timeTab",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"timeTabLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"accept",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"acceptLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"cancelLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"today",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"now",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nowLabel",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"prevButtonTitle",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],t.prototype,"nextButtonTitle",void 0),t}(n(4).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57);t.CalendarComponent=i.CalendarComponent;var a=n(39);t.DateInputComponent=a.DateInputComponent;var o=n(63);t.DatePickerComponent=o.DatePickerComponent;var r=n(65);t.TimePickerComponent=r.TimePickerComponent;var s=n(66);t.DateTimePickerComponent=s.DateTimePickerComponent;var l=n(25);t.MultiViewCalendarComponent=l.MultiViewCalendarComponent;var c=n(67);t.DateRangeComponent=c.DateRangeComponent;var d=n(53);t.DateRangePopupComponent=d.DateRangePopupComponent;var u=n(69);t.DateRangeEndInputDirective=u.DateRangeEndInputDirective;var p=n(71);t.DateRangeStartInputDirective=p.DateRangeStartInputDirective;var h=n(72);t.DateRangeSelectionDirective=h.DateRangeSelectionDirective;var m=n(42);t.CalendarModule=m.CalendarModule;var g=n(80);t.CalendarsModule=g.CalendarsModule;var f=n(24);t.DateInputModule=f.DateInputModule;var v=n(84);t.DatePickerModule=v.DatePickerModule;var y=n(109);t.DateInputsModule=y.DateInputsModule;var _=n(55);t.TimePickerModule=_.TimePickerModule;var b=n(97);t.DateTimePickerModule=b.DateTimePickerModule;var C=n(43);t.MultiViewCalendarModule=C.MultiViewCalendarModule;var w=n(88);t.DateRangeModule=w.DateRangeModule;var D=n(23);t.DateRangeService=D.DateRangeService;var k=n(78);t.CalendarCustomMessagesComponent=k.CalendarCustomMessagesComponent;var T=n(83);t.DateInputCustomMessagesComponent=T.DateInputCustomMessagesComponent;var E=n(87);t.DatePickerCustomMessagesComponent=E.DatePickerCustomMessagesComponent;var S=n(37);t.PreventableEvent=S.PreventableEvent;var M=n(76);t.CalendarLocalizedMessagesDirective=M.CalendarLocalizedMessagesDirective;var I=n(74);t.MultiViewCalendarLocalizedMessagesDirective=I.MultiViewCalendarLocalizedMessagesDirective;var O=n(81);t.DateInputLocalizedMessagesDirective=O.DateInputLocalizedMessagesDirective;var V=n(85);t.DatePickerLocalizedMessagesDirective=V.DatePickerLocalizedMessagesDirective;var R=n(95);t.TimePickerLocalizedMessagesDirective=R.TimePickerLocalizedMessagesDirective;var x=n(96);t.TimeSelectorLocalizedMessagesDirective=x.TimeSelectorLocalizedMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),a=n(7),o=function(){return null};t.disabledDatesRangeValidator=function(e){return a.isPresent(e)?function(t){if(!(a.isPresent(t)&&a.isPresent(t.start)&&a.isPresent(t.end))||t.start>t.end)return null;var n=i.disabledDatesInRange(t.start,t.end,e),o={disabledDatesInRange:n};return n.length?o:null}:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){void 0===e&&(e=0),this.total=e,this.rowHeight=t,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,a=0;a<e;a++)this.offsets.push(i),i+=t,this.heights.push(t)}return e.prototype.height=function(e){return this.heights[e]},e.prototype.expandDetail=function(e){this.height(e)===this.rowHeight&&this.updateRowHeight(e,this.detailRowHeight)},e.prototype.collapseDetail=function(e){this.height(e)>this.rowHeight&&this.updateRowHeight(e,-1*this.detailRowHeight)},e.prototype.index=function(e){if(!(e<0)){var t=this.offsets.reduce((function(t,n,i){return void 0!==t?t:n===e?i:n>e?i-1:void 0}),void 0);return void 0===t?this.total-1:t}},e.prototype.offset=function(e){return this.offsets[e]},e.prototype.totalHeight=function(){return this.heights.reduce((function(e,t){return e+t}),0)},e.prototype.updateRowHeight=function(e,t){this.heights[e]+=t,this.offsets=function(e,t,n){return e.slice(0,t+1).concat(e.slice(t+1).map((function(e){return e+n})))}(this.offsets,e,t)},e}();t.RowHeightService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),a=function(e){return Math.max(e,0)},o=function(e){this.offset=e};t.ScrollAction=o;var r=function(e){this.skip=e};t.PageAction=r;var s=function(){function e(e){this.scrollObservable=e,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return e.prototype.create=function(e,t,n,s,l,c,d){var u=this;void 0===l&&(l=0),void 0===c&&(c=0),void 0===d&&(d="vertical"),this.rowHeightService=e,this.firstLoaded=t,this.lastLoaded=t+n,this.take=n,this.total=s,this.lastScroll=0,this.topOffset=l,this.bottomOffset=c,this.direction=d;var p=new i.ReplaySubject(2),h=this.rowsForHeight(l),m=a(t-h);return p.next(new o(this.rowOffset(m))),h&&p.next(new r(m)),this.subscription=new i.Observable((function(e){u.unsubscribe(),u.scrollSubscription=u.scrollObservable.subscribe((function(t){return u.onScroll(t,e)}))})).subscribe((function(e){return p.next(e)})),p},e.prototype.destroy=function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()},e.prototype.onScroll=function(e,t){var n=e.scrollLeft,i=e.scrollTop,s=e.offsetHeight,l=e.offsetWidth,c="vertical"===this.direction?i:n,d="vertical"===this.direction?s:l;if(this.lastScroll!==c){var u=this.lastScroll>=c;this.lastScroll=c;var p=this.rowHeightService.index(a(c-this.topOffset)),h=this.rowHeightService.index(a(c+d-this.bottomOffset));if(!u&&h>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=p,t.next(new o(this.rowOffset(p))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new r(this.firstLoaded))),u&&p<=this.firstLoaded){var m=Math.floor(.3*this.take);this.firstLoaded=a(p-m),t.next(new o(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),t.next(new r(this.firstLoaded))}}},e.prototype.rowOffset=function(e){return this.rowHeightService.offset(e)+this.topOffset},e.prototype.rowsForHeight=function(e){return Math.ceil(e/this.rowHeightService.height(0))},e.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)},e}();t.ScrollerService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(35),r=function(){function e(e,t){this.dom=e,this.zone=t}return e.prototype.configure=function(e){var t=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(e){return function(t){return Math.floor(t/e)}}(t),this.powerByMagnitude=function(e){return function(t){return t*e}}(t)},e.prototype.sync=function(e,t){var n=this;this.unsubscribe(),e&&t&&(this.navigator=e,this.view=t,this.zone.runOutsideAngular((function(){var i,a;n.navSubscription=e.scroll$().subscribe((function(e){a?a=!1:(i=!0,n.scrollSiblingOf(e.target))})),n.viewSubscription=t.scroll$().subscribe((function(e){i?i=!1:(a=!0,n.scrollSiblingOf(e.target))}))})))},e.prototype.scrollSiblingOf=function(e){var t=this.siblingComponent(e),n=this.calculateScroll(t,e.scrollTop);t.scrollTo(n)},e.prototype.siblingComponent=function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator},e.prototype.calculateScroll=function(e,t){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(t)},e.prototype.destroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()},e=i.__decorate([a.Injectable(),i.__metadata("design:paramtypes",[o.CalendarDOMService,a.NgZone])],e)}();t.ScrollSyncService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None"}(t.Arrow||(t.Arrow={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.timeRangeValidator=function(e,t){return function(n){if(!e||!t||!n.value)return null;var a={timeRangeError:{maxValue:t,minValue:e,value:n.value}};return i.isInTimeRange(n.value,e,t)?null:a}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(6),r=function(){function e(e,t,n,i){this.$implicit=e,this.kForOf=t,this.index=n,this.count=i}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}();t.KForOfContext=r;var s=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"kForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("kForOf"in e){var t=e.kForOf.currentValue;if(this._differ||!t)return;try{this._differ=this._differs.find(t).create(this.kForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+l(t)+"'.")}}},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){if(o.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 r(null,this.kForOf,-1,-1),a);for(a=this._viewContainer.length;a>n;a--)this._viewContainer.remove(a-1);for(a=0;a<this._viewContainer.length;a++){var s=this._viewContainer.get(a);s.context.index=a,s.context.count=length,s.context.$implicit=i[a]||null}}},i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"kForOf",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],e.prototype,"kForTrackBy",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef),i.__metadata("design:paramtypes",[a.TemplateRef])],e.prototype,"kForTemplate",null),e=i.__decorate([a.Directive({selector:"[kFor][kForOf]"}),i.__metadata("design:paramtypes",[a.ViewContainerRef,a.TemplateRef,a.IterableDiffers])],e)}();function l(e){return e.name||typeof e}t.KForOf=s,t.getTypeNameForDebugging=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(9),r=n(10),s=n(11),l=n(20),c=n(5),d=n(2),u=n(3),p=n(21),h=n(7),m=function(){function e(e,t,n,i,r,s,l){this.bus=e,this.intl=t,this.cdr=n,this.element=i,this.zone=r,this.renderer=s,this.disabledDatesService=l,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new a.EventEmitter,this.weekNumberCellClick=new a.EventEmitter,this.cellEnter=new a.EventEmitter,this.cellLeave=new a.EventEmitter,this.colSpan=0,this.subscriptions=new o.Subscription,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}return Object.defineProperty(e.prototype,"weekNumber",{get:function(){return this.showWeekNumbers&&this.activeView===r.CalendarViewEnum.month},set:function(e){this.showWeekNumbers=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.bindEvents()}))},e.prototype.ngOnChanges=function(e){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),e.activeView&&(this.currentCellIndex=null))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domEvents.forEach((function(e){return e()}))},e.prototype.isHorizontal=function(){return"horizontal"===this.direction},e.prototype.isMonthView=function(){return this.activeView===r.CalendarViewEnum.month},e.prototype.shouldRenderCellContent=function(e){return h.isPresent(e)&&!(!this.isHorizontal()&&e.isOtherMonth)},e.prototype.firstDate=function(e){var t=this.firstWeekDateContext(e);return t?t.value:null},e.prototype.getWeekNumber=function(e){return this.weekNumber?d.weekInYear(e,this.intl.firstDay()):null},e.prototype.getWeekNumberContext=function(e){var t=this.firstWeekDateContext(e);if(!this.weekNumber||!t)return null;var n=d.weekInYear(t.value,this.intl.firstDay()).toString();return{formattedValue:n,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:n,value:d.cloneDate(t.value)}},e.prototype.getStyles=function(e){var t=e.isRangeEnd,n=e.isRangeStart,i="end"===this.activeRangeEnd&&t,a="start"===this.activeRangeEnd&&n;return u.stringifyClassObject({"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&&n,"k-state-active":a||i,"k-state-focused":!e.isOtherMonth&&this.isActive&&e.isFocused,"k-state-selected":!e.isOtherMonth&&(e.isSelected||n||t),"k-today":!e.isOtherMonth&&e.isToday,"k-weekend":e.isWeekend,"k-disabled":e.isDisabled,"k-other-month":e.isOtherMonth})},e.prototype.tableCellIndex=function(e,t){return e+":"+t},e.prototype.handleWeekNumberClick=function(e){var t=this,n=e.map((function(e){return e.value})).filter((function(e){return!t.disabledDatesService.isDateDisabled(e)}));this.weekNumberCellClick.emit(n)},e.prototype.firstWeekDateContext=function(e){if(!this.weekNumber)return null;for(var t=0,n=this.shouldRenderCellContent(e[t])?e[t]:null;!n&&t<e.length;){var i=e[++t];n=this.shouldRenderCellContent(i)?i:null}return n},e.prototype.updateData=function(){var e=u.last(this.selectedDates)||u.getToday(),t=u.setTime(this.viewDate,e);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:t,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})},e.prototype.intlChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.disabledDatesChange=function(){this.updateData(),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(e,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(e,"click",this.clickHandler.bind(this)))},e.prototype.clickHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index"),i=this.cellByIndex(n);if(!i.isDisabled){var a=e.ctrlKey,o=e.metaKey,r=e.shiftKey;this.cellClick.emit({date:i.value,modifiers:{ctrlKey:a,metaKey:o,shiftKey:r}})}}},e.prototype.mouseLeaveHandler=function(){this.currentCellIndex&&this.emitCellLeave()},e.prototype.cellMouseoverHandler=function(e){var t=this.closestCell(e);if(t){var n=t.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==n&&this.emitCellLeave();var i=this.cellByIndex(n).value;this.cellEnter.emit(i),this.currentCellIndex=n}else this.currentCellIndex&&this.emitCellLeave()},e.prototype.closestCell=function(e){return p.closestInScope(e.target,(function(e){return e.hasAttribute("data-cell-index")}),this.element.nativeElement)},e.prototype.emitCellLeave=function(){var e=this.cellByIndex(this.currentCellIndex);e&&this.cellLeave.emit(e.value),this.currentCellIndex=null},e.prototype.cellByIndex=function(e){var t=e.split(":"),n=t[0],i=t[1];return this.data[n][i]},i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isActive",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"activeView",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"cellUID",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"focusedDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"viewDate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"activeRangeEnd",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"selectionRange",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"min",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Date)],e.prototype,"max",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedDates",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"weekNumber",null),i.__decorate([a.Input(),i.__metadata("design:type",Number)],e.prototype,"viewIndex",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"templateRef",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.TemplateRef)],e.prototype,"weekNumberTemplateRef",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"weekNumberCellClick",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellEnter",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"cellLeave",void 0),e=i.__decorate([a.Component({selector:"[kendoCalendarView]",template:'\n <ng-template #emptyCell><td class="k-empty k-calendar-td"> </td></ng-template>\n <tr *ngIf="!isHorizontal()" class="k-calendar-tr" role="row"><th class="k-calendar-caption" scope="col" [colSpan]="colSpan">{{title}}</th></tr>\n <tr *kFor="let row of data; let rowIndex = index" class="k-calendar-tr" role="row">\n <ng-template [ngIf]="weekNumber">\n <td\n class="k-alt k-calendar-td"\n *ngIf="firstDate(row); else emptyCell"\n [kendoEventsOutsideAngular]="{\n click: handleWeekNumberClick.bind(this, row)\n }"\n >\n <ng-template [ngIf]="!weekNumberTemplateRef">\n {{getWeekNumber(firstDate(row))}}\n </ng-template>\n <ng-template\n [ngIf]="weekNumberTemplateRef"\n [ngTemplateOutlet]="weekNumberTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: firstDate(row),\n cellContext: getWeekNumberContext(row)\n }"\n ></ng-template>\n </td>\n </ng-template>\n <ng-container *kFor="let cell of row; let cellIndex = index">\n <td class="k-calendar-td"\n *ngIf="shouldRenderCellContent(cell); else emptyCell"\n role="gridcell"\n [attr.id]="cell.id"\n [attr.data-cell-index]="tableCellIndex(rowIndex, cellIndex)"\n [attr.aria-selected]="cell.isSelected || cell.isRangeStart || cell.isRangeMid || cell.isRangeEnd"\n [attr.aria-disabled]="cell.isDisabled"\n [ngClass]="getStyles(cell)"\n [title]="cell.title"\n >\n <span class="k-link">\n <ng-template [ngIf]="!templateRef">{{cell.formattedValue}}</ng-template>\n <ng-template\n *ngIf="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: cell.value, cellContext: cell }"\n ></ng-template>\n </span>\n </td>\n </ng-container>\n </tr>\n '}),i.__metadata("design:paramtypes",[s.BusViewService,c.IntlService,a.ChangeDetectorRef,a.ElementRef,a.NgZone,a.Renderer2,l.DisabledDatesService])],e)}();t.ViewComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(75),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-multiviewcalendar-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.MultiViewCalendarCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(80),r=n(24),s=n(84),l=n(88),c=n(55),d=n(97),u=[o.CalendarsModule,r.DateInputModule,s.DatePickerModule,c.TimePickerModule,l.DateRangeModule,d.DateTimePickerModule],p=function(){function e(){}return e=i.__decorate([a.NgModule({exports:u,imports:u})],e)}();t.DateInputsModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=n(4),s=n(5),l=n(2),c=n(6),d=n(8),u=n(89),p=n(56),h=n(3),m=n(111),g=n(16),f=n(21),v=n(7),y=function(e,t,n,i){return e.length||!t.isActive?e:[{next:i[n+1]||t,prev:i[n-1]||t}]};!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={}));var _=function(){function e(e,t,n,i,a,r,s,c){this.localization=e,this.cdr=t,this.element=n,this.intl=i,this.dom=a,this.zone=r,this.renderer=s,this.pickerService=c,this.format="t",this.min=l.cloneDate(d.MIN_TIME),this.max=l.cloneDate(d.MAX_TIME),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new o.EventEmitter,this.valueReject=new o.EventEmitter,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e||{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},set:function(e){this._current=h.timeInRange(this.snapTime(l.cloneDate(e||d.MIDNIGHT_DATE),this.min),this.min,this.max),o.NgZone.isInAngularZone()||this.cdr.detectChanges()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeListIndex",{get:function(){return this._activeListIndex},set:function(e){var t=this;if(this._activeListIndex=e,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach((function(e){t.renderer.removeClass(e.nativeElement,"k-state-focused")})),e>=0)){var n=this.listIndex(e),i=this.timeListWrappers.toArray()[n];i&&this.renderer.addClass(i.nativeElement,"k-state-focused")}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe((function(){return e.cdr.markForCheck()}))),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach((function(e){return e()}))},e.prototype.focus=function(){var e=this.timeLists.first;e&&e.focus()},e.prototype.blur=function(){var e=this.timeLists.first;e&&e.blur()},e.prototype.handleAccept=function(){this.handleChange(this.mergeValue(l.cloneDate(this.value||l.getDate(h.getNow())),this.current))},e.prototype.handleNow=function(){this.current=h.getNow(),this.handleChange(this.current),this.cdr.markForCheck()},e.prototype.handleReject=function(){this.current=this.value,this.valueReject.emit()},e.prototype.handleFocus=function(e){this.isActive||(this.isActive=!0,this.emitFocus(e))},e.prototype.handleListFocus=function(e){var t=parseInt(e.target.getAttribute("data-timelist-index"),10);this.activeListIndex=t,this.handleFocus(e)},e.prototype.handleBlur=function(e){var t=v.currentFocusTarget(e);t&&this.containsElement(t)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(e))},e.prototype.containsElement=function(e){var t=this;return Boolean(f.closest(e,(function(e){return e===t.element.nativeElement})))},e.prototype.partStep=function(e){return this.steps[e.type]||1},e.prototype.init=function(e){e&&!h.hasChange(e,"format")||(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=m.valueMerger(m.generateGetters(this.dateFormatParts))),e&&!h.hasChange(e,"steps")||(this.snapTime=m.snapTime(m.generateSnappers(this.steps))),e&&!h.hasChange(e,"value")||(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&h.isInTimeRange(h.getNow(),this.min,this.max)},e.prototype.focusList=function(e){this.timeLists.length&&this.timeLists.reduce(y,[]).map((function(t){return e===i.Right?t.next:t.prev})).map((function(e){return e&&e.focus()}))},e.prototype.handleChange=function(e){this.value=e,this.valueChange.emit(l.cloneDate(e))},e.prototype.hasActiveButton=function(){var e=this;return!!this.accept&&[this.accept,this.cancel,this.now].reduce((function(t,n){return t||e.dom.isActive(n)}),!1)},e.prototype.hasSteps=function(){var e=this,t=Object.keys(this.steps);return t.length!==t.reduce((function(t,n){return t+e.steps[n]}),0)},e.prototype.intlChange=function(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=m.valueMerger(m.generateGetters(this.dateFormatParts)),this.cdr.markForCheck()},e.prototype.bindEvents=function(){var e=this;this.element&&this.zone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.element.nativeElement,"keydown",e.handleKeydown.bind(e)))}))},e.prototype.handleKeydown=function(e){var t=e.keyCode,n=e.altKey,a=-1!==[c.Keys.ArrowLeft,c.Keys.ArrowRight].indexOf(t);v.isPresent(this.pickerService)&&a&&n||(t!==c.Keys.Enter||this.hasActiveButton()?t!==c.Keys.ArrowLeft&&t!==c.Keys.ArrowRight||this.focusList(t===c.Keys.ArrowLeft?i.Left:i.Right):this.handleAccept())},e.prototype.emitBlur=function(e){this.pickerService&&this.pickerService.onBlur.emit(e)},e.prototype.emitFocus=function(e){this.pickerService&&this.pickerService.onFocus.emit(e)},e.prototype.listIndex=function(e){for(var t=0,n=0;n<e;)"literal"!==this.dateFormatParts[n].type&&t++,n++;return t},a.__decorate([o.ViewChild("accept",{static:!1}),a.__metadata("design:type",o.ElementRef)],e.prototype,"accept",void 0),a.__decorate([o.ViewChild("cancel",{static:!1}),a.__metadata("design:type",o.ElementRef)],e.prototype,"cancel",void 0),a.__decorate([o.ViewChild("now",{static:!1}),a.__metadata("design:type",o.ElementRef)],e.prototype,"now",void 0),a.__decorate([o.ViewChildren(u.TimeListComponent),a.__metadata("design:type",o.QueryList)],e.prototype,"timeLists",void 0),a.__decorate([o.ViewChildren("listWrapper"),a.__metadata("design:type",o.QueryList)],e.prototype,"timeListWrappers",void 0),a.__decorate([o.HostBinding("class.k-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),a.__decorate([o.Input(),a.__metadata("design:type",String)],e.prototype,"format",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"min",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"max",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"cancelButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"setButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"nowButton",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([o.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],e.prototype,"steps",null),a.__decorate([o.Input(),a.__metadata("design:type",Date)],e.prototype,"value",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),a.__decorate([o.Output(),a.__metadata("design:type",o.EventEmitter)],e.prototype,"valueReject",void 0),e=a.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,exportAs:"kendo-timeselector",providers:[r.LocalizationService,{provide:r.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-base 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-hstack k-justify-content-stretch" *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 '}),a.__param(7,o.Optional()),a.__metadata("design:paramtypes",[r.LocalizationService,o.ChangeDetectorRef,o.ElementRef,s.IntlService,p.TimePickerDOMService,o.NgZone,o.Renderer2,g.PickerService])],e)}();t.TimeSelectorComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(2),o=n(41),r=function(e,t){return e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},s=function(e,t){return r(e,t)&&e.getSeconds()===t.getSeconds()},l=[{type:o.TIME_PART.hour,getter:function(e){return e.getHours()},minGetter:function(e,t){return t.getHours()}},{type:o.TIME_PART.minute,getter:function(e){return e.getMinutes()},minGetter:function(e,t){return r(e,t)?t.getMinutes():0}},{type:o.TIME_PART.second,getter:function(e){return e.getSeconds()},minGetter:function(e,t){return s(e,t)?t.getSeconds():0}},{type:o.TIME_PART.millisecond,getter:function(e){return e.getMilliseconds()},minGetter:function(e,t){return function(e,t){return s(e,t)&&e.getMilliseconds()===t.getMilliseconds()}(e,t)?t.getMilliseconds():0}}];t.generateGetters=(i=l,function(e){return i.map(function(e){return function(t){return e[t.type]?(n=t.getter,function(e,t){return n(t)}):function(e){return function(t,n){return e(t)}}(t.getter);var n}}(function(e){return e.reduce((function(e,t){return e[t.type]=t.type,e}),{})}(e)))}),t.generateSnappers=function(e){return function(t){return e.map((function(e){var n=t[e.type];return n?function(e,t,n){return function(i,a){var o=e(i),r=t(i,a),s=o-r;if(s<0)return r;var l=s%n;return o-l+(l>n/2?n:0)}}(e.getter,e.minGetter,n):e.getter}))}}(l),t.valueMerger=function(e){return function(t,n){return t.setHours.apply(t,e.map((function(e){return e(t,n)}))),t}},t.snapTime=function(e){return function(t,n){var i=a.cloneDate(t);return i.setHours.apply(i,e.map((function(e){return e(i,n)}))),i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-timepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(45),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.TimePickerMessages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-timeselector-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.TimePickerMessages);t.TimeSelectorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(98),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"kendo-datetimepicker-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.DateTimePickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),o=n(4),r=n(98),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef((function(){return n}))}],selector:"[kendoDateTimePickerLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(r.Messages);t.LocalizedMessagesDirective=s}])}));
|